HV: Adding hostbridge vdev device support for partition hypervisor

V4:
 - Moved error checking to vdev_hostbridge_cfgwrite/vdev_hostbridge_cfgread

V3:
 - Unified ops calling and implemented deinit/cfgwrite/cfgread ops,
      previously only init op is implemented

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:58:31 -07:00
committed by lijinxia
parent 181de19cba
commit 183ca5d175
3 changed files with 132 additions and 2 deletions

View File

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