qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] mips: KVM T&E segment support for TCG
@ 2017-07-31 13:09 James Hogan
  2017-07-31 13:09 ` [Qemu-devel] [PATCH 1/2] mips: Improve segment defs for KVM T&E guests James Hogan
  2017-07-31 13:09 ` [Qemu-devel] [PATCH 2/2] mips: Add KVM T&E segment support for TCG James Hogan
  0 siblings, 2 replies; 6+ messages in thread
From: James Hogan @ 2017-07-31 13:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: James Hogan, Yongbok Kim, Aurelien Jarno, Paolo Bonzini, kvm

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

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

end of thread, other threads:[~2017-07-31 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-31 13:09 [Qemu-devel] [PATCH 0/2] mips: KVM T&E segment support for TCG James Hogan
2017-07-31 13:09 ` [Qemu-devel] [PATCH 1/2] mips: Improve segment defs for KVM T&E guests James Hogan
2017-07-31 18:17   ` Philippe Mathieu-Daudé
2017-07-31 13:09 ` [Qemu-devel] [PATCH 2/2] mips: Add KVM T&E segment support for TCG James Hogan
2017-07-31 20:47   ` Richard Henderson
2017-07-31 21:36     ` James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).