All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: Daniel Castro <evil.dani@gmail.com>,
	xen-devel@lists.xensource.com, seabios@seabios.org
Subject: Re: Ideas for PV on SeaBIOS
Date: Thu, 19 May 2011 08:19:17 +0100	[thread overview]
Message-ID: <C9FA8305.1A924%keir.xen@gmail.com> (raw)
In-Reply-To: <BANLkTikE+98CEbfcW4-M_7ECkiyTmnAMjg@mail.gmail.com>

On 19/05/2011 06:33, "Daniel Castro" <evil.dani@gmail.com> wrote:

> Good Day,
> 
> In order to give PV Drivers to SeaBIOS we will need to solve a few
> problems, one is the following:
> Does a booting kernel informs the BIOS that it will leave real mode
> and not use it again? When the booting kernel uses CPU real mode for
> the last time, how can we (Xen or SeaBIOS) know that real mode will no
> longer be used, and hence BIOS calls will not be issued?
> We want upon last real mode usage to leave all Xen PV information in a
> clean state, this means, closing the channel and ring between the
> newly created domain and the host system.
> 
> If you have any ideas please let me know.

There's no easy way. Best effort might be to hook off the guest OS setting
up its PV drivers. One of the first steps of that would be getting a
hypercall transfer page, and also setting up event-channel delivery. It may
be necessary for the hypervisor to give the BIOS some help by delivering a
pre-registered callback on one of those events, to clean up. This is made
uglier by the fact you don't know what execution mode the OS might be in
when it triggers the callback. Needs a bit more thought.

 -- Keir

> Daniel

  reply	other threads:[~2011-05-19  7:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19  5:33 Ideas for PV on SeaBIOS Daniel Castro
2011-05-19  7:19 ` Keir Fraser [this message]
2011-05-19  8:01   ` [Xen-devel] " Ian Campbell
2011-05-21  7:39     ` Paolo Bonzini
2011-05-21  8:44       ` James Harper
2011-05-23  9:23         ` [Xen-devel] " Ian Campbell
2011-05-23 10:20           ` James Harper
2011-05-23 10:23             ` Ian Campbell
2011-05-19  7:44 ` James Harper
2011-05-19  8:08 ` Jan Beulich
2011-05-19  8:17   ` Juergen Gross
2011-05-19  8:20   ` Tim Deegan
2011-05-19  9:36     ` Ian Campbell
2011-05-19 15:02       ` Keir Fraser
2011-05-19 17:00       ` Ideas for PV on SeaBIOS - flush/barrier in QEMU Konrad Rzeszutek Wilk
2011-05-19  9:32   ` Ideas for PV on SeaBIOS James Harper
2011-05-21 13:38   ` [SeaBIOS] " Kevin O'Connor
2011-05-21 13:29 ` Kevin O'Connor
2011-05-23  5:24   ` Stefan Hajnoczi
2011-05-23  9:50     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C9FA8305.1A924%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=evil.dani@gmail.com \
    --cc=seabios@seabios.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.