On Fri, Jul 11, 2025 at 02:06:02AM +0200, Paolo Bonzini wrote: > Date: Fri, 11 Jul 2025 02:06:02 +0200 > From: Paolo Bonzini <pbonz...@redhat.com> > Subject: [PATCH 3/4] target/i386: allow reordering max_x86_cpu_initfn vs > accel CPU init > X-Mailer: git-send-email 2.50.0 > > 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. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > target/i386/cpu.c | 24 ++++++++++++------------ > target/i386/kvm/kvm-cpu.c | 2 ++ > 2 files changed, 14 insertions(+), 12 deletions(-)
Reviewed-by: Zhao Liu <zhao1....@intel.com>