Skip to content

KVM x86/VMX cleanups

David Hildenbrand kvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 6 repliesIn review
  2. v113 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- dropped "KVM: x86: mmu: use for_each_shadow_entry_lockless()"
- added "KVM: VMX: rename RDSEED and RDRAND vmx ctrls to reflect exiting"
- added "KVM: nVMX: no need to set ept/vpid caps to 0"
- added "KVM: VMX: drop enable_ept check from ept_sync_context()"

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15KVM: x86: mmu: returning void in a void function is strangearch/x86/kvm/mmu.c+1 -10 replies
2/15KVM: x86: mmu: free_page can handle NULLarch/x86/kvm/mmu.c+1 -20 replies
3/15KVM: x86: drop BUG_ON(vcpu->kvm)arch/x86/kvm/x86.c+2 -60 replies
4/15KVM: VMX: vmx_vcpu_setup() cannot failarch/x86/kvm/vmx.c+2 -60 replies
5/15KVM: x86: no need to inititalize vcpu members to 0arch/x86/kvm/x86.c+0 -50 replies
6/15KVM: VMX: drop enable_ept check from ept_sync_context()arch/x86/kvm/vmx.c+4 -60 replies
7/15KVM: VMX: call ept_sync_global() with enable_ept onlyarch/x86/kvm/vmx.c+2 -10 replies
8/15KVM: VMX: require INVEPT GLOBAL for EPTarch/x86/kvm/vmx.c+3 -30 replies
9/15KVM: VMX: drop unnecessary function declarationsarch/x86/kvm/vmx.c+0 -20 replies
10/15KVM: nVMX: no need to set vcpu->cpu when switching vmcsarch/x86/kvm/vmx.c+0 -10 replies
11/15KVM: nVMX: no need to set ept/vpid caps to 0arch/x86/kvm/vmx.c+2 -40 replies
12/15KVM: VMX: cleanup init_rmode_identity_map()arch/x86/kvm/vmx.c+4 -220 replies
13/15KVM: x86: document special identity map address valueDocumentation/virtual/kvm/api.txt+3 -00 replies
14/15KVM: x86: allow setting identity map addr with no vcpus onlyDocumentation/virtual/kvm/api.txt arch/x86/kvm/x86.c+8 -10 replies
15/15KVM: VMX: rename RDSEED and RDRAND vmx ctrls to reflect exitingarch/x86/include/asm/vmx.h arch/x86/kvm/vmx.c+19 -193 replies

Reviews trailers per patch

13 of 15 patches have a Reviewed-by or Acked-by.

PatchRadim KrčmářJim Mattson
1/15R-b
2/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15
9/15R-b
10/15R-b
11/15
12/15R-b
13/15R-b
14/15R-b
15/15R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/15] KVM x86/VMX cleanups

Some cleanups discovered while digging through the code.

v1 -> v2:
- dropped "KVM: x86: mmu: use for_each_shadow_entry_lockless()"
- added "KVM: VMX: rename RDSEED and RDRAND vmx ctrls to reflect exiting"
- added "KVM: nVMX: no need to set ept/vpid caps to 0"
- added "KVM: VMX: drop enable_ept check from ept_sync_context()"

David Hildenbrand (15):
KVM: x86: mmu: returning void in a void function is strange
KVM: x86: mmu: free_page can handle NULL
KVM: x86: drop BUG_ON(vcpu->kvm)
KVM: VMX: vmx_vcpu_setup() cannot fail
KVM: x86: no need to inititalize vcpu members to 0
KVM: VMX: drop enable_ept check from ept_sync_context()
KVM: VMX: call ept_sync_global() with enable_ept only
KVM: VMX: require INVEPT GLOBAL for EPT
KVM: VMX: drop unnecessary function declarations
KVM: nVMX: no need to set vcpu->cpu when switching vmcs
KVM: nVMX: no need to set ept/vpid caps to 0
KVM: VMX: cleanup init_rmode_identity_map()
KVM: x86: document special identity map address value
KVM: x86: allow setting identity map addr with no vcpus only
KVM: VMX: rename RDSEED and RDRAND vmx ctrls to reflect exiting

 Documentation/virtual/kvm/api.txt |  4 ++
 arch/x86/include/asm/vmx.h        |  4 +-
 arch/x86/kvm/mmu.c                |  5 +-
 arch/x86/kvm/vmx.c                | 96 ++++++++++++++-------------------------
 arch/x86/kvm/x86.c                | 21 ++++-----
 5 files changed, 51 insertions(+), 79 deletions(-)
Signature · 1 line
2.13.5