Received: from eggs.gnu.org ([2001:4830:134:3::10]:55550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj3zP-0007az-2B for qemu-devel@nongnu.org; Wed, 20 Nov 2013 04:22:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vj3zF-0000cm-GQ for qemu-devel@nongnu.org; Wed, 20 Nov 2013 04:22:26 -0500 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:41357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj3zF-0000b6-9v for qemu-devel@nongnu.org; Wed, 20 Nov 2013 04:22:17 -0500 Received: by mail-we0-f180.google.com with SMTP id u56so1588586wes.25 for ; Wed, 20 Nov 2013 01:22:16 -0800 (PST) Date: Wed, 20 Nov 2013 10:22:13 +0100 From: Stefan Hajnoczi Message-ID: <20131120092213.GA20323@stefanha-thinkpad.muc.redhat.com> References: <1382459756-6853-1-git-send-email-roy.franz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382459756-6853-1-git-send-email-roy.franz@linaro.org> Subject: Re: [Qemu-devel] [PATCH 0/4 v4] block, arm: Fix buffered flash writes on VExpress List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roy Franz Cc: kwolf@redhat.com, peter.maydell@linaro.org, qemu-devel@nongnu.org, stefanha@redhat.com, patches@linaro.org On Tue, Oct 22, 2013 at 09:35:52AM -0700, Roy Franz wrote: > This patchset fixes buffered flash writes on the VExpress > platform. Buffered writes should now work properly on platforms whose > flash interface width is different from the device width. The default > is for the device-width to be set to the interface width, so platforms > that can benefit from this change will need to be updated. This patchset > updates the configuration for the VExpress platform which requires it. > UEFI firmware uses buffered writes for persistent variable storage, > and this patchset enables this usage on QEMU. > > Changes from v3: > * Broke out width->bank_width name change into separate patch. > * Added patch that returns status for each device in bank. > * Reviewed code for other uses of device_width. The one remaining place > this should be used is in the handling of returning the device ID. The > existing code looks a bit suspect, as it is combining 16 bit values by > shifting 8 bits and oring them. I have no good way to test various > flash configurations, so I am reluctant to make major changes to that code. > Changes from v2: > (All changes in patch 2/2, 1/1 unchanged.) > * Set flash invariant properties directly in VExpress specific flash init > routine rather than passing long argument list. > * Fix typo in comment. > > Changes from v1: > * Add device-width property and use this to mask write length instead > of devices mas write length > * Update vexpress init code to set device-width to proper value. > > Roy Franz (4): > rename pflash_t member width to bank_width > Add device-width property to pflash_cfi01 > return status for each device > Set proper device-width for vexpress flash > > hw/arm/vexpress.c | 43 +++++++++++++++++++++++++++++++++---------- > hw/block/pflash_cfi01.c | 37 +++++++++++++++++++++++++++---------- > 2 files changed, 60 insertions(+), 20 deletions(-) Looks okay on quick review. I want to confirm: live migration is not supported?