From 08850a2a0661590c38a374ba33beb915cb985fb4 Mon Sep 17 00:00:00 2001 From: Boris Fiuczynski Date: Fri, 16 Jul 2021 11:44:27 +0200 Subject: [PATCH] qemu: Make KVMSupportsSecureGuest capability available Expose existing KVMSupportsSecureGuest capability. Signed-off-by: Boris Fiuczynski Reviewed-by: Pavel Hrdina --- src/qemu/qemu_capabilities.c | 6 ++++++ src/qemu/qemu_capabilities.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 3958c4a2af..9bde411f40 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2135,6 +2135,12 @@ const char *virQEMUCapsGetPackage(virQEMUCaps *qemuCaps) } +bool virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps) +{ + return qemuCaps->kvmSupportsSecureGuest; +} + + int virQEMUCapsAddCPUDefinitions(virQEMUCaps *qemuCaps, virDomainVirtType type, diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 368883f861..d97e36696d 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -808,5 +808,8 @@ virQEMUCapsCPUFeatureFromQEMU(virQEMUCaps *qemuCaps, virSEVCapability * virQEMUCapsGetSEVCapabilities(virQEMUCaps *qemuCaps); +bool +virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps) G_GNUC_NO_INLINE; + virArch virQEMUCapsArchFromString(const char *arch); const char *virQEMUCapsArchToString(virArch arch);