From patchwork Tue Jan 3 14:04:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 9494897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5315606B4 for ; Tue, 3 Jan 2017 14:06:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7FB326CF9 for ; Tue, 3 Jan 2017 14:06:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCF662711E; Tue, 3 Jan 2017 14:06:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6B54D27031 for ; Tue, 3 Jan 2017 14:06:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOPhU-0005Xs-Ia; Tue, 03 Jan 2017 14:04:28 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOPhT-0005XS-Ui for xen-devel@lists.xen.org; Tue, 03 Jan 2017 14:04:28 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id F1/0F-19998-B6FAB685; Tue, 03 Jan 2017 14:04:27 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeJIrShJLcpLzFFi42KZM10+UDdrfXa Ewe0pihZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8a/BwEFZzgr5mz+ytLAuJSji5GLQ0ignUmi 4cEGNgjnK6PE77/HWSGcDYwSt27MY4JwJjBKnJz/iaWLkZODTcBI4uzR6YwgtoiAtMS1z5cZQ YqYBT4wSWy/0skGkhAWcJeY3DOPHcRmEVCVWPKkBSzOK+AlcW3rR7BBEgJyEjfPdTKD2JxA8b U7boLVCAl4Svyd8RSqxliib1YfywRGvgWMDKsYNYpTi8pSi3QNjfWSijLTM0pyEzNzdA0NjPV yU4uLE9NTcxKTivWS83M3MQKDhQEIdjBu2+55iFGSg0lJlDeaITtCiC8pP6UyI7E4I76oNCe1 +BCjDAeHkgTv87VAOcGi1PTUirTMHGDYwqQlOHiURHiPgaR5iwsSc4sz0yFSpxh1OaY9W/yUS YglLz8vVUqcd8I6oCIBkKKM0jy4EbAYusQoKyXMywh0lBBPQWpRbmYJqvwrRnEORiVhXnmQKT yZeSVwm14BHcEEdMT2ALAjShIRUlINjOu73DZ2he78oP1gd2rcnktX58bvuLbmR9mUpa0BrR+ +CZixSc16f2LRRVsB95wy5itNU3wYTmirCtxWYbqx1Lp8l9CfAzcLX5xJS7x5RdDsYoTLhfna AbfdzvQvyPtk+iiI9ae/ZV0pZ3LXjo5nhrdLPU/ITGuz61lZ1LJtlinzM3mLIrauJUosxRmJh lrMRcWJAC2dO8ucAgAA X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-11.tower-31.messagelabs.com!1483452264!47910769!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 34311 invoked from network); 3 Jan 2017 14:04:26 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-11.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 3 Jan 2017 14:04:26 -0000 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v03E4Jng005563 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 3 Jan 2017 14:04:20 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id v03E4JS1003344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 3 Jan 2017 14:04:19 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v03E4IL0021890; Tue, 3 Jan 2017 14:04:18 GMT Received: from ostr-laptop.us.oracle.com (/10.152.23.90) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 03 Jan 2017 06:04:18 -0800 From: Boris Ostrovsky To: xen-devel@lists.xen.org Date: Tue, 3 Jan 2017 09:04:16 -0500 Message-Id: <1483452256-2879-13-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483452256-2879-1-git-send-email-boris.ostrovsky@oracle.com> References: <1483452256-2879-1-git-send-email-boris.ostrovsky@oracle.com> X-Source-IP: aserv0021.oracle.com [141.146.126.233] Cc: Stefano Stabellini , wei.liu2@citrix.com, George Dunlap , andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, Tim Deegan , jbeulich@suse.com, Boris Ostrovsky , roger.pau@citrix.com Subject: [Xen-devel] [PATCH v6 12/12] docs: Describe PVHv2's VCPU hotplug procedure X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk --- CC: George Dunlap CC: Konrad Rzeszutek Wilk CC: Stefano Stabellini CC: Tim Deegan --- Changes in v6: * No GPE0 update is needed anymore. docs/misc/hvmlite.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/misc/hvmlite.markdown b/docs/misc/hvmlite.markdown index 898b8ee..472edee 100644 --- a/docs/misc/hvmlite.markdown +++ b/docs/misc/hvmlite.markdown @@ -75,3 +75,14 @@ info structure that's passed at boot time (field rsdp_paddr). Description of paravirtualized devices will come from XenStore, just as it's done for HVM guests. + +## VCPU hotplug ## + +VCPU hotplug (e.g. 'xl vcpu-set ') for PVHv2 guests +follows ACPI model where change in domain's number of VCPUS (stored in +domain.avail_vcpus) results in an SCI being sent to the guest. The guest +then executes DSDT's PRSC method, updating MADT enable status for the +affected VCPU. + +Updating VCPU number is achieved by having the toolstack issue a write to +ACPI's XEN_ACPI_CPU_MAP.