mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-12 20:39:59 +00:00
hv: dm: Use new pci device passthrough management ioctls
IC_ASSIGN_PCIDEV -> ACRN_IOCTL_ASSIGN_PCIDEV IC_DEASSIGN_PCIDEV -> ACRN_IOCTL_DEASSIGN_PCIDEV QUIRK_PTDEV -> ACRN_PTDEV_QUIRK_ASSIGN struct acrn_assign_pcidev -> struct acrn_pcidev Move struct acrn_pcidev into acrn_common.h because it is used by both DM and HV. Tracked-On: #6282 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
@@ -540,15 +540,15 @@ vm_set_gsi_irq(struct vmctx *ctx, int gsi, uint32_t operation)
|
||||
}
|
||||
|
||||
int
|
||||
vm_assign_pcidev(struct vmctx *ctx, struct acrn_assign_pcidev *pcidev)
|
||||
vm_assign_pcidev(struct vmctx *ctx, struct acrn_pcidev *pcidev)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_ASSIGN_PCIDEV, pcidev);
|
||||
return ioctl(ctx->fd, ACRN_IOCTL_ASSIGN_PCIDEV, pcidev);
|
||||
}
|
||||
|
||||
int
|
||||
vm_deassign_pcidev(struct vmctx *ctx, struct acrn_assign_pcidev *pcidev)
|
||||
vm_deassign_pcidev(struct vmctx *ctx, struct acrn_pcidev *pcidev)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_DEASSIGN_PCIDEV, pcidev);
|
||||
return ioctl(ctx->fd, ACRN_IOCTL_DEASSIGN_PCIDEV, pcidev);
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user