Re: [Qemu-devel] [PATCH] target/i386: fix interrupt CPL error when

2017-06-25 Thread Paolo Bonzini
- Original Message - > From: "Wu Xiang" > To: "Paolo Bonzini" , qemu-devel@nongnu.org > Cc: "Eduardo Habkost" , "RichardHenderson" > > Sent: Sunday, June 25, 2017 1:13:24 PM > Subject: Re: [Qemu-devel][PATCH] target/i386: fix

Re: [Qemu-devel] [PATCH] target/i386: fix interrupt CPL error when

2017-06-25 Thread Wu Xiang
In-Reply-To: <641e1f35-813a-4244-0194-ffce08130...@redhat.com> On Fri, Jun 23, 2017 at 01:19:35PM +0200, Paolo Bonzini wrote: > > > On 21/06/2017 16:21, Wu Xiang wrote: > > In do_interrupt64(), when interrupt stack table(ist) is enabled > > and the the target code segment is conforming(e2 & DESC

Re: [Qemu-devel] [PATCH] target/i386: fix interrupt CPL error when using ist in x86-64

2017-06-23 Thread Paolo Bonzini
On 21/06/2017 16:21, Wu Xiang wrote: > In do_interrupt64(), when interrupt stack table(ist) is enabled > and the the target code segment is conforming(e2 & DESC_C_MASK), the > old implementation always set new CPL to 0, and SS.RPL to 0. > > This is incorrect for when CPL3 code access a CPL0 conf

[Qemu-devel] [PATCH] target/i386: fix interrupt CPL error when using ist in x86-64

2017-06-21 Thread Wu Xiang
In do_interrupt64(), when interrupt stack table(ist) is enabled and the the target code segment is conforming(e2 & DESC_C_MASK), the old implementation always set new CPL to 0, and SS.RPL to 0. This is incorrect for when CPL3 code access a CPL0 conforming code segment, the CPL should remain unchan