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

Re: [Xen-devel] [PATCH] x86/mm: fix mod_l1_entry() return value when encountering r/o MMIO page


  • To: Jan Beulich <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Wed, 20 Jun 2012 17:04:24 +0100
  • Delivery-date: Wed, 20 Jun 2012 16:04:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac1O/lxAsdbuOPzMLEyJDs9jFm2XCw==
  • Thread-topic: [Xen-devel] [PATCH] x86/mm: fix mod_l1_entry() return value when encountering r/o MMIO page

On 20/06/2012 16:18, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:

> While putting together the workaround announced in
> http://lists.xen.org/archives/html/xen-devel/2012-06/msg00709.html, I
> found that mod_l1_entry(), upon encountering a set bit in
> mmio_ro_ranges, would return 1 instead of 0 (the removal of the write
> permission is supposed to be entirely transparent to the caller, even
> more so to the calling guest).
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Keir Fraser <keir@xxxxxxx>

> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -1875,6 +1875,7 @@ static int mod_l1_entry(l1_pgentry_t *pl
>              break;
>          case 1:
>              l1e_remove_flags(nl1e, _PAGE_RW);
> +            rc = 0;
>              break;
>          }
>          if ( page )
> 
> 
> 
> _______________________________________________
> 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®.