[libvirt PATCH 08/11] cpu_arm: Don't implement virCPUGetVendorForModel

Jiri Denemark posted 11 patches 3 years, 4 months ago
There is a newer version of this series
[libvirt PATCH 08/11] cpu_arm: Don't implement virCPUGetVendorForModel
Posted by Jiri Denemark 3 years, 4 months ago
This patch is effectively a no-op, but I wanted to initialize
.getVendorForModel explicitly as implementing this function does not
even make sense on ARM. The CPU models in our CPU map are only used for
describing host CPU in capabilities XML and cannot be used for guest CPU
definition in domain XML anyway. The CPU models listed as supported in
domain capabilities XML are just passed through from QEMU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 src/cpu/cpu_arm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c
index 599bb836ed..409b397155 100644
--- a/src/cpu/cpu_arm.c
+++ b/src/cpu/cpu_arm.c
@@ -714,6 +714,7 @@ struct cpuArchDriver cpuDriverArm = {
 #endif
     .decode = NULL,
     .encode = NULL,
+    .getVendorForModel = NULL,
     .dataCopyNew = virCPUarmDataCopyNew,
     .dataFree = virCPUarmDataFree,
     .baseline = virCPUarmBaseline,
-- 
2.37.3