Skip to content

KVM: x86: Fixes for IA32_APIC_BASE and nVMX

Jan Kiszka kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: x86: Validate guest writes to MSR_IA32_APICBASEarch/x86/kvm/cpuid.h arch/x86/kvm/lapic.h arch/x86/kvm/vmx.c +1 more+47 -122 replies
2/4KVM: nVMX: Rework interception of IRQs and NMIsarch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx.c arch/x86/kvm/x86.c+53 -310 replies
3/4KVM: nVMX: Fully emulate preemption timerarch/x86/kvm/vmx.c+96 -550 replies
4/4KVM: nVMX: Do not inject NMI vmexits when L2 has a pending interruptarch/x86/kvm/vmx.c+2 -10 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 0/4] KVM: x86: Fixes for IA32_APIC_BASE and nVMX

This is the yet unmerged part of the previous round. Changes since v1:
- rebase over next
- switched APIC_BASE reserved bits check to guest's number of physical bits
- addressed small review comment on "Rework interception of IRQs and NMIs"
- added fix for improper EXCEPTION_NMI vmexit injection with valid IDT vectoring info

Paolo, did you already look into nested event handling for SVM? I assume you will want to (re-)base it on top of this.

Jan

Jan Kiszka (4):
KVM: x86: Validate guest writes to MSR_IA32_APICBASE
KVM: nVMX: Rework interception of IRQs and NMIs
KVM: nVMX: Fully emulate preemption timer
KVM: nVMX: Do not inject NMI vmexits when L2 has a pending interrupt

 arch/x86/include/asm/kvm_host.h |   2 +
 arch/x86/kvm/cpuid.h            |  16 +++
 arch/x86/kvm/lapic.h            |   2 +-
 arch/x86/kvm/vmx.c              | 228 ++++++++++++++++++++++++----------------
 arch/x86/kvm/x86.c              |  47 +++++++--
 5 files changed, 197 insertions(+), 98 deletions(-)
Signature · 1 line
1.8.1.1.298.ge7eed54