kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] nSVM: Check for optional commands and reserved encodins of TLB_CONTROL in nested guests
@ 2021-09-20 23:51 Krish Sadhukhan
  2021-09-20 23:51 ` [PATCH 1/5] nSVM: Expose FLUSHBYASID CPUID feature to " Krish Sadhukhan
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Krish Sadhukhan @ 2021-09-20 23:51 UTC (permalink / raw)
  To: kvm; +Cc: pbonzini, jmattson, seanjc, vkuznets, wanpengli, joro

According to section "TLB Flush" in APM vol 2,

    "Support for TLB_CONTROL commands other than the first two, is
     optional and is indicated by CPUID Fn8000_000A_EDX[FlushByAsid].

     All encodings of TLB_CONTROL not defined in the APM are reserved."

Patch# 1: Exposes FLUSHBYASID CPUID feature to nestsed guests.
Patch# 2: Adds KVM checks for ptional commands and reserved encodings of
	  TLB_CONTROL.
Patch# 3: Adds #defines for valid encodings of TLB_CONTROL.
Patch# 4: Adds #define for FLUSHBYASID CPUID bit.
Patch# 5: Adds kvm-unit-tests for optional commands and reserved encodings
	  of TLB_CONTROL.

[PATCH 1/5] nSVM: Expose FLUSHBYASID CPUID feature to nested guests
[PATCH 2/5] nSVM: Check for optional commands and reserved encodings of
[TEST PATCH 3/5] SVM: Add #defines for valid encodings of TLB_CONTROL VMCB
[TEST PATCH 4/5] X86: Add #define for FLUSHBYASID CPUID bit
[TEST PATCH 5/5] nSVM: Test optional commands and reserved encodings of TLB_CONTROL in nested VMCB

 arch/x86/kvm/svm/nested.c | 19 +++++++++++++++++++
 arch/x86/kvm/svm/svm.c    |  3 +++
 2 files changed, 22 insertions(+)

Krish Sadhukhan (2):
      nSVM: Expose FLUSHBYASID CPUID feature to nested guests
      nSVM: Check for optional commands and reserved encodings of TLB_CONTROL in nested VMCB

 lib/x86/processor.h |  1 +
 x86/svm.h           |  5 +++++
 x86/svm_tests.c     | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)

Krish Sadhukhan (3):
      SVM: Add #defines for valid encodings of TLB_CONTROL VMCB field
      X86: Add #define for FLUSHBYASID CPUID bit
      nSVM: Test optional commands and reserved encodings of TLB_CONTROL in nested VMCB


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-06 20:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 23:51 [PATCH 0/5] nSVM: Check for optional commands and reserved encodins of TLB_CONTROL in nested guests Krish Sadhukhan
2021-09-20 23:51 ` [PATCH 1/5] nSVM: Expose FLUSHBYASID CPUID feature to " Krish Sadhukhan
2021-09-24 10:58   ` Paolo Bonzini
2021-09-20 23:51 ` [PATCH 2/5] nSVM: Check for optional commands and reserved encodings of TLB_CONTROL in nested VMCB Krish Sadhukhan
2021-09-28 16:55   ` Paolo Bonzini
2023-09-06 15:59     ` Stefan Sterz
2023-09-06 20:40       ` Sean Christopherson
2021-09-20 23:51 ` [TEST PATCH 3/5] SVM: Add #defines for valid encodings of TLB_CONTROL VMCB field Krish Sadhukhan
2021-09-20 23:51 ` [TEST PATCH 4/5] X86: Add #define for FLUSHBYASID CPUID bit Krish Sadhukhan
2021-09-20 23:51 ` [TEST PATCH 5/5] nSVM: Test optional commands and reserved encodings of TLB_CONTROL in nested VMCB Krish Sadhukhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).