On Thu, Dec 16, 2021 at 11:30:20AM +0000, Stefan Hajnoczi wrote: > > + ret = vfu_setup_region(o->vfu_ctx, VFU_PCI_DEV_CFG_REGION_IDX, > > + pci_config_size(o->pci_dev), > > &vfu_object_cfg_access, > > + VFU_REGION_FLAG_RW | VFU_REGION_FLAG_ALWAYS_CB, > > + NULL, 0, -1, 0); > > Thanos or John: QEMU's pci_host_config_read/write_common() works with > host-endian values. I don't know which endianness libvfio-user's region > callbacks expect. Does this patch look endian-safe to you (e.g. will it > work on a big-endian host)?
https://github.com/nutanix/libvfio-user/issues/615 regards john