Skip to content

whpx: i386: Some more changes

Mohamed Mediouni qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesNew
  2. v17 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10whpx: i386: set apicbase value only on successtarget/i386/whpx/whpx-all.c+2 -10 replies
2/10whpx: i386: unknown MSR configurabilityaccel/whpx/whpx-common.c include/system/whpx-internal.h target/i386/whpx/whpx-all.c+43 -00 replies
3/10whpx: i386: enable GuestIdleReg enlightenmenttarget/i386/whpx/whpx-all.c+1 -00 replies
4/10whpx: i386: tighten APIC base validity checktarget/i386/whpx/whpx-all.c+3 -00 replies
5/10whpx: i386: ignore vpassist when kernel-irqchip=offtarget/i386/whpx/whpx-all.c+13 -00 replies
6/10target: i386: HLT type that ignores EFLAGS.IFtarget/i386/cpu.c target/i386/cpu.h+8 -40 replies
7/10whpx: i386: add HV_X64_MSR_GUEST_IDLE when !kernel-irqchiptarget/i386/whpx/whpx-all.c+43 -30 replies
8/10whpx: i386: one more CPUIDtarget/i386/whpx/whpx-all.c+1 -10 replies
9/10whpx: i386: some x2APIC awarenesstarget/i386/whpx/whpx-apic.c+10 -20 replies
10/10whpx: i386: set WHvX64RegisterInitialApicIdtarget/i386/whpx/whpx-all.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] whpx: i386: Some more changes

This applies on top of the "whpx: i386: bug fixes, feature probing and CPUID" series.

"target: i386: HLT type that ignores EFLAGS.IF" is probably the most worthwhile patch here, and that not-quite-an-HLT might be what's needed to reduce CPU idle on KVM on recent Windows versions too..

v1 -> v2:

Oops, my v1 had a bug in HV_X64_MSR_GUEST_IDLE emulation, We should not inject interrupts after it ignoring EFLAGS.IF. That matters just for the wake from HLT.

Trapping one more CPUID for x2APIC system topology, and some more x2APIC awareness. For the kernel-irqchip=off case, keep the hypervisor aware of the initial APIC ID we're hoosing anyways.

Based-on: <[email protected]>

Mohamed Mediouni (10):
whpx: i386: set apicbase value only on success
whpx: i386: unknown MSR configurability
whpx: i386: enable GuestIdleReg enlightenment
whpx: i386: tighten APIC base validity check
whpx: i386: ignore vpassist when kernel-irqchip=off
target: i386: HLT type that ignores EFLAGS.IF
whpx: i386: add HV_X64_MSR_GUEST_IDLE when !kernel-irqchip
whpx: i386: one more CPUID
whpx: i386: some x2APIC awareness
whpx: i386: set WHvX64RegisterInitialApicId

 accel/whpx/whpx-common.c       | 38 +++++++++++++++++
 include/system/whpx-internal.h |  1 +
 target/i386/cpu.c              | 10 +++--
 target/i386/cpu.h              |  2 +
 target/i386/whpx/whpx-all.c    | 77 +++++++++++++++++++++++++++++++---
 target/i386/whpx/whpx-apic.c   | 12 +++++-
 6 files changed, 129 insertions(+), 11 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)