KVM: x86: move setting of ept_identity_map_addr to vmx.c
Add kvm_x86_ops->set_identity_map_addr and set ept_identity_map_addr in VMX specific code so that ept_identity_map_addr can be moved out of 'struct kvm_arch' in a future patch. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:

committed by
Paolo Bonzini

parent
434a1e9446
commit
2ac52ab861
@@ -5269,6 +5269,11 @@ static int svm_set_tss_addr(struct kvm *kvm, unsigned int addr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int svm_set_identity_map_addr(struct kvm *kvm, u64 ident_addr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void svm_flush_tlb(struct kvm_vcpu *vcpu, bool invalidate_gpa)
|
||||
{
|
||||
struct vcpu_svm *svm = to_svm(vcpu);
|
||||
@@ -6959,6 +6964,7 @@ static struct kvm_x86_ops svm_x86_ops __ro_after_init = {
|
||||
.apicv_post_state_restore = avic_post_state_restore,
|
||||
|
||||
.set_tss_addr = svm_set_tss_addr,
|
||||
.set_identity_map_addr = svm_set_identity_map_addr,
|
||||
.get_tdp_level = get_npt_level,
|
||||
.get_mt_mask = svm_get_mt_mask,
|
||||
|
||||
|
Reference in New Issue
Block a user