Searched hist:ea5f1cd7ab494f65f50f338299eabb40ad6a1767 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/x86/include/asm/ |
H A D | io_bitmap.h | diff 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 D | ioport.c | diff 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 D | process.c | diff 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>
|