From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCsO4-0007ow-Qu for qemu-devel@nongnu.org; Fri, 02 Dec 2016 13:16:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCsO0-0001Op-8G for qemu-devel@nongnu.org; Fri, 02 Dec 2016 13:16:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40404) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCsO0-0001Kc-27 for qemu-devel@nongnu.org; Fri, 02 Dec 2016 13:16:40 -0500 Date: Fri, 2 Dec 2016 18:16:32 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20161202181631.GH15373@work-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Unable to add ram object with same ID after addition, migration and removal at the target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao Cc: "qemu-devel@nongnu.org" , Igor Mammedov , David Gibson , mdroth@linux.vnet.ibm.com * Bharata B Rao (bharata.rao@gmail.com) wrote: > Hi, > > - Add ram object and dimm device at the source > > (qemu) object_add memory-backend-ram,id=ram0,size=128M > (qemu) device_add pc-dimm,id=dimm0,memdev=ram0 > > - Migrate the VM and remove the dimm device and ram object at the target > > (qemu) device_del dimm0 > (qemu) object_del ram0 > > - Adding the ram object with same id now at the target fails like this: > > (qemu) info memdev > > (qemu) object_add memory-backend-ram,id=ram0,size=128M > Duplicate ID 'ram0' for object > > Same behaviour is seen on x86 and Power. The problem isn't seen if > migration isn't involved (add, remove, add at the source itself). Is this the same as the one Michael Roth posted a fix for a few days back; 'monitor: fix object_del for command-line-created objects' https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg05479.html Dave > Regards, > Bharata. > -- > http://raobharata.wordpress.com/ -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK