]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Write VPID to vmcs when creating vcpu
authorXiaoyao Li <xiaoyao.li@intel.com>
Sun, 20 Oct 2019 09:10:58 +0000 (17:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:40:57 +0000 (13:40 +0200)
commit3d431030c7ddbe569c001aec0262081455e3264d
tree8e2f06c131301599131fd9bcc67fb8f139418497
parent0eb9f56f7c69c71797c823532ed044e160f70082
KVM: VMX: Write VPID to vmcs when creating vcpu

Move the code that writes vmx->vpid to vmcs from vmx_vcpu_reset() to
vmx_vcpu_setup(), because vmx->vpid is allocated when creating vcpu and
never changed. So we don't need to update the vmcs.vpid when resetting
vcpu.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c