x86/tss: Move I/O bitmap data into a seperate struct

Move the non hardware portion of I/O bitmap data into a seperate struct for
readability sake.

Originally-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner
2019-11-12 18:45:29 +01:00
parent ecc7e37d4d
commit f5848e5fd2
4 changed files with 34 additions and 27 deletions

View File

@@ -374,11 +374,11 @@ static inline void switch_to_bitmap(struct thread_struct *next,
* bits permitted, then the copy needs to cover those as
* well so they get turned off.
*/
memcpy(tss->io_bitmap, next->io_bitmap_ptr,
max(tss->io_bitmap_prev_max, next->io_bitmap_max));
memcpy(tss->io_bitmap.bitmap, next->io_bitmap_ptr,
max(tss->io_bitmap.prev_max, next->io_bitmap_max));
/* Store the new max and set io_bitmap_base valid */
tss->io_bitmap_prev_max = next->io_bitmap_max;
tss->io_bitmap.prev_max = next->io_bitmap_max;
tss->x86_tss.io_bitmap_base = IO_BITMAP_OFFSET_VALID;
/*