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

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

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Ideas for PV on SeaBIOS
From: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Date: Sat, 21 May 2011 09:39:06 +0200
Cc: Daniel Castro <evil.dani@xxxxxxxxx>, Keir Fraser <keir.xen@xxxxxxxxx>, "seabios@xxxxxxxxxxx" <seabios@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 21 May 2011 00:39:57 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=2uGlkeeqLgWjuU89bZTrvtPMmOJsxDVHlfErxv0Znv0=; b=By7XrjPFbI7MHkOaDuKSK6jrTR4ZTAdLxtQbSTQjdDBT4Vmf37/fFUwhLoTXQkn+nD tEHKIAJ33f+ywSfPfmRbBkfeed72tqekhs5W/d7LRLbrF6lQNbjRwRjxj1HA6Dp6eSL9 fbCJ1Oi4Gt4Zl1wUvs9MgxLEE9rZZPsp2jUOI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=PEvurMbQaAKywbByIjkrW5lKlhtnBnO+hCfG6/EuJqUzbUTVdUuR/Z04f028WoXW9C Ha7DDAQAca6WWaTRwhty0D5H33mNH0yADxIXI38vBtQUcIcmY40hHJetVV8gy1HsGmRM 54tiFX5j9H4HyfQtXncq2bd3u2cZdMCmZ/2cQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1305792117.20907.157.camel@xxxxxxxxxxxxxxxxxxxxxx>
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: <C9FA8305.1A924%keir.xen@xxxxxxxxx> <1305792117.20907.157.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10
On 05/19/2011 10:01 AM, Ian Campbell wrote:
We had a bit of a brainstorm yesterday and someone suggested that
perhaps qemu could deal with it when it sees the I/O ports for the
emulated device unplug get hit.

You could imagine doing the unplug even under an OS that uses INT 13h. PV drivers also aren't forced to do the unplug: RHEL5 guests (up to 5.7 at least) use blacklisting, and the Red Hat PV drivers for Windows use a filter driver because I never got the unplug to work.

If SeaBIOS is guaranteed to never reinitialize the callback via, trapping writes to HVM_PARAM_CALLBACK_IRQ with an SMI-like effect sounds like the way to go, as everybody probably agrees at this point. You could also initate the shutdown from dom0, which you could easily do via ACPI even. ;)

STORE_PFN and STORE_EVTCHN parameters are usually written only by dom0 (in fact perhaps setting them could be made a privileged operation), which makes them less ideal.

Paolo

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