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

Re: [Xen-devel] [PATCH 8 of 9] x86/mm: Fix checks during foreign mapping of paged pages



On Tue, Nov 29, Andres Lagar-Cavilla wrote:

> Check that the valid mfn is the one we are mapping, not the
> mfn of the page table of the foreign domain.
> 
> Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>

Acked-by: Olaf Hering <olaf@xxxxxxxxx>


> diff -r 5286ed662c1e -r 3489152b3a56 xen/arch/x86/mm.c
> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -3572,7 +3572,8 @@ int do_mmu_update(
>                          rc = -ENOENT;
>                          break;
>                      }
> -                    else if ( p2m_ram_paging_in_start == l1e_p2mt && 
> !mfn_valid(mfn) )
> +                    else if ( p2m_ram_paging_in_start == l1e_p2mt && 
> +                                !mfn_valid(l1emfn) )


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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