...otherwise they will simply carry on to the next page using a normal linear-to-phys translation.
Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Cc: Keir Fraser <k...@xen.org> Cc: Jan Beulich <jbeul...@suse.com> Cc: Andrew Cooper <andrew.coop...@citrix.com> --- xen/arch/x86/hvm/emulate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index 935eab3..f3372fc 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -586,7 +586,6 @@ static int __hvmemul_read( p_data); if ( rc != X86EMUL_OKAY || bytes == chunk ) return rc; - addr += chunk; off += chunk; gpa += chunk; p_data += chunk; @@ -594,6 +593,8 @@ static int __hvmemul_read( if ( bytes < chunk ) chunk = bytes; } + + return X86EMUL_UNHANDLEABLE; } if ( (seg != x86_seg_none) && @@ -730,7 +731,6 @@ static int hvmemul_write( p_data); if ( rc != X86EMUL_OKAY || bytes == chunk ) return rc; - addr += chunk; off += chunk; gpa += chunk; p_data += chunk; @@ -738,6 +738,8 @@ static int hvmemul_write( if ( bytes < chunk ) chunk = bytes; } + + return X86EMUL_UNHANDLEABLE; } if ( (seg != x86_seg_none) && -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel