qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 08/14] vfio-user: handle PCI config space accesses


From: John Levon
Subject: Re: [PATCH v4 08/14] vfio-user: handle PCI config space accesses
Date: Thu, 16 Dec 2021 11:47:40 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]