From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0WZE-0007Gs-6j for qemu-devel@nongnu.org; Sun, 03 May 2009 03:56:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0WZ9-0007Gb-DQ for qemu-devel@nongnu.org; Sun, 03 May 2009 03:56:55 -0400 Received: from [199.232.76.173] (port=44684 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0WZ9-0007GY-6y for qemu-devel@nongnu.org; Sun, 03 May 2009 03:56:51 -0400 Received: from mx2.redhat.com ([66.187.237.31]:59795) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0WZ8-0007yZ-OL for qemu-devel@nongnu.org; Sun, 03 May 2009 03:56:50 -0400 Date: Sun, 3 May 2009 10:56:46 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] Re: [PATCH 0/8] kvm: Fixes, cleanups and live migration Message-ID: <20090503075646.GJ9795@redhat.com> References: <20090502074041.GB7198@redhat.com> <49FC4F90.1030901@codemonkey.ws> <20090502172308.GA13933@redhat.com> <49FC9B39.4080408@redhat.com> <20090502200754.GB13933@redhat.com> <49FD3266.5050000@redhat.com> <20090503060502.GH9795@redhat.com> <49FD4996.9060606@redhat.com> <20090503074648.GI9795@redhat.com> <49FD4CB4.3070008@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49FD4CB4.3070008@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Anthony Liguori , Jan Kiszka , qemu-devel@nongnu.org On Sun, May 03, 2009 at 10:50:12AM +0300, Avi Kivity wrote: > Gleb Natapov wrote: > > > >>> Maybe we should unexecute the software interrupt instruction on Intel >>> and get the same effect. >>> >>> >> We don't need to unexecute anything. We get exit with RIP pointing to >> the offending instruction. The right thing on VMX to do is to inject >> software interrupt with correct instruction length. Processor will do >> the rest. Remind me please why do we try to find problems where there is >> none? We will do right thing and fix migration code to do right thing. >> >> > > I don't want the migration protocol to encode vendor specific > information. The architectural state is complicated enough, we don't > want microarchitectural state as well. Then I don't see how migration can work correctly. How do you expect migration to work if you don't migrate part of a processor state? Why not drop non migratable state immediately after exit then? (that is essentially what happens if we don't migrate it). -- Gleb.