From patchwork Tue Apr 2 19:57:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 10882287 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 1FE551390 for ; Tue, 2 Apr 2019 19:59:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05E8E201BC for ; Tue, 2 Apr 2019 19:59:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8568285A7; Tue, 2 Apr 2019 19:59:33 +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 A3BC5288D3 for ; Tue, 2 Apr 2019 19:59:32 +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 1hBPXM-0006kN-5s; Tue, 02 Apr 2019 19:57:36 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hBPXK-0006kI-Uw for xen-devel@lists.xen.org; Tue, 02 Apr 2019 19:57:34 +0000 X-Inumbo-ID: 8d51ed10-5581-11e9-bc90-bc764e045a96 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 8d51ed10-5581-11e9-bc90-bc764e045a96; Tue, 02 Apr 2019 19:57:32 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.60,301,1549929600"; d="scan'208";a="82548938" From: Andrew Cooper To: Xen-devel Date: Tue, 2 Apr 2019 20:57:25 +0100 Message-ID: <1554235048-3373-1-git-send-email-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 0/3] x86/smt: Runtime SMT controls 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: Andrew Cooper , Wei Liu , 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 is some work which was discussed for L1TF and never got finished. Testing for this work is what discovered the cpu online/offline memory leak. Andrew Cooper (3): xen/cpu: Distinguish "cpu already in that state" in cpu_{up,down}() x86/sysctl: Clean up XEN_SYSCTL_cpu_hotplug x86: Support for enabling/disabling SMT at runtime tools/libxc/include/xenctrl.h | 2 + tools/libxc/xc_cpu_hotplug.c | 26 +++++++++ tools/misc/xen-hptool.c | 56 ++++++++++++++++++ xen/arch/x86/setup.c | 2 +- xen/arch/x86/sysctl.c | 126 ++++++++++++++++++++++++++++++++++++---- xen/common/cpu.c | 26 +++++---- xen/include/asm-x86/processor.h | 1 + xen/include/public/sysctl.h | 9 +++ 8 files changed, 226 insertions(+), 22 deletions(-)