From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKs8F-0006C7-Se for qemu-devel@nongnu.org; Wed, 27 Mar 2013 11:19:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKs8E-0005Nc-8U for qemu-devel@nongnu.org; Wed, 27 Mar 2013 11:19:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKs8D-0005NQ-Uf for qemu-devel@nongnu.org; Wed, 27 Mar 2013 11:19:18 -0400 Message-ID: <51530DEC.4080409@redhat.com> Date: Wed, 27 Mar 2013 16:19:08 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1344617249-6620-1-git-send-email-kwolf@redhat.com> <1344617249-6620-8-git-send-email-kwolf@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/11] blockdev: flip default cache mode from writethrough to writeback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artyom Tarasenko Cc: Kevin Wolf , Blue Swirl , qemu-devel Il 27/03/2013 16:16, Artyom Tarasenko ha scritto: > This patch breaks shutting down of a sparc32 guest (or at least the > Debian-4 image I have): > > $ sparc-softmmu/qemu-system-sparc -M SS-5 -nographic -hda ../disk-debian-4 > [...] > Debian GNU/Linux 4.0 debian ttyS0 > > debian login: root > Password: > Linux debian 2.6.18-6-sparc32 #1 Tue Nov 10 00:31:37 UTC 2009 sparc > # poweroff > [...] > Will now halt. > Synchronizing SCSI cache for disk sda: > esp0: Aborting command > esp0: dumping state > esp0: dma -- cond_reg addr > esp0: SW [sreg<03> sstep<04> ireg<10>] > esp0: HW reread [sreg<03> sstep<00> ireg<08>] > esp0: current command [tgt<00> lun<00> pphase cphase] > esp0: disconnected > esp0: Aborting command > esp0: dumping state > esp0: dma -- cond_reg addr > esp0: SW [sreg<03> sstep<04> ireg<10>] > esp0: HW reread [sreg<03> sstep<04> ireg<00>] > esp0: current command [tgt<00> lun<00> pphase cphase] > esp0: disconnected > esp0: Resetting scsi bus > esp0: SCSI bus reset interrupt > esp0: no command in esp_handle() > Kernel panic - not syncing: esp_handle: current_SC == penguin within interrupt! > <0>Press Stop-A (L1-A) to return to the boot prom > > > Without the patch, the line "Synchronizing SCSI cache for disk sda" > doesn't come up, so the patch probably just unveils a bug somewhere > else (esp?). It doesn't come up because, with a writethrough cache, there is no need to flush the cache. The bug should be reproducible before this patch with -drive file=../disk-debian-4,cache=writeback. Paolo