diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-08-24 01:27:04 +0300 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-08-31 16:45:55 +0300 |
commit | b194da25ca4812f6307204f9166ec623fd08d5d0 (patch) | |
tree | 535a0e43da6121afa300bd817f8104b64e384521 /arch/x86/xen/mmu.c | |
parent | 22f12f0df802cea865672d8f39fbebdc03981050 (diff) | |
download | linux-b194da25ca4812f6307204f9166ec623fd08d5d0.tar.xz |
xen: Don't try to call xen_alloc_p2m_entry() on autotranslating guests
Commit aba831a69632 ("xen: remove tests for pvh mode in pure pv paths")
removed XENFEAT_auto_translated_physmap test in xen_alloc_p2m_entry()
since it is assumed that the routine is never called by non-PV guests.
However, alloc_xenballooned_pages() may make this call on a PVH guest.
Prevent this from happening by adding XENFEAT_auto_translated_physmap
check there.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Fixes: aba831a69632 ("xen: remove tests for pvh mode in pure pv paths")
Diffstat (limited to 'arch/x86/xen/mmu.c')
0 files changed, 0 insertions, 0 deletions