Skip to content

Commit 812f805

Browse files
Sean Christophersonbonzini
authored andcommitted
KVM: VMX: Make vmx_load_mmu_pgd() static
Make vmx_load_mmu_pgd() static as it is no longer invoked directly by nested VMX (or any code for that matter). No functional change intended. Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 59505b5 commit 812f805

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3092,7 +3092,7 @@ u64 construct_eptp(struct kvm_vcpu *vcpu, unsigned long root_hpa)
30923092
return eptp;
30933093
}
30943094

3095-
void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long pgd)
3095+
static void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long pgd)
30963096
{
30973097
struct kvm *kvm = vcpu->kvm;
30983098
bool update_guest_cr3 = true;

arch/x86/kvm/vmx/vmx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer);
338338
void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0);
339339
int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
340340
void set_cr4_guest_host_mask(struct vcpu_vmx *vmx);
341-
void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long cr3);
342341
void ept_save_pdptrs(struct kvm_vcpu *vcpu);
343342
void vmx_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg);
344343
void vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg);

0 commit comments

Comments
 (0)