To prepare native usage of posted interrupts, move the PID declarations out of VMX code such that they can be shared. Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Sean Christopherson <seanjc@google.com> Link: https://lore.kernel.org/r/20240423174114.526704-2-jacob.jun.pan@linux.intel.com
15 lines
551 B
C
15 lines
551 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __KVM_X86_VMX_POSTED_INTR_H
|
|
#define __KVM_X86_VMX_POSTED_INTR_H
|
|
#include <asm/posted_intr.h>
|
|
|
|
void vmx_vcpu_pi_load(struct kvm_vcpu *vcpu, int cpu);
|
|
void vmx_vcpu_pi_put(struct kvm_vcpu *vcpu);
|
|
void pi_wakeup_handler(void);
|
|
void __init pi_init_cpu(int cpu);
|
|
bool pi_has_pending_interrupt(struct kvm_vcpu *vcpu);
|
|
int vmx_pi_update_irte(struct kvm *kvm, unsigned int host_irq,
|
|
uint32_t guest_irq, bool set);
|
|
void vmx_pi_start_assignment(struct kvm *kvm);
|
|
|
|
#endif /* __KVM_X86_VMX_POSTED_INTR_H */
|