aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2014-01-28 11:28:42 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2014-03-27 13:25:18 -0400
commit6acdb1603a7db4c1b5d91863a13d2c3f1b9188b0 (patch)
tree214ea172ecebc84f62c8ea73aa8c8d08583492fc
parent920c837785699bcc48f4a729ba9ee3492f620b95 (diff)
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>
-rw-r--r--Documentation/virtual/kvm/api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 2cb1640a90ad..c24211da4120 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -2595,6 +2595,10 @@ executed a memory-mapped I/O instruction which could not be satisfied
2595by kvm. The 'data' member contains the written data if 'is_write' is 2595by kvm. The 'data' member contains the written data if 'is_write' is
2596true, and should be filled by application code otherwise. 2596true, and should be filled by application code otherwise.
2597 2597
2598The 'data' member contains, in its first 'len' bytes, the value as it would
2599appear if the VCPU performed a load or store of the appropriate width directly
2600to the byte array.
2601
2598NOTE: For KVM_EXIT_IO, KVM_EXIT_MMIO, KVM_EXIT_OSI, KVM_EXIT_DCR, 2602NOTE: For KVM_EXIT_IO, KVM_EXIT_MMIO, KVM_EXIT_OSI, KVM_EXIT_DCR,
2599 KVM_EXIT_PAPR and KVM_EXIT_EPR the corresponding 2603 KVM_EXIT_PAPR and KVM_EXIT_EPR the corresponding
2600operations are complete (and guest state is consistent) only after userspace 2604operations are complete (and guest state is consistent) only after userspace