Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp799594rwe; Wed, 31 Aug 2022 11:10:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qxi+l6v+EOEzxsAeaaqqxptGsXq668a2Isn4yECWmuOi7xImZy2JhLxbwju3eRICap40N X-Received: by 2002:a17:90a:5b0d:b0:1fe:3769:5fb8 with SMTP id o13-20020a17090a5b0d00b001fe37695fb8mr2818338pji.152.1661969445592; Wed, 31 Aug 2022 11:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661969445; cv=none; d=google.com; s=arc-20160816; b=UMPT/AAf+KG5NQkDCQIO4bIW1hvgJ4aj7eqgosVnIsrFQ0LuTBffLXs1TPvExKRO+/ T0BIF97Hhvgdmu6AHbj07yl3hXuRY6PQ2vunnja6S2UV9nKJ6c/EPwe/J/EmM/ZKTUHB 7y5tBCeG6zSbz+TKufVY7RTLDopQra0U4Aqi35wujhh4fPrr8P1G9Xf1u+e5nHxtx4/k D2Bsqx9sGKckikShShJHm38pNseXeG6ZpdOWN2HfFJqlWLAia/cf3Ar1yMAZuVJ1tZmA jpwCJeoJeLzNpNX24QISCVHxZOBYtle31QgIKT2hNctOzaGSWThWRC3QUJ40+Ml4i/JL P9+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=laThOkndvaHPmbnxg8e/lPfIbkAjQkcc+qrNWkaFiBk=; b=fvBB8y6a4qdEE1g2Kxn7RxNu2MQCJlC0wNgHIula48pwKDsbspEdbp3OvmrZUt7OWH Nsgru8lj+qL5G6EqktJxQq01Qf06SWwgsDt3I7PcCfYb8w3NCci4C4osFyj8P1QKarg2 CUz1T0xY4tMt13byYYSZ8sXu8/4eVdqOlNAZVNGPf626v4pzSdPwcF6EcSbTpcKLcqUF qlLM3nP6JwzyabyL1aZTVcB2MiB0c/xEEiOrEIn9WMVwiAmeIavccLW6UQ8Ad7CjJ4F6 eJ2NZQtXOBy0WjogXYPlG0HTrlrOR48IZujoEFJJzvPuGX8XuGCl7Q7Q611Xc8AnW173 tZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hfa+oD1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170902e80700b001733750d4b8si12716475plg.165.2022.08.31.11.10.21; Wed, 31 Aug 2022 11:10:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hfa+oD1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232445AbiHaSJY (ORCPT + 99 others); Wed, 31 Aug 2022 14:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232449AbiHaSIn (ORCPT ); Wed, 31 Aug 2022 14:08:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0C45E68C2; Wed, 31 Aug 2022 11:08:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D4E5DB82221; Wed, 31 Aug 2022 18:08:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 431B7C433D6; Wed, 31 Aug 2022 18:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661969315; bh=+JjElnI5IjOCD0ml2rzIPbAQ+2yKUfZWwuoUc78T+4U=; h=From:To:Cc:Subject:Date:From; b=Hfa+oD1uUUs2d9r0k5XrVD0NjeEB8EEqrGsuhqiXSJsWdk9oPHgxQs3PlHlA41btc YvHMiJk0ha3z2itd9l1pGNll45OnmpJ1quUsu/rkWQjEAxVWMo+hryCMaoCLta3G4M 6QoryKkOTwmn5HwJsdlR41K7nTGvKXD9vMP1BlE7CNNO501Wty7/OOzrCgkfrkQNmx s7FJW8wv1Td+Cv+EmWBMyIqUGHB9FYkYPtC4x5dR8QVZE5TPWp90d1Hvc6/eO1p+8k U6SxWyOER38RdBgD/fPQgjs9gryoD4H5T/eE4DBULcvCUNfHC/u/Xa/I3Z7OGZP0TV 2tuLz7Q57y5Jw== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Sebastian Andrzej Siewior , Thomas Gleixner , Steven Rostedt Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: [PATCH v2 0/5] riscv: add PREEMPT_RT support Date: Thu, 1 Sep 2022 01:59:15 +0800 Message-Id: <20220831175920.2806-1-jszhang@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is to add PREEMPT_RT support to riscv: patch1 adds the missing number of signal exits in vCPU stat patch2 switches to the generic guest entry infrastructure patch3 select HAVE_POSIX_CPU_TIMERS_TASK_WORK which is a requirement for RT patch4 adds lazy preempt support patch5 allows to enable PREEMPT_RT I assume patch1, patch2 and patch3 can be reviewed and merged for riscv-next, patch4 and patch5 can be reviewed and maintained in rt tree, and finally merged once the remaining patches in rt tree are all mainlined. Since v1: - send to related maillist, I press ENTER too quickly when sending v1 - remove the signal_pending() handling because that's covered by generic guest entry infrastructure Jisheng Zhang (5): RISC-V: KVM: Record number of signal exits as a vCPU stat RISC-V: KVM: Use generic guest entry infrastructure riscv: select HAVE_POSIX_CPU_TIMERS_TASK_WORK riscv: add lazy preempt support riscv: Allow to enable RT arch/riscv/Kconfig | 3 +++ arch/riscv/include/asm/kvm_host.h | 1 + arch/riscv/include/asm/thread_info.h | 7 +++++-- arch/riscv/kernel/asm-offsets.c | 1 + arch/riscv/kernel/entry.S | 9 +++++++-- arch/riscv/kvm/Kconfig | 1 + arch/riscv/kvm/vcpu.c | 18 +++++++----------- 7 files changed, 25 insertions(+), 15 deletions(-) -- 2.34.1