From: "=?UTF-8?Q?(_=E0=A4=85=E0=A4=AE=E0=A5=87=E0=A4=AF_?= =?UTF-8?Q?=E0=A4=AA=E0=A4=BE=E0=A4=B3=E0=A4=82=E0=A4=A6=E0=A5=87_?= =?UTF-8?Q?)_Ameya_Palande?=" <2ameya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: cannot boot minix3 Date: Sun, 7 Jan 2007 02:12:24 +0100 Message-ID: <269694c00701061712p7f2517cbg25c2e9ea0107ed59@mail.gmail.com> References: <269694c00612310456i76f342d9r36b7d9e658262151@mail.gmail.com> <64F9B87B6B770947A9F8391472E0321609C64FFF@ehost011-8.exch011.intermedia.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: "Dor Laor" In-Reply-To: <64F9B87B6B770947A9F8391472E0321609C64FFF-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > >> >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