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: 3.0.4 and 3.1-rc4 based dom0 won't boot with acpi=off

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: [Xen-devel] Re: 3.0.4 and 3.1-rc4 based dom0 won't boot with acpi=off
From: Sven Köhler <sven.koehler@xxxxxxxxx>
Date: Sun, 18 Sep 2011 21:27:03 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 18 Sep 2011 12:25:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=0vO0FsQmnjw2SuD5Hm085jwf4hM6jjUA3BGpt0sbYsE=; b=NYtfRQn+Z45efuVQCQgA9UvhteVRzJITqc0fx4iGY6dxgONlWjWEfmqdudilM6KEFy ZOMMP72nzz7vr9Khuo3zyXOklhIdkbHiepTwUS0COvQsDoK5pVmwD3r6whHry2urAOvU bCEqB9Hv79DAEnV/lTenOUQNar+bh8oXz4H18=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110912150606.GC15778@xxxxxxxxxx>
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: <j4gp1v$oog$1@xxxxxxxxxxxxxxx> <20110911002807.GA9989@xxxxxxxxxx> <4E6C0473.8090905@xxxxxxxxx> <20110912150606.GC15778@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110918 Thunderbird/6.0
Am 12.09.2011 17:06, schrieb Konrad Rzeszutek Wilk:
> On Sun, Sep 11, 2011 at 02:44:35AM +0200, Sven Köhler wrote:
>> Am 11.09.2011 02:28, schrieb Konrad Rzeszutek Wilk:
>>> You might want to try some parameters on the Xen line to alter how
>>> it is suppose to reboot.
>>>
>>> /*
>>>  * reboot=b[ios] | t[riple] | k[bd] | n[o] [, [w]arm | [c]old]
>>
>> Thanks for the list.
>> I guess, both reboot=bios and reboot=b is accepted?
>> BTW: "no" is missing in the list below. acpi is missing in the list
>> above. And actually what's the source for list?
> 
> Xen hypervisor source. I just did a quick search for 'reboot='

I checked the sources of Linux 3.1rc4 and he xen hypervisor (4.1.1).
The code for reboot is almost the same. One tiny difference is that the
code of xen sets the reset flag of the kbd controller 100 times, while
Linux does that only 10 times:

Xen:
>             for ( i = 0; i < 100; i++ )
>             {
>                 kb_wait();
>                 udelay(50);
>                 outb(0xfe,0x64); /* pulse reset low */
>                 udelay(50);
>             }

Linux:
>                         for (i = 0; i < 10; i++) {
>                                 kb_wait();
>                                 udelay(50);
>                                 outb(0xfe, 0x64); /* pulse reset low */
>                                 udelay(50);
>                         }


Summing up, both Linux 3.1 and Xen 4.1 both do the following sequence by
default:

ACPI, KBD, ACPI, KBD, TRIPLE, KBD, TRIPLE, KBD, ...

While each KBD stands for 10 (Linux) or 100 (Xen) times setting the kbd
controller reset flag. I wonder why Xen does the kbd controller reset a
hundred times. Maybe it's a left over from xen 3.x?

Would you mind changing it from 100 to 10?


Now taking a look at Xen 3.4.2, the default reboot sequence is a bit
different. It's

ACPI, KBD, ACPI, KBD, ACPI, KBD, ACPI, KBD, ....

No triple fault reset attempts.



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