Skip to contentSkip to conversation

x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot

PATCH New Liliang 1 participant 1 message Aug 19, 2014

lore
Share & tools
lore

Liliang

author
#0 lore raw

PATCH 1/1 x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot

From: Li Liang <[email protected]>

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.

---
 xen/arch/x86/hvm/hvm.c | 2 --
 1 file changed, 2 deletions(-)
xen/arch/x86/hvm/hvm.c +0 -2
index d40c48e..e8f41c1 100644
@@ -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;
 }
 
Signature · 1 line
1.9.1