]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/remote/vfio-user: Fix config space access byte order
authorMattias Nissler <mnissler@rivosinc.com>
Wed, 23 Aug 2023 09:29:30 +0000 (02:29 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 10 May 2024 10:20:20 +0000 (13:20 +0300)
commit2b8be9cffb8caaa8377cdc30fe9c406e57d4ba82
treebd32c95db5471f082642a46af97152ce38995733
parent41e052fc05d20c171edf8ba16894871a4d1720f3
hw/remote/vfio-user: Fix config space access byte order

PCI config space is little-endian, so on a big-endian host we need to
perform byte swaps for values as they are passed to and received from
the generic PCI config space access machinery.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com>
Signed-off-by: Mattias Nissler <mnissler@rivosinc.com>
Message-ID: <20240507094210.300566-6-mnissler@rivosinc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit e6578f1f68a0e90789a841ada532c3e494c9a04c)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/remote/vfio-user-obj.c