From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8VFb-0003fj-UJ for qemu-devel@nongnu.org; Mon, 14 Dec 2015 10:41:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8VFX-000869-VD for qemu-devel@nongnu.org; Mon, 14 Dec 2015 10:41:23 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:32775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8VFX-00082y-L5 for qemu-devel@nongnu.org; Mon, 14 Dec 2015 10:41:19 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Dec 2015 15:41:15 -0000 From: Christian Borntraeger Date: Mon, 14 Dec 2015 16:41:18 +0100 Message-Id: <1450107679-34555-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PATCH 0/1] Fixup for DASD geometry detection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-block@nongnu.org, Ekaterina Tumanova , qemu-devel , Christian Borntraeger , Jens Freimann , Cornelia Huck Kevin, here is a fixup for the geometry detection. We tried to be overly clever and calculate the cyclinder size for devices > 64k cyls. Now this is wrong for the cyls parameter as the interface only has 16bit. Large DASD devices have a special token (0xfffe) that indicate to the DASD related code, that you have to calculate the cyls size yourself. Without this patch QEMU cannot pass through bigger DASD disks and complains "cyls must be between 1 and 65535" Christian Borntraeger (1): block/raw-posix: avoid bogus fixup for cylinders on DASD disks block/raw-posix.c | 7 ------- 1 file changed, 7 deletions(-) -- 2.3.0