mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
hv: PTM: Create virtual root port
Create virtual root port through add_vdev hypercall. add_vdev identifies the virtual device to add by its vendor id and device id, then call the corresponding function to create virtual device. -create_vrp(): Find the right virtual root port to create by its secondary bus number, then initialize the virtual root port. And finally initialize PTM related configurations. -destroy_vrp(): nothing to destroy Tracked-On: #5915 Signed-off-by: Rong Liu <rong.l.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Jason Chen <jason.cj.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -153,7 +153,7 @@ struct acrn_vm_pci_dev_config {
|
||||
/* TODO: All device specific attributions need move to other place */
|
||||
struct target_vuart t_vuart;
|
||||
uint16_t vuart_idx;
|
||||
uint16_t vroot_port_idx;
|
||||
uint16_t vrp_sec_bus; /* use virtual root port's secondary bus as unique identification */
|
||||
uint64_t vbar_base[PCI_BAR_COUNT]; /* vbar base address of PCI device, which is power-on default value */
|
||||
struct pci_pdev *pdev; /* the physical PCI device if it's a PT device */
|
||||
const struct pci_vdev_ops *vdev_ops; /* operations for PCI CFG read/write */
|
||||
|
Reference in New Issue
Block a user