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

xen-devel

[Top] [All Lists]

[Xen-devel] bug using bootloader + patch

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] bug using bootloader + patch
From: "Eric Einhorn" <lists@xxxxxxxxxxx>
Date: 2007年3月13日 08:22:48 -0400 (EDT)
Delivery-date: 2007年3月13日 05:17:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to:
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References:
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.8-4.el4.centos
Hi -devel,
I ran into an issue with the pyhton tools when using the bootloader option
in 3.0.4. 4 out of 5 times xen would fail when trying to launch pygrub. 
I tracked the cause down to XendDomainInfo.py's use of all_devices_sxpr()
to find a valid block device. Devices are stored inside a hash, which,
will come back in an arbitrary order when you iterate it's values. In my
case, 4 out 5 times it would return my swap vbd first and try to launch
pygrub on it.
Instead, I wanted to use get_vbs() to return the block devices since it
should return a list in the order they were added with device_add() (from
XendConfig.py). I then found that in _sxp_to_api() the vbd_refs, as well
as vif_refs and vtpm_refs are recreated by itterating over the device
hash. So it seems all that work device_add did to make a neat order list
was tossed out.
I modified _sxp_to_api to copy the original device _refs lists instead of
iterating to preserve the original order the devices were created. Also,
as mentioned earlier, I modified _configureBootloader to use get_vbds() so
it will have direct access to the ref list. I am able to boot with a
bootload everytime now and have had no errors.
Attached is a patch for the changes I made against 3.0.4_1 if anyone is
intersted. Maybe it'll help someone else.
Thanks.
- Eric

Attachment: xen-device_order.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] 3w-xxxx module problems with Xen , Keir Fraser
Next by Date: Re: [Xen-devel] [PATCH] 14287 followup - console , Ben Thomas
Previous by Thread: [Xen-devel] ptep_set_access_flags() using UVMF_MULTI? , Jan Beulich
Next by Thread: Re: [Xen-devel] bug using bootloader + patch , Ewan Mellor
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /