From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 01/20] KVM/MIPS32: Infrastructure/build files. Date: Thu, 01 Nov 2012 16:54:38 +0200 Message-ID: <50928D2E.9090409@redhat.com> References: <6A87701A-F946-489D-AFC3-3BC8B7723CE0@kymasys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-mips@linux-mips.org To: Sanjay Lal Return-path: Received: from mx1.redhat.com ([209.132.183.28]:25939 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756812Ab2KAOyp (ORCPT ); Thu, 1 Nov 2012 10:54:45 -0400 In-Reply-To: <6A87701A-F946-489D-AFC3-3BC8B7723CE0@kymasys.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/31/2012 05:17 PM, Sanjay Lal wrote: > - 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 > > index dba9390..8ac1aa1 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -1284,6 +1284,8 @@ 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 > @@ -1789,6 +1791,21 @@ config 64BIT > > endchoice > > +config KVM_GUEST > + bool "KVM Guest Kernel" > + depends on HAVE_KVM > + help > + Select this option if building a guest kernel for KVM (Trap & Emulate) mode HAVE_KVM indicates that the host has virtualization support for KVM. It says nothing about the guest. So KVM_GUEST need not depend on HAVE_KVM. > + > +config KVM_HOST_FREQ > + int "KVM Host Processor Frequency (MHz)" > + depends on HAVE_KVM > + 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. > + And this should depend on KVM_GUEST (or be avoided completely, why not use it always?) -- error compiling committee.c: too many arguments to function