x86: tighten MMU_*PT_UPDATE* check and combine error paths
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:23:18 +0000 (17:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:23:18 +0000 (17:23 +0100)
commitf55d5c074676cf281b1e3e8f43f519a4f6cc7f58
tree10f8721757605beb2cf7535bb8a898d74585e28b
parenta7ddeae652c7b9814597e6bb4f03cd872cd1fd7e
x86: tighten MMU_*PT_UPDATE* check and combine error paths

Don't accept anything other than r/w RAM pages as page table pages and
move the paged-out check into the (unlikely) error path following that
check.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c