mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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 <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1f85c31bd8
commit
2bde68b6c5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user