x86/hyperv: implement an MSI domain for root partition
authorWei Liu <wei.liu@kernel.org>
Wed, 3 Feb 2021 15:04:34 +0000 (15:04 +0000)
committerWei Liu <wei.liu@kernel.org>
Thu, 11 Feb 2021 08:47:07 +0000 (08:47 +0000)
commite39397d1fd6851bef4dfb63a631b8e15d1f43329
tree3307af33016b6666afee279c70d64688e16e8f65
parent466a9c3f88d04152ca83e840ca940c5f700402ac
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
arch/x86/hyperv/Makefile
arch/x86/hyperv/hv_init.c
arch/x86/hyperv/irqdomain.c [new file with mode: 0644]
arch/x86/include/asm/mshyperv.h