Commit 0ee096d0 authored by David Hildenbrand's avatar David Hildenbrand Committed by Paolo Bonzini

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: default avatarRadim Krčmář <rkrcmar@redhat.com>
Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 9522ea9e
...@@ -9478,7 +9478,6 @@ static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs) ...@@ -9478,7 +9478,6 @@ static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs)
vmx->loaded_vmcs = vmcs; vmx->loaded_vmcs = vmcs;
vmx_vcpu_put(vcpu); vmx_vcpu_put(vcpu);
vmx_vcpu_load(vcpu, cpu); vmx_vcpu_load(vcpu, cpu);
vcpu->cpu = cpu;
put_cpu(); put_cpu();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment