xen: Fix {set,clear}_foreign_p2m_mapping on autotranslating guests
authorSimon Gaiser <[email protected]>
Wed, 7 Feb 2018 20:47:40 +0000 (21:47 +0100)
committerJuergen Gross <[email protected]>
Thu, 8 Feb 2018 09:40:49 +0000 (10:40 +0100)
commit781198f1f373c3e350dbeb3af04a7d4c81c1b8d7
tree9833d89b6977a96bcd309df5f714e50a82f6e4bd
parent761191258839b7d922b83064c4251b8bd4e2e7c2
xen: Fix {set,clear}_foreign_p2m_mapping on autotranslating guests

Commit 82616f9599a7 ("xen: remove tests for pvh mode in pure pv paths")
removed the check for autotranslation from {set,clear}_foreign_p2m_mapping
but those are called by grant-table.c also on PVH/HVM guests.

Cc: <[email protected]> # 4.14
Fixes: 82616f9599a7 ("xen: remove tests for pvh mode in pure pv paths")
Signed-off-by: Simon Gaiser <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
arch/x86/xen/p2m.c