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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 B6496C433E0 for ; Wed, 17 Mar 2021 15:16:15 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 45DE964F75 for ; Wed, 17 Mar 2021 15:16:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45DE964F75 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.98746.187499 (Exim 4.92) (envelope-from ) id 1lMXu1-00005v-NS; Wed, 17 Mar 2021 15:16:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 98746.187499; Wed, 17 Mar 2021 15:16:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lMXu1-00005o-I3; Wed, 17 Mar 2021 15:16:05 +0000 Received: by outflank-mailman (input) for mailman id 98746; Wed, 17 Mar 2021 15:16:04 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lMXu0-00005i-95 for xen-devel@lists.xenproject.org; Wed, 17 Mar 2021 15:16:04 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lMXu0-0000FI-8F for xen-devel@lists.xenproject.org; Wed, 17 Mar 2021 15:16:04 +0000 Received: from iwj (helo=mariner.uk.xensource.com) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1lMXu0-0006VW-7W for xen-devel@lists.xenproject.org; Wed, 17 Mar 2021 15:16:04 +0000 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.89) (envelope-from ) id 1lMXtv-0002LQ-G4; Wed, 17 Mar 2021 15:15:59 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=References:In-Reply-To:Subject:Cc:To:Date :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:From; bh=Icv57Gp6+BsuyhEq7m+9iroCpbGX5bsczcoIxbrzdy0=; b=V/b9JJtVuvGr4f/gUd9NfoNgLW xqVPm76U1RM7393omizClVMCYYMA0Y9TyJuaVoN4Zf0l02mzio59CRngUlYDluwPmEQwteyiT+Z6g eNl9y8G5ducgfYI5CEaf62LmNweGIwNaJvfUWl4i+5ZdltFkP/FaDxOwwPszhmEZA4xs=; From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <24658.7471.309734.168120@mariner.uk.xensource.com> Date: Wed, 17 Mar 2021 15:15:59 +0000 To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Andrew Cooper , Xen-devel , Jan Beulich , Wei Liu , Boris Ostrovsky Subject: Re: [PATCH 1/3] Revert "x86/msr: drop compatibility #GP handling in guest_{rd,wr}msr()" In-Reply-To: References: <20210316161844.1658-1-andrew.cooper3@citrix.com> <20210316161844.1658-2-andrew.cooper3@citrix.com> <24658.1583.601613.903527@mariner.uk.xensource.com> <4b1c13ee-f121-3379-6fb3-c0d4dbb76e48@citrix.com> <24658.5692.932979.892439@mariner.uk.xensource.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) Roger Pau Monné writes ("Re: [PATCH 1/3] Revert "x86/msr: drop compatibility #GP handling in guest_{rd,wr}msr()""): > On Wed, Mar 17, 2021 at 02:46:20PM +0000, Ian Jackson wrote: > > Roger, can I get your opinion about the possible downside risks of > > this patch ? > > For patches 1 and 2 the risk is low I think. This is already the same > handling that we do in pre-4.15, so it's unlikely to cause issues. > >From a guests PoV they don't change the result of trying to access any > of the modified MSRs, accessing them will still result in a #GP being > injected to the guest. > > The main risk for patch 3 would be that reporting 0 for > MSR_RAPL_POWER_UNIT would result in some kind of issue on certain > guests, or that it triggers the poking of other MSRs in the > expectation that they would be available. I think those are quite > unlikely, and the patch fixes a real issue with Solaris guests. Thanks. That is very helpful. All three patches Release-Acked-by: Ian Jackson but subject to Jan's questions on patch 3 being resolved somehow. Ian.