From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [RFC PATCH] KVM: Specify byte order for KVM_EXIT_MMIO Date: Fri, 24 Jan 2014 16:32:45 +0100 Message-ID: <52E2879D.6070609@redhat.com> References: <1390520766-5275-1-git-send-email-christoffer.dall@linaro.org> <52E26622.4070303@redhat.com> <0542630E-CFEB-418F-9636-E0CFD90F1E3E@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm-devel , kvm-ppc , "kvmarm@lists.cs.columbia.edu" To: Victor Kamensky , Alexander Graf , Christoffer Dall Return-path: In-Reply-To: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Il 24/01/2014 16:23, Victor Kamensky ha scritto: > Also if you use ints on real bus as description, you may want to clarify > restrictions on mmio.len. Basically on 32 bit platform (i.e like V7 > ARM) one cannot have mmio.len=8, because one cannot have 64bit > value on 32bit data bus. Without such clarification introduction of > text like "the value as it would go on the bus in real hardware" is > confusing for len=8 for emulated CPUs where real busses are > 32bit. This is not necessarily true. On a 32-bit CPU you can have a 64-bit memory bus. Even x86 32-bit CPUs can do 64-bit MMIO via MMX or SSE or double-word compare-and-swap (CMPXCHG8B). Paolo