Received: from eggs.gnu.org ([2001:4830:134:3::10]:39956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y71nd-0007me-UO for qemu-devel@nongnu.org; Fri, 02 Jan 2015 07:57:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y71na-0001uS-P2 for qemu-devel@nongnu.org; Fri, 02 Jan 2015 07:57:53 -0500 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:36973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y71na-0001uK-I7 for qemu-devel@nongnu.org; Fri, 02 Jan 2015 07:57:50 -0500 Received: by mail-we0-f173.google.com with SMTP id q58so4460598wes.32 for ; Fri, 02 Jan 2015 04:57:49 -0800 (PST) Date: Fri, 2 Jan 2015 12:57:47 +0000 From: Stefan Hajnoczi Message-ID: <20150102125747.GG10823@stefanha-thinkpad.redhat.com> References: <1418901484-12988-1-git-send-email-tumanova@linux.vnet.ibm.com> <5492F9F6.3060004@de.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+1TulI7fc0PCHNy3" Content-Disposition: inline In-Reply-To: <5492F9F6.3060004@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH v5 0/5] Geometry and blocksize detection for backing devices. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: kwolf@redhat.com, thuth@linux.vnet.ibm.com, Public KVM Mailing List , Ekaterina Tumanova , armbru@redhat.com, mihajlov@linux.vnet.ibm.com, dahi@linux.vnet.ibm.com, stefanha@redhat.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com --+1TulI7fc0PCHNy3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 18, 2014 at 04:59:50PM +0100, Christian Borntraeger wrote: > Are you ok with the patches? If yes, can you take care of these patches in the block tree? This series looks close, I've left comments on the patches. The series is fine for command-line QEMU users where probing makes the command-line more convenient, so we can merge it. But the approach is fundamentally wrong for stacks where libvirt is in use. Libvirt is unaware of the guest geometry and block sizes that are probed in QEMU by this patch series. This breaks non-shared storage migration and also means libvirt-based tools that manipulate drives on a guest may inadvertently change the guest-visible geometry and cause disk problems. For example, what happens when you copy the disk image off a host DASD and onto NFS? QEMU no longer probes the geometry and the disk geometry has changed. The right place to tackle guest-visible geometry is in libvirt, not in QEMU, because it is guest state the needs to be captured in domain XML so that migration and tooling can preserve it when manipulating guests. Stefan --+1TulI7fc0PCHNy3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUppXLAAoJEJykq7OBq3PIQKoIAKJEbo0a1AjEMexgHi6+IOLA ThMZgM3fbvV8Dev6zU6tggrB9DXzRoLvK8RSpM0/9S7dYKZKmhe+NI4WTAFmtP3T O69K4jvM1NnFQTcoVd033CEC4xT3o675O6dSa+9HdBDwPH/yowD2azpqPYMh9Vm7 co7+JigiFqHiCruauNk4v3G9pbQ3E0xgXW+bzIllvzNhFBD1g+FauwY83vc0/b9t uL+fbCDEdp9t+8WTh9C2CtLCbE30CNlsP7DVoWFjSuxEIev5x3ktIUDoxetAgKJj FiyRWBz9m7UpeyA432JAZCOs8hfzpS3YrYQX4+9hgAl/pl/9sBUpFKpceQ6Lnes= =OR/c -----END PGP SIGNATURE----- --+1TulI7fc0PCHNy3--