Support T/t for guest memory sizes
PATCH 1/1 Support T/t for guest memory sizes
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>
--- vl.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
vl.c +3 -0
@@ -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 );
Signature · 1 line
1.7.2.2
Quoted 4 lines · On 09/14/2010 08:37 AM, [email protected] wrote:
From: Jes Sorensen<[email protected]>
Signed-off-by Jes Sorensen<[email protected]>
anthony@titi:~/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
Quoted 19 lines
--- vl.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)vl.c +3
-0@@ -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 );
Quoted 6 lines · Anthony Liguori
Quoted 4 lines · On 09/14/2010 08:37 AM, [email protected] wrote:
From: Jes Sorensen<[email protected]>
Signed-off-by Jes Sorensen<[email protected]>
Quoted 8 lines
anthony@titi:~/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 tocutils.cto make sure we accept things consistently for the future.
Fair enough, I'll have a look.
Cheers,
Jes