diff options
author | Wei Liu <wei.liu@kernel.org> | 2021-02-03 16:04:34 +0100 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2021-02-11 09:47:07 +0100 |
commit | e39397d1fd6851bef4dfb63a631b8e15d1f43329 (patch) | |
tree | 3307af33016b6666afee279c70d64688e16e8f65 /arch/x86/include/asm/mshyperv.h | |
parent | asm-generic/hyperv: import data structures for mapping device interrupts (diff) | |
download | linux-e39397d1fd6851bef4dfb63a631b8e15d1f43329.tar.xz linux-e39397d1fd6851bef4dfb63a631b8e15d1f43329.zip |
x86/hyperv: implement an MSI domain for root partition
When Linux runs as the root partition on Microsoft Hypervisor, its
interrupts are remapped. Linux will need to explicitly map and unmap
interrupts for hardware.
Implement an MSI domain to issue the correct hypercalls. And initialize
this irq domain as the default MSI irq domain.
Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com>
Co-Developed-by: Sunil Muthuswamy <sunilmut@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210203150435.27941-16-wei.liu@kernel.org
Diffstat (limited to 'arch/x86/include/asm/mshyperv.h')
-rw-r--r-- | arch/x86/include/asm/mshyperv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 7bd4022da061..4533773115ea 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -263,6 +263,8 @@ static inline void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry, msi_entry->data.as_uint32 = msi_desc->msg.data; } +struct irq_domain *hv_create_pci_msi_domain(void); + #else /* CONFIG_HYPERV */ static inline void hyperv_init(void) {} static inline void hyperv_setup_mmu_ops(void) {} |