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/
Home Products Support Community News


[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

           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


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: 
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Xen-bugs mailing list

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