mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +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:
@@ -25,6 +25,7 @@
|
||||
#include <asm/rtcm.h>
|
||||
#include <asm/irq.h>
|
||||
#include <ticks.h>
|
||||
#include "vroot_port.h"
|
||||
|
||||
#define DBG_LEVEL_HYCALL 6U
|
||||
|
||||
@@ -48,6 +49,7 @@ static struct emul_dev_ops emul_dev_ops_tbl[] = {
|
||||
{(IVSHMEM_VENDOR_ID | (IVSHMEM_DEVICE_ID << 16U)), NULL, NULL},
|
||||
#endif
|
||||
{(MCS9900_VENDOR | (MCS9900_DEV << 16U)), create_vmcs9900_vdev, destroy_vmcs9900_vdev},
|
||||
{(VRP_VENDOR | (VRP_DEVICE << 16U)), create_vrp, destroy_vrp},
|
||||
};
|
||||
|
||||
bool is_hypercall_from_ring0(void)
|
||||
|
||||
Reference in New Issue
Block a user