[PATCH 16/24] qemucapabilitiestest: Add support for '+hvf' variant

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

 



We need to signal to the capabilities code that HVF variant is used so
that it can behave as if it were running on OSX.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/qemucapabilitiestest.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c
index dcc965130e..be86af3e39 100644
--- a/tests/qemucapabilitiestest.c
+++ b/tests/qemucapabilitiestest.c
@@ -44,11 +44,12 @@ struct _testQemuData {
     int ret;
 };

+bool isHVF = false;

 bool
 virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED)
 {
-    return false;
+    return isHVF;
 }


@@ -97,6 +98,8 @@ testQemuCaps(const void *opaque)
                                                NULL)))
         return -1;

+    isHVF = STREQ(data->variant, "+hvf");
+
     if (qemuProcessQMPInitMonitor(qemuMonitorTestGetMonitor(mon)) < 0)
         return -1;

-- 
2.39.2




[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]

  Powered by Linux