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

[Xen-changelog] [xen-unstable] nestedhvm: avoid endless loop of nested page faults



# HG changeset patch
# User Tim Deegan <tim@xxxxxxx>
# Date 1313756967 -3600
# Node ID 7ba9270b127bd9935eec769373c37bb344c351b2
# Parent  e86b85dc682050e08aadb0e1618cbc30c39a5469
nestedhvm: avoid endless loop of nested page faults

Stop sending IPIs to flush the nested-on-nested pagetable
after write operations. Instead flush the TLB only.
This fixes an endless loop of nested page faults after
adding an entry to the nested-on-nested pagetable.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Committed-by: Tim Deegan <tim@xxxxxxx>
---


diff -r e86b85dc6820 -r 7ba9270b127b xen/arch/x86/mm/hap/nested_hap.c
--- a/xen/arch/x86/mm/hap/nested_hap.c  Fri Aug 19 13:29:25 2011 +0100
+++ b/xen/arch/x86/mm/hap/nested_hap.c  Fri Aug 19 13:29:27 2011 +0100
@@ -86,8 +86,9 @@
 
     old_flags = l1e_get_flags(*p);
     safe_write_pte(p, new);
+
     if (old_flags & _PAGE_PRESENT)
-        nestedhvm_vmcx_flushtlb(p2m);
+        flush_tlb_mask(&p2m->p2m_dirty_cpumask);
     
     paging_unlock(d);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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