From: Simon Kagstrom <simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Etherboot problems
Date: Thu, 09 Nov 2006 19:11:11 +0100 [thread overview]
Message-ID: <873b8sij7k.wl%simon.kagstrom@bth.se> (raw)
In-Reply-To: <45536A11.6050808-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
At Thu, 09 Nov 2006 19:49:05 +0200,
Avi Kivity wrote:
>
> Avi Kivity wrote:
> >> 00000e75 660fb7ec movzx ebp, sp
> >> 00000e79 6601c5 add ebp, eax
> >> 00000e7c 660f01975200 lgdt single ptr [bx+0x52]
> >> 00000e82 0f20c0 mov eax, cr0
> >> 00000e85 0c01 or al, 0x1
> >> 00000e87 0f22c0 mov cr0, eax
> >> 00000e8a 66ffaf6a00 jmp far ptr [bx+0x6a]
> >> ...
> > I've generated the .iso (nice interface) and will try to reproduce it.
> >
> > Thanks for testing -- we really need those wierd guests to test the
> > corner cases.
>
> Very likely this is due to VT's inability to virtualize real mode
> correctly. Is anyone in the mood to extend x86_emulate.c to support
> real mode?
I forgot to add that I've tested it in Xen as well, and it works
there. Maybe someone has an AMD at hand to test it on?
But I also suspected that this was the reason why it failed. I ran a
diff between x86_emulate.c in Xen and KVM but couldn't immediately see
any differences which would explain this.
One thing though: when KVM says
> > unhandled vm exit: 0x2
> > rax 0000000060000011 rbx 0000000000000e51 rcx 0000000000000000 rdx 0000000000000000
> > rsi 0000000000106347 rdi 0000000000016347 rsp 0000000000008fbe rbp 0000000000098fbe
> > r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000
> > r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
> > rip 0000000000000e8a rflags 00010006
, I suppose this mean that the "jmp far ptr ..." instruction couldn't
be executed (maybe because of the GDT setup before).
I've tried to debug the program with gdb (qemu -s -S), but I cannot
examine the code from gdb (either "raw" or KVM). Well, well.
// Simon
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next prev parent reply other threads:[~2006-11-09 18:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 16:05 Etherboot problems Simon Kagstrom
[not found] ` <874pt8ip14.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-09 16:17 ` Avi Kivity
[not found] ` <455354AB.8000908-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-09 17:49 ` Avi Kivity
[not found] ` <45536A11.6050808-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-09 18:11 ` Simon Kagstrom [this message]
[not found] ` <873b8sij7k.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-10 2:32 ` Anthony Liguori
2006-11-10 15:35 ` Simon Kagstrom
[not found] ` <87odrfgvqf.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-10 16:11 ` Avi Kivity
[not found] ` <4554A4BF.5020409-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-11 13:27 ` Simon Kagstrom
[not found] ` <87r6wa9kr2.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-12 8:20 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873b8sij7k.wl%simon.kagstrom@bth.se \
--to=simon.kagstrom-6uc+yi3s9p8@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox