diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h index 13909bb7a4..2e8b8923ae 100644 --- a/src/cpu/cpu.h +++ b/src/cpu/cpu.h @@ -193,7 +193,7 @@ virCPUGetHost(virArch arch, virDomainCapsCPUModelsPtr models); virCPUDefPtr -virCPUProbeHost(virArch arch); +virCPUProbeHost(virArch arch) G_GNUC_NO_INLINE; virCPUDefPtr virCPUBaseline(virArch arch, diff --git a/tests/bhyveargv2xmlmock.c b/tests/bhyveargv2xmlmock.c index 1f08bebb7b..8120be29c1 100644 --- a/tests/bhyveargv2xmlmock.c +++ b/tests/bhyveargv2xmlmock.c @@ -2,7 +2,9 @@ #include "virnetdev.h" #include "internal.h" +#include "testutilshostcpus.h" #include "util/viruuid.h" +#include "cpu/cpu.h" #define VIR_FROM_THIS VIR_FROM_BHYVE @@ -25,3 +27,9 @@ virUUIDGenerate(unsigned char *uuid) return -1; return 0; } + +virCPUDefPtr +virCPUProbeHost(virArch arch) +{ + return testUtilsHostCpusGetDefForArch(arch); +}