diff options
author | Bin Meng <bin.meng@windriver.com> | 2020-11-13 17:56:18 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-10 12:15:00 -0500 |
commit | c2ba0515f2df58a661fcb5d6485139877d92ab1b (patch) | |
tree | 9f9ddc8815192d2682a8950263d64ff856448c1c /target/i386/whpx-all.c | |
parent | c1bb5418e32ec70c72af332354b5963eab7a5579 (diff) | |
download | qemu-c2ba0515f2df58a661fcb5d6485139877d92ab1b.zip qemu-c2ba0515f2df58a661fcb5d6485139877d92ab1b.tar.gz qemu-c2ba0515f2df58a661fcb5d6485139877d92ab1b.tar.bz2 |
target/i386: seg_helper: Correct segment selector nullification in the RET/IRET helper
Per the SDM, when returning to outer privilege level, for segment
registers (ES, FS, GS, and DS) if the check fails, the segment
selector becomes null, but QEMU clears the base/limit/flags as well
as nullifying the segment selector, which should be a spec violation.
Real hardware seems to be compliant with the spec, at least on one
Coffee Lake board I tested.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <1605261378-77971-1-git-send-email-bmeng.cn@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/whpx-all.c')
0 files changed, 0 insertions, 0 deletions