]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu_arm: Don't implement virCPUGetVendorForModel
authorJiri Denemark <jdenemar@redhat.com>
Thu, 29 Sep 2022 19:54:34 +0000 (21:54 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 10 Oct 2022 12:31:43 +0000 (14:31 +0200)
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>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu_arm.c

index 599bb836ed317b95bd03de0a6627d9b7a16a095e..409b397155622d1e6a7fec36c23d4589bf8e15ef 100644 (file)
@@ -714,6 +714,7 @@ struct cpuArchDriver cpuDriverArm = {
 #endif
     .decode = NULL,
     .encode = NULL,
+    .getVendorForModel = NULL,
     .dataCopyNew = virCPUarmDataCopyNew,
     .dataFree = virCPUarmDataFree,
     .baseline = virCPUarmBaseline,