KVM: nVMX: Move nested_get_vpid02() to vmx/nested.h
Move nested_get_vpid02() to vmx/nested.h so that a future patch can reference it from vmx.c to implement context-specific TLB flushing. No functional change intended. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Message-Id: <20200320212833.3507-20-sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:

committed by
Paolo Bonzini

parent
5058b692c6
commit
25d8b84376
@@ -62,6 +62,13 @@ static inline int vmx_has_valid_vmcs12(struct kvm_vcpu *vcpu)
|
||||
vmx->nested.hv_evmcs;
|
||||
}
|
||||
|
||||
static inline u16 nested_get_vpid02(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
struct vcpu_vmx *vmx = to_vmx(vcpu);
|
||||
|
||||
return vmx->nested.vpid02 ? vmx->nested.vpid02 : vmx->vpid;
|
||||
}
|
||||
|
||||
static inline unsigned long nested_ept_get_eptp(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
/* return the page table to be shadowed - in our case, EPT12 */
|
||||
|
Reference in New Issue
Block a user