Skip to content

RFC RFC: nested AVIC

Maxim Levitsky dri-devel intel-gfx kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest posting 2/219 patches 37 repliesIn review
  2. v3 posting 1/211 patches 0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19KVM: x86: document AVIC/APICv inhibit reasonsarch/x86/include/asm/kvm_host.h+15 -02 replies
2/19KVM: x86: inhibit APICv/AVIC when the guest and/or host changes apic id/base from the defaults.arch/x86/include/asm/kvm_host.h arch/x86/kvm/lapic.c arch/x86/kvm/lapic.h+33 -313 replies
3/19KVM: x86: SVM: remove avic's broken code that updated APIC IDarch/x86/kvm/svm/avic.c+0 -353 replies
4/19KVM: x86: mmu: allow to enable write tracking externallyarch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvm_page_track.h arch/x86/kvm/mmu.h +2 more+25 -1313 replies
5/19x86: KVMGT: use kvm_page_track_write_tracking_enablearch/x86/kvm/Kconfig arch/x86/kvm/mmu/mmu.c drivers/gpu/drm/i915/Kconfig +1 more+6 -51 reply
6/19KVM: x86: mmu: add gfn_in_memslot helperinclude/linux/kvm_host.h+9 -13 replies
7/19KVM: x86: mmu: tweak fast path for emulation of access to nested NPT pagesarch/x86/kvm/mmu/mmu.c+2 -20 replies
8/19KVM: x86: SVM: move avic state to separate structarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.h+37 -280 replies
9/19KVM: x86: nSVM: add nested AVIC tracepointsarch/x86/kvm/trace.h arch/x86/kvm/x86.c+169 -10 replies
10/19KVM: x86: nSVM: implement AVIC's physid/logid table access helpersarch/x86/kvm/svm/svm.h+45 -00 replies
11/19KVM: x86: nSVM: implement shadowing of AVIC's physical id tablearch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.h+524 -80 replies
12/19KVM: x86: nSVM: make nested AVIC physid write tracking be aware of the host schedulingarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+122 -80 replies
13/19KVM: x86: nSVM: wire nested AVIC to nested guest entry/exitarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.c +1 more+199 -50 replies
14/19KVM: x86: rename .set_apic_access_page_addr to reload_apic_access_pagearch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx/vmx.c +1 more+9 -102 replies
15/19KVM: x86: nSVM: add code to reload AVIC physid table when it is invalidatedarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+15 -00 replies
16/19KVM: x86: nSVM: implement support for nested AVIC vmexitsarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/nested.c+216 -20 replies
17/19KVM: x86: nSVM: implement nested AVIC doorbell emulationarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+52 -00 replies
18/19KVM: x86: SVM/nSVM: add optional non strict AVIC doorbell modearch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.c+30 -110 replies
19/19KVM: x86: nSVM: expose the nested AVIC to the guestarch/x86/kvm/svm/svm.c+6 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 00/19] RFC: nested AVIC

This is V3 of my nested AVIC patches.

I fixed few more bugs, and I also split the cod insto smaller patches.

Review is welcome!

Best regards,
Maxim Levitsky

Maxim Levitsky (19):
KVM: x86: document AVIC/APICv inhibit reasons
KVM: x86: inhibit APICv/AVIC when the guest and/or host changes apic
id/base from the defaults.
KVM: x86: SVM: remove avic's broken code that updated APIC ID
KVM: x86: mmu: allow to enable write tracking externally
x86: KVMGT: use kvm_page_track_write_tracking_enable
KVM: x86: mmu: add gfn_in_memslot helper
KVM: x86: mmu: tweak fast path for emulation of access to nested NPT
pages
KVM: x86: SVM: move avic state to separate struct
KVM: x86: nSVM: add nested AVIC tracepoints
KVM: x86: nSVM: implement AVIC's physid/logid table access helpers
KVM: x86: nSVM: implement shadowing of AVIC's physical id table
KVM: x86: nSVM: make nested AVIC physid write tracking be aware of the
host scheduling
KVM: x86: nSVM: wire nested AVIC to nested guest entry/exit
KVM: x86: rename .set_apic_access_page_addr to reload_apic_access_page
KVM: x86: nSVM: add code to reload AVIC physid table when it is
invalidated
KVM: x86: nSVM: implement support for nested AVIC vmexits
KVM: x86: nSVM: implement nested AVIC doorbell emulation
KVM: x86: SVM/nSVM: add optional non strict AVIC doorbell mode
KVM: x86: nSVM: expose the nested AVIC to the guest

 arch/x86/include/asm/kvm-x86-ops.h    |   2 +-
 arch/x86/include/asm/kvm_host.h       |  23 +-
 arch/x86/include/asm/kvm_page_track.h |   1 +
 arch/x86/kvm/Kconfig                  |   3 -
 arch/x86/kvm/lapic.c                  |  25 +-
 arch/x86/kvm/lapic.h                  |   8 +
 arch/x86/kvm/mmu.h                    |   8 +-
 arch/x86/kvm/mmu/mmu.c                |  21 +-
 arch/x86/kvm/mmu/page_track.c         |  10 +-
 arch/x86/kvm/svm/avic.c               | 985 +++++++++++++++++++++++---
 arch/x86/kvm/svm/nested.c             | 141 +++-
 arch/x86/kvm/svm/svm.c                |  39 +-
 arch/x86/kvm/svm/svm.h                | 166 ++++-
 arch/x86/kvm/trace.h                  | 157 +++-
 arch/x86/kvm/vmx/vmx.c                |   8 +-
 arch/x86/kvm/x86.c                    |  19 +-
 drivers/gpu/drm/i915/Kconfig          |   1 -
 drivers/gpu/drm/i915/gvt/kvmgt.c      |   5 +
 include/linux/kvm_host.h              |  10 +-
 19 files changed, 1507 insertions(+), 125 deletions(-)
Signature · 1 line
2.26.3