[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/cpuidle: deny access to the I/O port used for EM_SYSIO
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1331048501 -3600 # Node ID 33980e36597b9f780ef515210863034b5e3080bf # Parent fb70e48ee3c2ea7060a97d9ddaa6dfc864f1efc0 x86/cpuidle: deny access to the I/O port used for EM_SYSIO Nothing, not even Dom0, should fiddle with this. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r fb70e48ee3c2 -r 33980e36597b xen/arch/x86/acpi/cpu_idle.c --- a/xen/arch/x86/acpi/cpu_idle.c Tue Mar 06 16:11:59 2012 +0100 +++ b/xen/arch/x86/acpi/cpu_idle.c Tue Mar 06 16:41:41 2012 +0100 @@ -45,6 +45,7 @@ #include <xen/irq.h> #include <asm/cache.h> #include <asm/io.h> +#include <asm/iocap.h> #include <asm/hpet.h> #include <asm/processor.h> #include <xen/pmstat.h> @@ -907,6 +908,9 @@ cx->entry_method = ACPI_CSTATE_EM_HALT; break; case ACPI_ADR_SPACE_SYSTEM_IO: + if ( ioports_deny_access(dom0, cx->address, cx->address) ) + printk(XENLOG_WARNING "Could not deny access to port %04x\n", + cx->address); cx->entry_method = ACPI_CSTATE_EM_SYSIO; break; default: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |