]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virQEMUCapsCacheLookupCopy: Filter qemuCaps based on machineType
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 12 Feb 2015 13:50:31 +0000 (14:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Feb 2015 12:28:04 +0000 (13:28 +0100)
commitaf20423264a105b84e968afc0b23b920fca9e566
treed6e4de90e258cadc522fdbbc9f9e19316795fa6b
parent37cf163ab2a0462e905dbf1dcb779f057d73484d
virQEMUCapsCacheLookupCopy: Filter qemuCaps based on machineType

Not all machine types support all devices, device properties, backends,
etc. So until we create a matrix of [machineType, qemuCaps], lets just
filter out some capabilities before we return them to the consumer
(which is going to make decisions based on them straight away).
Currently, as qemu is unable to tell which capabilities are (not)
enabled for given machine types, it's us who has to hardcode the matrix.
One day maybe the hardcoding will go away and we can create the matrix
dynamically on the fly based on a few monitor calls.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemuxml2argvtest.c