ia64/xen-unstable

changeset 18762:b9436a3c9f00

[IA64] Fix vti guests broken issue.

mfn_valid should use machine physical pfn, not guest physical pfn.
This patch fixes the regression introduced by 18761:f6795589ef82.

Sign-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Fri Nov 07 12:05:14 2008 +0900 (2008-11-07)
parents f6795589ef82
children 9bc00e9716cd
files xen/arch/ia64/vmx/vtlb.c
line diff
     1.1 --- a/xen/arch/ia64/vmx/vtlb.c	Thu Nov 06 12:14:57 2008 +0900
     1.2 +++ b/xen/arch/ia64/vmx/vtlb.c	Fri Nov 07 12:05:14 2008 +0900
     1.3 @@ -522,7 +522,7 @@ static u64 translate_phy_pte(VCPU *v, u6
     1.4       * which is required by vga acceleration since qemu maps shared
     1.5       * vram buffer with WB.
     1.6       */
     1.7 -    if (mfn_valid(pte_pfn(__pte(pte))) && phy_pte.ma != VA_MATTR_NATPAGE)
     1.8 +    if (mfn_valid(pte_pfn(__pte(maddr))) && phy_pte.ma != VA_MATTR_NATPAGE)
     1.9          phy_pte.ma = VA_MATTR_WB;
    1.10  
    1.11      maddr = ((maddr & _PAGE_PPN_MASK) & PAGE_MASK) | (paddr & ~PAGE_MASK);