From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45655 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfbQj-0006BP-KG for qemu-devel@nongnu.org; Wed, 19 Jan 2011 12:02:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfbQh-0000gO-8H for qemu-devel@nongnu.org; Wed, 19 Jan 2011 12:02:45 -0500 Received: from verein.lst.de ([213.95.11.210]:44206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfbQg-0000fp-WF for qemu-devel@nongnu.org; Wed, 19 Jan 2011 12:02:43 -0500 Date: Wed, 19 Jan 2011 18:02:38 +0100 From: Christoph Hellwig Message-ID: <20110119170238.GA9615@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 0/3 v2] allow online resizing of block devices List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patchset adds support for online resizing of block devices. The first patch adds a new resize monitor command which call into the existing image resize code. This is the meat of the series and probably needs quite a bit of review and help as I'm not sure about how to implement the error handling for monitor commands correctly. Am I really supposed to add a new QERR_ definition for each possible error? And if yes how am I supposed to define them? The macros for them aren't exactly self-explaining. The second patch adds a way to tell drivers about a resize, and the third one adds a guest notification for config changes to virtio-blk which allows the guest to pick it up without a rescan. I've just sent the corresponding Linux guest driver patch to Rusty. Changes from version 1 to version 2: - also add a QMP command (block_resize) - use the o format for the size in the monitor command - fix typos - use QERR_UNDEFINED_ERROR for errors instead of unstructured strings - remove the CDROM hint check - add a reason argument to the change callback