diff options
| author | John Levon <john.levon@nutanix.com> | 2025-06-25 20:29:55 +0100 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-06-26 08:55:38 +0200 |
| commit | 0b3d881a061b284a3db00d7fe9d33581fb424287 (patch) | |
| tree | 7e09d9994de840e198064ce906e3aaf1f35b1761 /hw/vfio-user/pci.c | |
| parent | 438d863f1f40fbc2b57bf94cc6c998a6445c0932 (diff) | |
| download | focaccia-qemu-0b3d881a061b284a3db00d7fe9d33581fb424287.tar.gz focaccia-qemu-0b3d881a061b284a3db00d7fe9d33581fb424287.zip | |
vfio-user: implement message receive infrastructure
Add the basic implementation for receiving vfio-user messages from the control socket. Originally-by: John Johnson <john.g.johnson@oracle.com> Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com> Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250625193012.2316242-4-john.levon@nutanix.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio-user/pci.c')
| -rw-r--r-- | hw/vfio-user/pci.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/vfio-user/pci.c b/hw/vfio-user/pci.c index 642421e791..bad2829f5c 100644 --- a/hw/vfio-user/pci.c +++ b/hw/vfio-user/pci.c @@ -23,6 +23,16 @@ struct VFIOUserPCIDevice { }; /* + * Incoming request message callback. + * + * Runs off main loop, so BQL held. + */ +static void vfio_user_pci_process_req(void *opaque, VFIOUserMsg *msg) +{ + +} + +/* * Emulated devices don't use host hot reset */ static void vfio_user_compute_needs_reset(VFIODevice *vbasedev) @@ -80,6 +90,7 @@ static void vfio_user_pci_realize(PCIDevice *pdev, Error **errp) return; } vbasedev->proxy = proxy; + vfio_user_set_handler(vbasedev, vfio_user_pci_process_req, vdev); /* * vfio-user devices are effectively mdevs (don't use a host iommu). |