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-bugs

[Xen-bugs] [Bug 1054] New: Current linux-2.6 git snapshots do not boot u

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1054] New: Current linux-2.6 git snapshots do not boot under HVM (possible bug in lgdt emulation)
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Tue, 4 Sep 2007 00:44:54 -0700
Delivery-date: Wed, 05 Sep 2007 08:18:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1054

           Summary: Current linux-2.6 git snapshots do not boot under HVM
                    (possible bug in lgdt emulation)
           Product: Xen
           Version: 3.0.3
          Platform: Unspecified
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HVM
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: lk@xxxxxxx


Hi,

I tried to boot current linux2.6-git snapshots under HVM. These contain a
complete rewrite of the 16-bit startup code which does not work nicely with
XEN. I was able to work around this by patching linux kernel code but this is
probably a bug in XEN.

As far as I can tell the problem is with the emulation of lgdt in real mode.
The new setup code currently stores the 48-bit data structure that is passed to
lgdt on the stack where it is no longer availiable at the time the CS register
is loaded and the actual switch to protected mode happens.

As opposed to the actual descriptor table this should not be a problem because
that information should be loaded into the CPU at the time the lgdt instruction
is executed.

I made this data structure static and the boot went smoothly.

For full logs and more information please refer to the corresponding thread on
the linux kernel mailing list, especially those message:

Original report: http://marc.info/?l=linux-kernel&m=118848403809462&w=2
XEN-Logs and config: http://marc.info/?l=linux-kernel&m=118884447330490&w=2
Linux kernel patch: http://marc.info/?l=linux-kernel&m=118884447330490&w=2

   regards  Christian


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 1054] New: Current linux-2.6 git snapshots do not boot under HVM (possible bug in lgdt emulation), bugzilla-daemon <=