Home
last modified time | relevance | path

Searched hist:ea5f1cd7ab494f65f50f338299eabb40ad6a1767 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/x86/include/asm/
H A Dio_bitmap.hdiff ea5f1cd7ab494f65f50f338299eabb40ad6a1767 Mon Nov 11 16:03:24 CST 2019 Thomas Gleixner <tglx@linutronix.de> x86/ioperm: Remove bitmap if all permissions dropped

If ioperm() results in a bitmap with all bits set (no permissions to any
I/O port), then handling that bitmap on context switch and exit to user
mode is pointless. Drop it.

Move the bitmap exit handling to the ioport code and reuse it for both the
thread exit path and dropping it. This allows to reuse this code for the
upcoming iopl() emulation.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
/openbmc/linux/arch/x86/kernel/
H A Dioport.cdiff ea5f1cd7ab494f65f50f338299eabb40ad6a1767 Mon Nov 11 16:03:24 CST 2019 Thomas Gleixner <tglx@linutronix.de> x86/ioperm: Remove bitmap if all permissions dropped

If ioperm() results in a bitmap with all bits set (no permissions to any
I/O port), then handling that bitmap on context switch and exit to user
mode is pointless. Drop it.

Move the bitmap exit handling to the ioport code and reuse it for both the
thread exit path and dropping it. This allows to reuse this code for the
upcoming iopl() emulation.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
H A Dprocess.cdiff ea5f1cd7ab494f65f50f338299eabb40ad6a1767 Mon Nov 11 16:03:24 CST 2019 Thomas Gleixner <tglx@linutronix.de> x86/ioperm: Remove bitmap if all permissions dropped

If ioperm() results in a bitmap with all bits set (no permissions to any
I/O port), then handling that bitmap on context switch and exit to user
mode is pointless. Drop it.

Move the bitmap exit handling to the ioport code and reuse it for both the
thread exit path and dropping it. This allows to reuse this code for the
upcoming iopl() emulation.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>