Hi,

I am calling show_code() at the end of handle_exception() function.
>From code trace I can see that it exits for HLT instruction.
Minix boot monitor calls HLT in getch() function while waiting for keyboard
interrupt.

There is a handler handle_halt() for handling exits due to HLT instruction.
But instead of that handle_exception() handler is getting called.

I can see that kvm is getting EXIT_REASON_EXCEPTION_NMI
instead of EXIT_REASON_HLT.

Am i doing something wrong ? How is this possible ?

Regards,
Ameya.

On 12/31/06, Dor Laor <[EMAIL PROTECTED]> wrote:
>
> >> >Hi,
> >> >
> >> >I am using latest kvm release 8 with linux kernel 2.6.18.2-34-default.
> >> >I am trying to run minix3 using following command line,
> >> >
> >> >/usr/local/kvm/bin/qemu -boot d -m 128 -hda ./minix_image -cdrom
> >> >./IDE-image-3.1.2a.iso
> >> >
> >> >After this it starts, but then suddenly it dies with following message,
> >> >exception 13 (0)
> >> >Aborted
> >>
> >> It's probably the notorious real mode problem.
> >> Try running it without graphical boot loader.
> >> The other alternative is to install the OS with plain Qemu and afterwards
> >use it with KVM.
> >>
> >> >
> >> >dmesg output shows,
> >> >kvm: msrs: 1
> >> >
> >> >I tried with no-acpi option also. But no success.
> >> >
> >> >Processor info : Intel Core Duo T2300
> >> >
> >> >Any help ?
> >> >
> >> >Regards,
> >> >Ameya.
> >> >
> >> >------------------------------------------------------------------------
> >-
> >> >Take Surveys. Earn Cash. Influence the Future of IT
> >> >Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> >your
> >> >opinions on IT & business topics through brief surveys - and earn cash
> >>
> >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >_______________________________________________
> >> >kvm-devel mailing list
> >> >kvm-devel@lists.sourceforge.net
> >> >https://lists.sourceforge.net/lists/listinfo/kvm-devel
> >>
> >
> >Hi,
> >
> >Can you tell me how to debug it ?
> >I saw debug.c file under kernel directory in kvm source code.
> >There is a show_code() function in debug.c file.
> >Can I see which instruction in Minix3 in real mode is generating the
> >problem ?
> >
>
> I think that debug.c won't compile now, it was created when only VT was 
> supported. However you can take the relevant show_code function and add it to 
> vmx.c (Intel) or svm.c (AMD). Call it at the end of handle_exception()
> Function.
>
> Anyway since the problem is the partial implementation of real mode 
> emulation, thus a single instruction won't help much.
>
>
> >Regards,
> >Ameya.
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to