From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 6AB72C64E7B for ; Mon, 30 Nov 2020 18:07:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 14B972067C for ; Mon, 30 Nov 2020 18:07:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Xuz6YbkZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="UaDyV4fD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 14B972067C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LGii16HJXQqjHDG5YQtVD2a4kgl4/+FQcght/F3oH/U=; b=Xuz6YbkZD8WH2jxmBsf1ASGFE M1E0U6k9pF15wYyWkHrfghCljpbN5TkQf44Xe2QkiCnrjdu24CsaiasdAizGMlQWKiYaHfeAmpuhn Bc1cLaKkSTyYzhE/D47DEqhTzPadwT2Szuux0Wp4BdC2xT6Sirxsdd9K7+uoz4glFQTkjf/tSD0EJ lhnexBa7PinQSSJPcmIPVCuMandxqK/oHgYi3xy3FzfVi6hFpwqaGs6oqeZ/WA70aAHM/KVn+B0u7 Eoz206nEL8lA/MnsDyeaKFyL4uxerC26zmT0YSkC30MF5Arw1QTYdgzfbJHrcr9WAruVH5Q3o7FrH nDH/UxOmw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kjnYk-0008U2-JJ; Mon, 30 Nov 2020 18:05:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kjnYh-0008TE-8d for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2020 18:05:56 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5CE67206F9; Mon, 30 Nov 2020 18:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606759553; bh=LEf4/GBSUYi7Yxi/3jEzeug3u/5guDqeKo5QtUgX5Zg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UaDyV4fDfovSb5djP8oXgSWijVIa5cTZ2WVLoOCv0Djh+GjSJ+hv0t14d7H7Y84jN fPokKr9+9sRZBny9lPeTiZXhFuh38GE9qYbkLuqnDWO+td2WaFdth/diOn7pkRrTvE /1Vi6Dk6sqIb8ztmoTT9GFddL1CuHFooHHBdt2Xs= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kjnYd-00Em4N-Ff; Mon, 30 Nov 2020 18:05:51 +0000 MIME-Version: 1.0 Date: Mon, 30 Nov 2020 18:05:51 +0000 From: Marc Zyngier To: Rongwei Wang Subject: Re: [PATCH 0/3] arm64:msr: Add MSR driver In-Reply-To: <20201130174833.41315-1-rongwei.wang@linux.alibaba.com> References: <20201130174833.41315-1-rongwei.wang@linux.alibaba.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <5e7f7225982b2df63e62ea60ec632376@misterjones.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: rongwei.wang@linux.alibaba.com, catalin.marinas@arm.com, will@kernel.org, bjorn.andersson@linaro.org, shawnguo@kernel.org, gshan@redhat.com, geert+renesas@glider.be, Anson.Huang@nxp.com, masahiroy@kernel.org, michael@walle.cc, krzk@kernel.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, olof@lixom.net, vincenzo.frascino@arm.com, ardb@kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201130_130555_524718_A74199FD X-CRM114-Status: GOOD ( 14.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vkoul@kernel.org, gshan@redhat.com, Anson.Huang@nxp.com, geert+renesas@glider.be, catalin.marinas@arm.com, masahiroy@kernel.org, linux-kernel@vger.kernel.org, krzk@kernel.org, bjorn.andersson@linaro.org, michael@walle.cc, olof@lixom.net, shawnguo@kernel.org, vincenzo.frascino@arm.com, will@kernel.org, ardb@kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020-11-30 17:48, Rongwei Wang wrote: > The interfaces of this module is same as MSR module in user space, and > to solve > the problem that ARM platform has no similar MSR module. Using this > interface, > we did some pressure tests to test the stability and security of MSR > driver. The > test results show that the driver will not cause system panic if > various > illegal values and multithreading concurrent access are passed through > the > interface. It would certainly help if you described what problem you are trying to solve here. In general, giving userspace access to random system registers is a pretty bad idea. Are you trying to validate a CPU? a hypervisor? Or is it just a fun way to check how many things you can poke before something catches fire? Thanks, M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel