From: Peter Krempa Date: Wed, 8 Mar 2023 17:26:56 +0000 (+0100) Subject: qemucapabilitiestest: Add support for '+hvf' variant X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2bde68b6c58e2a87257c43df53be929e2bff6fd2;p=libvirt.git qemucapabilitiestest: Add support for '+hvf' variant 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 Reviewed-by: Martin Kletzander Reviewed-by: Ján Tomko --- 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;