This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: Daniel Castro <evil.dani@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>, <seabios@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Ideas for PV on SeaBIOS
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Thu, 19 May 2011 08:19:17 +0100
Delivery-date: Thu, 19 May 2011 00:20:15 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=KffSvUAT01ZSweGKC+ylEra6hlycnH16vqFm/OE3Lqk=; b=IodcWKIbzzLnCcz1upU9n6+9HeBylfOHppeJ10EbwmlxNgxZPEKslD1HOKESRmnh/M qzVK575ntry59HU2QcMORJwDVDuDc2fnah0x3IbSLp/eOVmgNgqTDrT0yaCwR+ojLWll SkqxO8gdOSLDfbh+lixKr0xZEPsrnO4AlzeGk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=PN40ulfQ2lahZrgkBXGbkCC/bXHxq24sMSmhmAqaNE+uAQbPsd1ZebjZ2DoH5b1TpJ wDFPF1inv16+FH4TB2Vc81mpBr2/sULFrz9R2IKstfhMJukIlF4ugWDoCa72UyKD7u9R ngoVSQEFcGdkdh1yEbljxI7LjkIE3ApBnyvSY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTikE+98CEbfcW4-M_7ECkiyTmnAMjg@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwV9RA1uFEzqzfDAEu1bbNcbxgESg==
Thread-topic: [Xen-devel] Ideas for PV on SeaBIOS
User-agent: Microsoft-Entourage/
On 19/05/2011 06:33, "Daniel Castro" <evil.dani@xxxxxxxxx> 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

Xen-devel mailing list