From c279f333a7716b1b4e9f21beedaada751be1f2d5 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 9 Jul 2012 10:23:57 +0100 Subject: [PATCH] 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 Acked-by: Keir Fraser xen-unstable changeset: 24970:33980e36597b xen-unstable date: Tue Mar 06 16:41:41 2012 +0100 --- xen/arch/x86/acpi/cpu_idle.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c index 6ae9d476a9..3fde934194 100644 --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -888,6 +889,9 @@ static void set_cx( 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: -- 2.39.5