[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.2-testing] x86 shadow: Fix cross-page write emulation failure.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202134494 0
# Node ID 623e5633f384c46f81972b756bc4a48dbf0f700c
# Parent  3862f16b049f3369c70fe4bc8c505474f1facd77
x86 shadow: Fix cross-page write emulation failure.
Signed-off-by: Disheng Su <disheng.su@xxxxxxxxx>
xen-unstable changeset:   16962:3787e70b2ab219de50dff7417917fd9f9ccfcc35
xen-unstable date:        Fri Feb 01 11:21:27 2008 +0000
---
 xen/arch/x86/mm/shadow/multi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 3862f16b049f -r 623e5633f384 xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c    Mon Feb 04 14:14:20 2008 +0000
+++ b/xen/arch/x86/mm/shadow/multi.c    Mon Feb 04 14:14:54 2008 +0000
@@ -4076,7 +4076,7 @@ static void *emulate_map_dest(struct vcp
         sh_ctxt->mfn2 = emulate_gva_to_mfn(v, (vaddr + bytes - 1) & PAGE_MASK,
                                            sh_ctxt);
         if ( !mfn_valid(sh_ctxt->mfn2) ) 
-            return ((mfn_x(sh_ctxt->mfn1) == BAD_GVA_TO_GFN) ?
+            return ((mfn_x(sh_ctxt->mfn2) == BAD_GVA_TO_GFN) ?
                     MAPPING_EXCEPTION : MAPPING_UNHANDLEABLE);
 
         /* Cross-page writes mean probably not a pagetable */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.