Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3987354pxv; Mon, 26 Jul 2021 17:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyymLsUDL1vHgnJ/Ywv9p5VScbfb0i+l1b6ck/yraIR9EcpBfcrfEr5CwJthr3pdW/ZH6Nn X-Received: by 2002:a05:6402:34d1:: with SMTP id w17mr1694239edc.298.1627346727272; Mon, 26 Jul 2021 17:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627346727; cv=none; d=google.com; s=arc-20160816; b=mNsHsD8eNRdlQvhRPR/i1cKJsAFq5qus1UQn3C6OAIbbMZsbFA87BBkCQVuDAn/KDT NNj7dyGvXCJlsFAY1/BW3v4o+foX6kKzdDG6sbOY+PyMPF9lujredRL8q3MIGnx5hLyr hu5ICCFEmA/0BTC/IIT2wRHVyD1T+P6KvMQOcAkWSEd/OfPRe3pTV6AdLIVuVQ92MhMw +sniD7Mf/dH3XPM8tkw2D9xcXQWCJKaXkviNOwczpyNkuslk26Erg3rn0Xfc6F40b3XK CCPAIEvnkPcTpX+5D2DfimyqvC6dEz96h0cIrnTGY337mQE7JUAPhz9oD3mRZ4ku4CTN iolg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=VYyfpHSyGy1nM01Blor0Ef7JqWfZcrQIxslj4YqCez8=; b=se99rq1vxcBLa5RL5qBuImR/AhWK9GceaBv8Hj/OplG5R8jnPLYtJvCnAAMcEPGrLj xOuV7484hkmM/w8OczrQFSokvPsj9UY8rnZrFWBjZ5xKvO9+qnCyPYa08thcVtr1zNsw zTAZYtm5DRnraH08aUVqOKzLE6WpjUGDwIxflPBkUEGSNetlxQmYTfjF07eT0fdfqa9a 4zQ9Ax6P6HUyGnTdhATz6BMJZ00YUnqK4KK+2oXyinCscX5F9HffhzDh3Vl1hw8gVNaH 2SnXtlrWhMFLPS7g43PKucpltMRz/fdnXmHl2/B4LvB5Sj4qV6iB0w1HCUfRTF/oIodX OXWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Lm0UttQb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce17si1347133ejc.222.2021.07.26.17.44.50; Mon, 26 Jul 2021 17:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Lm0UttQb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234780AbhG0ABW (ORCPT + 99 others); Mon, 26 Jul 2021 20:01:22 -0400 Received: from linux.microsoft.com ([13.77.154.182]:45946 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234648AbhG0ABI (ORCPT ); Mon, 26 Jul 2021 20:01:08 -0400 Received: from [192.168.1.97] (unknown [98.4.73.180]) by linux.microsoft.com (Postfix) with ESMTPSA id 07C8620B36EA; Mon, 26 Jul 2021 17:41:35 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 07C8620B36EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1627346496; bh=VYyfpHSyGy1nM01Blor0Ef7JqWfZcrQIxslj4YqCez8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Lm0UttQbV31TsUfHWReHoIyDzbOju1eW/Yh8MWriNfDYgkWXnfhoi8yF3C4TXhUjD 531sAHADh05hdjguyqxmhv1AGakjZEMILV3hwfmYO1B1XOSADjGqd6Qvoxm/KizXUz iaq2SgxJ3GTVh573dlXVGabnZrj6bC+q8gYJS5YI= Subject: Re: [PATCH] KVM: SVM: delay svm_vcpu_init_msrpm after svm->vmcb is initialized To: Paolo Bonzini Cc: Dan Carpenter , linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20210726165843.1441132-1-pbonzini@redhat.com> From: Vineeth Pillai Message-ID: <0f9db300-d5ec-becb-ff30-ac8ddbb62e15@linux.microsoft.com> Date: Mon, 26 Jul 2021 20:41:35 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210726165843.1441132-1-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paulo, Thanks a lot for fixing this. > > diff --git a/arch/x86/kvm/svm/svm_onhyperv.h b/arch/x86/kvm/svm/svm_onhyperv.h > index 9b9a55abc29f..c53b8bf8d013 100644 > --- a/arch/x86/kvm/svm/svm_onhyperv.h > +++ b/arch/x86/kvm/svm/svm_onhyperv.h > @@ -89,7 +89,7 @@ static inline void svm_hv_vmcb_dirty_nested_enlightenments( > * as we mark it dirty unconditionally towards end of vcpu > * init phase. > */ > - if (vmcb && vmcb_is_clean(vmcb, VMCB_HV_NESTED_ENLIGHTENMENTS) && > + if (vmcb_is_clean(vmcb, VMCB_HV_NESTED_ENLIGHTENMENTS) && > hve->hv_enlightenments_control.msr_bitmap) > vmcb_mark_dirty(vmcb, VMCB_HV_NESTED_ENLIGHTENMENTS); > } The changes looks good to me. Could you please remove the above comment as well while you are at it. Many Thanks, Vineeth