dm: Use the new HSM eventfd ioctls

IC_EVENT_IOEVENTFD		->	ACRN_IOCTL_IOEVENTFD
IC_EVENT_IRQFD			->	ACRN_IOCTL_IRQFD

Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
Shuo A Liu 2021-07-07 21:16:49 +08:00 committed by wenlingz
parent 6e0b12180c
commit 07381888d3
2 changed files with 7 additions and 6 deletions

View File

@ -661,13 +661,13 @@ vm_intr_monitor(struct vmctx *ctx, void *intr_buf)
int
vm_ioeventfd(struct vmctx *ctx, struct acrn_ioeventfd *args)
{
return ioctl(ctx->fd, IC_EVENT_IOEVENTFD, args);
return ioctl(ctx->fd, ACRN_IOCTL_IOEVENTFD, args);
}
int
vm_irqfd(struct vmctx *ctx, struct acrn_irqfd *args)
{
return ioctl(ctx->fd, IC_EVENT_IRQFD, args);
return ioctl(ctx->fd, ACRN_IOCTL_IRQFD, args);
}
int

View File

@ -133,10 +133,11 @@
#define ACRN_IOCTL_PM_GET_CPU_STATE \
_IOWR(ACRN_IOCTL_TYPE, 0x60, __u64)
/* VHM eventfd */
#define IC_ID_EVENT_BASE 0x70UL
#define IC_EVENT_IOEVENTFD _IC_ID(IC_ID, IC_ID_EVENT_BASE + 0x00)
#define IC_EVENT_IRQFD _IC_ID(IC_ID, IC_ID_EVENT_BASE + 0x01)
/* HSM eventfd */
#define ACRN_IOCTL_IOEVENTFD \
_IOW(ACRN_IOCTL_TYPE, 0x70, struct acrn_ioeventfd)
#define ACRN_IOCTL_IRQFD \
_IOW(ACRN_IOCTL_TYPE, 0x71, struct acrn_irqfd)
#define ACRN_MEM_ACCESS_RIGHT_MASK 0x00000007U