Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4140422imw; Thu, 7 Jul 2022 13:28:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tg0JfAANJgNow9Kd1M+sHKkIW7JjoRawiQUVTKY75jqb2v1kGUfTbJP0wyduLKgrftZUkp X-Received: by 2002:a63:4604:0:b0:40d:a0ec:5dc4 with SMTP id t4-20020a634604000000b0040da0ec5dc4mr41090347pga.510.1657225734477; Thu, 07 Jul 2022 13:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657225734; cv=none; d=google.com; s=arc-20160816; b=TuCOhQOxEuCXc/z5Xqla51sQUQNC3NjR8wKX5KCOFL9q0RykYyD+h8/xoEizAZT2hy JODtG8BJVFa2r3CB9JrdBXSKbFwv/Qy/HGETUnJ8XHZkxvXCKp0nIkzu0HK94JBfTc7C x6SLg5ZB5hxZwX/wjB2NnClxyHUFbnKrLLlRmael8yjep9mV4NYRMe5znhw72ejC3wOs fFiLr85pdBF4egIPgwmJyClrgw0Ys6IBrU9U5I6he5Qs8LvmsRlAXIODx3rGACsxq8xu 3fRRWMMRhuK7+tqNGiofJPVicrD/yaHzcu4DMRoEYiQNpaL25SgnwqxuYc3MbQfO+WIf BwTA== 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=1bCm969XGgaOkqh4eRSQbwrpF0kvcOdbQDiSoaqggZA=; b=Kw5I5unmx1M826ME6PSh0yJIm8EGOVFnzHRkTtjFTjdlSVQlM6+R513GxlCShxss3f qoZy08mF8KUQlE/2xW66OiGMjnlhl1pr3zbuVyYVlgck6TEhU6jkE8jE0a20UcQeDlX9 Tzh1k0MgVJdLDBpDoN6rNfPUOYIvhv/0o2ljduRFvK4xwt59/0UqS9z7etPJr9swB2kB vetnXJ9bQEIUsSi9uTPnDVg5+0f4LSaHIhCp+w146n2cdy3Kkl+ioFBgcpoO9CdEJnJG +eC3Eay1AJIszOFj82jZwtYEcLcfG2pGe6z0wxzek75yTllDCsRQgmoodFknex98+pcf tyTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Zak8jiTq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170902bf4c00b0016beedb0424si12950297pls.131.2022.07.07.13.27.36; Thu, 07 Jul 2022 13:28:54 -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=@google.com header.s=20210112 header.b=Zak8jiTq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236182AbiGGUSQ (ORCPT + 99 others); Thu, 7 Jul 2022 16:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232184AbiGGUSP (ORCPT ); Thu, 7 Jul 2022 16:18:15 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87AF205E4 for ; Thu, 7 Jul 2022 13:18:14 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 73so5081071pgb.10 for ; Thu, 07 Jul 2022 13:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1bCm969XGgaOkqh4eRSQbwrpF0kvcOdbQDiSoaqggZA=; b=Zak8jiTq85bczrwETGrZMCWPGn3uIDl2243XVn3Cka9H68zrC7vNFRcZEOnmJgrTFd Wr9mmzUXkp8oLEloQextca673lYKEvA61aY2CVXnh+R2i9sjKJVCFmba9HEKjzAdNBUP NjsfCc0sUnPhxERGS1i6EE8p0QBXetVyScGxOj8ijgpAdFc30gTP9YFlgyYYsD2BPfKF uYQSAHfzZsQyLqEzKeHUwmmTqWPr76vRn2dymaBXj8HAJzHklWGuYrC5qplBQhHEl+aW PVMz2DUB8v49XBYahpDbUCE1BVEi9qTxI2kavjktAeIzZBo3vtgONMGS8Fs8nrYFe2L/ oqQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1bCm969XGgaOkqh4eRSQbwrpF0kvcOdbQDiSoaqggZA=; b=kEcXgix9zk+axv8K1toO3CMJ3mgIE2tW6ffVD6NGP9McDgFTAlKTtMkYV+cQx2fltp Jd+hs3uZCLcJQPwePguf5wx+Sr9gcAqTMg/RGQ7x9u4FUmlPXmVFxoOFjyKHBQ72Mjd4 KDLrK6YvORe1n7vZWzVXhRIrMfY6Shun4plX+GIS2VPQsHQ0CWJCCNBGHXZr9impbQ/h xbrSxTB7w23zBzb/fY+htNPXMhndE4iH8M/8S/JH6y2ju2DyBl7SbmlTdvgXakiXFvyB 7vng2W10HAK02nn8YVeZCmhoQrxouUczew0nv5LVcIB41crhr5VVLWss02Llp7r2yoyi DQ7A== X-Gm-Message-State: AJIora9rVo4m2JcyvoK0FlY702jqyFBlFvdKdKDr9iGculXJPY744mqn xmdmn8+5aKDMx6qaltNxXMTPlA== X-Received: by 2002:a17:90a:2c0d:b0:1ef:c839:c34b with SMTP id m13-20020a17090a2c0d00b001efc839c34bmr7189286pjd.39.1657225094391; Thu, 07 Jul 2022 13:18:14 -0700 (PDT) Received: from google.com (123.65.230.35.bc.googleusercontent.com. [35.230.65.123]) by smtp.gmail.com with ESMTPSA id o188-20020a625ac5000000b0052a198c2046sm229368pfb.203.2022.07.07.13.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 13:18:13 -0700 (PDT) Date: Thu, 7 Jul 2022 20:18:09 +0000 From: Sean Christopherson To: Hou Wenlong Cc: kvm@vger.kernel.org, Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: x86/mmu: Replace UNMAPPED_GVA with INVALID_GPA for gva_to_gpa() Message-ID: References: <6104978956449467d3c68f1ad7f2c2f6d771d0ee.1656667239.git.houwenlong.hwl@antgroup.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6104978956449467d3c68f1ad7f2c2f6d771d0ee.1656667239.git.houwenlong.hwl@antgroup.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Jul 01, 2022, Hou Wenlong wrote: > The result of gva_to_gpa() is physical address not virtual address, > it is odd that UNMAPPED_GVA macro is used as the result for physical > address. Replace UNMAPPED_GVA with INVALID_GPA and drop UNMAPPED_GVA > macro. > > No functional change intended. > > Signed-off-by: Hou Wenlong > --- Reviewed-by: Sean Christopherson