On 2015-04-10 13:12:09, Peter Jones wrote: > On Fri, Apr 10, 2015 at 11:56:12AM -0700, Jordan Justen wrote: > > What is preventing a real capsule from working with OVMF? > > Well, nothing really; the need and desire for that just happens to not > have been my motivation here.
I guess the motivation is to provide the interface for the OS side, regardless of if it is realistic on the firmware side? I think we'd be better served by supporting capsule more reaslistically in OVMF. For example, I'm not sure that MdeModulePkg/Universal/FakeEsrtDxe is good for EDK II. > Brainstorming that a bit, if you want to replace the firmware actually > being run by the virtual machine there are various minutiae about the > usage model that do need answers - for example, do you replace the file > or create a new one so other VM instances don't get updated? I suspect > the answer is the latter, at least usually, which means more complex > communication between OVMF and the VM hypervisor or whatnot. I don't think supporting capsules immediately requires firmware update support. (Although, showing the world a sample platform that actually supports firmware upgrades from Linux seems like a good goal. :) Executing code in the capsule does seem like something we should do though. For example, being able to support a capsule with a simple executable that prints hello world, and then resets the system after 5 seconds. If we have that level of functionality, then having another capsule payload that interacts with a capsule test framework seems easy as well. > > The fake part is that you are storing the entire payload directly in > > variables? > > Yes, but also that it's not actually using the updated "firmware" in any > capacity like that of normal firmware - the payload isn't /executed/. > So in that since there's no danger of "bricking" the VM it's running in > if something goes wrong. (Which doesn't mean I don't have any bugs > where malformatting it can cause bad behavior, of course.) Yeah, I can see the concern here. It shouldn't be enabled by default anytime soon. At least not in release builds. -Jordan ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
