mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: Add the QEMU_CAPS_CPU_KVM_NO_ADJVTIME capability
We will use this capability to detect whether the QEMU binary supports the kvm-no-adjvtime CPU feature. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f8e923c1ba
commit
204e2306e5
@ -559,6 +559,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"rng-builtin",
|
||||
"virtio-net.failover",
|
||||
"tpm-spapr",
|
||||
"cpu.kvm-no-adjvtime",
|
||||
);
|
||||
|
||||
|
||||
@ -1562,6 +1563,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsMemoryBackendMemfd[]
|
||||
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsMaxCPU[] = {
|
||||
{ "unavailable-features", QEMU_CAPS_CPU_UNAVAILABLE_FEATURES },
|
||||
{ "kvm-no-adjvtime", QEMU_CAPS_CPU_KVM_NO_ADJVTIME },
|
||||
};
|
||||
|
||||
static virQEMUCapsObjectTypeProps virQEMUCapsObjectProps[] = {
|
||||
|
@ -541,6 +541,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_OBJECT_RNG_BUILTIN, /* -object rng-builtin */
|
||||
QEMU_CAPS_VIRTIO_NET_FAILOVER, /* virtio-net-*.failover */
|
||||
QEMU_CAPS_DEVICE_TPM_SPAPR, /* -device tpm-spapr */
|
||||
QEMU_CAPS_CPU_KVM_NO_ADJVTIME, /* cpu.kvm-no-adjvtime */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
@ -179,6 +179,7 @@
|
||||
<flag name='smp-dies'/>
|
||||
<flag name='rng-builtin'/>
|
||||
<flag name='virtio-net.failover'/>
|
||||
<flag name='cpu.kvm-no-adjvtime'/>
|
||||
<version>4002050</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>61700241</microcodeVersion>
|
||||
|
Loading…
x
Reference in New Issue
Block a user