qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/i386: seg_helper: Correct segement selector nullifica


From: Bin Meng
Subject: Re: [PATCH] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper
Date: Mon, 2 Nov 2020 16:20:08 +0800

On Thu, Oct 22, 2020 at 6:16 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> From: Bin Meng <bin.meng@windriver.com>
>
> 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>
> ---
>
>  target/i386/seg_helper.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>

Ping?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]