Re: [PATCH] target/i386: Check privilege level for protected mode 'int N' task gate

2020-12-17 Thread Paolo Bonzini
On 21/11/20 23:44, Peter Maydell wrote: When the 'int N' instruction is executed in protected mode, the pseudocode in the architecture manual specifies that we need to check: * vector number within IDT limits * selected IDT descriptor is a valid type (interrupt, trap or task gate) * if thi

Re: [PATCH] target/i386: Check privilege level for protected mode 'int N' task gate

2020-11-24 Thread Richard Henderson
On 11/21/20 2:44 PM, Peter Maydell wrote: > When the 'int N' instruction is executed in protected mode, the > pseudocode in the architecture manual specifies that we need to check: > > * vector number within IDT limits > * selected IDT descriptor is a valid type (interrupt, trap or task gate) >

[PATCH] target/i386: Check privilege level for protected mode 'int N' task gate

2020-11-21 Thread Peter Maydell
When the 'int N' instruction is executed in protected mode, the pseudocode in the architecture manual specifies that we need to check: * vector number within IDT limits * selected IDT descriptor is a valid type (interrupt, trap or task gate) * if this was a software interrupt then gate DPL < CP