summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2017-05-10 06:08:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-20 14:26:58 +0200
commit8e209a07b10613b3619cad0908d39aca08dc3773 (patch)
tree35eab57e94f6cccd1d94d1e780897ebae8d1929a /drivers/target
parentbe90e260145c0463c7a5c80ced379adc2f4850cc (diff)
xen: adjust early dom0 p2m handling to xen hypervisor behavior
commit 69861e0a52f8733355ce246f0db15e1b240ad667 upstream. 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> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions