From 2bde68b6c58e2a87257c43df53be929e2bff6fd2 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 8 Mar 2023 18:26:56 +0100 Subject: [PATCH] qemucapabilitiestest: Add support for '+hvf' variant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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;