acrn-hypervisor/hypervisor/include
Yuan Liu 43683c7fc9 hv: implement ivshmem device-specific registers emulation
Ivshmem device defines four registers including Interrupt Mask, Interrupt
Status, IVPostion and Doorbell. The first two are useless and no emulation
is required. The latter two are used for interrupts and will be implemented
in the future.

This patch also introduces a new priv_data member for structure pci_vdev,
it can be used to find an ivshmem device through pci_vdev.

v2: refine code style

v3: 1) add @pre for ivshmem_mmio_handler function
    2) refine code style

v4: 1) set ivshmem registers default value when vBAR mapping
    2) change find_ivshmem_device to set_ivshmem_device

v5: 1) change set_ivshmem_device to find_and_set_ivshmem_device
    2) add a ASSERT to check if the vdev->priv_data is set successfully

v6: change find_and_set_ivshmem_device to create_ivshmem_device

Tracked-On: #4853

Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2020-08-19 15:06:15 +08:00
..
arch/x86 hv: Inter-VM communication config for hybrid_rt on whl-ipc-i5 2020-08-19 15:06:15 +08:00
common HV: add VM uuid and type for pre-launched RTVM 2020-07-23 21:58:32 +08:00
debug HV: correct ept page array usage 2020-03-12 14:56:34 +08:00
dm hv: implement ivshmem device-specific registers emulation 2020-08-19 15:06:15 +08:00
hw HV: vdev passthough hidding SRIOV 2020-07-16 17:27:18 +08:00
lib HV: enable multiboot module string as kernel bootargs 2020-06-08 13:30:04 +08:00
public hv: mmio_dev: add hypercall to support mmio device pass through 2020-07-23 20:13:20 +08:00