From: Juergen Gross <jgross@suse.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com,
linux-kernel@vger.kernel.org
Subject: Re: [Xen-devel] [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior
Date: Wed, 10 May 2017 10:08:32 +0200 [thread overview]
Message-ID: <2ce280aa-678d-9f59-22bb-c9d6cca0a0d2@suse.com> (raw)
In-Reply-To: <5912E54602000078001586EB@prv-mh.provo.novell.com>
On 10/05/17 10:02, Jan Beulich wrote:
>>>> On 10.05.17 at 06:08, <jgross@suse.com> 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.
>>
>> So when trying to obtain the guest physical address of such a page
>> pud_pfn() and pmd_pfn() must be avoided as those will mask away guest
>> physical address bits not being zero in this special case.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
>
> Perhaps worth Cc-ing stable@ ?
Any backport needs to be done manually, as mmu_pv.c has been introduced
in 4.12 only.
As soon as the patch is upstream I'm planning to do that (trivial)
backport and send it to stable.
Juergen
next prev parent reply other threads:[~2017-05-10 8:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-10 4:08 Juergen Gross
2017-05-10 8:02 ` [Xen-devel] " Jan Beulich
2017-05-10 8:08 ` Juergen Gross [this message]
2017-05-10 13:45 ` Boris Ostrovsky
2017-05-10 14:19 ` Juergen Gross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2ce280aa-678d-9f59-22bb-c9d6cca0a0d2@suse.com \
--to=jgross@suse.com \
--cc=JBeulich@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®