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] FreeBSD boot loader on VT-x based Xen system

To: Andy Clayton <xen.nospam@xxxxxxxxxx>
Subject: Re: [Xen-devel] FreeBSD boot loader on VT-x based Xen system
From: Andy Clayton <xen.nospam@xxxxxxxxxx>
Date: Fri, 02 Jun 2006 12:29:49 -0500
Cc: Randy Thelen <rthelen@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 02 Jun 2006 10:30:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44807255.6070508@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/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: <4A8FDBBD-4AEE-4655-80C5-851E0FB31FDE@xxxxxxxxxx> <44807255.6070508@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)
Andy Clayton wrote:
Randy Thelen wrote:
Folks --

I'm trying to run FreeBSD 6.0 on a VT-x based Xen system. I'm experiencing a problem where the boot loader is crashing before the FreeBSD kernel (proper) is loaded.


I don't think I can help you much as far as fixing, but earlier I opened a bug report in Bugzilla regarding this issue at http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=622 I will try to help any way I can but I have next to no experience with assembly. Time to learn, perhaps.

Good luck for now and ask if you would like some help (with something I can actually help with...),
Andy Clayton

Hey there is a patch that was mailed to -devel by Kevin Tronkowski today called "[Xen-devel] [PATCH] Extensions to vmxassist to handle additional mode switch cases". It sounds promising.
If I may quote:

Attached is a patch which extends vmxassist to handle two cases related to mode switching found while experimenting with different boot loaders.

The first case is use of the JMP instruction with memory location operands to complete a switch to protected mode. This patch adds emulation for this form of the JMP instruction to vmxassist.

The second case is where boot loader code does not save/restore a non-zero SS register across a protected mode traversal. Zeroing the SS register in vmxassist results in all sorts of problems in the domU after returning back to real mode. This patch stores segment register values before entering protected mode and correctly restores the old values (instead of an incorrect zero value) when reentering real mode. The first case is what I was looking at. I'll see if I can check this out shortly...

Andy Clayton

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

<Prev in Thread] Current Thread [Next in Thread>