]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
x86: make get_page_from_l1e() return a proper error code
authorKeir Fraser <keir@xen.org>
Wed, 9 Mar 2011 16:16:11 +0000 (16:16 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 9 Mar 2011 16:16:11 +0000 (16:16 +0000)
commitbe640b1800bbaaadf4db81b3badbb38714c2f309
tree8f7d3df41c712fb577295a3705dac4c2efd2776b
parent0778492204a0a63aa0657a4fe15dd9754ede704b
x86: make get_page_from_l1e() return a proper error code

... so that the guest can actually know the reason for the (hypercall)
failure.

ptwr_do_page_fault() could propagate the error indicator received from
get_page_from_l1e() back to the guest in the high half of the error
code (entry_vector), provided we're sure all existing guests can deal
with that (or indicate so by means of a to-be-added guest feature
flag). Alternatively, a second virtual status register (like CR2)
could be introduced.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/mm.c
xen/arch/x86/mm/shadow/multi.c