From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752968AbdKCUuz (ORCPT ); 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 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 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