x86/p2m: force return value checking of p2m_set_entry()
authorJan Beulich <jbeulich@suse.com>
Fri, 26 Jan 2018 12:26:57 +0000 (13:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Jan 2018 12:26:57 +0000 (13:26 +0100)
commit865852918aa10a6c1e159cbe56907ec4a1e359b5
tree9b78ba1a75d818c5d8b89c39c7ce6be8b3393900
parent76dcdb75b7cc9e7e8470e711db14bbbd3ae92415
x86/p2m: force return value checking of p2m_set_entry()

As XSAs 246 and 247 have shown, not doing so is rather dangerous.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h