As promised in
https://www.redhat.com/archives/libvir-list/2011-January/msg00562.html
Patch 1 is complete, patch 2 can be pushed as-is, but if anyone
has qemu-0.12.1 or qemu-kvm-0.12.3 handy (Fedora12 has 0.11.x, and
Fedora13 has 0.12.5), then we can enhance it by filling in the
contents of a couple more files.
Patch 3 does not need to be pushed until the rest of my smartcard
series is complete, but I'm including it now to show how to
rewrite things in order to parse more device characteristics
from a single qemu run, so it can be reused by the boot order
patch series (add "-device","virtio-blk-pci,?" to extract; add
strstr(str,"virtio-blk-pci.bootindex") to parse; and possibly
update the qemuhelpdata/*-device files to include appropriate
new lines to trigger the new flag detection).
Eric Blake (3):
qemu: convert capabilities to use virCommand
qemu: improve device flag parsing
smartcard: check for qemu capability
src/qemu/qemu_capabilities.c | 229 +++++++-------------
src/qemu/qemu_capabilities.h | 5 +-
tests/qemuhelpdata/qemu-kvm-0.12.1.2-rhel60-device | 57 +++++
tests/qemuhelpdata/qemu-kvm-0.13.0-device | 70 ++++++
tests/qemuhelptest.c | 48 +++-
5 files changed, 244 insertions(+), 165 deletions(-)
create mode 100644 tests/qemuhelpdata/qemu-0.12.1-device
create mode 100644 tests/qemuhelpdata/qemu-kvm-0.12.1.2-rhel60-device
create mode 100644 tests/qemuhelpdata/qemu-kvm-0.12.3-device
create mode 100644 tests/qemuhelpdata/qemu-kvm-0.13.0-device
--
1.7.3.4