From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOTwz-0000Vy-4b for qemu-devel@nongnu.org; Tue, 15 Jun 2010 07:05:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOTwt-00059L-Jm for qemu-devel@nongnu.org; Tue, 15 Jun 2010 07:05:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21388) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOTwt-000599-Ce for qemu-devel@nongnu.org; Tue, 15 Jun 2010 07:04:55 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5FB4sQ8003897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Jun 2010 07:04:54 -0400 From: Jes.Sorensen@redhat.com Date: Tue, 15 Jun 2010 13:04:38 +0200 Message-Id: <1276599879-22749-7-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1276599879-22749-1-git-send-email-Jes.Sorensen@redhat.com> References: <1276599879-22749-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 6/7] Only treat KVM specific cmdline options for KVM enabled builds List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: avi@redhat.com Cc: Jes Sorensen , qemu-devel@nongnu.org From: Jes Sorensen Only treat KVM specific cmdline options for KVM enabled builds. This fixes build breakage for target MIPS etc. Signed-off-by: Jes Sorensen --- vl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 9e9c176..e4a9aa9 100644 --- a/vl.c +++ b/vl.c @@ -3264,6 +3264,7 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_no_kvm: kvm_allowed = 0; break; +#ifdef CONFIG_KVM case QEMU_OPTION_no_kvm_irqchip: { kvm_irqchip = 0; kvm_pit = 0; @@ -3281,6 +3282,7 @@ int main(int argc, char **argv, char **envp) kvm_nested = 1; break; } +#endif #if defined(TARGET_I386) || defined(TARGET_X86_64) || defined(TARGET_IA64) || defined(__linux__) case QEMU_OPTION_pcidevice: if (assigned_devices_index >= MAX_DEV_ASSIGN_CMDLINE) { -- 1.6.6.1