[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] shadow: Don't crash xen if hvm_read() from paged or shared memory
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1269593288 0 # Node ID 19cc497863a442c8d23e77fb2f1b201651687aa2 # Parent 17fa3cd04361ca7e4bc3e000b67fb4187e5d21b5 shadow: Don't crash xen if hvm_read() from paged or shared memory There are two new return cases from hvm_copy_from_guest_virt() to deal with paging or shared memory -- retry the emulation rather than crash. Signed-off-by: Steven Hand <steven.hand@xxxxxxxxxxxx> --- xen/arch/x86/mm/shadow/common.c | 3 +++ 1 files changed, 3 insertions(+) diff -r 17fa3cd04361 -r 19cc497863a4 xen/arch/x86/mm/shadow/common.c --- a/xen/arch/x86/mm/shadow/common.c Fri Mar 26 08:45:45 2010 +0000 +++ b/xen/arch/x86/mm/shadow/common.c Fri Mar 26 08:48:08 2010 +0000 @@ -180,6 +180,9 @@ hvm_read(enum x86_segment seg, case HVMCOPY_bad_gfn_to_mfn: case HVMCOPY_unhandleable: return X86EMUL_UNHANDLEABLE; + case HVMCOPY_gfn_paged_out: + case HVMCOPY_gfn_shared: + return X86EMUL_RETRY; } BUG(); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |