]> xenbits.xensource.com Git - xen.git/commitdiff
x86/HVM: tighten re-issue check in hvmemul_do_io()
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:18:37 +0000 (17:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:18:37 +0000 (17:18 +0100)
I'm not sure why we had left out the address check in case of indirect
accesses (where "data" holds a guest physical address).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c

index e924ce07c42228d014e1876b2b198b25b3952ace..b8c94c926d5caa4bee6127d57d90371fec3cb448 100644 (file)
@@ -163,7 +163,8 @@ static int hvmemul_do_io(
              (p.count > *reps) ||
              (p.dir != dir) ||
              (p.df != df) ||
-             (p.data_is_ptr != data_is_addr) )
+             (p.data_is_ptr != data_is_addr) ||
+             (data_is_addr && (p.data != data)) )
             domain_crash(currd);
 
         if ( data_is_addr )