Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp47348rwe; Thu, 25 Aug 2022 23:50:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6fRn1WsJajgjcHXB8lwHHrKNjlxA0v70DuW/dd7VdLzvhl5AWa5k6XUGrK5uymhj5y9boR X-Received: by 2002:a17:907:94ca:b0:731:8395:d526 with SMTP id dn10-20020a17090794ca00b007318395d526mr4391369ejc.389.1661496614547; Thu, 25 Aug 2022 23:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661496614; cv=none; d=google.com; s=arc-20160816; b=murnD1H/6SZ5I8XG0/OuI3K/7C/+ZzSx4v/vj8VbOWqSA0G62EQT6NVO0nw0pc6sLO QvsrCFl+IR12YXsCVtL8yUzpXugLYQZDbXN1BblX2u704j0rlK1WR9S2oj9a29SbTW5b X/eXkC8wJU0nuzk9Y+ZtkrTnDnugXZZNo2vxN45XZw3O1ko8LPaVmY9DYEQIzpOiBtmB M5G8JxluYN5nv55v+PxFCUdn8jvL/zaVD8xGvs/6hBoiTUBNOpYFTthB+iwx9zRKZM3k SAqZZupu+Hm07U+Kc3IN/uiK9LViBAsDXG/LYiwIc1iiZrbPAMK+ijPuE0XvH93G3VDL u92Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WmnvVRurxH2Zy86fWf6pyYN4Ha80RUgYK6P1tlQP2/g=; b=NIthj1AvLWAHbGhvfA1QPvtbQOeSeAu3/XEGblE6/oAUQRVIImAC+YKYT7SfxFzUOj zHuKqwzS1chvEsiCtN/ddBUL9KAEz+EeausBJU1mbF33mqRJ6ecTM2eNEJPYUIfWq0AP rjcP5LCZTP17LM8hLau+5srHV3wI/7TRAzkovVcaIpXsIWPHnpbds+wdSa+ufkmCs47l 6LVqbkTGSdwczirkpiiXZ7AgU7WGORkI8GAkbFIVpmBawK+ZxQu136cZHlUfsB75Kg/2 htxJn/3e4rCP86yHDB6b/i/wNzY/2NBADzJoFGt7HfStOPOtEHa4scizChW1/jM/5ktg rpqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Nwefa+9W; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg36-20020a170907972400b0073d045866b3si963821ejc.225.2022.08.25.23.49.48; Thu, 25 Aug 2022 23:50:14 -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=@gmail.com header.s=20210112 header.b=Nwefa+9W; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245252AbiHZGrJ (ORCPT + 99 others); Fri, 26 Aug 2022 02:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245145AbiHZGq4 (ORCPT ); Fri, 26 Aug 2022 02:46:56 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1C1D25C4; Thu, 25 Aug 2022 23:46:31 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id s31-20020a17090a2f2200b001faaf9d92easo7190056pjd.3; Thu, 25 Aug 2022 23:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=WmnvVRurxH2Zy86fWf6pyYN4Ha80RUgYK6P1tlQP2/g=; b=Nwefa+9WuBFgFgAQdGg0tE6ijaCa2/hmsYfjKjBxOTHUcMWLYHNP8LQn7KrpCCeM1x EmFBiYrvovfVSzwpldwWAmZnnJm+mrnRYW/bZvDyZ9Ny7OR6XnB6nLK+bhBHIhhumF44 ZHHJDnYJbJpa8wY212ebXF1UcO4zaXlEu2mB4pHWdXfqKNtbotLVY+SvMVdLmIkYv+Rx WvDPTjGTVc1Cu6w6+ntMdNdxjcaWvCsfUgVMdHuOJaydE3xKUr0e3blaFXKccAvBx8wD /9O3eka5Qa+adDogE2BDKFD8epXT2mDExe9d2GecR264lBRne+ZMZuvRNfCNv25jFNCZ qNSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=WmnvVRurxH2Zy86fWf6pyYN4Ha80RUgYK6P1tlQP2/g=; b=e6/io5xSagmZze+cXn2tml5ylvhqtqPq59RQamCdhmkllIBVjWiPOi93qAPBwPCZpz 8nxv+nHo0iCaxu59oC2a4IAlDxVk+B924FUy1sBGfgWFLqYLNoxzbsjIouZBrysoi4wE pFdmApQyHNfs1zzcyoSOP2dOj2NZItFfGMnkBU9VQU0puTc7ck0HdkjU1ArNPoFxvZ1N sNO+dSSR1a0PpEJmAj7MyS+X4ACWosd89BeMNwQW+8eDxCuapgynr/4eym0br9tmQwLH Y1M8qerTItDaJ92QCQC+Q+NQRGBpnd22jfAmjc1rQZlXSJ3QhntUhkGafiNrOaPF8AEH yzSw== X-Gm-Message-State: ACgBeo3wK/MmlZ5/jkqixPKYmCUZfpf8pcGiysg4NNkP7rmSN+21VZqL sZuzP1qynR8qpWCQpVhkFuY= X-Received: by 2002:a17:902:7845:b0:16e:d647:a66c with SMTP id e5-20020a170902784500b0016ed647a66cmr2364885pln.64.1661496391012; Thu, 25 Aug 2022 23:46:31 -0700 (PDT) Received: from localhost ([192.55.55.51]) by smtp.gmail.com with ESMTPSA id x13-20020a170902a38d00b0016ec8286733sm706933pla.243.2022.08.25.23.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 23:46:30 -0700 (PDT) Date: Thu, 25 Aug 2022 23:46:29 -0700 From: Isaku Yamahata To: Sagi Shahar Cc: "Yamahata, Isaku" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Isaku Yamahata , Paolo Bonzini , Erdem Aktas , Sean Christopherson Subject: Re: [PATCH v8 095/103] KVM: TDX: Handle TDX PV rdmsr/wrmsr hypercall Message-ID: <20220826064629.GG2538772@ls.amr.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Wed, Aug 17, 2022 at 03:40:24PM -0700, Sagi Shahar wrote: > On Sun, Aug 7, 2022 at 3:03 PM wrote: > > +static int tdx_emulate_wrmsr(struct kvm_vcpu *vcpu) > > +{ > > + u32 index = tdvmcall_a0_read(vcpu); > > + u64 data = tdvmcall_a1_read(vcpu); > > + > > + if (!kvm_msr_allowed(vcpu, index, KVM_MSR_FILTER_READ) || > ^ > This should be KVM_MSR_FILTER_WRITE Oops. Thanks. I'll fix it. -- Isaku Yamahata