Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60BCFC4346E for ; Tue, 29 Sep 2020 09:17:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A1D320848 for ; Tue, 29 Sep 2020 09:17:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbgI2JRz (ORCPT ); Tue, 29 Sep 2020 05:17:55 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14707 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727691AbgI2JRy (ORCPT ); Tue, 29 Sep 2020 05:17:54 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 545B0E38F9F3F29BB102; Tue, 29 Sep 2020 17:17:52 +0800 (CST) Received: from DESKTOP-FPN2511.china.huawei.com (10.174.187.69) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Tue, 29 Sep 2020 17:17:45 +0800 From: Jingyi Wang To: , , CC: , , , , , , , , , , , Subject: [RFC PATCH 0/4] Add support for ARMv8.6 TWED feature Date: Tue, 29 Sep 2020 17:17:23 +0800 Message-ID: <20200929091727.8692-1-wangjingyi11@huawei.com> X-Mailer: git-send-email 2.14.1.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.187.69] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org TWE Delay is an optional feature in ARMv8.6 Extentions. There is a performance benefit in waiting for a period of time for an event to arrive before taking the trap as it is common that event will arrive “quite soon” after executing the WFE instruction. This series adds support for TWED feature and implements TWE delay value dynamic adjustment. Thanks for Shameer's advice on this series. The function of this patch has been tested on TWED supported hardware and the performance of it is still on test, any advice will be welcomed. Jingyi Wang (2): KVM: arm64: Make use of TWED feature KVM: arm64: Use dynamic TWE Delay value Zengruan Ye (2): arm64: cpufeature: TWED support detection KVM: arm64: Add trace for TWED update arch/arm64/Kconfig | 10 +++++ arch/arm64/include/asm/cpucaps.h | 3 +- arch/arm64/include/asm/kvm_arm.h | 5 +++ arch/arm64/include/asm/kvm_emulate.h | 38 ++++++++++++++++++ arch/arm64/include/asm/kvm_host.h | 19 ++++++++- arch/arm64/include/asm/virt.h | 8 ++++ arch/arm64/kernel/cpufeature.c | 12 ++++++ arch/arm64/kvm/arm.c | 58 ++++++++++++++++++++++++++++ arch/arm64/kvm/handle_exit.c | 2 + arch/arm64/kvm/trace_arm.h | 21 ++++++++++ 10 files changed, 174 insertions(+), 2 deletions(-) -- 2.19.1