diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-10-28 10:55:53 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-10-28 10:55:53 +0000 |
commit | 9119667be235cc7dcb67b76e71640fec0f434555 (patch) | |
tree | ede6bcaef59b3d980cc66678ebf7772ae76264e0 /xen/arch/x86/domain_build.c | |
parent | 6b8d4098ca9a333cf4440e79f05e37a2b678bed1 (diff) | |
download | xen-9119667be235cc7dcb67b76e71640fec0f434555.tar.gz xen-9119667be235cc7dcb67b76e71640fec0f434555.tar.bz2 xen-9119667be235cc7dcb67b76e71640fec0f434555.zip |
x86: deny access to the ACPI PM timer I/O port range for Dom0
Also move the declaration of pmtmr_ioport to a suitable header file.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/domain_build.c')
-rw-r--r-- | xen/arch/x86/domain_build.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index 06a285f231..a740791e56 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -29,6 +29,7 @@ #include <asm/paging.h> #include <asm/p2m.h> #include <asm/e820.h> +#include <asm/acpi.h> #include <asm/bzimage.h> /* for bzimage_parse */ #include <public/version.h> @@ -1064,6 +1065,9 @@ int __init construct_dom0( rc |= ioports_deny_access(dom0, 0x40, 0x43); /* PIT Channel 2 / PC Speaker Control. */ rc |= ioports_deny_access(dom0, 0x61, 0x61); + /* ACPI PM Timer. */ + if ( pmtmr_ioport ) + rc |= ioports_deny_access(dom0, pmtmr_ioport, pmtmr_ioport + 3); /* PCI configuration space (NB. 0xcf8 has special treatment). */ rc |= ioports_deny_access(dom0, 0xcfc, 0xcff); /* Command-line I/O ranges. */ |