From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apiUN-0001aW-CS for qemu-devel@nongnu.org; Mon, 11 Apr 2016 16:31:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apiUK-0000MN-7K for qemu-devel@nongnu.org; Mon, 11 Apr 2016 16:31:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apiUK-0000MJ-2X for qemu-devel@nongnu.org; Mon, 11 Apr 2016 16:31:12 -0400 References: <1460382666-29885-1-git-send-email-anthony.perard@citrix.com> From: John Snow Message-ID: <570C098D.5030902@redhat.com> Date: Mon, 11 Apr 2016 16:31:09 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.6] xen: Fix IDE unplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Stabellini , Anthony PERARD Cc: Kevin Wolf , qemu-devel@nongnu.org, Max Reitz On 04/11/2016 02:22 PM, Stefano Stabellini wrote: > On Mon, 11 Apr 2016, Anthony PERARD wrote: >> After commit e5e7855 (blockdev: Separate BB name management), starting a >> guest with PVHVM support result in this assert: >> qemu-system-i386: block/block-backend.c:173: blk_delete: Assertion `!blk->name' failed. >> >> A backtrace show that a caller is pci_piix3_xen_ide_unplug(). >> >> This patch fix it. >> >> Signed-off-by: Anthony PERARD > > Acked-by: Stefano Stabellini > > >> hw/ide/piix.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/hw/ide/piix.c b/hw/ide/piix.c >> index 0a4cbcb..6d76ce9 100644 >> --- a/hw/ide/piix.c >> +++ b/hw/ide/piix.c >> @@ -189,6 +189,7 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev) >> idedev = pci_ide->bus[di->bus].slave; >> } >> idedev->conf.blk = NULL; >> + monitor_remove_blk(blk); >> blk_unref(blk); >> } >> } >> -- >> Anthony PERARD >> > Thanks, applied to my IDE tree: https://github.com/jnsnow/qemu/commits/ide https://github.com/jnsnow/qemu.git --js