projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcdcb97
)
x86/HVM: tighten re-issue check in hvmemul_do_io()
author
Jan Beulich
<jbeulich@suse.com>
Tue, 5 Dec 2017 16:18:37 +0000
(17:18 +0100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/emulate.c
b/xen/arch/x86/hvm/emulate.c
index e924ce07c42228d014e1876b2b198b25b3952ace..b8c94c926d5caa4bee6127d57d90371fec3cb448 100644
(file)
--- a/
xen/arch/x86/hvm/emulate.c
+++ b/
xen/arch/x86/hvm/emulate.c
@@
-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 )