|
| From: | Anthony Liguori |
| Subject: | [Qemu-devel] Re: [PATCH] Support T/t for guest memory sizes |
| Date: | Tue, 14 Sep 2010 09:00:43 -0500 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100826 Lightning/1.0b1 Thunderbird/3.0.7 |
On 09/14/2010 08:37 AM, address@hidden wrote:
From: Jes Sorensen<address@hidden> Signed-off-by: Jes Sorensen<address@hidden>
address@hidden:~/git/qemu$ grep "case 'G': case 'g':" *.c monitor.c: case 'G': case 'g': vl.c: case 'G': case 'g': vl.c: case 'G': case 'g':So there's more locations to fixup. But while you're touching this code, it probably makes sense to add a str_to_bytes() function to cutils.c to make sure we accept things consistently for the future.
Regards, Anthony Liguori
---
vl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/vl.c b/vl.c
index 3f45aa9..0663f2f 100644
--- a/vl.c
+++ b/vl.c
@@ -2176,6 +2176,9 @@ int main(int argc, char **argv, char **envp)
case 'G': case 'g':
value<<= 30;
break;
+ case 'T': case 't':
+ value<<= 40;
+ break;
default:
fprintf(stderr, "qemu: invalid ram size: %s\n", optarg);
exit(1);
| [Prev in Thread] | Current Thread | [Next in Thread] |