Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp753063imu; Fri, 25 Jan 2019 10:19:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN68HG/3L9PJ/yBWC7nEAgEhHnJKNcgf+EYrkIv21rzDNQ7mz7VQCC8zGC/kQKLCphQ/dV4k X-Received: by 2002:aa7:8045:: with SMTP id y5mr11849074pfm.62.1548440356850; Fri, 25 Jan 2019 10:19:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548440356; cv=none; d=google.com; s=arc-20160816; b=OYjApnd/QWroDfmjE/tAZ3f0DPmGFlpEVc1Jz6fCStghY5o70VNfH4rfc9fonJHIjP O7AxJBej68Kwyri8wmyOaemOkx9n9Xagq/gGqt2OZgk8FiidGvCp81kynrsAojGD92SD HqvtwKspYQgnfgoxkFlv03/H0pljf1DlQn9feAohqdgvQXKRVJgWh3apjEsZbvBp5L2g vUuxoS1lKrfSfedM005TvZAEr/VZ872YCIwjj+XbpflZQe/R9sEYrDwSx89oiM7MJ/6q S79rbJg3Q8Sr7AdiD+IhJRmfw428vJDWy++EqXMFsCTJGYmG6hQwU/xJXQc3wMNHUdsC 46gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=MhWeZrRQcKAjmSpWReigvorT9K00za/+mPd3S6e6q/A=; b=TeYBYgSbv9vM57VHRiCAqk2GJDTwv2Bzd15a3z9LWLEkf7bsoUqdBCpeAZhD4e9MUE iJjOJWYU3fIKNmzjwO74Arl4gmizsrXLG9ef6cll2jFj22fj5Q2mV7XrTlk5xRrmd1FX W4nQve6LbdS25BCXyyXJvIanA0QXdcXlL9qWNlAQNSah+oql8eFTqjyqI2ToqtjCQT41 hrDrBnbb+PvcFjMovYHbQu/9Uhb2UrgF5lMQ9c76AMxGAFKIFgN5Xo9yM/QfWNFkIUS8 h4ELlCCaCZm9a7owW80IoJqhCcbvkd+oVlbcnSdw/LZXhXCTH8w8C45VdwncgqyiByQr RG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=jMzy0r07; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si25697340pgn.57.2019.01.25.10.19.01; Fri, 25 Jan 2019 10:19:16 -0800 (PST) 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; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=jMzy0r07; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729483AbfAYSRb (ORCPT + 99 others); Fri, 25 Jan 2019 13:17:31 -0500 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:55861 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbfAYSRZ (ORCPT ); Fri, 25 Jan 2019 13:17:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1548440244; x=1579976244; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:mime-version: content-transfer-encoding; bh=MhWeZrRQcKAjmSpWReigvorT9K00za/+mPd3S6e6q/A=; b=jMzy0r07+DyGcPHiG4X1LNLL/cQHZ9mncbyDwPJfpKn7I3NWnbNHdBpO HLwLKvH1icW/ttaq146dQwEQFmzGeHcBuQEVq6ohCXd8woKGpvo/gTvPf IL0woXbEsiSvKl0RI6r6kSJetZ0MHEOtLuslbhD05Om/k7ooDpt8wjPtj 0=; X-IronPort-AV: E=Sophos;i="5.56,522,1539648000"; d="scan'208";a="714779778" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 25 Jan 2019 18:17:23 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com (Postfix) with ESMTPS id D58DDA257F; Fri, 25 Jan 2019 18:17:15 +0000 (UTC) Received: from EX13D01EUB004.ant.amazon.com (10.43.166.180) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 25 Jan 2019 18:17:14 +0000 Received: from EX13D01EUB003.ant.amazon.com (10.43.166.248) by EX13D01EUB004.ant.amazon.com (10.43.166.180) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 25 Jan 2019 18:17:13 +0000 Received: from EX13D01EUB003.ant.amazon.com ([10.43.166.248]) by EX13D01EUB003.ant.amazon.com ([10.43.166.248]) with mapi id 15.00.1367.000; Fri, 25 Jan 2019 18:17:13 +0000 From: "Raslan, KarimAllah" To: "konrad.wilk@oracle.com" CC: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "rkrcmar@redhat.com" , "pbonzini@redhat.com" Subject: Re: [PATCH v5 13/13] KVM/nVMX: Use page_address_valid in a few more locations Thread-Topic: [PATCH v5 13/13] KVM/nVMX: Use page_address_valid in a few more locations Thread-Index: AQHUp/+hXFSe3mcPMkeFhhSGW/c5HaW9P/2AgAMkZQA= Date: Fri, 25 Jan 2019 18:17:12 +0000 Message-ID: <1548440232.17444.23.camel@amazon.de> References: <1547026933-31226-1-git-send-email-karahmed@amazon.de> <1547026933-31226-14-git-send-email-karahmed@amazon.de> <20190123181807.GS19289@Konrads-MacBook-Pro.local> In-Reply-To: <20190123181807.GS19289@Konrads-MacBook-Pro.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.165.122] Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE5LTAxLTIzIGF0IDEzOjE4IC0wNTAwLCBLb25yYWQgUnplc3p1dGVrIFdpbGsg d3JvdGU6DQo+IE9uIFdlZCwgSmFuIDA5LCAyMDE5IGF0IDEwOjQyOjEzQU0gKzAxMDAsIEthcmlt QWxsYWggQWhtZWQgd3JvdGU6DQo+ID4gDQo+ID4gVXNlIHBhZ2VfYWRkcmVzc192YWxpZCBpbiBh IGZldyBtb3JlIGxvY2F0aW9ucyB0aGF0IGlzIGFscmVhZHkgY2hlY2tpbmcgZm9yDQo+ID4gYSBw YWdlIGFsaWduZWQgYWRkcmVzcyB0aGF0IGRvZXMgbm90IGNyb3NzIHRoZSBtYXhpbXVtIHBoeXNp Y2FsIGFkZHJlc3MuDQo+IA0KPiBXaGVyZSBpcyB0aGlzIHBhZ2VfYWRkcmVzc192YWxpZCBkZWNs YXJlZD8gVGhlIGxhdGVzdCBsaW51cydzIHRyZWUgZG9lcw0KPiBub3QgaGF2ZSBpdCwgbm9yIGRv ZXMgeW91ciBwYXRjaHNldD8NCg0KSXQgaXMgYWxyZWFkeSBkZWZpbmVkIGluIHRoZSBjb2RlLCBJ IGNhbiBub3Qgc2VlIGFueSBjb21taXRzIHRoYXQgcmVtb3ZlZ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