debuggers.hg
changeset 21116:19cc497863a4
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@cl.cam.ac.uk>
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@cl.cam.ac.uk>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Fri Mar 26 08:48:08 2010 +0000 (2010-03-26) |
parents | 17fa3cd04361 |
children | 415c0bf4ac7a |
files | xen/arch/x86/mm/shadow/common.c |
line diff
1.1 --- a/xen/arch/x86/mm/shadow/common.c Fri Mar 26 08:45:45 2010 +0000 1.2 +++ b/xen/arch/x86/mm/shadow/common.c Fri Mar 26 08:48:08 2010 +0000 1.3 @@ -180,6 +180,9 @@ hvm_read(enum x86_segment seg, 1.4 case HVMCOPY_bad_gfn_to_mfn: 1.5 case HVMCOPY_unhandleable: 1.6 return X86EMUL_UNHANDLEABLE; 1.7 + case HVMCOPY_gfn_paged_out: 1.8 + case HVMCOPY_gfn_shared: 1.9 + return X86EMUL_RETRY; 1.10 } 1.11 1.12 BUG();