Received: from eggs.gnu.org ([209.51.188.92]:39069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNNP3-00026D-1c for qemu-devel@nongnu.org; Sun, 05 May 2019 16:06:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNNOz-0002oO-Vd for qemu-devel@nongnu.org; Sun, 05 May 2019 16:06:29 -0400 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Sun, 5 May 2019 22:05:57 +0200 Message-Id: <20190505200602.12412-1-philmd@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/5] hw/block/pflash: Add DeviceReset() handlers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-stable@nongnu.org Cc: Peter Maydell , Stephen Checkoway , Kevin Wolf , Paolo Bonzini , Laszlo Ersek , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , "Michael S . Tsirkin" , qemu-block@nongnu.org, Wei Yang , Gerd Hoffmann , Markus Armbruster , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= The pflash device lacks a reset() function. When a machine is resetted, the flash might be in an inconsistent state, leading to unexpected behavior: https://bugzilla.redhat.com/show_bug.cgi?id=3D1678713 Resolve this issue by adding a DeviceReset() handler. Both CFI01/CFI02 devices are fixed by this series. Regards, Phil. Philippe Mathieu-Daud=C3=A9 (5): hw/block/pflash_cfi01: Removed an unused timer hw/block/pflash_cfi01: Extract the pflash_reset() code hw/block/pflash_cfi01: Add the DeviceReset() handler hw/block/pflash_cfi02: Extract the pflash_reset() code hw/block/pflash_cfi02: Add the DeviceReset() handler hw/block/pflash_cfi01.c | 31 ++++++++++++------------------- hw/block/pflash_cfi02.c | 31 +++++++++++++++++++++---------- 2 files changed, 33 insertions(+), 29 deletions(-) --=20 2.20.1