Skip to content

Commit

Permalink
KVM/MIPS32: Infrastructure/build files.
Browse files Browse the repository at this point in the history
- 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 (0x40100000).
- Add KVM Kconfig file with KVM/MIPS specific options

Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
Cc: kvm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Sanjay Lal authored and Ralf Baechle committed May 8, 2013
1 parent fc0460d commit 2235a54
Show file tree
Hide file tree
Showing 6 changed files with 985 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arch/mips/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ obj- := $(platform-)
obj-y += kernel/
obj-y += mm/
obj-y += math-emu/

ifdef CONFIG_KVM
obj-y += kvm/
endif
18 changes: 18 additions & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ config CPU_MIPS32_R2
select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_HIGHMEM
select HAVE_KVM
help
Choose this option to build a kernel for release 2 or later of the
MIPS32 architecture. Most modern embedded systems with a 32-bit
Expand Down Expand Up @@ -1743,6 +1744,20 @@ config 64BIT

endchoice

config KVM_GUEST
bool "KVM Guest Kernel"
help
Select this option if building a guest kernel for KVM (Trap & Emulate) mode

config KVM_HOST_FREQ
int "KVM Host Processor Frequency (MHz)"
depends on KVM_GUEST
default 500
help
Select this option if building a guest kernel for KVM to skip
RTC emulation when determining guest CPU Frequency. Instead, the guest
processor frequency is automatically derived from the host frequency.

choice
prompt "Kernel page size"
default PAGE_SIZE_4KB
Expand Down Expand Up @@ -2023,6 +2038,7 @@ config SB1_PASS_2_1_WORKAROUNDS
depends on CPU_SB1 && CPU_SB1_PASS_2
default y


config 64BIT_PHYS_ADDR
bool

Expand Down Expand Up @@ -2556,3 +2572,5 @@ source "security/Kconfig"
source "crypto/Kconfig"

source "lib/Kconfig"

source "arch/mips/kvm/Kconfig"
Loading

0 comments on commit 2235a54

Please sign in to comment.