[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/cpuidle: deny access to the I/O port used for EM_SYSIO


  • To: Jan Beulich <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Tue, 06 Mar 2012 15:15:31 +0000
  • Delivery-date: Tue, 06 Mar 2012 15:16:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Acz7q/hCGdvUQE6eUkmpMZzQ5jIL8w==
  • Thread-topic: [Xen-devel] [PATCH] x86/cpuidle: deny access to the I/O port used for EM_SYSIO

On 06/03/2012 14:59, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:

> Nothing, not even Dom0, should fiddle with this.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Keir Fraser <keir@xxxxxxx>

> --- a/xen/arch/x86/acpi/cpu_idle.c
> +++ b/xen/arch/x86/acpi/cpu_idle.c
> @@ -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 @@ 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@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.