From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPkQB-0000i7-TW for qemu-devel@nongnu.org; Thu, 04 Sep 2014 23:42:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPkQ5-0001Mz-OQ for qemu-devel@nongnu.org; Thu, 04 Sep 2014 23:42:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPkQ5-0001Me-Gq for qemu-devel@nongnu.org; Thu, 04 Sep 2014 23:42:41 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s853gdkc011349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 4 Sep 2014 23:42:39 -0400 From: John Snow Date: Thu, 4 Sep 2014 23:42:15 -0400 Message-Id: <1409888537-14513-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH v4 0/2] add resize callback to ide/core List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, jsnow@redhat.com, armbru@redhat.com, stefanha@redhat.com This patch series fixes incorrect IDENTIFY data returned for an IDE drive after a block_resize event by adding a resize callback for IDE devices. Inconsistencies between identify routines are also removed so that they read easier. V4: - Added patch that makes the buffer and cache fill order for identify routines more consistent. - Fixed a bug where the very first call to IDENTIFY does not return any size information. V3: - Factored out the size update into new functions. - Fixed the size update for CFATA. - Added assertion to clarify that ide_resize_cb is non-atapi. V2: - Do not attempt to update geometry values, to avoid clobbering user-specified values, if they exist. - Do not regenerate the entire IDENTIFY buffer to avoid losing any settings that occurred during normal operation. John Snow (2): IDE: Fill the IDENTIFY request consistently ide: Add resize callback to ide/core hw/ide/core.c | 97 +++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 74 insertions(+), 23 deletions(-) -- 1.9.3