Commit e01bca2f authored by Peng Hao's avatar Peng Hao Committed by Paolo Bonzini

kvm: x86: fix a prototype warning

Make the function static to avoid a

    warning: no previous prototype for ‘vmx_enable_tdp’
Signed-off-by: default avatarPeng Hao <peng.hao2@zte.com.cn>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6089ae0b
...@@ -7223,7 +7223,7 @@ static void wakeup_handler(void) ...@@ -7223,7 +7223,7 @@ static void wakeup_handler(void)
spin_unlock(&per_cpu(blocked_vcpu_on_cpu_lock, cpu)); spin_unlock(&per_cpu(blocked_vcpu_on_cpu_lock, cpu));
} }
void vmx_enable_tdp(void) static void vmx_enable_tdp(void)
{ {
kvm_mmu_set_mask_ptes(VMX_EPT_READABLE_MASK, kvm_mmu_set_mask_ptes(VMX_EPT_READABLE_MASK,
enable_ept_ad_bits ? VMX_EPT_ACCESS_BIT : 0ull, enable_ept_ad_bits ? VMX_EPT_ACCESS_BIT : 0ull,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment