diff mbox

[1/3] x86: request page table page-in for the correct domain

Message ID 59DF5950020000780018555A@prv-mh.provo.novell.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Beulich Oct. 12, 2017, 10 a.m. UTC
The domain passed to p2m_mem_paging_populate() should match the one
passed to the corresponding get_page_from_gfn().

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Comments

Andrew Cooper Oct. 12, 2017, 10:02 a.m. UTC | #1
On 12/10/17 11:00, Jan Beulich wrote:
> The domain passed to p2m_mem_paging_populate() should match the one
> passed to the corresponding get_page_from_gfn().
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

>
> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -3287,7 +3287,7 @@ long do_mmu_update(
>              if ( p2m_is_paged(p2mt) )
>              {
>                  ASSERT(!page);
> -                p2m_mem_paging_populate(pg_owner, gmfn);
> +                p2m_mem_paging_populate(pt_owner, gmfn);
>                  rc = -ENOENT;
>                  break;
>              }
>
>
>
diff mbox

Patch

--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -3287,7 +3287,7 @@  long do_mmu_update(
             if ( p2m_is_paged(p2mt) )
             {
                 ASSERT(!page);
-                p2m_mem_paging_populate(pg_owner, gmfn);
+                p2m_mem_paging_populate(pt_owner, gmfn);
                 rc = -ENOENT;
                 break;
             }