qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] target/i386: fix position of accel_cpu_instance_init
@ 2025-07-11  0:05 Paolo Bonzini
  2025-07-11  0:06 ` [PATCH 1/4] target/i386: move max_features to class Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Paolo Bonzini @ 2025-07-11  0:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: xiaoyao.li, zhao1.liu

With the reordering of instance_post_init callbacks that is new in 10.1
accel_cpu_instance_init must execute in .instance_init as is already
the case for RISC-V.  Otherwise, for example, setting the vendor
property is broken when using KVM or Hypervisor.framework.

Adjust x86 code to allow this movement, and perform it in patch 4.

Paolo

Paolo Bonzini (4):
  target/i386: move max_features to class
  target/i386: nvmm, whpx: add accel/CPU class that sets host vendor
  target/i386: allow reordering max_x86_cpu_initfn vs accel CPU init
  target/i386: move accel_cpu_instance_init to .instance_init

 target/i386/cpu.h           |  2 +-
 target/i386/cpu.c           | 41 ++++++++++++++++++++++---------------
 target/i386/hvf/hvf-cpu.c   |  3 ++-
 target/i386/kvm/kvm-cpu.c   |  7 +++++--
 target/i386/nvmm/nvmm-all.c | 23 +++++++++++++++++++++
 target/i386/whpx/whpx-all.c | 23 +++++++++++++++++++++
 6 files changed, 78 insertions(+), 21 deletions(-)

-- 
2.50.0



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-07-11  7:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-11  0:05 [PATCH 0/4] target/i386: fix position of accel_cpu_instance_init Paolo Bonzini
2025-07-11  0:06 ` [PATCH 1/4] target/i386: move max_features to class Paolo Bonzini
2025-07-11  1:52   ` Xiaoyao Li
2025-07-11  3:43   ` Zhao Liu
2025-07-11  0:06 ` [PATCH 2/4] target/i386: nvmm, whpx: add accel/CPU class that sets host vendor Paolo Bonzini
2025-07-11  2:12   ` Xiaoyao Li
2025-07-11  2:17   ` Xiaoyao Li
2025-07-11  6:35     ` Paolo Bonzini
2025-07-11  6:40       ` Xiaoyao Li
2025-07-11  7:46         ` Paolo Bonzini
2025-07-11  5:36   ` Zhao Liu
2025-07-11  0:06 ` [PATCH 3/4] target/i386: allow reordering max_x86_cpu_initfn vs accel CPU init Paolo Bonzini
2025-07-11  2:20   ` Xiaoyao Li
2025-07-11  6:08   ` Zhao Liu
2025-07-11  0:06 ` [PATCH 4/4] target/i386: move accel_cpu_instance_init to .instance_init Paolo Bonzini
2025-07-11  2:26   ` Xiaoyao Li
2025-07-11  6:37     ` Paolo Bonzini
2025-07-11  6:32   ` Zhao Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).