qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/6] vl.c: change mem_prealloc to bool (v2)


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH 3/6] vl.c: change mem_prealloc to bool (v2)
Date: Mon, 2 Jul 2012 15:06:35 -0300

Changes v1 -> v2:
 - Do not initialize variable to false, to make checkpatch.pl happy

Signed-off-by: Eduardo Habkost <address@hidden>
---
 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:
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]