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)
commit1cf106d93245f436c10e73cd3d4b885067d4bbcc
tree3a204c8cf73a66d23bf196b2e1829c061dd13432
parent61bfd920abbf2c8c9c3b10bb335475e707247573
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