mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 19:35:15 +07:00
89f883372f
Pull KVM updates from Marcelo Tosatti: "KVM updates for the 3.9 merge window, including x86 real mode emulation fixes, stronger memory slot interface restrictions, mmu_lock spinlock hold time reduction, improved handling of large page faults on shadow, initial APICv HW acceleration support, s390 channel IO based virtio, amongst others" * tag 'kvm-3.9-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (143 commits) Revert "KVM: MMU: lazily drop large spte" x86: pvclock kvm: align allocation size to page size KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr x86 emulator: fix parity calculation for AAD instruction KVM: PPC: BookE: Handle alignment interrupts booke: Added DBCR4 SPR number KVM: PPC: booke: Allow multiple exception types KVM: PPC: booke: use vcpu reference from thread_struct KVM: Remove user_alloc from struct kvm_memory_slot KVM: VMX: disable apicv by default KVM: s390: Fix handling of iscs. KVM: MMU: cleanup __direct_map KVM: MMU: remove pt_access in mmu_set_spte KVM: MMU: cleanup mapping-level KVM: MMU: lazily drop large spte KVM: VMX: cleanup vmx_set_cr0(). KVM: VMX: add missing exit names to VMX_EXIT_REASONS array KVM: VMX: disable SMEP feature when guest is in non-paging mode KVM: Remove duplicate text in api.txt Revert "KVM: MMU: split kvm_mmu_free_page" ...
86 lines
1.7 KiB
C
86 lines
1.7 KiB
C
#ifndef _ASM_IRQ_H
|
|
#define _ASM_IRQ_H
|
|
|
|
#include <linux/hardirq.h>
|
|
#include <linux/percpu.h>
|
|
#include <linux/cache.h>
|
|
#include <linux/types.h>
|
|
|
|
enum interruption_main_class {
|
|
EXTERNAL_INTERRUPT,
|
|
IO_INTERRUPT,
|
|
NR_IRQS
|
|
};
|
|
|
|
enum interruption_class {
|
|
IRQEXT_CLK,
|
|
IRQEXT_EXC,
|
|
IRQEXT_EMS,
|
|
IRQEXT_TMR,
|
|
IRQEXT_TLA,
|
|
IRQEXT_PFL,
|
|
IRQEXT_DSD,
|
|
IRQEXT_VRT,
|
|
IRQEXT_SCP,
|
|
IRQEXT_IUC,
|
|
IRQEXT_CMS,
|
|
IRQEXT_CMC,
|
|
IRQEXT_CMR,
|
|
IRQIO_CIO,
|
|
IRQIO_QAI,
|
|
IRQIO_DAS,
|
|
IRQIO_C15,
|
|
IRQIO_C70,
|
|
IRQIO_TAP,
|
|
IRQIO_VMR,
|
|
IRQIO_LCS,
|
|
IRQIO_CLW,
|
|
IRQIO_CTC,
|
|
IRQIO_APB,
|
|
IRQIO_ADM,
|
|
IRQIO_CSC,
|
|
IRQIO_PCI,
|
|
IRQIO_MSI,
|
|
IRQIO_VIR,
|
|
NMI_NMI,
|
|
CPU_RST,
|
|
NR_ARCH_IRQS
|
|
};
|
|
|
|
struct irq_stat {
|
|
unsigned int irqs[NR_ARCH_IRQS];
|
|
};
|
|
|
|
DECLARE_PER_CPU_SHARED_ALIGNED(struct irq_stat, irq_stat);
|
|
|
|
static __always_inline void inc_irq_stat(enum interruption_class irq)
|
|
{
|
|
__get_cpu_var(irq_stat).irqs[irq]++;
|
|
}
|
|
|
|
struct ext_code {
|
|
unsigned short subcode;
|
|
unsigned short code;
|
|
};
|
|
|
|
typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
|
|
|
|
int register_external_interrupt(u16 code, ext_int_handler_t handler);
|
|
int unregister_external_interrupt(u16 code, ext_int_handler_t handler);
|
|
void service_subclass_irq_register(void);
|
|
void service_subclass_irq_unregister(void);
|
|
void measurement_alert_subclass_register(void);
|
|
void measurement_alert_subclass_unregister(void);
|
|
|
|
#ifdef CONFIG_LOCKDEP
|
|
# define disable_irq_nosync_lockdep(irq) disable_irq_nosync(irq)
|
|
# define disable_irq_nosync_lockdep_irqsave(irq, flags) \
|
|
disable_irq_nosync(irq)
|
|
# define disable_irq_lockdep(irq) disable_irq(irq)
|
|
# define enable_irq_lockdep(irq) enable_irq(irq)
|
|
# define enable_irq_lockdep_irqrestore(irq, flags) \
|
|
enable_irq(irq)
|
|
#endif
|
|
|
|
#endif /* _ASM_IRQ_H */
|