Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4469710rdb; Fri, 15 Sep 2023 03:20:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeM8VppCw/vdiCenRSHzSE6dFWtpbRU7YxyRLUH67JY4nE5XTXUpDYJ/d/ZuMNSKyQ/RIg X-Received: by 2002:a05:6870:4612:b0:1d5:1a99:538f with SMTP id z18-20020a056870461200b001d51a99538fmr1233171oao.15.1694773208054; Fri, 15 Sep 2023 03:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694773208; cv=none; d=google.com; s=arc-20160816; b=JMnuTk6+tYzRRGU1EtrdKDqKYjGTJ4YRDhwifaqiXPYjN1Gi7SUU40eHQGa2SpUOW0 YjXaC/3gzyiMoXiRlQZ3Nt4cxp/ElH3P5txItq6bnJneb3GLexHRO1KmVaGR998oojcr bVOgOozhoN0tJt3T3+wxq2PYAZJuv6/9mwtZRhgxP6KT7cTwZNhOJGPj25FT8qSKGtO/ I2SgIrcyqEicNkqKLK3RCPT7CcOOOrX2nVHdWUUOB3uYmfqtm9U53uhKO8hYbhyXYdUy li+ZcAcOD/sJgcLI4AP9h0vVusyhYx/vy4IZVZpJ1cdZsA9XjnncTNXQrFdxEwDIgSxb sNFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=Yoa4ZMiBLAyDfdX9HHdeF8UrASEf6ZDgmuoMlIr4Wlk=; fh=LDb+U+ZMFDZ54oAiDkH9bhlVS/E1VF7s91nTfQkm+DQ=; b=iJ3JG5tVOelh5cwenrT2Pj8c4KXGTFIpNbOttjhga5lm78xI5GbSOK9d+soRX1Ars4 p0PrHrnO1Gt6NQA4UBEBZKyNCxs38pGaJmgx+G7UEKYyWdIWxsH8tdx8IaieyUl208Ay 8MNhGcwpbmDcJgunDyE6DDvZoEFhG4oDA4OBJkCm7Nqq09hWonYu0V4OFpJ+u88NJHMj 9ivAD1XcySMM6Vw3jtzv2NVXRtjaOkQQlWf2bzVeAyO22ulZQDbQAyHfBfSXvQrRzN59 HxRZaCPSSihSnBDkO19v1Ur6GtB7FTU7S7bB3MypJ9umxtSfE08kYh+k+BwWRRlHSBZl vuJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023091101 header.b="V/5PwyV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w190-20020a6362c7000000b00565ec06aa7dsi3074718pgb.557.2023.09.15.03.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 03:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023091101 header.b="V/5PwyV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 31BE982B4E60; Thu, 14 Sep 2023 17:39:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjIOAjy (ORCPT + 99 others); Thu, 14 Sep 2023 20:39:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbjIOAjx (ORCPT ); Thu, 14 Sep 2023 20:39:53 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3252526A4; Thu, 14 Sep 2023 17:39:49 -0700 (PDT) Received: from [172.27.2.41] ([98.35.210.218]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 38F0cx0w3629046 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 14 Sep 2023 17:39:00 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 38F0cx0w3629046 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023091101; t=1694738342; bh=Yoa4ZMiBLAyDfdX9HHdeF8UrASEf6ZDgmuoMlIr4Wlk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=V/5PwyV/E8csxXz6rtYneFFVtOBWMsVzU2Mg/Wgs3Dr0XDNzkBz/ZFAw/skVnCBBu pIX81Kk5tOxjoHoHEboQ2vuQ8rbszdcv2meKkW38C4Fpsv6lbqTJOWxteQVsyxuMV+ N0x88IFTW0/iHUVnQRWy7QnRIyb+uLWCXwjVOPJcS01dEDvnV1ysdbLMRkUl8Xs89b ZcefnQDEvbvnoxJ49fMSGYwXr8lIlAANDyg1/g4z9ndf07KJSlAj5idi2GE44ZXoYe z7lFKDrHOhCcUgZ3oZxgazX52p1YHjmuUZWWY3SOVdnLUpcnAF9ptss3dUaGqF5cAN VOwKYyWEwLGSQ== Message-ID: <5cf50d76-8e18-2863-4889-70e9c18298a1@zytor.com> Date: Thu, 14 Sep 2023 17:38:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v10 03/38] x86/msr: Add the WRMSRNS instruction support Content-Language: en-US To: andrew.cooper3@citrix.com, Thomas Gleixner , Xin Li , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org Cc: mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, luto@kernel.org, pbonzini@redhat.com, seanjc@google.com, peterz@infradead.org, jgross@suse.com, ravi.v.shankar@intel.com, mhiramat@kernel.org, jiangshanlai@gmail.com References: <20230914044805.301390-1-xin3.li@intel.com> <20230914044805.301390-4-xin3.li@intel.com> <6f5678ff-f8b1-9ada-c8c7-f32cfb77263a@citrix.com> <87y1h81ht4.ffs@tglx> <7ba4ae3e-f75d-66a8-7669-b6eb17c1aa1c@citrix.com> <87v8cc1ehe.ffs@tglx> <50e96f85-66f8-2a4f-45c9-a685c757bb28@citrix.com> From: "H. Peter Anvin" In-Reply-To: <50e96f85-66f8-2a4f-45c9-a685c757bb28@citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Sep 2023 17:39:54 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email On 9/14/23 17:33, andrew.cooper3@citrix.com wrote: > > It's an assumption about what "definitely won't" be paravirt in the future. > > XenPV stack handling is almost-FRED-like and has been for the better > part of two decades. > > You frequently complain that there's too much black magic holding XenPV > together.  A paravirt-FRED will reduce the differences vs native > substantially. > Call it "paravirtualized exception handling." In that sense, the refactoring of the exception handling to benefit FRED is definitely useful for reducing paravirtualization. The FRED-specific code is largely trivial, and presumably what you would do is to replace the FRED wrapper with a Xen wrapper and call the common handler routines. -hpa