]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: allow reordering max_x86_cpu_initfn vs accel CPU init
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Jul 2025 16:49:17 +0000 (18:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Jul 2025 13:28:20 +0000 (15:28 +0200)
commit810fcc41fc572d90b3c05af3f06f451626ee6b10
tree5894e48774de2d5aeb6c696320e4d95bd78a7260
parentd93972d88b0984ed0a2090493f8d62cc188976d2
target/i386: allow reordering max_x86_cpu_initfn vs accel CPU init

The PMU feature is only supported by KVM, so move it there.  And since
all accelerators other than TCG overwrite the vendor, set it in
max_x86_cpu_initfn only if it has not been initialized by the
superclass.  This makes it possible to run max_x86_cpu_initfn
after accelerator init.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/kvm/kvm-cpu.c