Skip to contentSkip to conversation

KVM: VMX: Remove vmx_msr_index from vmx.h

PATCH Applied Yu Zhang 2 participants 2 messages Jul 7, 2021 – Jul 8, 2021

Subsystems (3)
lore
Share & tools
lore

Yu Zhang

author
#0 lore raw

PATCH 1/1 KVM: VMX: Remove vmx_msr_index from vmx.h

vmx_msr_index was used to record the list of MSRs which can be lazily restored when kvm returns to userspace. It is now reimplemented as kvm_uret_msrs_list, a common x86 list which is only used inside x86.c. So just remove the obsolete declaration in vmx.h.

---
 arch/x86/kvm/vmx/vmx.h | 2 --
 1 file changed, 2 deletions(-)
arch/x86/kvm/vmx/vmx.h +0 -2
index 3979a947933a..db88ed4f2121 100644
@@ -14,8 +14,6 @@
 #include "vmx_ops.h"
 #include "cpuid.h"
 
-extern const u32 vmx_msr_index[];
-
 #define MSR_TYPE_R	1
 #define MSR_TYPE_W	2
 #define MSR_TYPE_RW	3
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 16 lines · Yu Zhang

vmx_msr_index was used to record the list of MSRs which can be lazily restored when kvm returns to userspace. It is now reimplemented as kvm_uret_msrs_list, a common x86 list which is only used inside x86.c. So just remove the obsolete declaration in vmx.h.

---
  arch/x86/kvm/vmx/vmx.h | 2 --
  1 file changed, 2 deletions(-)
arch/x86/kvm/vmx/vmx.h +0 -0
index 3979a947933a..db88ed4f2121 100644

arch/x86/kvm/vmx/vmx.h line 19

Quoted 8 lines
arch/x86/kvm/vmx/vmx.h +0 -2
@@ -14,8 +14,6 @@
  #include "vmx_ops.h"
  #include "cpuid.h"
 
-extern const u32 vmx_msr_index[];
-
  #define MSR_TYPE_R	1
  #define MSR_TYPE_W	2
  #define MSR_TYPE_RW	3

Queued, thanks.

Paolo