KVM: Specify byte order for KVM_EXIT_MMIO
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 28 Jan 2014 16:28:42 +0000 (08:28 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Mar 2014 17:25:18 +0000 (18:25 +0100)
commit6acdb1603a7db4c1b5d91863a13d2c3f1b9188b0
tree214ea172ecebc84f62c8ea73aa8c8d08583492fc
parent920c837785699bcc48f4a729ba9ee3492f620b95
KVM: Specify byte order for KVM_EXIT_MMIO

The KVM API documentation is not clear about the semantics of the data
field on the mmio struct on the kvm_run struct.

This has become problematic when supporting ARM guests on big-endian
host systems with guests of both endianness types, because it is unclear
how the data should be exported to user space.

This should not break with existing implementations as all supported
existing implementations of known user space applications (QEMU and
kvmtools for virtio) only support default endianness of the
architectures on the host side.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virtual/kvm/api.txt