Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1D7FC433EF for ; Fri, 26 Nov 2021 09:42:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376426AbhKZJqF (ORCPT ); Fri, 26 Nov 2021 04:46:05 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:54206 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376428AbhKZJoC (ORCPT ); Fri, 26 Nov 2021 04:44:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637919650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7UUe35TCPwnWrlRfuadrJjdwO/yhSUHrYr8BjHXjKnE=; b=PVg9JXUNuA0Uk/eggsrFyMyEQkHMtRr7MtaLhLTxcsQiKExoScDQHPs/LRc9V4/0zWDZn7 Q7LoJw7QHH5dBjb1JGiI/3mHh9XsCmQvgKFwld3V/QYiw/RmojjOlEI+yeXoRNEe0OIxKz +AljRw/Y9OtdtS5aRGb8gBPo/fZutVs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-537-iMtrPbjDPVKCij-lsuqYIQ-1; Fri, 26 Nov 2021 04:40:44 -0500 X-MC-Unique: iMtrPbjDPVKCij-lsuqYIQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3B2FE83DD20; Fri, 26 Nov 2021 09:40:42 +0000 (UTC) Received: from [10.39.194.96] (unknown [10.39.194.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id F1B8E19C46; Fri, 26 Nov 2021 09:40:17 +0000 (UTC) Message-ID: <7693d3a8-fea7-fb61-b3fb-d0bf8a89c57b@redhat.com> Date: Fri, 26 Nov 2021 10:40:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [RFC PATCH v3 53/59] KVM: x86: Add a helper function to restore 4 host MSRs on exit to user space Content-Language: en-US To: Chao Gao , Thomas Gleixner Cc: isaku.yamahata@intel.com, Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , Sean Christopherson , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, isaku.yamahata@gmail.com References: <4ede5c987a4ae938a37ab7fe70d5e1d561ee97d4.1637799475.git.isaku.yamahata@intel.com> <878rxcht3g.ffs@tglx> <20211126091913.GA11523@gao-cwp> From: Paolo Bonzini In-Reply-To: <20211126091913.GA11523@gao-cwp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/26/21 10:19, Chao Gao wrote: > Of course. Will remove all "later patch" phrases. Chao, see my comment on patch 54, for how to do this. In this case, this patch would be right before the one that enables KVM_RUN on a TDX module. Paolo