qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] set_memory_options: remove code that make no sense
@ 2015-11-03 12:30 Cao jin
  2015-11-03 12:40 ` Michael Tokarev
  0 siblings, 1 reply; 3+ messages in thread
From: Cao jin @ 2015-11-03 12:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, pbonzini, marcel

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
 vl.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/vl.c b/vl.c
index f5f7c3f..13f2c8b 100644
--- a/vl.c
+++ b/vl.c
@@ -2860,11 +2860,6 @@ static void set_memory_options(uint64_t *ram_slots, ram_addr_t *maxram_size,
     sz = 0;
     mem_str = qemu_opt_get(opts, "size");
     if (mem_str) {
-        if (!*mem_str) {
-            error_report("missing 'size' option value");
-            exit(EXIT_FAILURE);
-        }
-
         sz = qemu_opt_get_size(opts, "size", ram_size);
 
         /* Fix up legacy suffix-less format */
@@ -2886,10 +2881,6 @@ static void set_memory_options(uint64_t *ram_slots, ram_addr_t *maxram_size,
 
     sz = QEMU_ALIGN_UP(sz, 8192);
     ram_size = sz;
-    if (ram_size != sz) {
-        error_report("ram size too large");
-        exit(EXIT_FAILURE);
-    }
 
     /* store value for the future use */
     qemu_opt_set_number(opts, "size", ram_size, &error_abort);
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-04  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 12:30 [Qemu-devel] [PATCH] set_memory_options: remove code that make no sense Cao jin
2015-11-03 12:40 ` Michael Tokarev
2015-11-04  8:34   ` Cao jin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).