Received: by 10.223.164.221 with SMTP id h29csp251360wrb; Fri, 3 Nov 2017 13:51:52 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Sm5uoOsJ7T9hJADMP8qJv2q2kaxkorEcA1SrFSBsn5MwQYiPmuthTWPHxmpJqd/5w2xTy2 X-Received: by 10.99.95.86 with SMTP id t83mr8247911pgb.34.1509742312510; Fri, 03 Nov 2017 13:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509742312; cv=none; d=google.com; s=arc-20160816; b=FsmcshxW3U1TpHsNpmALSfb2VIvaybhBSXmDnlIiPc4CJ2yM0bXg/k2cY58HPWl0vN 6kj0Bz9hQd/VIFNIff/WJq3CHm4vIzqBh1s5Yuyf5pWKrfR/Bq3CiLYOId3jAIyxwJku ZB0PTfJ2eTubPWaPuu8VF7WzjaHgeBBn/RYfW4df/lF9BDpWJl9C3eDs2gMDNA/pkb8t hxk5j7JSe/tZ6A46U+7ooLby8cN7BE44C65c7mNfsNW5x95zbo1jv3UEu8A0uw7wLGAa e+Dq7mu2MO/nlj9Rv5rq2q1P0t6kEsOvZJSFV3ocRQIsWi3AqC2aAOMAx1bLiLke/QJ0 4FQg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=iYkw1lCVSmVGNhurUUQZ1x17DMeXhGtywah9BtWCtEc=; b=nFuOGzqOEgZ1SQw/HQ43r2wdI5tu6OvXkAJvnIb6nNr8ugJrfb/dv6Vt/gaqDaAyi5 qKG+sWsG977wu6OSH9jaFigbDX283g6nI15GaQPM+4Zqx43gBsbsDUbk3hWSpXMP6jRF svCQ0R3cGMdcJuK2mxxgbDFxushokzSshsyvVhCrW1kTnyc4hXXQHrMtlMUrVIQhZuJs xdXPAJrxNCpOhh2hzg4QTZSKhq1uIqx25EJ814n3uYN8zMH2IrXCS+61H5egaMrAcyk6 Z0Da+smV943xtYDR2H83+S0XMEZkMrtZLj3BJUp8Tv+mU7+Gzrf7DqIRHoc6yWoXRhhL +nLg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si5784078plc.278.2017.11.03.13.51.38; Fri, 03 Nov 2017 13:51:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752876AbdKCUuz (ORCPT + 92 others); Fri, 3 Nov 2017 16:50:55 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:38510 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805AbdKCUuy (ORCPT ); Fri, 3 Nov 2017 16:50:54 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA3KoXpP010003 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Nov 2017 20:50:33 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA3KoWsC017606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Nov 2017 20:50:32 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vA3KoUBl000460; Fri, 3 Nov 2017 20:50:30 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 03 Nov 2017 13:50:30 -0700 Subject: Re: [PATCH v4] xen: support priv-mapping in an HVM tools domain To: Paul Durrant , x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <20171103170411.32239-1-paul.durrant@citrix.com> Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" From: Boris Ostrovsky Message-ID: <7e3f125b-7384-52cf-6c48-aa0a7cb7e047@oracle.com> Date: Fri, 3 Nov 2017 16:51:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171103170411.32239-1-paul.durrant@citrix.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/03/2017 01:04 PM, Paul Durrant wrote: > If the domain has XENFEAT_auto_translated_physmap then use of the PV- > specific HYPERVISOR_mmu_update hypercall is clearly incorrect. > > This patch adds checks in xen_remap_domain_gfn_array() and > xen_unmap_domain_gfn_array() which call through to the approprate > xlate_mmu function if the feature is present. A check is also added > to xen_remap_domain_gfn_range() to fail with -EOPNOTSUPP since this > should not be used in an HVM tools domain. > > Signed-off-by: Paul Durrant Reviewed-by: Boris Ostrovsky From 1583065312069105182@xxx Fri Nov 03 17:05:29 +0000 2017 X-GM-THRID: 1583064975085269959 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread