If natpage, insert into TLB directly.
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
if (VMX_DOMAIN(vcpu)) {
if (__gpfn_is_io(vcpu->domain, gpfn))
pte |= VTLB_PTE_IO;
- else
+ else{
+ if ((pte & _PAGE_MA_MASK)!=_PAGE_MA_NAT)
/* Ensure WB attribute if pte is related to a normal mem page,
* which is required by vga acceleration since qemu maps shared
* vram buffer with WB.
*/
- pte &= ~_PAGE_MA_MASK;
+ pte &= ~_PAGE_MA_MASK;
+ }
}
thash_purge_and_insert(vcpu, pte, itir, ifa);
return IA64_NO_FAULT;