From: Keir Fraser Subject: Re: [PATCH] x86/cpuidle: deny access to the I/O port used for EM_SYSIO Date: Tue, 06 Mar 2012 15:15:31 +0000 Message-ID: References: <4F5634710200007800076AD1@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F5634710200007800076AD1@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org On 06/03/2012 14:59, "Jan Beulich" wrote: > Nothing, not even Dom0, should fiddle with this. > > Signed-off-by: Jan Beulich Acked-by: Keir Fraser > --- a/xen/arch/x86/acpi/cpu_idle.c > +++ b/xen/arch/x86/acpi/cpu_idle.c > @@ -45,6 +45,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -907,6 +908,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: > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel