mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +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:
@@ -5,14 +5,17 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __VROOT_PORT_H
|
||||
#define __VROOT_PORT_H
|
||||
#ifndef __VRP_H
|
||||
#define __VRP_H
|
||||
|
||||
#include "vpci.h"
|
||||
|
||||
#define VROOT_PORT_VENDOR 0x8086U
|
||||
#define VROOT_PORT_DEVICE 0x9d14U
|
||||
#define VRP_VENDOR 0x8086U
|
||||
#define VRP_DEVICE 0x9d14U
|
||||
|
||||
extern const struct pci_vdev_ops vroot_port_ops;
|
||||
extern const struct pci_vdev_ops vrp_ops;
|
||||
|
||||
int32_t create_vrp(struct acrn_vm *vm, struct acrn_emul_dev *dev);
|
||||
int32_t destroy_vrp(struct pci_vdev *vdev);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user