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] Re: [Xen-users] boot a existing windows in hvm domain

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [Xen-users] boot a existing windows in hvm domain
From: "Brady Chen" <chenchp@xxxxxxxxx>
Date: Tue, 7 Aug 2007 15:58:50 +0800
Cc: tygrawy@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, Z24 <z24@xxxxxxx>, AL.LINUX@xxxxxxxxxxx
Delivery-date: Tue, 07 Aug 2007 00:56:54 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=KlgN9EWHBxMhgFHmU5LjPxeKycGDlydXLq3/JXY5fPiukPfX+FaRNK6nKIVONOa4iksn/TG6baIUEhT3yoCjWv7PKl3Xy9OPm0dQNoCgru9A1hjF6qf/oh2H5P/8RrYjexBNouHs4oajXGaz3K3zGJt9YfXzQcj+k+A3UErYYb4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Qq8+eyQrbCxarnNvgNoSP5qRAVjIIbL4ao3Ay2P1BGewTe9HVstcQglOoI141g797e5qVEM0NPS1zTYLN6V+GdjbWYoRU8enYyy3OVPFjJvOnL9P3e/hnEihUm8iL1TWoJHq/qJzm+HFcRbz0zwtbpAKUBPh3X3NcZiY1mp7HDk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2DDD072.C14E%Keir.Fraser@xxxxxxxxxxxx>
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: <8fec1fce0708062306v39c91bb5v3b12fd0c3069586b@xxxxxxxxxxxxxx> <C2DDD072.C14E%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Keir,
thank you very much.

now I'm using the un-stable version to build hvmloader (only hvmloader
rebuild, xen and doman0 kernel is not touched), the same problem.

(XEN) HVM1: Trap (0x6) while in real mode
(XEN) HVM1: eax         D00 ecx           0 edx         71F ebx         71E
(XEN) HVM1: esp       D74D4 ebp       D7520 esi           0 edi         D00
(XEN) HVM1: trapno        6 errno         0
(XEN) HVM1: eip       D0800 cs           10 eflags    13046
(XEN) HVM1: uesp      D75B4 uss           2
(XEN) HVM1: ves       D4BC8 vds       D4D26 vfs       D07FE vgs       D75B4
(XEN) HVM1: cr0       50032 cr2           0 cr3           0 cr4         651
(XEN) HVM1:
(XEN) HVM1: Halt called from %eip 0xD037C

here is some snip from objdump, and i attach the whole objdump as the
attachment.

000d0360 <common_trap>:
   d0360:       60                      pusha
   d0361:       b8 18 00 00 00          mov    $0x18,%eax
   d0366:       8e d8                   mov    %eax,%ds
   d0368:       8e c0                   mov    %eax,%es
   d036a:       8e e0                   mov    %eax,%fs
   d036c:       8e e8                   mov    %eax,%gs
   d036e:       89 e5                   mov    %esp,%ebp
   d0370:       55                      push   %ebp
   d0371:       ff 75 24                pushl  0x24(%ebp)
   d0374:       ff 75 20                pushl  0x20(%ebp)
   d0377:       e8 d4 2a 00 00          call   d2e50 <trap>
   d037c:       83 c4 0c                add    $0xc,%esp

000d037f <trap_return>:
   d037f:       61                      popa
   d0380:       83 c4 08                add    $0x8,%esp
   d0383:       cf                      iret
   d0384:       8d b6 00 00 00 00       lea    0x0(%esi),%esi
   d038a:       8d bf 00 00 00 00       lea    0x0(%edi),%edi





