aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/quirks.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-06-25 13:51:40 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-06-25 13:51:40 +0100
commit549d0cf28185555404dbb28b53df50c7e3b58139 (patch)
treef23a954d4b418bbdb58f3fa3d7ec450fe52b4731 /xen/arch/x86/hvm/quirks.c
parentd7e7ef68594c45197932d4e960603a670657b809 (diff)
downloadxen-549d0cf28185555404dbb28b53df50c7e3b58139.tar.gz
xen-549d0cf28185555404dbb28b53df50c7e3b58139.tar.bz2
xen-549d0cf28185555404dbb28b53df50c7e3b58139.zip
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>
Diffstat (limited to 'xen/arch/x86/hvm/quirks.c')
-rw-r--r--xen/arch/x86/hvm/quirks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/quirks.c b/xen/arch/x86/hvm/quirks.c
index a49fa0d284..1e08a2beba 100644
--- a/xen/arch/x86/hvm/quirks.c
+++ b/xen/arch/x86/hvm/quirks.c
@@ -20,6 +20,8 @@
#include <xen/init.h>
#include <xen/lib.h>
#include <xen/dmi.h>
+#include <xen/bitmap.h>
+#include <asm/hvm/support.h>
int hvm_port80_allowed = -1;
boolean_param("hvm_port80", hvm_port80_allowed);
@@ -88,6 +90,9 @@ static int __init check_port80(void)
dmi_check_system(hvm_no_port80_dmi_table);
+ if ( !hvm_port80_allowed )
+ __set_bit(0x80, hvm_io_bitmap);
+
return 0;
}
__initcall(check_port80);