Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 00/12] MIPS: KVM: 64-bit host support
@ 2016-07-08 10:53 James Hogan
  2016-07-08 10:53 ` [PATCH 01/12] MIPS: Fix definition of KSEGX() for 64-bit James Hogan
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: James Hogan @ 2016-07-08 10:53 UTC (permalink / raw)
  To: Paolo Bonzini, Ralf Baechle
  Cc: Radim Krčmář, James Hogan, Maciej W. Rozycki,
	linux-mips, kvm

Add basic MIPS KVM support for 64-bit host kernels, primarily to prepare
for VZ support on MIPS64 processors. Note, this does not allow 64-bit
guests to be supported. This patchset is based on my recent r6 support
patchset.

Patches 1-11 fix various distinct parts of KVM MIPS that aren't portable
to a 64-bit host kernel, and patch 12 allows KVM to be enabled on such
kernels.

Only patches 1 & 12 touch anything outside of MIPS KVM. Patch 1 in
particular needs some imput from general MIPS folk.

James Hogan (12):
  MIPS: Fix definition of KSEGX() for 64-bit
  MIPS: KVM: Use virt_to_phys() to get commpage PFN
  MIPS: KVM: Use kmap instead of CKSEG0ADDR()
  MIPS: KVM: Make entry code MIPS64 friendly
  MIPS: KVM: Set CP0_Status.KX on MIPS64
  MIPS: KVM: Use 64-bit CP0_EBase when appropriate
  MIPS: KVM: Fail if ebase doesn't fit in CP0_EBase
  MIPS: KVM: Fix 64-bit big endian dynamic translation
  MIPS: KVM: Sign extend MFC0/RDHWR results
  MIPS: KVM: Fix ptr->int cast via KVM_GUEST_KSEGX()
  MIPS: KVM: Reset CP0_PageMask during host TLB flush
  MIPS: Select HAVE_KVM for MIPS64_R{2,6}

 arch/mips/Kconfig                 |  2 +
 arch/mips/include/asm/addrspace.h |  2 +-
 arch/mips/kvm/dyntrans.c          | 27 +++++++++----
 arch/mips/kvm/emulate.c           |  7 ++--
 arch/mips/kvm/entry.c             | 83 +++++++++++++++++++++++++--------------
 arch/mips/kvm/mips.c              | 12 ++++++
 arch/mips/kvm/mmu.c               |  7 +++-
 arch/mips/kvm/tlb.c               |  4 +-
 8 files changed, 102 insertions(+), 42 deletions(-)

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
-- 
2.4.10

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

end of thread, other threads:[~2016-07-15 14:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-08 10:53 [PATCH 00/12] MIPS: KVM: 64-bit host support James Hogan
2016-07-08 10:53 ` [PATCH 01/12] MIPS: Fix definition of KSEGX() for 64-bit James Hogan
2016-07-11 14:56   ` Maciej W. Rozycki
2016-07-11 19:03     ` James Hogan
2016-07-11 20:23   ` [PATCH v2 " James Hogan
2016-07-15 14:19     ` Ralf Baechle
2016-07-08 10:53 ` [PATCH 02/12] MIPS: KVM: Use virt_to_phys() to get commpage PFN James Hogan
2016-07-08 10:53 ` [PATCH 03/12] MIPS: KVM: Use kmap instead of CKSEG0ADDR() James Hogan
2016-07-08 10:53 ` [PATCH 04/12] MIPS: KVM: Make entry code MIPS64 friendly James Hogan
2016-07-08 10:53 ` [PATCH 05/12] MIPS: KVM: Set CP0_Status.KX on MIPS64 James Hogan
2016-07-08 10:53 ` [PATCH 06/12] MIPS: KVM: Use 64-bit CP0_EBase when appropriate James Hogan
2016-07-08 10:53 ` [PATCH 07/12] MIPS: KVM: Fail if ebase doesn't fit in CP0_EBase James Hogan
2016-07-08 10:53 ` [PATCH 08/12] MIPS: KVM: Fix 64-bit big endian dynamic translation James Hogan
2016-07-08 10:53 ` [PATCH 09/12] MIPS: KVM: Sign extend MFC0/RDHWR results James Hogan
2016-07-08 10:53 ` [PATCH 10/12] MIPS: KVM: Fix ptr->int cast via KVM_GUEST_KSEGX() James Hogan
2016-07-08 10:53 ` [PATCH 11/12] MIPS: KVM: Reset CP0_PageMask during host TLB flush James Hogan
2016-07-08 10:53 ` [PATCH 12/12] MIPS: Select HAVE_KVM for MIPS64_R{2,6} James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox