mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
vmxassist: Include terminating 0xff byte in TSS I/O bitmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
9ae5c53e34
commit
cbf6afa30d
2 files changed
+2
-1
No files matched your search
@@ -115,7 +115,7 @@ struct tss {
|
||||
#ifdef ENABLE_VME
|
||||
unsigned long int_redir[8];
|
||||
#endif
|
||||
unsigned char iomap[8192];
|
||||
unsigned char iomap[8193];
|
||||
};
|
||||
|
||||
static inline void
|
||||
|
||||
@@ -127,6 +127,7 @@ setup_gdt(void)
|
||||
tss.ss0 = DATA_SELECTOR;
|
||||
tss.esp0 = (unsigned) stack_top;
|
||||
tss.iomap_base = offsetof(struct tss, iomap);
|
||||
tss.iomap[sizeof(tss.iomap)-1] = 0xff;
|
||||
|
||||
/* initialize gdt's tss selector */
|
||||
gdt[TSS_SELECTOR / sizeof(gdt[0])] |=
|
||||
|
||||