From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 0/3] KVM: PPC: Book3S: MMIO support for Little Endian guests Date: Mon, 7 Oct 2013 16:27:44 +0200 Message-ID: <1381156067-32095-1-git-send-email-clg@fr.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: agraf@suse.de, paulus@samba.org Return-path: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org MMIO emulation reads the last instruction executed by the guest and then emulates. If the guest is running in Little Endian mode, the instruction needs to be byte-swapped before being emulated. The first patches add simple helper routines to load instructions from=20 the guest. It prepares ground for the byte-swapping of instructions=20 when reading memory from Little Endian guests. There might be room for=20 more changes in kvmppc_read_inst() : is the kvmppc_get_last_inst() call= =20 actually useful ?=20 The last patch enables the MMIO support by byte-swapping the last=20 instruction if the guest is Little Endian. This patchset is based on Alex Graf's kvm-ppc-queue branch. It has been= =20 tested with anton's patchset for Big Endian and Little Endian HV guests= =20 and Big Endian PR guests.=20 Thanks, C. C=C3=A9dric Le Goater (3): KVM: PPC: Book3S: add helper routine to load guest instructions KVM: PPC: Book3S: add helper routines to detect endian order KVM: PPC: Book3S: MMIO emulation support for little endian guests arch/powerpc/include/asm/kvm_book3s.h | 33 +++++++++++++- arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 12 ++++++ arch/powerpc/kvm/book3s_pr.c | 2 +- arch/powerpc/kvm/book3s_segment.S | 11 +++++ arch/powerpc/kvm/emulate.c | 72 +++++++++++++++++------= -------- 6 files changed, 96 insertions(+), 36 deletions(-) --=20 1.7.10.4