]> git.feebdaed.xyz Git - 0xmirror/qemu.git/commit
vfio-user: simplify vfio_user_recv_one()
authorJohn Levon <john.levon@nutanix.com>
Wed, 3 Dec 2025 10:03:14 +0000 (15:33 +0530)
committerCédric Le Goater <clg@redhat.com>
Wed, 3 Dec 2025 14:07:47 +0000 (15:07 +0100)
commit0df8baec95b76c93093efde37d1644508c3c7d2c
tree5bb0dcbda9c151a580fcb92361c760a7fa7b8767
parent7b884e2a27793e0ff5817ad04ecce85d0a90149d
vfio-user: simplify vfio_user_recv_one()

This function was unnecessarily difficult to understand due to the
separate handling of request and reply messages. Use common code for
both where we can.

Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20251203100316.3604456-5-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio-user/proxy.c