From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEQLu-0008LH-7i for qemu-devel@nongnu.org; Wed, 10 Jun 2009 12:08:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEQLo-0008IH-RZ for qemu-devel@nongnu.org; Wed, 10 Jun 2009 12:08:37 -0400 Received: from [199.232.76.173] (port=57798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEQLo-0008IA-Ni for qemu-devel@nongnu.org; Wed, 10 Jun 2009 12:08:32 -0400 Received: from mx20.gnu.org ([199.232.41.8]:60272) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MEQLn-0004gm-Q0 for qemu-devel@nongnu.org; Wed, 10 Jun 2009 12:08:31 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEQLm-0006hC-Gf for qemu-devel@nongnu.org; Wed, 10 Jun 2009 12:08:30 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 05/11] qemu: MSI-X support functions Date: Wed, 10 Jun 2009 17:08:15 +0100 References: <200906101615.12956.paul@codesourcery.com> <20090610155238.GH28601@redhat.com> In-Reply-To: <20090610155238.GH28601@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906101708.27815.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Carsten Otte , kvm@vger.kernel.org, "Michael S. Tsirkin" , Rusty Russell , virtualization@lists.linux-foundation.org, Blue Swirl , Christian Borntraeger , Avi Kivity On Wednesday 10 June 2009, Michael S. Tsirkin wrote: > On Wed, Jun 10, 2009 at 04:15:04PM +0100, Paul Brook wrote: > > > > That's seems just plain wrong to me. > > > > Loading a VM shouldn't not > > > > do anything that can't happen during normal operation. > > > > > > At least wrt pci, we are very far from this state: load just overwrites > > > all registers, readonly or not, which can never happen during normal > > > operation. > > > > IMO that code is wrong. We should only be loading things that the guest > > can change (directly or indirectly). > > Making it work this way will mean that minor changes to a device can > break backwards compatibility with old images, often in surprising ways. > What are the advantages? If you can't create an identical machine from scratch then I don't consider snapshot/migration to be a useful feature. i.e. as soon as you shutdown and restart the guest it is liable to break anyway. It may be that the snapshot/migration code wants to include a machine config, and create a new machine from that. However this is a separate issue, and arguably something your VM manager should be handling for you. Paul