mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
hv: deny the launch of VM if pass-thru PIO bar isn't identical mapping
In current design, when pass-thru dev, for the PIO bar, need to ensure the guest PIO start address equals to host PIO start address. Then set the VMCS io bitmap to pass-thru the corresponding port io to guest for performance. ACRN-DM and acrn-config should ensure the identical mapping of PIO bar. If ACRN-DM or acrn-config failed to achieve this, we should deny the launch of VM Tracked-On: #6508 Signed-off-by: Liu,Junming <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Fei Li <fei1.li@intel.com>
This commit is contained in:
@@ -184,7 +184,7 @@ struct acrn_vm;
|
||||
|
||||
extern const struct pci_vdev_ops vhostbridge_ops;
|
||||
extern const struct pci_vdev_ops vpci_bridge_ops;
|
||||
void init_vpci(struct acrn_vm *vm);
|
||||
int32_t init_vpci(struct acrn_vm *vm);
|
||||
void deinit_vpci(struct acrn_vm *vm);
|
||||
struct pci_vdev *pci_find_vdev(struct acrn_vpci *vpci, union pci_bdf vbdf);
|
||||
struct acrn_pcidev;
|
||||
|
Reference in New Issue
Block a user