mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
dm: PTM: Add virtual root port to vm
If PTM can be enabled on passthru device, a virtual root port is added to vm to act as ptm root. And the passthru device is connected to the virtual root port instead of the virtual host bridge. Tracked-On: #5915 Signed-off-by: Rong Liu <rong.l.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -663,6 +663,22 @@ struct acrn_intr_monitor {
|
||||
#define INTR_CMD_GET_DATA 0U
|
||||
#define INTR_CMD_DELAY_INT 1U
|
||||
|
||||
/**
|
||||
* @brief Info to configure virtual root port
|
||||
*
|
||||
* Configuration passed to hv when adding a virtual root port which
|
||||
* is used as PTM root
|
||||
*/
|
||||
struct vrp_config
|
||||
{
|
||||
uint16_t phy_bdf;
|
||||
uint8_t primary_bus;
|
||||
uint8_t secondary_bus;
|
||||
uint8_t subordinate_bus;
|
||||
uint8_t ptm_capable;
|
||||
uint32_t ptm_cap_offset;
|
||||
};
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user