Skip to content

Commit 9478dec

Browse files
committed
KVM: vmx: remove unused variable
Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 0f55b67 commit 9478dec

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/x86/kvm/vmx/vmx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6836,7 +6836,6 @@ static void vmx_free_vcpu(struct kvm_vcpu *vcpu)
68366836
static int vmx_create_vcpu(struct kvm_vcpu *vcpu)
68376837
{
68386838
struct vcpu_vmx *vmx;
6839-
unsigned long *msr_bitmap;
68406839
int i, cpu, err;
68416840

68426841
BUILD_BUG_ON(offsetof(struct vcpu_vmx, vcpu) != 0);
@@ -6896,7 +6895,6 @@ static int vmx_create_vcpu(struct kvm_vcpu *vcpu)
68966895
bitmap_fill(vmx->shadow_msr_intercept.read, MAX_POSSIBLE_PASSTHROUGH_MSRS);
68976896
bitmap_fill(vmx->shadow_msr_intercept.write, MAX_POSSIBLE_PASSTHROUGH_MSRS);
68986897

6899-
msr_bitmap = vmx->vmcs01.msr_bitmap;
69006898
vmx_disable_intercept_for_msr(vcpu, MSR_IA32_TSC, MSR_TYPE_R);
69016899
vmx_disable_intercept_for_msr(vcpu, MSR_FS_BASE, MSR_TYPE_RW);
69026900
vmx_disable_intercept_for_msr(vcpu, MSR_GS_BASE, MSR_TYPE_RW);

0 commit comments

Comments
 (0)