ia64/xen-unstable

changeset 15180:b9da101ed945

vmxassist: Include terminating 0xff byte in TSS I/O bitmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Sun May 20 19:05:10 2007 +0100 (2007-05-20)
parents 0fd2bf14f38a
children c702d9a2781f
files tools/firmware/vmxassist/machine.h tools/firmware/vmxassist/setup.c
line diff
     1.1 --- a/tools/firmware/vmxassist/machine.h	Sat May 19 10:54:01 2007 -0700
     1.2 +++ b/tools/firmware/vmxassist/machine.h	Sun May 20 19:05:10 2007 +0100
     1.3 @@ -115,7 +115,7 @@ struct tss {
     1.4  #ifdef	ENABLE_VME
     1.5  	unsigned long	int_redir[8];
     1.6  #endif
     1.7 -	unsigned char	iomap[8192];
     1.8 +	unsigned char	iomap[8193];
     1.9  };
    1.10  
    1.11  static inline void
     2.1 --- a/tools/firmware/vmxassist/setup.c	Sat May 19 10:54:01 2007 -0700
     2.2 +++ b/tools/firmware/vmxassist/setup.c	Sun May 20 19:05:10 2007 +0100
     2.3 @@ -127,6 +127,7 @@ setup_gdt(void)
     2.4  	tss.ss0 = DATA_SELECTOR;
     2.5  	tss.esp0 = (unsigned) stack_top;
     2.6  	tss.iomap_base = offsetof(struct tss, iomap);
     2.7 +	tss.iomap[sizeof(tss.iomap)-1] = 0xff;
     2.8  
     2.9  	/* initialize gdt's tss selector */
    2.10  	gdt[TSS_SELECTOR / sizeof(gdt[0])] |=