qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] extensions to the -m memory option


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC] extensions to the -m memory option
Date: Mon, 01 Jun 2015 11:41:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0


On 01/06/2015 11:23, Liviu Ionescu wrote:
> however, the desired behaviour is
> 
> - the -pflash specifies a file path, no need for size
> - when emulation starts, if -pflash is used and the file exists, its content 
> is loaded as initial flash content
> - when emulation ends, if -pflash is used, the flash content is saved to this 
> file
> - if the gdb server is used, it must allow for some parts of the flash to be 
> overwritten by GDB, for example the bootloader is located either in low or 
> high memory, and the rest of the flash is reprogrammed by the debugger with 
> each session, the bootloader (and the rest of the flash) remaining persistent 
> between sessions.
> 
> does the existing -pflash implementation matches this expected use case? 

Yes, entirely.  Saving flash content can be avoided by using "-drive
if=pflash,snapshot=on,file=...".

So it looks like you have a use for both -kernel (ELF) and -pflash (raw
image).

Paolo



reply via email to

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