HV: Adding passthru vdev device support for partition hypervisor

V4:
 - Renamed members for struct pcibar and changed code accordingly

V3:
 - Do not use ASSERT
 - Use EPT_XX defines when claling ept_mr_add
 - Report 64-bit MMIO physical bar to UOS as 32-bit virtual bar
   (assume bar size is always less than 4GB), which removed quite some of
   64-bit bar handling code

Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
dongshen
2018-08-07 18:52:46 -07:00
committed by lijinxia
parent 5f3ea06feb
commit 181de19cba
4 changed files with 368 additions and 2 deletions

View File

@@ -92,6 +92,8 @@ struct vpci {
struct pci_addr_info addr_info;
};
extern struct pci_vdev_ops pci_ops_vdev_pt;
void vpci_init(struct vm *vm);
void vpci_cleanup(struct vm *vm);