HV: Calling into VPCI init/unit functions for partition hypervisor

V4:
 - Clear address cache info after a full cf8/cfc access
 - Add NULL pointer checking when calling init/deinit ops

V3:
 - Do not use ASSERT
 - Loop through the vdev list defined in vm_desctiption table to call the vdev init/unit functions
 - Make the cached vbdf info struct per vm instead of per pcpu

V2:
 - Fixed MISRA violations

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:21:23 -07:00
committed by lijinxia
parent 65bd038650
commit 86180bd4ce
4 changed files with 267 additions and 0 deletions

View File

@@ -92,4 +92,7 @@ struct vpci {
struct pci_addr_info addr_info;
};
void vpci_init(struct vm *vm);
void vpci_cleanup(struct vm *vm);
#endif /* VPCI_H_ */