From patchwork Tue Mar 19 09:21:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 10859175 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9AB617E9 for ; Tue, 19 Mar 2019 09:23:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F53B29357 for ; Tue, 19 Mar 2019 09:23:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 833A42936B; Tue, 19 Mar 2019 09:23:28 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 16EB72939E for ; Tue, 19 Mar 2019 09:23:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h6Aw4-0005p3-4Z; Tue, 19 Mar 2019 09:21:28 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h6Aw2-0005mO-H0 for xen-devel@lists.xenproject.org; Tue, 19 Mar 2019 09:21:26 +0000 X-Inumbo-ID: 5e3d83c6-4a28-11e9-bc90-bc764e045a96 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 5e3d83c6-4a28-11e9-bc90-bc764e045a96; Tue, 19 Mar 2019 09:21:25 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,497,1544486400"; d="scan'208";a="80974914" From: Paul Durrant To: Date: Tue, 19 Mar 2019 09:21:05 +0000 Message-ID: <20190319092116.1525-1-paul.durrant@citrix.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v9 00/11] viridian: implement more enlightenments X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Paul Durrant , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series adds three new enlightenments: - Synthetic timers, which depends on the... - Synthetic interrupt controller (or SynIC) - Synthetic cluster IPI All these enlightenments are implemented in current versions of QEMU/KVM so this series closes the gap. Paul Durrant (11): viridian: add init hooks viridian: separately allocate domain and vcpu structures viridian: use stack variables for viridian_vcpu and viridian_domain... viridian: make 'fields' struct anonymous... viridian: extend init/deinit hooks into synic and time modules viridian: add missing context save helpers into synic and time modules viridian: use viridian_map/unmap_guest_page() for reference tsc page viridian: stop directly calling viridian_time_ref_count_freeze/thaw()... viridian: add implementation of synthetic interrupt MSRs viridian: add implementation of synthetic timers viridian: add implementation of the HvSendSyntheticClusterIpi hypercall docs/man/xl.cfg.5.pod.in | 18 +- tools/libxl/libxl.h | 18 + tools/libxl/libxl_dom.c | 10 + tools/libxl/libxl_types.idl | 3 + xen/arch/x86/domain.c | 12 +- xen/arch/x86/hvm/hvm.c | 10 + xen/arch/x86/hvm/viridian/private.h | 31 +- xen/arch/x86/hvm/viridian/synic.c | 376 ++++++++++++++++-- xen/arch/x86/hvm/viridian/time.c | 518 ++++++++++++++++++++++--- xen/arch/x86/hvm/viridian/viridian.c | 229 +++++++++-- xen/arch/x86/hvm/vlapic.c | 20 +- xen/include/asm-x86/hvm/domain.h | 2 +- xen/include/asm-x86/hvm/hvm.h | 7 + xen/include/asm-x86/hvm/vcpu.h | 2 +- xen/include/asm-x86/hvm/viridian.h | 75 +++- xen/include/public/arch-x86/hvm/save.h | 4 + xen/include/public/hvm/params.h | 17 +- 17 files changed, 1212 insertions(+), 140 deletions(-) v8: - Squash in follow-up series v4: - Add two cleanup patches (#3 and #4) and re-order #8 and #9 v3: - Add the synthetic cluster IPI patch (#11) --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: "Roger Pau Monné" Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu