Received: from eggs.gnu.org ([2001:4830:134:3::10]:35882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUFma-0007pY-Pm for qemu-devel@nongnu.org; Wed, 17 Sep 2014 10:00:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUFmQ-0007ln-4j for qemu-devel@nongnu.org; Wed, 17 Sep 2014 10:00:32 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:56940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUFmP-0007jT-U8 for qemu-devel@nongnu.org; Wed, 17 Sep 2014 10:00:22 -0400 Received: by mail-we0-f178.google.com with SMTP id q58so1490366wes.37 for ; Wed, 17 Sep 2014 07:00:17 -0700 (PDT) Date: Wed, 17 Sep 2014 15:00:15 +0100 From: Stefan Hajnoczi Message-ID: <20140917140015.GE25707@stefanha-thinkpad.redhat.com> References: <1406636839-11946-1-git-send-email-tumanova@linux.vnet.ibm.com> <1406636839-11946-5-git-send-email-tumanova@linux.vnet.ibm.com> <20140903154636.GB30664@stefanha-thinkpad.redhat.com> <54083ECA.7040009@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hwvH6HDNit2nSK4j" Content-Disposition: inline In-Reply-To: <54083ECA.7040009@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH 4/4] blocksize: add blkconf_blocksize call to all block devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ekaterina Tumanova Cc: cornelia.huck@de.ibm.com, dahi@linux.vnet.ibm.com, Public KVM Mailing List , borntraeger@de.ibm.com --hwvH6HDNit2nSK4j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 04, 2014 at 02:28:26PM +0400, Ekaterina Tumanova wrote: > On 09/03/2014 07:46 PM, Stefan Hajnoczi wrote: > >On Tue, Jul 29, 2014 at 02:27:19PM +0200, Ekaterina Tumanova wrote: > >>This patch add the blkconf_blocksize call to all > >>devices, which use DEFINE_BLOCK_PROPERTIES. > >>If the underlying driver function fails, blkconf_blocksizes > >>will set blocksizes to default (512) value. > >> > >>Signed-off-by: Ekaterina Tumanova > >>Reviewed-by: David Hildenbrand > >>Acked-by: Cornelia Huck > >>--- > >> hw/block/nvme.c | 1 + > >> hw/block/virtio-blk.c | 1 + > >> hw/ide/qdev.c | 1 + > >> hw/scsi/scsi-disk.c | 1 + > >> hw/usb/dev-storage.c | 1 + > >> include/hw/block/block.h | 4 ++-- > >> 6 files changed, 7 insertions(+), 2 deletions(-) > > > >Wasn't this NACKed before on the grounds that it is likely to upset the > >guest after live migration? QEMU doesn't automatically query the > >storage because these parameters must be preserved across migration. > > >=20 > Sorry, haven't found this discussion in the mail list. Do you have a link? I don't have the link but am referring to the last time these patches were discussed - ~1 year ago? > As far as I understand, the xxxxxx_init functions of the qemu block devic= es, > which contain blkconf_blocksize calls, will > be called again on the destination host before the guest is resumed. And > since migration requests qemu to be brought on the same disk, the > configuration will receive the same block size from the ioctl, as > before. What do I miss? Live storage migration is supported. This means non-shared storage is possible. Therefore the host block device that a guest runs on can change. > >If you want specific parameters, please put them in your guest > >configuration. QEMU and libvirt support that. > > > >I'm concerned that this patch serious is likely to break things and > >autodetection doesn't add much value since the management tool needs to > >be aware of this information anyway. > > >=20 > Can you please explain what do you mean by "AUTOdetection"? > Do you simply mean "detection by ioctl" or "detection performed without > guest request"? I mean passing through the host block device attributes to the guest. Stefan --hwvH6HDNit2nSK4j Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUGZPvAAoJEJykq7OBq3PIOO4H/jFfgKQcj8bmnvCN7Zcj/t8k YJw/fzo4oXfGjii4uxm1njdtZ6IqFD/F2BvH4K87gudSdxiSTIpccsnd4ZtlH45Y kf14UuUf3fwXDN0Z/sdF01OGsI5RwyDvWrhzFb4EtXIcwfekokFg/n+VkqWKvTMC Qsd+sGrkrc0zIgqx2Z/LJTffO0vgfS2SFbZCl44C9YFWNgOCFHfjxIc+VQmXdRpC +ayr2Bs274lalhcGF3JgE4XDetU+tvfkSseCNzfLW2oH8OtSIEw2jp8uporqi+3v ibDPAHRfxGDTLoDopIqG/BBUXikUheJvX5qugoK4vfAAfMCENS8WbUeq3fRjLUY= =fZ5Z -----END PGP SIGNATURE----- --hwvH6HDNit2nSK4j--