From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM 28: Reboot fails in Linux Date: Thu, 21 Jun 2007 16:16:51 +0300 Message-ID: <467A7A43.7010201@qumranet.com> References: <4676E972.8010303@ev-en.org> <4677889D.6040505@qumranet.com> <4677A9D1.5010806@ev-en.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000107040507080100000307" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Baruch Even Return-path: In-Reply-To: <4677A9D1.5010806-6P1Dz+XQpLLYtjvyW6yDsg@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 This is a multi-part message in MIME format. --------------000107040507080100000307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Baruch Even wrote: > Avi Kivity wrote: >> Baruch Even wrote: >>> I'm using KVM 28 and when I'm trying to reboot the guest vm kvm >>> fails with the following message: >>> >>> >> >> Can you be more specific as to what you're doing? what host cpu, >> bitness, guest OS, bitness, actions to reproduce? > > The host CPU is Intel Core Duo, running in 32 bits. The host and the > guest are Debian, the host is unstable (sid) and the guest is stable > (etch). > > The guest is a clean install of Debian etch with the Standard and > Desktop tasks. The action to reproduce is choosing the > System->Shutdown from the Gnome menu. The guest starts the shutdown > process and somewhere near or at the end the kvm process ends and I > get the output I sent on the host console. > This may have been fixed by the attached patch (which has already been committed). Let me know if it still fails. -- error compiling committee.c: too many arguments to function --------------000107040507080100000307 Content-Type: text/x-patch; name="reinit-tss.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="reinit-tss.patch" commit 030421334ae91b7f6302a1cfe9c971a8991b4870 Author: Avi Kivity Date: Wed Jun 20 11:20:04 2007 +0300 KVM: VMX: Reinitialize the real-mode tss when entering real mode Protected mode code may have corrupted the real-mode tss, so re-initialize it when switching to real mode. Signed-off-by: Avi Kivity diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index b47ddcc..42a9163 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -31,6 +31,8 @@ MODULE_AUTHOR("Qumranet"); MODULE_LICENSE("GPL"); +static int init_rmode_tss(struct kvm *kvm); + static DEFINE_PER_CPU(struct vmcs *, vmxarea); static DEFINE_PER_CPU(struct vmcs *, current_vmcs); @@ -951,6 +953,8 @@ static void enter_rmode(struct kvm_vcpu *vcpu) fix_rmode_seg(VCPU_SREG_DS, &vcpu->rmode.ds); fix_rmode_seg(VCPU_SREG_GS, &vcpu->rmode.gs); fix_rmode_seg(VCPU_SREG_FS, &vcpu->rmode.fs); + + init_rmode_tss(vcpu->kvm); } #ifdef CONFIG_X86_64 --------------000107040507080100000307 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --------------000107040507080100000307 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------000107040507080100000307--