Thomas Huth
95c0b77018
tests/qtest/cdrom-test: Check whether devices are available before using them
...
Downstream users might want to disable legacy devices in their binaries,
so we should not blindly assume that they are available. Add some proper
checks before using them.
Message-Id: <20211220081054.151515-4-thuth@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:13:05 +01:00
Thomas Huth
9cbd66028b
tests/qtest: Improve endianness-test to work with missing machines and devices
...
The users might have built QEMU with less machines or without the
i82378 superio device. Add some checks to the endianess-test so that
it is able to deal with such stripped down QEMU versions, too.
Message-Id: <20211220081054.151515-3-thuth@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:13:05 +01:00
Thomas Huth
ad9e129b01
tests/qtest: Add a function that checks whether a device is available
...
Devices might not always be compiled into the QEMU target binaries.
We already have the libqos framework that is good for handling such
situations, but some of the qtests are not a real good fit for the
libqos framework. Let's add a qtest_has_device() function for such
tests instead.
Message-Id: <20211220081054.151515-2-thuth@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:13:05 +01:00
Zhang Chen
487cf3f2b2
MAINTAINERS: Update COLO Proxy section
...
Signed-off-by: Zhang Chen <chen.zhang@intel.com >
Message-Id: <20211221080400.1492980-1-chen.zhang@intel.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:13:05 +01:00
Thomas Huth
31fb263c29
tests/qtest: Make the filter tests independent from a specific NIC
...
These filter tests need a NIC, no matter which one, so they use a common
NIC by default. However, these common NIC models might not always have
been compiled into the QEMU target binary, so assuming that a certain NIC
is available is a bad idea. Since the exact type of NIC does not really
matter for these tests, let's switch to "-nic" instead of "-netdev" so
that QEMU can simply pick a default NIC for us.
This way we can now run the tests on other targets that have a default
machine with an on-board/default NIC, too.
Signed-off-by: Thomas Huth <thuth@redhat.com >
Message-Id: <20211220103025.311759-1-thuth@redhat.com >
Reviewed-by: Zhang Chen <chen.zhang@intel.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:13:05 +01:00
Thomas Huth
046da5ef57
tests/qtest/boot-serial-test: Silence the warning about deprecated sga device
...
When running the qtests, there are currently a bunch of warnings about
the deprecated sga device during the boot-serial-test. Switch to
"-M graphics=off" to silence these warnings.
Message-Id: <20211220164042.397028-1-thuth@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:13:05 +01:00
Laurent Vivier
1b529d908d
failover: Silence warning messages during qtest
...
virtio-net-failover test tries several device combinations that produces
some expected warnings.
These warning can be confusing, so we disable them during the qtest
sequence.
Reported-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Laurent Vivier <lvivier@redhat.com >
Message-Id: <20211220145314.390697-1-lvivier@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Acked-by: Jason Wang <jasowang@redhat.com >
[thuth: Fix memory leak by using error_free()]
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-12-22 08:12:45 +01:00
Richard Henderson
8c5f94cd41
Merge tag 'pull-loong-20211221-2' of https://gitlab.com/rth7680/qemu into staging
...
Initial commit of tcg/loongarch64
# gpg: Signature made Tue 21 Dec 2021 01:19:00 PM PST
# gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg: issuer "richard.henderson@linaro.org "
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org >" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A 05C0 64DF 38E8 AF7E 215F
* tag 'pull-loong-20211221-2' of https://gitlab.com/rth7680/qemu : (30 commits)
configure, meson.build: Mark support for loongarch64 hosts
linux-user: Implement CPU-specific signal handler for loongarch64 hosts
common-user: Add safe syscall handling for loongarch64 hosts
tcg/loongarch64: Register the JIT
tcg/loongarch64: Implement tcg_target_init
tcg/loongarch64: Implement exit_tb/goto_tb
tcg/loongarch64: Implement tcg_target_qemu_prologue
tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops
tcg/loongarch64: Implement simple load/store ops
tcg/loongarch64: Implement tcg_out_call
tcg/loongarch64: Implement setcond ops
tcg/loongarch64: Implement br/brcond ops
tcg/loongarch64: Implement mul/mulsh/muluh/div/divu/rem/remu ops
tcg/loongarch64: Implement add/sub ops
tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops
tcg/loongarch64: Implement clz/ctz ops
tcg/loongarch64: Implement bswap{16,32,64} ops
tcg/loongarch64: Implement deposit/extract ops
tcg/loongarch64: Implement not/and/or/xor/nor/andc/orc ops
tcg/loongarch64: Implement sign-/zero-extension ops
...
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:30:35 -08:00
WANG Xuerui
dfcf900ba6
configure, meson.build: Mark support for loongarch64 hosts
...
Example output of `uname -a` on an initial Gentoo LA64 port, running
the upstream submission version of Linux (with some very minor patches
not influencing output here):
> Linux <hostname> 5.14.0-10342-g37a00851b145 #5 SMP PREEMPT Tue Aug 10 12:56:24 PM CST 2021 loongarch64 GNU/Linux
And the same on the vendor-supplied Loongnix 20 system, with an early
in-house port of Linux, and using the old-world ABI:
> Linux <hostname> 4.19.167-rc5.lnd.1-loongson-3 #1 SMP Sat Apr 17 07:32:32 UTC 2021 loongarch64 loongarch64 loongarch64 GNU/Linux
So a name of "loongarch64" matches both, fortunately.
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-31-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
ad812c3bd6
linux-user: Implement CPU-specific signal handler for loongarch64 hosts
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-30-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
6016b7b46e
common-user: Add safe syscall handling for loongarch64 hosts
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-29-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
a9ae47486a
tcg/loongarch64: Register the JIT
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-28-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
8df89cf0ae
tcg/loongarch64: Implement tcg_target_init
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-27-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
30d420e4d3
tcg/loongarch64: Implement exit_tb/goto_tb
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-26-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
697a598059
tcg/loongarch64: Implement tcg_target_qemu_prologue
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-25-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
d3a1727c19
tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-24-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
251ebcd812
tcg/loongarch64: Implement simple load/store ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-23-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
a26d99d72f
tcg/loongarch64: Implement tcg_out_call
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-22-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
9ee775cf29
tcg/loongarch64: Implement setcond ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-21-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
94505c02f4
tcg/loongarch64: Implement br/brcond ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-20-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
ff13c19689
tcg/loongarch64: Implement mul/mulsh/muluh/div/divu/rem/remu ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-19-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
39f54ce5c4
tcg/loongarch64: Implement add/sub ops
...
The neg_i{32,64} ops is fully expressible with sub, so omitted for
simplicity.
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-18-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
a164010b05
tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-17-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
fde6930160
tcg/loongarch64: Implement clz/ctz ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-16-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
4ab2aff0db
tcg/loongarch64: Implement bswap{16,32,64} ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-15-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
7257809f62
tcg/loongarch64: Implement deposit/extract ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-14-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
97b2fafbf7
tcg/loongarch64: Implement not/and/or/xor/nor/andc/orc ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-13-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
6be08fcfc3
tcg/loongarch64: Implement sign-/zero-extension ops
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-12-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
e3b15766b9
tcg/loongarch64: Implement goto_ptr
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-11-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
dacc51720d
tcg/loongarch64: Implement tcg_out_mov and tcg_out_movi
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-10-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
fae2361dc9
tcg/loongarch64: Implement the memory barrier op
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-9-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
bf8c1c8140
tcg/loongarch64: Implement necessary relocation operations
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-8-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
ba0cdd8040
tcg/loongarch64: Define the operand constraints
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-7-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
1bcfbf03df
tcg/loongarch64: Add register names, allocation order and input/output sets
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-6-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
71bb0283f5
tcg/loongarch64: Add generated instruction opcodes and encoding helpers
...
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20211221054105.178795-5-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
6cb14e4de2
tcg/loongarch64: Add the tcg-target.h file
...
Support for all optional TCG ops are initially marked disabled; the bits
are to be set in individual commits later.
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-4-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
afa33258f3
MAINTAINERS: Add tcg/loongarch64 entry with myself as maintainer
...
I ported the initial code, so I should maintain it of course.
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-3-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
WANG Xuerui
e788cd2972
elf: Add machine type value for LoongArch
...
This is already officially allocated as recorded in GNU binutils
repo [1], and the description is updated in [2]. Add to enable further
work.
[1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e
[2]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3
Signed-off-by: WANG Xuerui <git@xen0n.name >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20211221054105.178795-2-git@xen0n.name >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 13:17:06 -08:00
Richard Henderson
5316e12bb2
Merge tag 'dbus-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging
...
Add D-Bus display backend
# gpg: Signature made Mon 20 Dec 2021 10:57:18 PM PST
# gpg: using RSA key 87A9BD933F87C606D276F62DDAE8E10975969CE5
# gpg: issuer "marcandre.lureau@redhat.com "
# gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com >" [unknown]
# gpg: aka "Marc-André Lureau <marcandre.lureau@gmail.com >" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 87A9 BD93 3F87 C606 D276 F62D DAE8 E109 7596 9CE5
* tag 'dbus-pull-request' of https://gitlab.com/marcandre.lureau/qemu : (36 commits)
MAINTAINERS: update D-Bus section
ui/dbus: register D-Bus VC handler
ui/dbus: add chardev backend & interface
option: add g_auto for QemuOpts
chardev: make socket derivable
chardev: teach socket to accept no addresses
ui/dbus: add clipboard interface
audio: add "dbus" audio backend
tests: start dbus-display-test
tests/qtests: add qtest_qmp_add_client()
ui/dbus: add p2p=on/off option
ui: add a D-Bus display backend
build-sys: set glib dependency version
docs: add dbus-display documentation
docs: move D-Bus VMState documentation to source XML
backends: move dbus-vmstate1.xml to backends/
docs/sphinx: add sphinx modules to include D-Bus documentation
scripts: teach modinfo to skip non-C sources
console: save current scanout details
ui: move qemu_spice_fill_device_address to ui/util.c
...
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-12-21 08:00:26 -08:00
Vladimir Sementsov-Ogievskiy
9e14491af4
nbd/client-connection: improve error message of cancelled attempt
...
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
2021-12-21 14:52:19 +01:00
Vladimir Sementsov-Ogievskiy
169b9a94ed
nbd/client-connection: nbd_co_establish_connection(): return real error
...
The only caller of nbd_do_establish_connection() that uses errp is
nbd_open(). The only way to cancel this call is through open_timer
timeout. And for this case, user will be more interested in description
of last failed connect rather than in
"Connection attempt cancelled by other operation".
So, let's change behavior on cancel to return previous failure error if
available.
Do the same for non-blocking failure case. In this case we still don't
have a caller that is interested in errp. But let's be consistent.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
2021-12-21 14:52:10 +01:00
Vladimir Sementsov-Ogievskiy
be16b8bf9f
nbd: allow reconnect on open, with corresponding new options
...
It is useful when start of vm and start of nbd server are not
simple to sync.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
2021-12-21 14:52:06 +01:00
Marc-André Lureau
89f4df9595
MAINTAINERS: update D-Bus section
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
7f767ca35e
ui/dbus: register D-Bus VC handler
...
Export the default consoles over the D-Bus chardev.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
3e301c8d7e
ui/dbus: add chardev backend & interface
...
Add a new chardev backend which allows D-Bus client to handle the
chardev stream & events.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
4085b87ff0
option: add g_auto for QemuOpts
...
Used in the next commit.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
fa670c808a
chardev: make socket derivable
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
1b87751fb1
chardev: teach socket to accept no addresses
...
The following patches are going to use CharSocket as a base class for
sockets that are created with a given fd (without a given address).
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
ff1a5810f6
ui/dbus: add clipboard interface
...
Expose the clipboard API over D-Bus. See the interface documentation for
further details.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00
Marc-André Lureau
739362d420
audio: add "dbus" audio backend
...
Add a new -audio backend that accepts D-Bus clients/listeners to handle
playback & recording, to be exported via the -display dbus.
Example usage:
-audiodev dbus,in.mixing-engine=off,out.mixing-engine=off,id=dbus
-display dbus,audiodev=dbus
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2021-12-21 10:50:22 +04:00