x86/HVM: drop memory_type_changed() call from hvm_set_guest_pat()
authorLi Liang <liangx.z.li@intel.com>
Fri, 22 Aug 2014 12:34:01 +0000 (14:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Aug 2014 12:34:01 +0000 (14:34 +0200)
The commit aa9114edd added the needless function call memory_type_changed,
it is unnessary because the PAT content does not influence the result of
epte_get_entry_emt(). If it is called, the cache will be flushed excessively
and make the nested guest very slowly, just like blocked.

Signed-off-by: Li Liang <liangx.z.li@intel.com>
xen/arch/x86/hvm/hvm.c

index d40c48ed7e27e271d071eb76760f205f6f79059d..e8f41c1d8178bfaeb74afbced9808a1e9b259ba6 100644 (file)
@@ -257,8 +257,6 @@ int hvm_set_guest_pat(struct vcpu *v, u64 guest_pat)
     if ( !hvm_funcs.set_guest_pat(v, guest_pat) )
         v->arch.hvm_vcpu.pat_cr = guest_pat;
 
-    memory_type_changed(v->domain);
-
     return 1;
 }