Skip to content

KVM: x86: AVIC/APICv patch queue

Maxim Levitsky kvm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7KVM: x86: document AVIC/APICv inhibit reasonsarch/x86/include/asm/kvm_host.h+57 -20 replies
2/7KVM: x86: inhibit APICv/AVIC when the guest and/or host changes either apic id or the apic base from their default values.arch/x86/include/asm/kvm_host.h arch/x86/kvm/lapic.c arch/x86/kvm/svm/avic.c +1 more+38 -62 replies
3/7KVM: x86: SVM: remove avic's broken code that updated APIC IDarch/x86/kvm/svm/avic.c+0 -350 replies
4/7KVM: x86: SVM: fix avic_kick_target_vcpus_fastarch/x86/kvm/svm/avic.c+69 -362 replies
5/7KVM: x86: disable preemption while updating apicv inhibitionarch/x86/kvm/x86.c+2 -00 replies
6/7KVM: x86: disable preemption around the call to kvm_arch_vcpu_{un|}blockingvirt/kvm/kvm_main.c+6 -20 replies
7/7KVM: x86: SVM: there is no need for preempt safe wrappers for avic_vcpu_load/putarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+8 -270 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] KVM: x86: AVIC/APICv patch queue

This patch series contains a few fixes that I worked on recently.

Also included another attempt to add inhibit when the guest had changed apic id and/or apic base.

I also tested AVIC with full preemption and
found few bugs, which are now hopefully fixed.

Best regards,
Maxim Levitsky

Maxim Levitsky (7):
KVM: x86: document AVIC/APICv inhibit reasons
KVM: x86: inhibit APICv/AVIC when the guest and/or host changes either
apic id or the apic base from their default values.
KVM: x86: SVM: remove avic's broken code that updated APIC ID
KVM: x86: SVM: fix avic_kick_target_vcpus_fast
KVM: x86: disable preemption while updating apicv inhibition
KVM: x86: disable preemption around the call to
kvm_arch_vcpu_{un|}blocking
KVM: x86: SVM: there is no need for preempt safe wrappers for
avic_vcpu_load/put

 arch/x86/include/asm/kvm_host.h |  68 ++++++++++++-
 arch/x86/kvm/lapic.c            |  27 ++++-
 arch/x86/kvm/svm/avic.c         | 171 ++++++++++++++------------------
 arch/x86/kvm/svm/svm.c          |   4 +-
 arch/x86/kvm/svm/svm.h          |   4 +-
 arch/x86/kvm/vmx/vmx.c          |   4 +-
 arch/x86/kvm/x86.c              |   2 +
 virt/kvm/kvm_main.c             |   8 +-
 8 files changed, 180 insertions(+), 108 deletions(-)
Signature · 1 line
2.26.3