Re: [PATCH v6 2/3] include: Add a header to define host PCI MMIO functions

2025-05-07 Thread Stefan Hajnoczi
On Wed, May 7, 2025 at 12:16 PM Farhan Ali wrote: > On 5/5/2025 2:38 AM, Thomas Huth wrote: > > On 30/04/2025 20.50, Farhan Ali wrote: > >> Add a generic API for host PCI MMIO reads/writes > >> (e.g. Linux VFIO BAR accesses). The functions access > >> little endian memory and returns the result in

Re: [PATCH v6 2/3] include: Add a header to define host PCI MMIO functions

2025-05-07 Thread Farhan Ali
On 5/5/2025 2:38 AM, Thomas Huth wrote: On 30/04/2025 20.50, Farhan Ali wrote: Add a generic API for host PCI MMIO reads/writes (e.g. Linux VFIO BAR accesses). The functions access little endian memory and returns the result in host cpu endianness. Reviewed-by: Stefan Hajnoczi Signed-off-by:

Re: [PATCH v6 2/3] include: Add a header to define host PCI MMIO functions

2025-05-05 Thread Thomas Huth
On 30/04/2025 20.50, Farhan Ali wrote: Add a generic API for host PCI MMIO reads/writes (e.g. Linux VFIO BAR accesses). The functions access little endian memory and returns the result in host cpu endianness. Reviewed-by: Stefan Hajnoczi Signed-off-by: Farhan Ali --- ... +static inline uint8

[PATCH v6 2/3] include: Add a header to define host PCI MMIO functions

2025-04-30 Thread Farhan Ali
Add a generic API for host PCI MMIO reads/writes (e.g. Linux VFIO BAR accesses). The functions access little endian memory and returns the result in host cpu endianness. Reviewed-by: Stefan Hajnoczi Signed-off-by: Farhan Ali --- include/qemu/host-pci-mmio.h | 136 +++