]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: drvqemu: Give example how to query device properties for overriding
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Nov 2022 12:46:29 +0000 (13:46 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Dec 2022 11:00:55 +0000 (12:00 +0100)
Add an example of invoking qemu with '-device TYPE,?' to query
properties of a given type.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/drvqemu.rst

index 7bfb28ea9cdf68a807341ef5696247412383c6d5..b31b1785db5bfe6860734d0d0c43cc19a1fa8b6e 100644 (file)
@@ -722,6 +722,11 @@ attribute are:
 The overrides are applied only to initial device configuration passed to QEMU
 via the commandline. Later hotplug operations will not apply any modifications.
 
+The properties of a device can be queried directly in qemu (e.g. for the
+``virtio-blk-pci`` device) via ::
+
+  # qemu-system-x86_64 -device virtio-blk-pci,?
+
 Configuring override for a device alias which is not used or attempting to
 remove a device property which is not formatted by libvirt will cause failure
 to startup the VM.