[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] fix to translate_phy_pte()
# HG changeset patch # User Isaku Yamahata <yamahata@xxxxxxxxxxxxx> # Date 1224816449 -32400 # Node ID c19871b66cea01eeb5d67352e4251f43f50bf1e1 # Parent 7ad8c47f5c4b5ef43ec71cb946c39b08eeac3d18 [IA64] fix to translate_phy_pte() mfn_valid makes sure whether the pfn in question is a normal page. Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx> --- xen/arch/ia64/vmx/vtlb.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 7ad8c47f5c4b -r c19871b66cea xen/arch/ia64/vmx/vtlb.c --- a/xen/arch/ia64/vmx/vtlb.c Fri Oct 24 11:38:09 2008 +0900 +++ b/xen/arch/ia64/vmx/vtlb.c Fri Oct 24 11:47:29 2008 +0900 @@ -522,7 +522,7 @@ static u64 translate_phy_pte(VCPU *v, u6 * which is required by vga acceleration since qemu maps shared * vram buffer with WB. */ - if (phy_pte.ma != VA_MATTR_NATPAGE) + if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma == VA_MATTR_NATPAGE) phy_pte.ma = VA_MATTR_WB; maddr = ((maddr & _PAGE_PPN_MASK) & PAGE_MASK) | (paddr & ~PAGE_MASK); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |