<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 11, 2015, at 12:00 PM, <a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">On 10/09/2015 8:58 AM, Maximilian H. wrote:<br><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I was looking into what parts would need change to save and restore the<br></blockquote><blockquote type="cite">nvram content for the qemu-system-sparc vm between boots.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I see the code in hw/timer/m48t59.c that implements the nvram.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So some questions arise, and before I spend too much time poking around<br></blockquote><blockquote type="cite">the still unknown code, I'd thought I ask first.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1. Command line processing starts in vl.c in the main fct there ? Can I<br></blockquote><blockquote type="cite">add a command line argument there, say "-sparcnvram" ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2. In hw/timer/m48t59.c has no functionality that I see from having a<br></blockquote><blockquote type="cite">look at it (not in depth) to save or restore the nvram's contents for<br></blockquote><blockquote type="cite">sparc. Is there a general facility that qemu has that provides such a<br></blockquote><blockquote type="cite">functionality - i.e. is there a general qemu save and restore framework ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">3. Is there an example somebody could point me to that implements<br></blockquote><blockquote type="cite">something similar ? Imitation is the sincerest of flattery ....<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">4. All the alarm and watchdog functionality that the m48t08 provides, is<br></blockquote><blockquote type="cite">that used on sparc too ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">5. Besides what is in<br></blockquote><blockquote type="cite"><a href="http://wiki.qemu.org/Documentation/GettingStartedDevelopers">http://wiki.qemu.org/Documentation/GettingStartedDevelopers</a>, is there<br></blockquote><blockquote type="cite">some qemu coding documentation to make it faster for somebody unfamilar<br></blockquote><blockquote type="cite">with qemu's code like me to be able to implement something ? I'd like to<br></blockquote><blockquote type="cite">spend a few evenings on this, produce a patch and move on.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite">BR<br></blockquote><blockquote type="cite">Max.<br></blockquote></span><br class="Apple-interchange-newline"></blockquote></div><div><br></div>This sounds like a good idea. Having OpenBIOS settings actually be saved between boots<div>would make things more real. <br><div><br></div><div>Mark, do you think it is possible for a QEMU command line option to actually load the</div></div><div>saved OpenBIOS settings from a file and restore them into memory? I'm thinking something</div><div>along the lines of -prom-memory <file name>. </div><div><br></div><div>Max, there is a project that you should probably look at called OpenBIOS. It implements</div><div>an implementation of Open Firmware. Here is where more info can be found: <a href="http://www.openfirmware.info/Welcome_to_OpenBIOS">http://www.openfirmware.info/Welcome_to_OpenBIOS</a>. If you do want to implement this feature,</div><div>it would help to know how the BIOS is implemented. </div><div><br></div><div><br></div></body></html>