On 8/7/07, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
> Try downloading http://xenbits.xensource.com/staging/xen-unstable.hg, and
> build inside tools/firmware. Then use tools/firmware/hvmloader/hvmloader as
> your HVM 'kernel' (what you specify as the 'kernel' in your HVM config
> file).
>
> If that doesn't help, then track down the crashing %cs:%eip inside vmxassist
> (objdump -d tools/firmware/vmxassist/vmxassist) and we'll see if that shows
> up anything interesting.
>
>  -- Keir
>
> On 7/8/07 07:06, "Brady Chen" <chenchp@xxxxxxxxx> wrote:
>
> > Hi Keir,
> >
> > Thank you for your reply.
> > I'm using official released version 3.1.0.
> > actually I could boot the linux (/dev/sda2) in xen hvm guest.
> > but failed to boot window (/dev/sda1).
> >
> > the windows in sda1 is not installed in xen hvm guest, it's installed
> > in the native environment. I'm trying to boot the windows as xen
> > guest. you know, it's wasting of time to reboot and change to windows.
> >
> >
> > On 8/7/07, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
> >> Could be something to do with virtual hard disk geometry. Are you running
> >> latest xen-unstable? Was your OS installed with latest xen-unstable, or an
> >> older version?
> >>
> >>  -- KEir
> >>
> >>
> >> On 7/8/07 06:48, "Brady Chen" <chenchp@xxxxxxxxx> wrote:
> >>
> >>> cc to xen-devel,
> >>>
> >>> Hi all,
> >>> someone saw this kind of error before?
> >>> it's a Trap 6 error when start the windows. Does it mean that some
> >>> opcodes in real mode are not be simulated? How can I get the
> >>> instruction which is not be simulated?
> >>>
> >>> I tried to fetch8(regs) in function trap of
> >>> xen-3.1.0-src/tools/firmware/vmxassist/vm86.c, but it cause more
> >>> traps, and the hvm is reset immediately.
> >>>
> >>> thank you in advance
> >>>
> >>> On 8/7/07, Brady Chen <chenchp@xxxxxxxxx> wrote:
> >>>> Hi Z24, AL,
> >>>> ccing tygrawy@gazeta,pl, for I found he got the same issue.
> >>>>
> >>>> I tried in ThinkPad T60,
> >>>> /dev/sda1 -- windows
> >>>> /dev/sda2 -- Linux + Xen 3.1.0
> >>>>
> >>>> in xen guest, the whole sda is mapped to virtual hda.
> >>>> disk = [ 'phy:/dev/sda, hda, w' ]
> >>>>
> >>>> I could see the grub menu in xen guest, and could boot in to the linux
> >>>> (you know, it's re-enter into the linux), but when I select windows
> >>>> from grub menu, it will hang after print "chainloader +1"
> >>>> the xen dmesg shows:
> >>>> (XEN) HVM1: Trap (0x6) while in real mode
> >>>> (XEN) HVM1: eax         D00 ecx           0 edx         71F ebx         
> >>>> 71E
> >>>> (XEN) HVM1: esp       D7384 ebp       D73D0 esi       D7364 edi         
> >>>> D00
> >>>> (XEN) HVM1: trapno        6 errno         0
> >>>> (XEN) HVM1: eip       D0800 cs           10 eflags    13046
> >>>> (XEN) HVM1: uesp      D7474 uss           2
> >>>> (XEN) HVM1: ves       D4AB8 vds       D4C1D vfs       D07FE vgs       
> >>>> D7474
> >>>> (XEN) HVM1: cr0       50032 cr2           0 cr3           0 cr4         
> >>>> 651
> >>>> (XEN) HVM1:
> >>>> (XEN) HVM1: Halt called from %eip 0xD037
> >>>>
> >>>> tygrawy:
> >>>> I found you have the same issue months ago, have you find out the
> >>>> reason? Thank you very much.
> >>>>
> >>>> http://lists.xensource.com/archives/html/xen-users/2007-07/msg00521.html
> >>>>
> >>>> On 8/2/07, Brady Chen <chenchp@xxxxxxxxx> wrote:
> >>>>> On 8/2/07, Z24 <z24@xxxxxxx> wrote:
> >>>>>> On Thu, 2 Aug 2007 17:47:59 +0800, you wrote:
> >>>>>>
> >>>>>>> thank you all,
> >>>>>>> looks like it's possible. it's great!
> >>>>>>>
> >>>>>>> Z24,
> >>>>>>> do you get the hardware issue Archie said, that's my concern too.
> >>>>>>> you know, windows may be bluescreen if the hardware changes.
> >>>>>>
> >>>>>> Before booting the Windows domU I copied the current Windows HW
> >>>>>> Profile to a new HW Profile, then when I boot the domU I choose the
> >>>>>> new HW profile.
> >>>>>> The first time I booted the domU, Windows took some minutes more than
> >>>>>> usual to load, I suppose it was setting automatically the hardware
> >>>>>> drivers; the next time it booted only a little slower than when I boot
> >>>>>> it natively (due to virtualization).
> >>>>>>
> >>>>> thanks, I will have a try.
> >>>>>
> >>>>>>> and for your case, i think you could install another grub in the 
> >>>>>>> windows
> >>>>>>> disk
> >>>>>>
> >>>>>> What do you mean?
> >>>>>> Xen VM configuration with 'phy:/dev/hda,ioemu:hda,w' only (hda is
> >>>>>> Windows disk) and grub-install on /dev/hda without mapping?
> >>>>> yup, install grub on /dev/hda, it will not be used when you not using
> >>>>> xen (i mean when you reboot your PC, and choose windows from the grub
> >>>>> menu). but when you use xen to boot /dev/hda, the grub on /dev/hda
> >>>>> could be used to load the windows. Don't know if it really works,
> >>>>> don't have a try now.
> >>>>>>
> >>>>>> --
> >>>>>> Z24
> >>>>>> http://www.mycomputingart.com/
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>> _______________________________________________
> >>> Xen-devel mailing list
> >>> Xen-devel@xxxxxxxxxxxxxxxxxxx
> >>> http://lists.xensource.com/xen-devel
> >>
> >>
> >>
>
>
>

Attachment: vmxassist.objdump
Description: Binary data

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