]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: hv: Introduce hv_msi_entry
authorBoqun Feng <boqun.feng@gmail.com>
Mon, 10 Feb 2020 03:39:53 +0000 (11:39 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 9 Mar 2020 14:51:31 +0000 (14:51 +0000)
commitc7afecdd0737cf1672245f6207db66d88ad08997
tree3a204c8cf73a66d23bf196b2e1829c061dd13432
parentacff14377998d68224182d75b59293fcba25ddca
PCI: hv: Introduce hv_msi_entry

Add a new structure (hv_msi_entry), which is also defined in the TLFS,
to describe the msi entry for HVCALL_RETARGET_INTERRUPT. The structure
is needed because its layout may be different from architecture to
architecture.

Also add a new generic interface hv_set_msi_entry_from_desc() to allow
different archs to set the msi entry from msi_desc.

No functional change, only preparation for the future support of virtual
PCI on non-x86 architectures.

Signed-off-by: Boqun Feng (Microsoft) <boqun.feng@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
arch/x86/include/asm/hyperv-tlfs.h
arch/x86/include/asm/mshyperv.h
drivers/pci/controller/pci-hyperv.c