[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 20/24] vfio-user: dma read/write operations
From: |
John Levon |
Subject: |
Re: [PATCH v1 20/24] vfio-user: dma read/write operations |
Date: |
Fri, 9 Dec 2022 18:11:44 +0000 |
On Tue, Nov 08, 2022 at 03:13:42PM -0800, John Johnson wrote:
> static void vfio_user_pci_process_req(void *opaque, VFIOUserMsg *msg)
> {
> + VFIOPCIDevice *vdev = opaque;
> + VFIOUserHdr *hdr = msg->hdr;
> +
> + /* no incoming PCI requests pass FDs */
> + if (msg->fds != NULL) {
> + vfio_user_send_error(vdev->vbasedev.proxy, hdr, EINVAL);
> + vfio_user_putfds(msg);
> + return;
> + }
>
> + switch (hdr->command) {
> + case VFIO_USER_DMA_READ:
> + vfio_user_dma_read(vdev, (VFIOUserDMARW *)hdr);
> + break;
> + case VFIO_USER_DMA_WRITE:
> + vfio_user_dma_write(vdev, (VFIOUserDMARW *)hdr);
> + break;
> + default:
> + error_printf("vfio_user_process_req unknown cmd %d\n", hdr->command);
__func__ or vfio_user_pci_process_req ?
regards
john
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v1 20/24] vfio-user: dma read/write operations,
John Levon <=