From patchwork Fri Mar 13 12:33:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Heyne X-Patchwork-Id: 11436851 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C02D139A for ; Fri, 13 Mar 2020 12:35:36 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED75720724 for ; Fri, 13 Mar 2020 12:35:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.de header.i=@amazon.de header.b="wAhqjYG+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED75720724 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCjW5-0006V6-N5; Fri, 13 Mar 2020 12:34:17 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCjVD-0006Rr-2O for xen-devel@lists.xenproject.org; Fri, 13 Mar 2020 12:33:23 +0000 X-Inumbo-ID: d3863e0e-6526-11ea-a6c1-bc764e2007e4 Received: from smtp-fw-9102.amazon.com (unknown [207.171.184.29]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d3863e0e-6526-11ea-a6c1-bc764e2007e4; Fri, 13 Mar 2020 12:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1584102803; x=1615638803; h=from:to:cc:subject:date:message-id:mime-version; bh=5w6yNET4XLc0d6Tyypp0pk6fHTRsavc/jAIm25xtAB4=; b=wAhqjYG+tsys4hwMuB1q3g/AooUqyKvX1qxXPnkxtv4LQqVLQdhOwdmp DNEIQmWaYfp4iM2RNtbfDnWd9wLG0Hf4DsGXE0lpeS4oSuH/K4qxwVmlD 1YDPETptuB0DmQOKQJXP7p4tAfqUgtUuMBt3o9TNiXg8LQLOecz1KjLrN Q=; IronPort-SDR: xIke6OkrfRpBn5Kkj9H2IJIuvsFuz7mW59VW7dT/zyxTt52yfWjsdPUf/C4hm5uRT/nNoKWBsp z2uCxEtq3xOw== X-IronPort-AV: E=Sophos;i="5.70,548,1574121600"; d="scan'208";a="31028701" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 13 Mar 2020 12:33:20 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com (Postfix) with ESMTPS id 91C8EA2E9B; Fri, 13 Mar 2020 12:33:19 +0000 (UTC) Received: from EX13D08EUC003.ant.amazon.com (10.43.164.232) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Fri, 13 Mar 2020 12:33:19 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX13D08EUC003.ant.amazon.com (10.43.164.232) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 13 Mar 2020 12:33:18 +0000 Received: from dev-dsk-mheyne-60001.pdx1.corp.amazon.com (10.184.85.242) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 13 Mar 2020 12:33:17 +0000 Received: by dev-dsk-mheyne-60001.pdx1.corp.amazon.com (Postfix, from userid 5466572) id 3886F222C9; Fri, 13 Mar 2020 12:33:16 +0000 (UTC) From: Maximilian Heyne To: Date: Fri, 13 Mar 2020 12:33:13 +0000 Message-ID: <20200313123316.122003-1-mheyne@amazon.de> X-Mailer: git-send-email 2.16.6 MIME-Version: 1.0 Precedence: Bulk X-Mailman-Approved-At: Fri, 13 Mar 2020 12:34:16 +0000 Subject: [Xen-devel] [PATCH 0/3] Cleanup IOREQ server on exit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson , Paul Durrant Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Following up on commit 9c0eed61 ("qemu-trad: stop using the default IOREQ server"), clean up the IOREQ server on exit. This fixes a bug with soft-reset that shows up as "bind interdomain ioctl error 22" because the event channels were not closed at the soft-reset and can't be bound again. For this I used the exit notifiers from QEMU that I backported together with the required generic notifier lists. Anthony Liguori (1): Add support for generic notifier lists Gerd Hoffmann (1): Add exit notifiers. Maximilian Heyne (1): xen: cleanup IOREQ server on exit Makefile | 1 + hw/xen_machine_fv.c | 11 +++++++++++ notify.c | 39 +++++++++++++++++++++++++++++++++++++++ notify.h | 43 +++++++++++++++++++++++++++++++++++++++++++ sys-queue.h | 5 +++++ sysemu.h | 5 +++++ vl.c | 20 ++++++++++++++++++++ 7 files changed, 124 insertions(+) create mode 100644 notify.c create mode 100644 notify.h Acked-by: Ian Jackson