All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] Support QEMU cpu models in MSHV accelerator
@ 2026-02-11 15:54 Magnus Kulke
  2026-02-11 15:54 ` [PATCH 01/10] MAINTAINERS: fix magnuskulke email-address Magnus Kulke
                   ` (10 more replies)
  0 siblings, 11 replies; 27+ messages in thread
From: Magnus Kulke @ 2026-02-11 15:54 UTC (permalink / raw)
  To: qemu-devel
  Cc: Magnus Kulke, Wei Liu, Wei Liu, Zhao Liu, Paolo Bonzini,
	Magnus Kulke

Hey all,

In the current MSHV accelerator code passing CPU features via the -cpu
flag doesn't work as intended yet. When using the MSHV hypervisor we
either silently discard the specified model/features and leave it up
to the hypervisor to provide a sensible set of features or if the user
selects -cpu host, the hypervisor might refuse to create a partition.

This changeset introduces a more comprehensive support for passing
desired guest cpu features to the hypervisor. It's also a prerequisite
for Live Migration support, in which we have to roundtrip CPU State
explicitly

Known issues:

We will probably have to iterate a bit more on this, since recently
support for CET_U/CET_S xstate bits has been introduced in QEMU, which
doesn't harmonize with our current approach of configuring the
hypervisor with static responses to cpuid queries.

Drive-by fixes:

- tiny fix in MAINTAINERS
- adding packed attribute to inlined UAPI structs

best,

magnus

Magnus Kulke (10):
  MAINTAINERS: fix magnuskulke email-address
  include/hw/hyperv: add QEMU_PACKED to uapi structs
  accel/mshv: use mshv_create_partition_v2 payload
  target/i386/mshv: fix cpuid propagation bug
  target/i386/mshv: fix various cpuid traversal bugs
  target/i386/mshv: change cpuid mask to UINT32_MAX
  target/i386/mshv: set cpu model name on -cpu host
  target/i386: query mshv accel for supported cpuids
  target/i386/mshv: populate xsave area offsets
  target/i386/mshv: filter out CET bits in cpuid

 MAINTAINERS                    |   4 +-
 accel/mshv/mshv-all.c          |  35 ++++--
 include/hw/hyperv/hvgdk_mini.h |  39 ++++--
 include/hw/hyperv/hvhdk.h      | 199 ++++++++++++++++++++++++++++-
 include/system/mshv.h          |   3 +
 target/i386/cpu.c              |   8 ++
 target/i386/mshv/mshv-cpu.c    | 221 ++++++++++++++++++++++++++-------
 7 files changed, 438 insertions(+), 71 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2026-03-03 14:05 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11 15:54 [PATCH 00/10] Support QEMU cpu models in MSHV accelerator Magnus Kulke
2026-02-11 15:54 ` [PATCH 01/10] MAINTAINERS: fix magnuskulke email-address Magnus Kulke
2026-03-03 12:14   ` Peter Maydell
2026-03-03 12:53     ` Magnus Kulke
2026-02-11 15:54 ` [PATCH 02/10] include/hw/hyperv: add QEMU_PACKED to uapi structs Magnus Kulke
2026-02-11 15:54 ` [PATCH 03/10] accel/mshv: use mshv_create_partition_v2 payload Magnus Kulke
2026-02-11 23:43   ` Mohamed Mediouni
2026-02-13  9:54     ` Magnus Kulke
2026-02-12 13:32   ` Anirudh Rayabharam
2026-02-13 10:27     ` Magnus Kulke
2026-02-18  6:23     ` Wei Liu
2026-02-19 10:33       ` Anirudh Rayabharam
2026-02-19 20:16         ` Wei Liu
2026-02-11 15:54 ` [PATCH 04/10] target/i386/mshv: fix cpuid propagation bug Magnus Kulke
2026-02-18  6:24   ` Wei Liu
2026-02-11 15:54 ` [PATCH 05/10] target/i386/mshv: fix various cpuid traversal bugs Magnus Kulke
2026-02-11 15:54 ` [PATCH 06/10] target/i386/mshv: change cpuid mask to UINT32_MAX Magnus Kulke
2026-02-11 15:54 ` [PATCH 07/10] target/i386/mshv: set cpu model name on -cpu host Magnus Kulke
2026-02-11 15:54 ` [PATCH 08/10] target/i386: query mshv accel for supported cpuids Magnus Kulke
2026-02-11 23:35   ` Mohamed Mediouni
2026-02-13  9:44     ` Magnus Kulke
2026-02-20  9:50     ` Paolo Bonzini
2026-02-11 15:54 ` [PATCH 09/10] target/i386/mshv: populate xsave area offsets Magnus Kulke
2026-02-11 15:54 ` [PATCH 10/10] target/i386/mshv: filter out CET bits in cpuid Magnus Kulke
2026-03-02 18:34 ` [PATCH 00/10] Support QEMU cpu models in MSHV accelerator Paolo Bonzini
2026-03-03 13:30   ` Magnus Kulke
2026-03-03 14:04     ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.