[PATCH 01/20] KVM/MIPS32: Infrastructure/build files.

2012-10-31 Thread Sanjay Lal
- Add the KVM option to MIPS build files. - Add default config files for KVM host/guest kernels. - Change the link address for the Malta KVM Guest kernel to UM (0x4010). - Add KVM Kconfig file with KVM/MIPS specific options Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/Kbuild

[PATCH 03/20] KVM/MIPS32: Entry point for trampolining to the guest and trap handlers

2012-10-31 Thread Sanjay Lal
while in guest context. Save guest context, restore some kernel context and jump to main 'C' handler: kvm_mips_handle_exit() Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_locore.S | 646 + 1 file changed, 646 insertions

[PATCH 15/20] MIPS: If KVM is enabled then use the KVM specific routine to flush the TLBs on a ASID wrap

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/include/asm/mmu_context.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/include/asm/mmu_context.h b/arch/mips/include/asm/mmu_context.h index 9b02cfb..9c7024c 100644 --- a/arch/mips/include/asm/mmu_context.h +++ b

[PATCH 11/20] KVM/MIPS32: Guest interrupt delivery.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_mips_int.c | 251 +++ arch/mips/kvm/kvm_mips_int.h | 49 + 2 files changed, 300 insertions(+) create mode 100644 arch/mips/kvm/kvm_mips_int.c create mode 100644 arch/mips/kvm

[PATCH 13/20] MIPS: Export routines needed by the KVM module.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/mm/c-r4k.c | 6 -- arch/mips/mm/cache.c | 1 + arch/mips/mm/tlb-r4k.c | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 2b61462..1923063 100644 --- a/arch

[PATCH 18/20] MIPS: Export symbols used by KVM/MIPS module

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kernel/smp.c | 1 + mm/bootmem.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 9005bf9..60ea489 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c

[PATCH 19/20] KVM/MIPS32: Do not call vcpu_load when injecting interrupts.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- virt/kvm/kvm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index e59bb63..1cc985a 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1882,7 +1882,7 @@ static long

[PATCH 17/20] MIPS: Pull in MIPS fix: fix endless loop when processing signals for kernel tasks.

2012-10-31 Thread Sanjay Lal
This bug is discussed in: http://lkml.indiana.edu/hypermail/linux/kernel/1205.2/00719.html Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kernel/entry.S | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S

[PATCH 16/20] MIPS: ASM offsets for VCPU arch specific fields.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kernel/asm-offsets.c | 67 ++ 1 file changed, 67 insertions(+) diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index 833eeab..d65a2fd 100644 --- a/arch/mips/kernel/asm

[PATCH 07/20] KVM/MIPS32: Dynamic binary translation of select privileged instructions.

2012-10-31 Thread Sanjay Lal
] and this is mapped into the guest kernel address space @ VA 0x0. mfc0/mtc0 operations are transformed to load/stores. Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_mips_comm.h | 24 +++ arch/mips/kvm/kvm_mips_commpage.c | 38 ++ arch/mips/kvm/kvm_mips_dyntrans.c | 142

[PATCH 10/20] KVM/MIPS32: Keep track of VM exits and a historgram of COP0 accesses.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_mips_stats.c | 93 ++ arch/mips/kvm/kvm_mips_stats.h | 47 + 2 files changed, 140 insertions(+) create mode 100644 arch/mips/kvm/kvm_mips_stats.c create mode 100644

[PATCH 12/20] KVM/MIPS32: Routines to handle specific traps/exceptions while executing the guest.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_cb.c| 16 ++ arch/mips/kvm/kvm_trap_emul.c | 446 ++ 2 files changed, 462 insertions(+) create mode 100644 arch/mips/kvm/kvm_cb.c create mode 100644 arch/mips/kvm/kvm_trap_emul.c

[PATCH 00/20] KVM for MIPS32 Processors

2012-10-31 Thread Sanjay Lal
, make sure that CONFIG_SMP is disabled for Guest kernels. This will be fixed in a future release. (4) FPU support: Currently KVM/MIPS emulates a 24K CPU without a FPU. This will be fixed in a future release -- Sanjay Lal (20): KVM/MIPS32: Infrastructure/build files. KVM/MIPS32

[PATCH 06/20] KVM/MIPS32: Privileged instruction/target branch emulation

2012-10-31 Thread Sanjay Lal
- The Guest kernel is run in UM and privileged instructions cause a trap. - If the instruction causing the trap is in a branch delay slot, the branch needs to be emulated to figure out the PC @ which the guest will resume execution. Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips

[PATCH 14/20] MIPS: Use the UM bit instead of the CU0 enable bit in the status register to figure out the stack for saving regs.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/include/asm/stackframe.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/stackframe.h b/arch/mips/include/asm/stackframe.h index cb41af5..59c9245 100644 --- a/arch/mips/include/asm

[PATCH 02/20] KVM/MIPS32: Arch specific KVM data structures.

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/include/asm/kvm.h | 58 arch/mips/include/asm/kvm_host.h | 672 +++ 2 files changed, 730 insertions(+) create mode 100644 arch/mips/include/asm/kvm.h create mode 100644 arch/mips/include

[PATCH 09/20] KVM/MIPS32: Release notes and KVM module Makefile

2012-10-31 Thread Sanjay Lal
Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/00README.txt | 31 +++ arch/mips/kvm/Makefile | 13 + 2 files changed, 44 insertions(+) create mode 100644 arch/mips/kvm/00README.txt create mode 100644 arch/mips/kvm/Makefile diff --git

<    1   2