Received: by 10.223.164.221 with SMTP id h29csp2847042wrb; Thu, 2 Nov 2017 19:40:06 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Ry+FX7wxaQmw66GwsBEGCCqrTt+GUBGS/ijVPXLHACFQBuGBkUY9mM7snUZuUkQgpEIXsc X-Received: by 10.99.95.14 with SMTP id t14mr5681958pgb.70.1509676806462; Thu, 02 Nov 2017 19:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509676806; cv=none; d=google.com; s=arc-20160816; b=SzufL39tUWgCOQqwnTmjoJUbWjNn8B1E8oKzKcy2pcKrDUl5EK3pJqZfe2eSwH9EG3 CqKNVOQaPpwGsfA7jMw7eSgv+0wtSAMstYu7fzlFMkhG0LDnAutKxt7/WhhhQnAjIuJk a/P+Jk1yPEyJQwJFeEGJYjLCwjXWD20a60fQkJ1MX9Zww5U2yno2/DhNF5jIa2mxTlIE 72q3QS0iDyw37oSaiQ9PT8Q67cUptZyvJu/JtP4cA/+j+ElsYs+au872Hau7dNI/TDac coR+4r1Hyy7hUCJ2n7EqRfACYdpBr5ffKLZf4xYE3lzL4Ti9XX3Q/wgS65jWDLZ1RyP0 SZmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=d8DssprJPl45kQme9ikGwsR4mw0Br6dmMV9VeGX7new=; b=yWPYcOLCi0IkBdq2kbhjZEFd50/eOWvHKF8j8Bb0eNaELm33y+uoJctEB151jwkzxt So9i6RGy4ZCbi+yFNDWasGZVHToiv4kHqfQJVd8Dyr4/0eTh5iqEbSqqc4MR0UrZFHCt qZ/HdmPM2/KRJodQ4PRI0b841FsyyRGjLx+VLqVSVW3QulyLvVPagNdYtD+Hq52fMz1i jgowHtFwfCOsuIcGH4/TGOp/1QOI7mOmOgLVSNiBGjA3+3SyJwR0HmUun5wmeXO5COxU gwg7E89I/4tN9mA4PKu38Tm/ISN94BwvJfAyJ+bZNKeqRwoMJAIxk+SYmEyL3mt+J6/3 pw6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i192si4893836pgc.785.2017.11.02.19.39.53; Thu, 02 Nov 2017 19:40:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965053AbdKCCjT (ORCPT + 96 others); Thu, 2 Nov 2017 22:39:19 -0400 Received: from mga05.intel.com ([192.55.52.43]:52362 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964918AbdKCCjR (ORCPT ); Thu, 2 Nov 2017 22:39:17 -0400 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP; 02 Nov 2017 19:39:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,336,1505804400"; d="scan'208";a="917070172" Received: from hz-desktop.sh.intel.com (HELO localhost) ([10.239.159.142]) by FMSMGA003.fm.intel.com with ESMTP; 02 Nov 2017 19:39:04 -0700 Date: Fri, 3 Nov 2017 10:39:12 +0800 From: Haozhong Zhang To: Dan Williams Cc: KVM list , X86 ML , "linux-kernel@vger.kernel.org" , Paolo Bonzini , rkrcmar@redhat.com, Xiao Guangrong , "Cuevas Escareno, Ivan D" , "Kumar, Karthik" , Konrad Rzeszutek Wilk , Olif Chapman Subject: Re: [PATCH v3 2/3] KVM: add converters between pfn_t and kvm_pfn_t Message-ID: <20171103023912.gsa6dvwtozgi5fmj@hz-desktop> Mail-Followup-To: Dan Williams , KVM list , X86 ML , "linux-kernel@vger.kernel.org" , Paolo Bonzini , rkrcmar@redhat.com, Xiao Guangrong , "Cuevas Escareno, Ivan D" , "Kumar, Karthik" , Konrad Rzeszutek Wilk , Olif Chapman References: <20171103011620.21380-1-haozhong.zhang@intel.com> <20171103011620.21380-3-haozhong.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/17 19:25 -0700, Dan Williams wrote: > On Thu, Nov 2, 2017 at 6:16 PM, Haozhong Zhang wrote: > > Signed-off-by: Haozhong Zhang > > --- > > include/linux/kvm_host.h | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > > index 6882538eda32..759fe498c89e 100644 > > --- a/include/linux/kvm_host.h > > +++ b/include/linux/kvm_host.h > > @@ -67,6 +67,9 @@ > > #define KVM_PFN_ERR_HWPOISON (KVM_PFN_ERR_MASK + 1) > > #define KVM_PFN_ERR_RO_FAULT (KVM_PFN_ERR_MASK + 2) > > > > +#define kvm_pfn_to_pfn(x) ((pfn_t){ .val = (x)}) > > +#define pfn_to_kvm_pfn(x) ((kvm_pfn_t)((x).val)) > > Shouldn't this mask off the kvm_pfn_t and pfn_t specific bits when > converting between the two? Yes, I'll fix it. Thanks, Haozhong From 1583009992914144102@xxx Fri Nov 03 02:26:12 +0000 2017 X-GM-THRID: 1583005705143932866 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread