[PATCH] KVM: x86: hyper-v: Restore function kvm_hv_assist_page_enabled to export

Hao Peng posted 1 patch 2 years, 9 months ago
arch/x86/kvm/hyperv.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] KVM: x86: hyper-v: Restore function kvm_hv_assist_page_enabled to export
Posted by Hao Peng 2 years, 9 months ago
From: Peng Hao <flyingpeng@tencent.com>

kvm_hv_assist_page_enabled() is called in export function
kvm_hv_get_assist_page().

Fixes: 0c2a04128f50 ("KVM: x86: remove unnecessary exports")
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
---
 arch/x86/kvm/hyperv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c
index cc3e8c7d0850..2c7f2a26421e 100644
--- a/arch/x86/kvm/hyperv.c
+++ b/arch/x86/kvm/hyperv.c
@@ -898,6 +898,7 @@ bool kvm_hv_assist_page_enabled(struct kvm_vcpu *vcpu)
                return false;
        return vcpu->arch.pv_eoi.msr_val & KVM_MSR_ENABLED;
 }
+EXPORT_SYMBOL_GPL(kvm_hv_assist_page_enabled);

 int kvm_hv_get_assist_page(struct kvm_vcpu *vcpu)
 {
--
2.27.0