From nobody Mon Feb 9 08:28:18 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=126.com ARC-Seal: i=1; a=rsa-sha256; t=1590423478; cv=none; d=zohomail.com; s=zohoarc; b=a2iWBxFTDVzoDgRLEdY6bT8DNhVrPJurBA/qSpaxC4XSaCKeVzF7Cp0NlQGTzh3DnPfw8JdPhj02PHl/N6NMAmnGIn+xeNDz9JOksra26z0+o60ZKPzy6fMvQyT3kS38Hn+zICVnJcr2cGH8RLeEsdtGoylhphTctdV8UQxlsI4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590423478; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=oMXzC20WGOx+bac/ifPIUG1vT/I7zcfR/JQtxisn6nY=; b=L3LgpnHwOoOzBoI07bEkBp7T4hd4dARuy2tBZmlnaoW6Vhnfz5hhJW2aQoOzWmejrutFvYRKq7+Bg0slM3hMeqWZqsYF5UEYiKnFxdiFkulmAoz4CSh6bL5ztU0P8fRAEdmA7jJMKHcLMG3y5pEpjNZlZNHhqKH9rK+wr1i+0MI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1590423478939444.3882529895319; Mon, 25 May 2020 09:17:58 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-aAF9b67pMgiJr5ghVKfmgQ-1; Mon, 25 May 2020 12:17:55 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5D3A2872FEA; Mon, 25 May 2020 16:17:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 08286579A5; Mon, 25 May 2020 16:17:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 987CA54D34; Mon, 25 May 2020 16:17:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04PGH9HC024071 for ; Mon, 25 May 2020 12:17:10 -0400 Received: by smtp.corp.redhat.com (Postfix) id 78EBD2166BA0; Mon, 25 May 2020 16:17:09 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 752CB2156A3A for ; Mon, 25 May 2020 16:17:07 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6C6E2188B2A0 for ; Mon, 25 May 2020 16:17:07 +0000 (UTC) Received: from mail-m965.mail.126.com (mail-m965.mail.126.com [123.126.96.5]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-148-n2LunBm2MzC2VsFSebE-FQ-1; Mon, 25 May 2020 12:17:04 -0400 Received: from bogon.localdomain (unknown [112.80.215.163]) by smtp10 (Coremail) with SMTP id NuRpCgBHMzxy78teBw_KPQ--.643S5; Tue, 26 May 2020 00:16:59 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590423477; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=oMXzC20WGOx+bac/ifPIUG1vT/I7zcfR/JQtxisn6nY=; b=FzRTOl7B4YNo4k64dBO2P1ZAB7smpgnC3YOtlFlnG/dL8GAdGqFouYaxbTHDLqWHhJNFfe WHUAu9x63kM8/ztaJFunmKdWEXtRvsxkH/ofpExvJiwDAjb1vWrxstBkqyC34V07pmKRWk tjPton2cXRlTA4j80ZO67BKsD+E5MMg= X-MC-Unique: aAF9b67pMgiJr5ghVKfmgQ-1 X-MC-Unique: n2LunBm2MzC2VsFSebE-FQ-1 From: Chen Hanxiao To: libvir-list@redhat.com Subject: [PATCH v2 3/3] downscript: docs: add docs and news Date: Mon, 25 May 2020 12:16:49 -0400 Message-Id: <1590423409-1851-4-git-send-email-chen_han_xiao@126.com> In-Reply-To: <1590423409-1851-1-git-send-email-chen_han_xiao@126.com> References: <1590423409-1851-1-git-send-email-chen_han_xiao@126.com> X-CM-TRANSID: NuRpCgBHMzxy78teBw_KPQ--.643S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZF18ZrW5JFWxJryUAF47Arb_yoW8Aw1fp3 s7K3s5GF1rGry3uws3Z3Z5XF1rCFZ5AFyUGw1I9w4Ygrn0qa4vqr9Fy34Ygw1UuryrZa45 uw12yr9rXw1kK3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j2KZLUUUUU= X-Originating-IP: [112.80.215.163] X-CM-SenderInfo: xfkh0spkdqs5xldrqiyswou0bp/1tbiaRsvrlpEAkqchwAAs+ X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: redhat.com X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Chen Hanxiao --- docs/formatdomain.html.in | 6 +++++- docs/news.xml | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 23eb029234..4e2320d537 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -5879,7 +5879,10 @@

After creating/opening the tap device, an optional shell script (given in the path attribute of - the <script> element) will be run; this can + the <script> element) will be run; + Also, after detaching/closing the tap device, an optional shell + script (given in the path attribute of + the <downscript> element) will be run; this can be used to do whatever extra host network integration is required.

@@ -5889,6 +5892,7 @@ <devices> <interface type=3D'ethernet'> <script path=3D'/etc/qemu-ifup-mynet'/> + <downscript path=3D'/etc/qemu-ifdown-mynet'/> </interface> ... <interface type=3D'ethernet'> diff --git a/docs/news.xml b/docs/news.xml index 4cef804aac..67fb85377d 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -52,6 +52,16 @@
+ + + qemu: support network interface downscript + + + QEMU has the ability to run a script when a NIC is brought up + and down. Libvirt only enables use of the up script. + Now add support for postscript when NIC is down/detached. + + qemu: support disabling hotplug/unplug of PCIe devices --=20 2.23.0