All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] kvmtool: handle guests of a different endianness
@ 2014-05-08  9:32 Marc Zyngier
  2014-05-08  9:32 ` [PATCH v4 1/9] kvmtool: pass trapped vcpu to MMIO accessors Marc Zyngier
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Marc Zyngier @ 2014-05-08  9:32 UTC (permalink / raw)
  To: kvmarm, kvm; +Cc: Pekka Enberg, Will Deacon

This patch series adds some infrastructure to kvmtool to allow a BE
guest to use virtio-mmio on a LE host, provided that the architecture
actually supports such madness.

Not all the backend have been converted, only those I actually cared
about. Converting them is pretty easy though, and will be done if the
method is deemed acceptable.

This has been tested on both arm and arm64 (I use this on a daily
basis to test BE code). The corresponding kernel changes have all been
merged.

Also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/kvmtool-be-on-le

>From v3:
- Only patch 9/9 changed:
  * Handle access comming from EL0 in AArch64 mode
  * Added comment about SETEND in AArch32 mode
  * Fixed commit message

>From v2 (never posted):
- Fixed tons of bugs (config space)
- Fixed TAP networking

>From v1:
- Gave up on the virtio extension after the push back from the PPC
  guys. Instead, we snapshot the endianness of the vcpu  when it
  tries to reset the device. A bit ugly, but doesn't require any
  change on the kernel side.

Marc Zyngier (9):
  kvmtool: pass trapped vcpu to MMIO accessors
  kvmtool: virt_queue configuration based on endianness
  kvmtool: sample CPU endianness on virtio-mmio device reset
  kvmtool: add queue endianness initializer
  kvmtool: convert console backend to support bi-endianness
  kvmtool: convert 9p backend to support bi-endianness
  kvmtool: convert blk backend to support bi-endianness
  kvmtool: convert net backend to support bi-endianness
  kvmtool: virtio: enable arm/arm64 support for bi-endianness

 tools/kvm/arm/aarch32/kvm-cpu.c                  | 14 ++++
 tools/kvm/arm/aarch64/include/kvm/kvm-cpu-arch.h |  2 +
 tools/kvm/arm/aarch64/kvm-cpu.c                  | 43 +++++++++++++
 tools/kvm/arm/include/arm-common/kvm-arch.h      |  2 +
 tools/kvm/arm/include/arm-common/kvm-cpu-arch.h  |  4 +-
 tools/kvm/arm/kvm-cpu.c                          | 10 +--
 tools/kvm/hw/pci-shmem.c                         |  2 +-
 tools/kvm/include/kvm/kvm-cpu.h                  |  1 +
 tools/kvm/include/kvm/kvm.h                      |  4 +-
 tools/kvm/include/kvm/virtio.h                   | 82 +++++++++++++++++++++++-
 tools/kvm/kvm-cpu.c                              | 10 ++-
 tools/kvm/mmio.c                                 | 11 ++--
 tools/kvm/pci.c                                  |  3 +-
 tools/kvm/powerpc/include/kvm/kvm-cpu-arch.h     |  2 +-
 tools/kvm/powerpc/kvm-cpu.c                      |  4 +-
 tools/kvm/powerpc/spapr_pci.h                    |  6 +-
 tools/kvm/virtio/9p.c                            |  3 +
 tools/kvm/virtio/blk.c                           | 31 +++++++--
 tools/kvm/virtio/console.c                       |  8 ++-
 tools/kvm/virtio/core.c                          | 59 +++++++++--------
 tools/kvm/virtio/mmio.c                          | 21 ++++--
 tools/kvm/virtio/net.c                           | 45 +++++++++++--
 tools/kvm/virtio/pci.c                           |  6 +-
 tools/kvm/x86/include/kvm/kvm-cpu-arch.h         |  4 +-
 24 files changed, 302 insertions(+), 75 deletions(-)

-- 
1.8.3.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-08 10:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08  9:32 [PATCH v4 0/9] kvmtool: handle guests of a different endianness Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 1/9] kvmtool: pass trapped vcpu to MMIO accessors Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 2/9] kvmtool: virt_queue configuration based on endianness Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 3/9] kvmtool: sample CPU endianness on virtio-mmio device reset Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 4/9] kvmtool: add queue endianness initializer Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 5/9] kvmtool: convert console backend to support bi-endianness Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 6/9] kvmtool: convert 9p " Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 7/9] kvmtool: convert blk " Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 8/9] kvmtool: convert net " Marc Zyngier
2014-05-08  9:32 ` [PATCH v4 9/9] kvmtool: virtio: enable arm/arm64 support for bi-endianness Marc Zyngier
2014-05-08 10:06   ` Peter Maydell
2014-05-08 10:15     ` Marc Zyngier
2014-05-08 10:43   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.