KVM: VMX: Remove vcpu_vmx's defunct copy of host_pkru
PATCH 1/1 KVM: VMX: Remove vcpu_vmx's defunct copy of host_pkru
Remove vcpu_vmx.host_pkru, which got left behind when PKRU support was moved to common x86 code.
No functional change intended.
--- arch/x86/kvm/vmx/vmx.h | 2 -- 1 file changed, 2 deletions(-)
arch/x86/kvm/vmx/vmx.h +0 -2
@@ -288,8 +288,6 @@ struct vcpu_vmx {u64 current_tsc_ratio; -u32 host_pkru; -unsigned long host_debugctlmsr;/*
Signature · 1 line
2.26.0
Quoted 16 lines · Sean Christopherson
Remove vcpu_vmx.host_pkru, which got left behind when PKRU support was moved to common x86 code.
No functional change intended.
Fixes 37486135d3a7b ("KVM: x86: Fix pkru save/restore when guest CR4.PKE=0, move it to x86.c")Signed-off-by Sean Christopherson <[email protected]>--- arch/x86/kvm/vmx/vmx.h | 2 -- 1 file changed, 2 deletions(-)arch/x86/kvm/vmx/vmx.h +0
-0
arch/x86/kvm/vmx/vmx.h struct vcpu_vmx { · line 293
Quoted 8 lines
arch/x86/kvm/vmx/vmx.h +0
-2@@ -288,8 +288,6 @@ struct vcpu_vmx {u64 current_tsc_ratio; -u32 host_pkru; -unsigned long host_debugctlmsr;/*
(Is there a better [automated] way to figure out whether the particular field is being used or not than just dropping it and trying to compile the whole thing? Leaving #define-s, configs,... aside ...)
Signature · 1 line
Vitaly
Jim Mattson
Reviewed-byQuoted 26 lines · Vitaly Kuznetsov
Quoted 23 lines · Sean Christopherson
Remove vcpu_vmx.host_pkru, which got left behind when PKRU support was moved to common x86 code.
No functional change intended.
Fixes 37486135d3a7b ("KVM: x86: Fix pkru save/restore when guest CR4.PKE=0, move it to x86.c")Signed-off-by Sean Christopherson <[email protected]>--- arch/x86/kvm/vmx/vmx.h | 2 -- 1 file changed, 2 deletions(-)arch/x86/kvm/vmx/vmx.h +0
-2@@ -288,8 +288,6 @@ struct vcpu_vmx {u64 current_tsc_ratio; -u32 host_pkru; -unsigned long host_debugctlmsr;
Quoted 7 lines
arch/x86/kvm/vmx/vmx.h struct vcpu_vmx { · line 293
Quoted 1 line
arch/x86/kvm/vmx/vmx.h +0
-0/* (Is there a better [automated] way to figure out whether the particular field is being used or not than just dropping it and trying to compile the whole thing? Leaving #define-s, configs,... aside ...)
Reviewed-by Vitaly Kuznetsov <[email protected]>
Quoted 17 lines · Sean Christopherson
Remove vcpu_vmx.host_pkru, which got left behind when PKRU support was moved to common x86 code.
No functional change intended.
Fixes 37486135d3a7b ("KVM: x86: Fix pkru save/restore when guest CR4.PKE=0, move it to x86.c")Signed-off-by Sean Christopherson <[email protected]>--- arch/x86/kvm/vmx/vmx.h | 2 -- 1 file changed, 2 deletions(-)arch/x86/kvm/vmx/vmx.h +0
-0
arch/x86/kvm/vmx/vmx.h struct vcpu_vmx { · line 293
Quoted 8 lines
arch/x86/kvm/vmx/vmx.h +0
-2@@ -288,8 +288,6 @@ struct vcpu_vmx {u64 current_tsc_ratio; -u32 host_pkru; -unsigned long host_debugctlmsr;/*
Queued, thanks.
Paolo