From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: guest reboot error Date: Thu, 27 Sep 2007 12:48:05 +0200 Message-ID: <46FB8A65.6000504@qumranet.com> References: <10EA09EFD8728347A513008B6B0DA77A022AE441@pdsmsx411.ccr.corp.intel.com> <10EA09EFD8728347A513008B6B0DA77A022AE445@pdsmsx411.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: "Dong, Eddie" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A022AE445-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 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 Dong, Eddie wrote: > kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote: > >> I try to implement the guest reboot support, but I found there is an >> stranger #PF VM Exit in guest real mode cs:ip=f000:10000 which is >> problemtic and current shadow won;t handle. I then try to >> use -no-kvm-irqchip and get same error. >> >> Can somebody give me more information if you ever successfully >> run it before. >> thx,eddie >> >> > correction: It is GP fault, not #PF fault. > > Looks like the bios code was overwritten. If the reboot vector at f000:fff0 was zeroed out, kvm would just execute a bunch of two-byte instructions eventually leading to rip = 10000 which is illegal for vm8086 mode. Can you add code to kvmctl.c to dump the contents of that memory region at the time of failure? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/