[PATCH 3/8] parallels: add new guest capabilities assigned to vz driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Maxim Nestratov <mnestratov@xxxxxxxxxxxxx>
---
 src/parallels/parallels_driver.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c
index 4b87213..b2ce2ef 100644
--- a/src/parallels/parallels_driver.c
+++ b/src/parallels/parallels_driver.c
@@ -120,6 +120,33 @@ parallelsBuildCapabilities(void)
                                       NULL, NULL, 0, NULL) == NULL)
         goto error;
 
+    if ((guest = virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_HVM,
+                                         VIR_ARCH_X86_64,
+                                         "vz",
+                                         NULL, 0, NULL)) == NULL)
+        goto error;
+
+    if ((guest = virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_HVM,
+                                         VIR_ARCH_I686,
+                                         "vz",
+                                         NULL, 0, NULL)) == NULL)
+        goto error;
+
+
+    if (virCapabilitiesAddGuestDomain(guest, VIR_DOMAIN_VIRT_VZ,
+                                      NULL, NULL, 0, NULL) == NULL)
+        goto error;
+
+    if ((guest = virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_EXE,
+                                         VIR_ARCH_X86_64,
+                                         "vz",
+                                         NULL, 0, NULL)) == NULL)
+        goto error;
+
+    if (virCapabilitiesAddGuestDomain(guest, VIR_DOMAIN_VIRT_VZ,
+                                      NULL, NULL, 0, NULL) == NULL)
+        goto error;
+
     if (nodeGetInfo(&nodeinfo))
         goto error;
 
-- 
2.1.0

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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]