From: Gleb Natapov <gleb@redhat.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: David Daney <ddaney.cavm@gmail.com>,
kvm@vger.kernel.org, linux-mips@linux-mips.org,
ralf@linux-mips.org, Sanjay Lal <sanjayl@kymasys.com>,
linux-kernel@vger.kernel.org,
David Daney <david.daney@cavium.com>
Subject: Re: [PATCH 00/31] KVM/MIPS: Implement hardware virtualization via the MIPS-VZ extensions.
Date: Sun, 9 Jun 2013 10:31:15 +0300 [thread overview]
Message-ID: <20130609073115.GE4725@redhat.com> (raw)
In-Reply-To: <51B26974.5000306@caviumnetworks.com>
On Fri, Jun 07, 2013 at 04:15:00PM -0700, David Daney wrote:
> I should also add that I will shortly send patches for the kvm tool
> required to drive this VM as well as a small set of patches that
> create a para-virtualized MIPS/Linux guest kernel.
>
> The idea is that because there is no standard SMP linux system, we
> create a standard para-virtualized system that uses a handful of
> hypercalls, but mostly just uses virtio devices. It has no emulated
> real hardware (no 8250 UART, no emulated legacy anything...)
>
Virtualization is useful for running legacy code. Why dismiss support
for non pv guests so easily? How different MIPS SMP systems are? What
about running non pv UP systems?
> David Daney
>
>
> On 06/07/2013 04:03 PM, David Daney wrote:
> >From: David Daney <david.daney@cavium.com>
> >
> >These patches take a somewhat different approach to MIPS
> >virtualization via the MIPS-VZ extensions than the patches previously
> >sent by Sanjay Lal.
> >
> >Several facts about the code:
> >
> >o Existing exception handlers are modified to hook in to KVM instead
> > of intercepting all exceptions via the EBase register, and then
> > chaining to real exception handlers.
> >
> >o Able to boot 64-bit SMP guests that use the FPU (I have booted 4-way
> > SMP 64-bit MIPS/Linux).
> >
> >o Additional overhead on every exception even when *no* vCPU is running.
> >
> >o Lower interrupt overhead, than the EBase interception method, when
> > vCPU *is* running.
> >
> >o This code is somewhat smaller than the existing trap/emulate
> > implementation (about 2100 lines vs. about 5300 lines)
> >
> >o Currently probably only usable on the OCTEON III CPU model, as some
> > MIPS-VZ implementation-defined behaviors were assumed to have the
> > OCTEON III behavior.
> >
> >Note: I think Ralf already has the 17/31 (MIPS: Quit exposing Kconfig
> >symbols in uapi headers.) queued, but I also include it here.
> >
> >David Daney (31):
> > MIPS: Move allocate_kscratch to cpu-probe.c and make it public.
> > MIPS: Save and restore K0/K1 when CONFIG_KVM_MIPSVZ
> > mips/kvm: Fix 32-bitisms in kvm_locore.S
> > mips/kvm: Add casts to avoid pointer width mismatch build failures.
> > mips/kvm: Use generic cache flushing functions.
> > mips/kvm: Rename kvm_vcpu_arch.pc to kvm_vcpu_arch.epc
> > mips/kvm: Rename VCPU_registername to KVM_VCPU_ARCH_registername
> > mips/kvm: Fix code formatting in arch/mips/kvm/kvm_locore.S
> > mips/kvm: Factor trap-and-emulate support into a pluggable
> > implementation.
> > mips/kvm: Implement ioctls to get and set FPU registers.
> > MIPS: Rearrange branch.c so it can be used by kvm code.
> > MIPS: Add instruction format information for WAIT, MTC0, MFC0, et al.
> > mips/kvm: Add accessors for MIPS VZ registers.
> > mips/kvm: Add thread_info flag to indicate operation in MIPS VZ Guest
> > Mode.
> > mips/kvm: Exception handling to leave and reenter guest mode.
> > mips/kvm: Add exception handler for MIPSVZ Guest exceptions.
> > MIPS: Quit exposing Kconfig symbols in uapi headers.
> > mips/kvm: Add pt_regs slots for BadInstr and BadInstrP
> > mips/kvm: Add host definitions for MIPS VZ based host.
> > mips/kvm: Hook into TLB fault handlers.
> > mips/kvm: Allow set_except_vector() to be used from MIPSVZ code.
> > mips/kvm: Split get_new_mmu_context into two parts.
> > mips/kvm: Hook into CP unusable exception handler.
> > mips/kvm: Add thread_struct fields used by MIPSVZ hosts.
> > mips/kvm: Add some asm-offsets constants used by MIPSVZ.
> > mips/kvm: Split up Kconfig and Makefile definitions in preperation
> > for MIPSVZ.
> > mips/kvm: Gate the use of kvm_local_flush_tlb_all() by KVM_MIPSTE
> > mips/kvm: Only use KVM_COALESCED_MMIO_PAGE_OFFSET with KVM_MIPSTE
> > mips/kvm: Add MIPSVZ support.
> > mips/kvm: Enable MIPSVZ in Kconfig/Makefile
> > mips/kvm: Allow for upto 8 KVM vcpus per vm.
> >
> > arch/mips/Kconfig | 1 +
> > arch/mips/include/asm/branch.h | 7 +
> > arch/mips/include/asm/kvm_host.h | 622 +-----------
> > arch/mips/include/asm/kvm_mips_te.h | 589 +++++++++++
> > arch/mips/include/asm/kvm_mips_vz.h | 29 +
> > arch/mips/include/asm/mipsregs.h | 264 +++++
> > arch/mips/include/asm/mmu_context.h | 12 +-
> > arch/mips/include/asm/processor.h | 6 +
> > arch/mips/include/asm/ptrace.h | 36 +
> > arch/mips/include/asm/stackframe.h | 150 ++-
> > arch/mips/include/asm/thread_info.h | 2 +
> > arch/mips/include/asm/uasm.h | 2 +-
> > arch/mips/include/uapi/asm/inst.h | 23 +-
> > arch/mips/include/uapi/asm/ptrace.h | 17 +-
> > arch/mips/kernel/asm-offsets.c | 124 ++-
> > arch/mips/kernel/branch.c | 63 +-
> > arch/mips/kernel/cpu-probe.c | 34 +
> > arch/mips/kernel/genex.S | 8 +
> > arch/mips/kernel/scall64-64.S | 12 +
> > arch/mips/kernel/scall64-n32.S | 12 +
> > arch/mips/kernel/traps.c | 15 +-
> > arch/mips/kvm/Kconfig | 23 +-
> > arch/mips/kvm/Makefile | 15 +-
> > arch/mips/kvm/kvm_locore.S | 980 +++++++++---------
> > arch/mips/kvm/kvm_mips.c | 768 ++------------
> > arch/mips/kvm/kvm_mips_comm.h | 1 +
> > arch/mips/kvm/kvm_mips_commpage.c | 9 +-
> > arch/mips/kvm/kvm_mips_dyntrans.c | 4 +-
> > arch/mips/kvm/kvm_mips_emul.c | 312 +++---
> > arch/mips/kvm/kvm_mips_int.c | 53 +-
> > arch/mips/kvm/kvm_mips_int.h | 2 -
> > arch/mips/kvm/kvm_mips_stats.c | 6 +-
> > arch/mips/kvm/kvm_mipsvz.c | 1894 +++++++++++++++++++++++++++++++++++
> > arch/mips/kvm/kvm_mipsvz_guest.S | 234 +++++
> > arch/mips/kvm/kvm_tlb.c | 140 +--
> > arch/mips/kvm/kvm_trap_emul.c | 932 +++++++++++++++--
> > arch/mips/mm/fault.c | 8 +
> > arch/mips/mm/tlbex-fault.S | 6 +
> > arch/mips/mm/tlbex.c | 45 +-
> > 39 files changed, 5299 insertions(+), 2161 deletions(-)
> > create mode 100644 arch/mips/include/asm/kvm_mips_te.h
> > create mode 100644 arch/mips/include/asm/kvm_mips_vz.h
> > create mode 100644 arch/mips/kvm/kvm_mipsvz.c
> > create mode 100644 arch/mips/kvm/kvm_mipsvz_guest.S
> >
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Gleb.
next prev parent reply other threads:[~2013-06-09 7:31 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 23:03 [PATCH 00/31] KVM/MIPS: Implement hardware virtualization via the MIPS-VZ extensions David Daney
2013-06-07 23:03 ` [PATCH 01/31] MIPS: Move allocate_kscratch to cpu-probe.c and make it public David Daney
2013-06-14 11:41 ` Ralf Baechle
2013-06-14 13:11 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 02/31] MIPS: Save and restore K0/K1 when CONFIG_KVM_MIPSVZ David Daney
2013-06-07 23:03 ` [PATCH 03/31] mips/kvm: Fix 32-bitisms in kvm_locore.S David Daney
2013-06-14 13:09 ` Ralf Baechle
2013-06-14 13:21 ` Sergei Shtylyov
2013-06-07 23:03 ` [PATCH 04/31] mips/kvm: Add casts to avoid pointer width mismatch build failures David Daney
2013-06-14 13:14 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 05/31] mips/kvm: Use generic cache flushing functions David Daney
2013-06-14 13:17 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 06/31] mips/kvm: Rename kvm_vcpu_arch.pc to kvm_vcpu_arch.epc David Daney
2013-06-14 13:18 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 07/31] mips/kvm: Rename VCPU_registername to KVM_VCPU_ARCH_registername David Daney
2013-06-14 13:18 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 08/31] mips/kvm: Fix code formatting in arch/mips/kvm/kvm_locore.S David Daney
2013-06-14 13:21 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 09/31] mips/kvm: Factor trap-and-emulate support into a pluggable implementation David Daney
2013-06-14 13:22 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 10/31] mips/kvm: Implement ioctls to get and set FPU registers David Daney
2013-06-14 16:11 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 11/31] MIPS: Rearrange branch.c so it can be used by kvm code David Daney
2013-06-14 22:03 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 12/31] MIPS: Add instruction format information for WAIT, MTC0, MFC0, et al David Daney
2013-06-14 22:07 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 13/31] mips/kvm: Add accessors for MIPS VZ registers David Daney
2013-06-14 22:10 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 14/31] mips/kvm: Add thread_info flag to indicate operation in MIPS VZ Guest Mode David Daney
2013-06-14 22:10 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 15/31] mips/kvm: Exception handling to leave and reenter guest mode David Daney
2013-06-15 10:00 ` Ralf Baechle
2013-10-11 12:51 ` James Hogan
2013-06-07 23:03 ` [PATCH 16/31] mips/kvm: Add exception handler for MIPSVZ Guest exceptions David Daney
2013-06-15 10:23 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 17/31] MIPS: Quit exposing Kconfig symbols in uapi headers David Daney
2013-06-14 11:12 ` Ralf Baechle
2013-06-15 17:13 ` Paolo Bonzini
2013-06-07 23:03 ` [PATCH 18/31] mips/kvm: Add pt_regs slots for BadInstr and BadInstrP David Daney
2013-06-15 10:25 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 19/31] mips/kvm: Add host definitions for MIPS VZ based host David Daney
2013-06-16 8:49 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 20/31] mips/kvm: Hook into TLB fault handlers David Daney
2013-06-07 23:34 ` Sergei Shtylyov
2013-06-08 0:15 ` David Daney
2013-06-16 8:51 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 21/31] mips/kvm: Allow set_except_vector() to be used from MIPSVZ code David Daney
2013-06-16 11:22 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 22/31] mips/kvm: Split get_new_mmu_context into two parts David Daney
2013-06-16 11:26 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 23/31] mips/kvm: Hook into CP unusable exception handler David Daney
2013-06-16 11:28 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 24/31] mips/kvm: Add thread_struct fields used by MIPSVZ hosts David Daney
2013-06-16 11:29 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 25/31] mips/kvm: Add some asm-offsets constants used by MIPSVZ David Daney
2013-06-16 11:31 ` Ralf Baechle
2013-08-06 17:23 ` David Daney
2013-06-07 23:03 ` [PATCH 26/31] mips/kvm: Split up Kconfig and Makefile definitions in preperation for MIPSVZ David Daney
2013-06-16 11:33 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 27/31] mips/kvm: Gate the use of kvm_local_flush_tlb_all() by KVM_MIPSTE David Daney
2013-06-16 11:42 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 28/31] mips/kvm: Only use KVM_COALESCED_MMIO_PAGE_OFFSET with KVM_MIPSTE David Daney
2013-06-16 12:03 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 29/31] mips/kvm: Add MIPSVZ support David Daney
2013-06-16 11:47 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 30/31] mips/kvm: Enable MIPSVZ in Kconfig/Makefile David Daney
2013-06-16 11:44 ` Ralf Baechle
2013-06-07 23:03 ` [PATCH 31/31] mips/kvm: Allow for upto 8 KVM vcpus per vm David Daney
2013-06-16 11:37 ` Ralf Baechle
2013-06-07 23:15 ` [PATCH 00/31] KVM/MIPS: Implement hardware virtualization via the MIPS-VZ extensions David Daney
2013-06-09 7:31 ` Gleb Natapov [this message]
2013-06-09 23:23 ` David Daney
2013-06-09 23:40 ` Maciej W. Rozycki
2013-06-10 11:16 ` Ralf Baechle
2013-06-10 6:18 ` Gleb Natapov
2013-06-10 16:37 ` Sanjay Lal
2013-06-16 11:59 ` Ralf Baechle
2013-06-10 16:43 ` Sanjay Lal
2013-06-10 17:14 ` David Daney
2013-06-14 11:12 ` Ralf Baechle
2013-06-19 9:06 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130609073115.GE4725@redhat.com \
--to=gleb@redhat.com \
--cc=david.daney@cavium.com \
--cc=ddaney.cavm@gmail.com \
--cc=ddaney@caviumnetworks.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=sanjayl@kymasys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).