On Mon, 22 Apr 2024 16:33:53 -0600 Alex Williamson <alex.williamson@xxxxxxxxxx> wrote: > [2] .. > @@ -114,72 +155,33 @@ ssize_t vfio_pci_core_do_io_rw(struct vfio_pci_core_device *vdev, bool test_mem, > else > fillable = 0; > > +#if defined(ioread64) && defined(iowrite64) > + if (fillable >= 8 && !(off % 8)) { > + ret = vfio_pci_core_iordwr64(vdev, iswrite, test_mem, > + io, buf, off, &filled); > + if (ret) > + return ret; > + > + } else > +#endif This could also just be: #ifdef vfio_pci_core_iordwr64 at this point. BTW, all this is only compile tested. Thanks, Alex