Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-02 Thread Boris Ostrovsky
; linux-kernel@vger.kernel.org >> Cc: Thomas Gleixner ; Ingo Molnar >> ; H. Peter Anvin >> Subject: Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain >> >> On 11/01/2017 11:37 AM, Juergen Gross wrote: >>> TBH I like V1 better, too. >>>

RE: [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-02 Thread Paul Durrant
ar > ; H. Peter Anvin > Subject: Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain > > On 11/01/2017 11:37 AM, Juergen Gross wrote: > > > > TBH I like V1 better, too. > > > > Boris, do you feel strong about the #ifdef part? > > Having looked a

Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-01 Thread Boris Ostrovsky
On 11/01/2017 11:37 AM, Juergen Gross wrote: > > TBH I like V1 better, too. > > Boris, do you feel strong about the #ifdef part? Having looked at what this turned into I now like V1 better too ;-) Sorry, Paul. -boris

Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-01 Thread Juergen Gross
c: Boris Ostrovsky ; Thomas Gleixner >> ; Ingo Molnar ; H. Peter Anvin >> >> Subject: Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain >> >> On 01/11/17 12:31, Paul Durrant wrote: >>> If the domain has XENFEAT_auto_translated_physmap then use o

RE: [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-01 Thread Paul Durrant
nvin > > Subject: Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain > > On 01/11/17 12:31, Paul Durrant wrote: > > If the domain has XENFEAT_auto_translated_physmap then use of the PV- > > specific HYPERVISOR_mmu_update hypercall is clearly

Re: [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-01 Thread Juergen Gross
On 01/11/17 12:31, 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 ap

[PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-01 Thread Paul Durrant
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 pre