Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638870

Re: [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior

From Juergen Gross <jgross@suse.com>
Newsgroups linux.kernel
Subject Re: [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior
Date 2017-05-10 16:30 +0200
Message-ID <tFAMN-1Qr-11@gated-at.bofh.it> (permalink)
References <tFr6N-3LM-1@gated-at.bofh.it> <tFAa7-1mz-49@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/05/17 15:45, Boris Ostrovsky wrote:
> On 05/10/2017 12:08 AM, Juergen Gross wrote:
>> When booted as pv-guest the p2m list presented by the Xen is already
>> mapped to virtual addresses. In dom0 case the hypervisor might make use
>> of 2M- or 1G-pages for this mapping. Unfortunately while being properly
>> aligned in virtual and machine address space, those pages might not be
>> aligned properly in guest physical address space.
> 
> Is this the only place where we shouldn't assume that large page is
> properly aligned (in pfn space)?

It is the only case requiring a change. xen_cleanmfnmap_*() already does
this correctly via the same mechanism I used in this patch.

I'm not aware of any other large pages set up by Xen for pv guests than
the ones for the initial p2m list. And these large pages are freed (via
xen_cleanmfnmap_*()) after setting up the final p2m list in kernel
virtual space.


Juergen

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior Juergen Gross <jgross@suse.com> - 2017-05-10 06:10 +0200
  Re: [Xen-devel] [PATCH] xen: adjust early dom0 p2m handling to  xen hypervisor behavior "Jan Beulich" <JBeulich@suse.com> - 2017-05-10 10:10 +0200
    Re: [Xen-devel] [PATCH] xen: adjust early dom0 p2m handling to xen  hypervisor behavior Juergen Gross <jgross@suse.com> - 2017-05-10 10:20 +0200
  Re: [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor  behavior Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-05-10 15:50 +0200
    Re: [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor  behavior Juergen Gross <jgross@suse.com> - 2017-05-10 16:30 +0200

csiph-web