mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: add new hypercalls to create and destroy an emulated device in hypervisor
Add HC_CREATE_VDEV and HC_DESTROY_VDEV two hypercalls that are used to create and destroy an emulated device(PCI device or legacy device) in hypervisor v3: 1) change HC_CREATE_DEVICE and HC_DESTROY_DEVICE to HC_CREATE_VDEV and HC_DESTROY_VDEV 2) refine code style v4: 1) remove unnecessary parameter 2) add VM state check for HC_CREATE_VDEV and HC_DESTROY hypercalls Tracked-On: #4853 Reviewed-by: Wang, Yu1 <yu1.wang@intel.com> Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -65,6 +65,10 @@ static const struct hc_dispatch hc_dispatch_table[] = {
|
||||
.handler = hcall_assign_mmiodev},
|
||||
[HC_IDX(HC_DEASSIGN_MMIODEV)] = {
|
||||
.handler = hcall_deassign_mmiodev},
|
||||
[HC_IDX(HC_CREATE_VDEV)] = {
|
||||
.handler = hcall_create_vdev},
|
||||
[HC_IDX(HC_DESTROY_VDEV)] = {
|
||||
.handler = hcall_destroy_vdev},
|
||||
[HC_IDX(HC_SET_PTDEV_INTR_INFO)] = {
|
||||
.handler = hcall_set_ptdev_intr_info},
|
||||
[HC_IDX(HC_RESET_PTDEV_INTR_INFO)] = {
|
||||
|
Reference in New Issue
Block a user