[Qemu-devel] [PATCH 0/2] mips: KVM T&E segment support for TCG

James Hogan posted 2 patches 6 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.6535001d6b9cd2357109d19b1060e3f6a2b958a7.1501506432.git-series.james.hogan@imgtec.com
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
hw/mips/addr.c            | 12 ++++++++++++
hw/mips/mips_malta.c      | 17 +++++++----------
include/hw/mips/cpudevs.h |  5 +++--
target/mips/helper.c      | 27 +++++++++++++--------------
target/mips/translate.c   |  4 ++--
5 files changed, 37 insertions(+), 28 deletions(-)
[Qemu-devel] [PATCH 0/2] mips: KVM T&E segment support for TCG
Posted by James Hogan 6 years, 8 months ago
MIPS KVM trap & emulate guest kernels have a different segment layout
compared with traditional MIPS kernels, to allow both the user and
kernel code to run from the user address segment without repeatedly
trapping to KVM.

QEMU currently supports this layout only for KVM, but its sometimes
useful to be able to run these kernels in QEMU on a PC. This patchset
enables it for TCG too.

This also paves the way for MIPS KVM VZ support (which uses the normal
virtual memory layout) by abstracting whether user mode kernel segments
are in use.

Cc: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org

James Hogan (2):
  mips: Improve segment defs for KVM T&E guests
  mips: Add KVM T&E segment support for TCG

 hw/mips/addr.c            | 12 ++++++++++++
 hw/mips/mips_malta.c      | 17 +++++++----------
 include/hw/mips/cpudevs.h |  5 +++--
 target/mips/helper.c      | 27 +++++++++++++--------------
 target/mips/translate.c   |  4 ++--
 5 files changed, 37 insertions(+), 28 deletions(-)

-- 
git-series 0.8.10