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