Skip to content

KVM: VMX: Clean up RTIT MAXPHYADDR usage

Sean Christopherson kvm lkml 3 versions – Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyApplied
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

v2 from the cover letter

- Rebased to kvm/queue, commit e1ba1a15af73 ("KVM: SVM: Enable INVPCID feature on AMD").

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: VMX: Use precomputed MAXPHYADDR for RTIT base MSR checkarch/x86/kvm/vmx/vmx.c+1 -10 replies
2/5KVM: x86: Unexport cpuid_query_maxphyaddr()arch/x86/kvm/cpuid.c+0 -10 replies
3/5KVM: VMX: Replace MSR_IA32_RTIT_OUTPUT_BASE_MASK with helper functionarch/x86/kvm/vmx/vmx.c+7 -40 replies
4/5KVM: x86: Move illegal GPA helper out of the MMU codearch/x86/kvm/cpuid.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +1 more+7 -70 replies
5/5KVM: VMX: Use "illegal GPA" helper for PT/RTIT output base checkarch/x86/kvm/vmx/vmx.c+1 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/5] KVM: VMX: Clean up RTIT MAXPHYADDR usage

Stop using cpuid_query_maxphyaddr() for a random RTIT MSR check, unexport said function to discourage future use, and do additional related cleanup.

Paolo, feel free to reorder/squash these as you see fit. Five patches feels more than a bit gratuitous, but every time I tried to squash things I ended up with changelogs that ran on and on...

v2:
- Rebased to kvm/queue, commit e1ba1a15af73 ("KVM: SVM: Enable INVPCID feature on AMD").

Sean Christopherson (5):
KVM: VMX: Use precomputed MAXPHYADDR for RTIT base MSR check
KVM: x86: Unexport cpuid_query_maxphyaddr()
KVM: VMX: Replace MSR_IA32_RTIT_OUTPUT_BASE_MASK with helper function
KVM: x86: Move illegal GPA helper out of the MMU code
KVM: VMX: Use "illegal GPA" helper for PT/RTIT output base check

 arch/x86/kvm/cpuid.c   |  1 -
 arch/x86/kvm/cpuid.h   |  5 +++++
 arch/x86/kvm/mmu.h     |  5 -----
 arch/x86/kvm/mmu/mmu.c |  2 +-
 arch/x86/kvm/vmx/vmx.c | 13 ++++++++-----
 5 files changed, 14 insertions(+), 12 deletions(-)
Signature · 1 line
2.28.0