Skip to content

Commit 13b64ce

Browse files
sean-jcbonzini
authored andcommitted
KVM: x86: Move "emulate hypercall" function declarations to x86.h
Move the declarations for the hypercall emulation APIs to x86.h. While the helpers are exported, they are intended to be consumed only by KVM vendor modules, i.e. don't need to be exposed to the kernel at-large. No functional change intended. Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: Binbin Wu <[email protected]> Reviewed-by: Kai Huang <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent c4c083d commit 13b64ce

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,12 +2181,6 @@ static inline void kvm_clear_apicv_inhibit(struct kvm *kvm,
21812181
kvm_set_or_clear_apicv_inhibit(kvm, reason, false);
21822182
}
21832183

2184-
unsigned long __kvm_emulate_hypercall(struct kvm_vcpu *vcpu, unsigned long nr,
2185-
unsigned long a0, unsigned long a1,
2186-
unsigned long a2, unsigned long a3,
2187-
int op_64_bit, int cpl);
2188-
int kvm_emulate_hypercall(struct kvm_vcpu *vcpu);
2189-
21902184
int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, u64 error_code,
21912185
void *insn, int insn_len);
21922186
void kvm_mmu_print_sptes(struct kvm_vcpu *vcpu, gpa_t gpa, const char *msg);

arch/x86/kvm/x86.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,4 +617,10 @@ static inline bool user_exit_on_hypercall(struct kvm *kvm, unsigned long hc_nr)
617617
return kvm->arch.hypercall_exit_enabled & BIT(hc_nr);
618618
}
619619

620+
unsigned long __kvm_emulate_hypercall(struct kvm_vcpu *vcpu, unsigned long nr,
621+
unsigned long a0, unsigned long a1,
622+
unsigned long a2, unsigned long a3,
623+
int op_64_bit, int cpl);
624+
int kvm_emulate_hypercall(struct kvm_vcpu *vcpu);
625+
620626
#endif

0 commit comments

Comments
 (0)