From patchwork Mon Jul 2 18:06:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 168624 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EFE672C009C for ; Tue, 3 Jul 2012 04:06:46 +1000 (EST) Received: from localhost ([::1]:44921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sll1I-0001i4-LY for incoming@patchwork.ozlabs.org; Mon, 02 Jul 2012 14:06:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sll0s-0001GS-Tt for qemu-devel@nongnu.org; Mon, 02 Jul 2012 14:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sll0q-0001v2-C3 for qemu-devel@nongnu.org; Mon, 02 Jul 2012 14:06:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sll0q-0001uG-4e for qemu-devel@nongnu.org; Mon, 02 Jul 2012 14:06:16 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q62I5nJw023760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Jul 2012 14:05:49 -0400 Received: from blackpad.lan.raisama.net (vpn1-4-141.gru2.redhat.com [10.97.4.141]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q62I5lpP006759; Mon, 2 Jul 2012 14:05:48 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id A58DD20058F; Mon, 2 Jul 2012 15:06:40 -0300 (BRT) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Mon, 2 Jul 2012 15:06:35 -0300 Message-Id: <1341252398-12268-4-git-send-email-ehabkost@redhat.com> In-Reply-To: <1341252398-12268-1-git-send-email-ehabkost@redhat.com> References: <1341252398-12268-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Bill Gray , Andrea Arcangeli , Andre Przywara , kvm@vger.kernel.org, Bharata B Rao Subject: [Qemu-devel] [PATCH 3/6] vl.c: change mem_prealloc to bool (v2) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Changes v1 -> v2: - Do not initialize variable to false, to make checkpatch.pl happy Signed-off-by: Eduardo Habkost --- cpu-all.h | 2 +- vl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 9dc249a..2beed5a 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -490,7 +490,7 @@ typedef struct RAMList { extern RAMList ram_list; extern const char *mem_path; -extern int mem_prealloc; +extern bool mem_prealloc; /* Flags stored in the low bits of the TLB virtual address. These are defined so that fast path ram access is all zeros. */ diff --git a/vl.c b/vl.c index 1329c30..5c80189 100644 --- a/vl.c +++ b/vl.c @@ -178,7 +178,7 @@ const char* keyboard_layout = NULL; ram_addr_t ram_size; const char *mem_path = NULL; #ifdef MAP_POPULATE -int mem_prealloc = 0; /* force preallocation of physical target memory */ +bool mem_prealloc; /* force preallocation of physical target memory */ #endif int nb_nics; NICInfo nd_table[MAX_NICS]; @@ -2673,7 +2673,7 @@ int main(int argc, char **argv, char **envp) break; #ifdef MAP_POPULATE case QEMU_OPTION_mem_prealloc: - mem_prealloc = 1; + mem_prealloc = true; break; #endif case QEMU_OPTION_d: