mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
qemu: Make virQEMUCapsProbeHVF() non-static
We need to do this so that we can mock it in the test suite. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Christophe de Dinechin <dinechin@redhat.com> Tested-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
92cc65783e
commit
a6ba59db9e
@ -3259,7 +3259,7 @@ virQEMUCapsProbeQMPKVMState(virQEMUCaps *qemuCaps,
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
static int
|
||||
int
|
||||
virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps)
|
||||
{
|
||||
int hv_support = 0;
|
||||
@ -3281,7 +3281,7 @@ virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps)
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
static int
|
||||
int
|
||||
virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED)
|
||||
{
|
||||
return 0;
|
||||
|
@ -848,5 +848,7 @@ virQEMUCapsGetSEVCapabilities(virQEMUCaps *qemuCaps);
|
||||
bool
|
||||
virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps) G_NO_INLINE;
|
||||
|
||||
int virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps) G_NO_INLINE;
|
||||
|
||||
virArch virQEMUCapsArchFromString(const char *arch);
|
||||
const char *virQEMUCapsArchToString(virArch arch);
|
||||
|
Loading…
Reference in New Issue
Block a user