ia64/xen-unstable

changeset 19842:04476e5ef35d

x86 hvm: Make sure port 0x80 in hvm_io_table[] is set correctly
regardless of execution order of hvm_enable() and check_port80().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:51:40 2009 +0100 (2009-06-25)
parents c30ace4ad49f
children d5c97cd22d6f
files xen/arch/x86/hvm/quirks.c
line diff
     1.1 --- a/xen/arch/x86/hvm/quirks.c	Thu Jun 25 13:15:32 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/quirks.c	Thu Jun 25 13:51:40 2009 +0100
     1.3 @@ -20,6 +20,8 @@
     1.4  #include <xen/init.h>
     1.5  #include <xen/lib.h>
     1.6  #include <xen/dmi.h>
     1.7 +#include <xen/bitmap.h>
     1.8 +#include <asm/hvm/support.h>
     1.9  
    1.10  int hvm_port80_allowed = -1;
    1.11  boolean_param("hvm_port80", hvm_port80_allowed);
    1.12 @@ -88,6 +90,9 @@ static int __init check_port80(void)
    1.13  
    1.14      dmi_check_system(hvm_no_port80_dmi_table);
    1.15  
    1.16 +    if ( !hvm_port80_allowed )
    1.17 +        __set_bit(0x80, hvm_io_bitmap);
    1.18 +
    1.19      return 0;
    1.20  }
    1.21  __initcall(check_port80);