Re: [PATCH] linux-user: fix bug about incorrect base addresss of gdt on i386 and x86_64

2023-03-07 Thread Laurent Vivier
Le 08/02/2023 à 16:49, fa...@mail.ustc.edu.cn a écrit : On linux user mode, CPUX86State::gdt::base from Different CPUX86State Objects have same value, It is incorrect! Every CPUX86State::gdt::base Must points to independent memory space. Resolves:

Re: [PATCH] linux-user: fix bug about incorrect base addresss of gdt on i386 and x86_64

2023-03-07 Thread Richard Henderson
On 3/7/23 06:30, Laurent Vivier wrote: Richard, do you think it's correct? It's correct enough, until target/i386 is fixed to not require the GDT/LDT to be incorrectly mapped in the (ring 3) user address space. You may wish to fix a few nits when applying:   } +static void

Re: [PATCH] linux-user: fix bug about incorrect base addresss of gdt on i386 and x86_64

2023-03-07 Thread Laurent Vivier
Richard, do you think it's correct? Thanks, Laurent Le 08/02/2023 à 16:49, fa...@mail.ustc.edu.cn a écrit : On linux user mode, CPUX86State::gdt::base from Different CPUX86State Objects have same value, It is incorrect! Every CPUX86State::gdt::base Must points to independent memory space.

[PATCH] linux-user: fix bug about incorrect base addresss of gdt on i386 and x86_64

2023-02-08 Thread fanwj
On linux user mode, CPUX86State::gdt::base from Different CPUX86State Objects have same value, It is incorrect! Every CPUX86State::gdt::base Must points to independent memory space. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1405 Signed-off-by: fanwenjie ---

Re: [PATCH] linux-user: fix bug about incorrect base addresss of gdt on i386 and x86_64

2023-01-14 Thread Richard Henderson
On 1/3/23 01:38, fanwenjie wrote: On linux user mode, CPUX86State::gdt::base from Different CPUX86State Objects have same value, It is incorrect! Every CPUX86State::gdt::base Must points to independent memory space. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1405 Signed-off-by:

[PATCH] linux-user: fix bug about incorrect base addresss of gdt on i386 and x86_64

2023-01-03 Thread fanwenjie
On linux user mode, CPUX86State::gdt::base from Different CPUX86State Objects have same value, It is incorrect! Every CPUX86State::gdt::base Must points to independent memory space. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1405 Signed-off-by: fanwenjie ---