WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Kevin O'Connor" <kevin@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: [SeaBIOS] Ideas for PV on SeaBIOS
From: Stefan Hajnoczi <stefanha@xxxxxxxxx>
Date: Mon, 23 May 2011 06:24:07 +0100
Cc: Daniel Castro <evil.dani@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, seabios@xxxxxxxxxxx
Delivery-date: Mon, 23 May 2011 03:22:51 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uAaYguYl1RlJcMQo5t5bRWWL8D6jxi3VM14FuHcC9d4=; b=eCjrZSo8a4fQob6LgRlTAB3BGgKPzv2jzcPtrJYvz/qP+LVyyrhpiphRoSMqqteMcB W/+bkqSaZGEAYtIMh0P9zPX/lgKvIcXGP5FwYoINx65jugFOBeD3EznCDt7OcpOlb6aR hsTe9Hm1/v057z82ZTk7YMF4cC7EywTe006aw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Sgzk4j2akvZpIB4Hb2A/oEqvjrfT4+9xkNk3Au15ApW98buqA2Gcw0AUydivfl8Wy1 sYidC2hGdn+oK4Q9b0TQbuePa3Id9KYNQhBJjlC/Ptv9YpabwLzZtB0oeUs0htPc3azl mF6vWQGsb59mgRWwx+UeoLxM1xH5a68syHVFs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110521132948.GA9679@xxxxxxxxxxxxxxxx>
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>
References: <BANLkTikE+98CEbfcW4-M_7ECkiyTmnAMjg@xxxxxxxxxxxxxx> <20110521132948.GA9679@xxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, May 21, 2011 at 2:29 PM, Kevin O'Connor <kevin@xxxxxxxxxxxx> wrote:
> On Thu, May 19, 2011 at 02:33:52PM +0900, Daniel Castro 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?
>
> In the general case, no.
>
> The ACPI spec does define a mechanism for the OS to inform the BIOS
> that it is transitioning from "Legacy state" to "Working state" via an
> SMI.  SeaBIOS does have code for this (see src/smm.c), but it doesn't
> currently do anything interesting.  Unfortunately, this is only
> available for OSs that support ACPI.
>
>> 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.
>
> Is it required to close the channel?  Can opening a new channel
> implicitly close the old channel (I believe this is what the virtio
> stuff does)?

There ought to be a way for the guest to reset the device.  At least
in virtio this can be done and allows an in-use device to be reused,
no matter what state it is in.

Stefan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel