[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot



From: Li Liang <liangx.z.li@xxxxxxxxx>

The function memory_type_changed should not be called in hvm_set_guest_pat.
or the cache will be flushed excessively and make the nested guest very slowly,
just like blocked.

Signed-off-by: Li Liang <liangx.z.li@xxxxxxxxx>
---
 xen/arch/x86/hvm/hvm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index d40c48e..1a0534b 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -257,7 +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;
 }
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.