nvme: fix CMB endianness confusion
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Nov 2018 18:23:35 +0000 (19:23 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 22 Nov 2018 18:37:31 +0000 (19:37 +0100)
commit71a86ddece548860f040d565204cf1bf59d74663
treec64dc8208eba88addce9661078b3317c6ff6cfa2
parent2067d39e5e53b053bece6fa15711640123c119ed
nvme: fix CMB endianness confusion

The CMB is marked as DEVICE_LITTLE_ENDIAN, so the data must be
read/written as if it was little-endian output (in the case of
big endian, we get two swaps, one in the memory core and one
in nvme.c).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c