[libvirt] [PATCH 04/13] qemu: Expose hvf domain type if hvf is supported

Roman Bolshakov posted 13 patches 6 years, 6 months ago
[libvirt] [PATCH 04/13] qemu: Expose hvf domain type if hvf is supported
Posted by Roman Bolshakov 6 years, 6 months ago
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
---
 src/qemu/qemu_capabilities.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 8da0a8476b..b3bfe500e2 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -852,6 +852,17 @@ virQEMUCapsInitGuestFromBinary(virCapsPtr caps,
         }
     }
 
+    if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_HVF)) {
+        if (virCapabilitiesAddGuestDomain(guest,
+                                          VIR_DOMAIN_VIRT_HVF,
+                                          NULL,
+                                          NULL,
+                                          0,
+                                          NULL) == NULL) {
+            goto cleanup;
+        }
+    }
+
     if ((ARCH_IS_X86(guestarch) || guestarch == VIR_ARCH_AARCH64) &&
         virCapabilitiesAddGuestFeature(guest, "acpi", true, true) == NULL) {
         goto cleanup;
-- 
2.17.1 (Apple Git-112)

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 04/13] qemu: Expose hvf domain type if hvf is supported
Posted by Daniel P. Berrangé 6 years, 6 months ago
On Sat, Oct 20, 2018 at 05:19:49PM +0300, Roman Bolshakov wrote:
> Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
> ---
>  src/qemu/qemu_capabilities.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list