[SeaBIOS] [Xen-devel] Ideas for PV on SeaBIOS

Tim Deegan Tim.Deegan at citrix.com
Thu May 19 10:20:47 CEST 2011


At 09:08 +0100 on 19 May (1305796117), Jan Beulich wrote:
> How can you be certain an OS won't switch back to real mode even
> after an extended period of up-time? Or that such switching back
> would affect you (could be calling e.g. the video or PCI BIOS
> functions only).

You can't, but you could always try to re-establish PV connections if
the guest starts making INT13h call again.  In any case the existing
BIOS has this problem if the PV drivers have turned off the emulated
devices.

As for how you tidy up cleanly, I can't think of anything better than a
sort of virtual SMM, where you register an area of code to be run in a
known sane environment and have Xen trigger it based on, e.g. the
disable-my-devices ioport write.   It's pretty ugly but at least it'd be
fairly self-contained compared to having Xen or qemu try to tear down
grant-table entries &c. 

Tim.

-- 
Tim Deegan <Tim.Deegan at citrix.com>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)



More information about the SeaBIOS mailing list