[libvirt] [PATCH 2/3] virQEMUCapsCacheLookupCopy: Filter qemuCaps based on machineType

Martin Kletzander mkletzan at redhat.com
Fri Feb 20 11:00:19 UTC 2015


On Thu, Feb 12, 2015 at 04:09:39PM +0100, Michal Privoznik wrote:
>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 at redhat.com>
>---
> src/qemu/qemu_capabilities.c | 39 ++++++++++++++++++++++++++++++++++++++-
> src/qemu/qemu_capabilities.h |  2 ++
> tests/qemuxml2argvtest.c     |  2 ++
> 3 files changed, 42 insertions(+), 1 deletion(-)
>

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150220/a019882e/attachment-0001.sig>


More information about the libvir-list mailing list