mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[SVM] Do not update seg.base in realmode while obtaining the io
addr for ins/outs. Signed-off-by: Tom Woller <thomas.woller@amd.com>
This commit is contained in:
1 parent
76d1c06d09
commit
75a5d014e3
1 file changed
+1
-5
@@ -1163,16 +1163,12 @@ static unsigned int check_for_null_selector(struct vmcb_struct *vmcb,
|
||||
seg = vmcb->ds;
|
||||
break;
|
||||
default:
|
||||
if (dir == IOREQ_READ)
|
||||
if (dir == IOREQ_READ) /* IN/INS instruction? */
|
||||
seg = vmcb->es;
|
||||
else
|
||||
seg = vmcb->ds;
|
||||
}
|
||||
|
||||
/* In real Mode */
|
||||
if (real)
|
||||
seg.base = seg.sel << 4;
|
||||
|
||||
if (base)
|
||||
*base = seg.base;
|
||||
|
||||
|
||||