ia64/xen-unstable
changeset 18695:4a5acf020c0f
[IA64] Fix an memory attribute issue.
We should ensure Qemu and Guest use same attribute for accessing
the VGA ram, otherwise, host may hang.
This patch fixes trivial typo in 18690:c19871b66cea.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
We should ensure Qemu and Guest use same attribute for accessing
the VGA ram, otherwise, host may hang.
This patch fixes trivial typo in 18690:c19871b66cea.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
author | Isaku Yamahata <yamahata@valinux.co.jp> |
---|---|
date | Thu Oct 30 11:51:55 2008 +0900 (2008-10-30) |
parents | a6b1be5a83de |
children | 10f0e1bb8e5e |
files | xen/arch/ia64/vmx/vtlb.c |
line diff
1.1 --- a/xen/arch/ia64/vmx/vtlb.c Wed Oct 29 11:02:23 2008 +0900 1.2 +++ b/xen/arch/ia64/vmx/vtlb.c Thu Oct 30 11:51:55 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(maddr >> PAGE_SHIFT) && phy_pte.ma == VA_MATTR_NATPAGE) 1.8 + if (mfn_valid(maddr >> PAGE_SHIFT) && 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);