From: David Hildenbrand Date: Thu, 24 Aug 2017 18:51:32 +0000 (+0200) Subject: KVM: nVMX: no need to set vcpu->cpu when switching vmcs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ee096d0064ca7eddf13ac5f52fd008b6133f501;p=openwrt%2Fstaging%2Fblogic.git KVM: nVMX: no need to set vcpu->cpu when switching vmcs vcpu->cpu is not cleared when doing a vmx_vcpu_put/load, so this can be dropped. Reviewed-by: Radim Krčmář Signed-off-by: David Hildenbrand Signed-off-by: Radim Krčmář --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 40a54649d0d2..8cf506de30c0 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -9478,7 +9478,6 @@ static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs) vmx->loaded_vmcs = vmcs; vmx_vcpu_put(vcpu); vmx_vcpu_load(vcpu, cpu); - vcpu->cpu = cpu; put_cpu(); }