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:
Rong Liu
2021-05-05 22:05:21 +00:00
committed by wenlingz
parent d5d792aa96
commit 7e93f31e2c
4 changed files with 80 additions and 5 deletions

View File

@@ -10,6 +10,6 @@
#include "passthru.h"
int ptm_probe(struct vmctx *ctx, struct passthru_dev *pdev);
int ptm_probe(struct vmctx *ctx, struct passthru_dev *pdev, int *vrp_sec_bus);
#endif
#endif