KVM: nVMX: Use correct VPID02 when emulating L1 INVVPID
authorLiran Alon <liran.alon@oracle.com>
Mon, 8 Oct 2018 20:42:18 +0000 (23:42 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 13 Oct 2018 10:00:54 +0000 (12:00 +0200)
commit3d5bdae8b16418781ec2c34a024aceee66267322
tree65716bfc3753ba75681bc1cc423e312b9cbc3633
parent1438921c6dc1bbdce800bfc7db04bd15cb260fc0
KVM: nVMX: Use correct VPID02 when emulating L1 INVVPID

In case L0 didn't allocate vmx->nested.vpid02 for L2,
vmcs02->vpid is set to vmx->vpid.
Consider this case when emulating L1 INVVPID in L0.

Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c