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

[Xen-changelog] [xen-3.1-testing] hvm: Fix HVMOP_flush_tlbs to flush paging-mode state.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1191314695 -3600
# Node ID 1c71f66b3b005142d551d8f14f3f5dd93b4f8aff
# Parent  4b22d472bda62b9ec43fca3ff7362b7284031a8d
hvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
From: Peter Johnston <pjohnston@xxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   15994:60c898eeb17ba6ee4d1e0dc76ca55f740f0a3979
xen-unstable date:        Tue Oct 02 09:35:37 2007 +0100
---
 xen/arch/x86/hvm/hvm.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -r 4b22d472bda6 -r 1c71f66b3b00 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Tue Oct 02 09:44:21 2007 +0100
+++ b/xen/arch/x86/hvm/hvm.c    Tue Oct 02 09:44:55 2007 +0100
@@ -1046,7 +1046,15 @@ static int hvmop_set_pci_link_route(
 
 static int hvmop_flush_tlb_all(void)
 {
+    struct vcpu *v;
+
+    /* Flush paging-mode soft state (e.g., va->gfn cache; PAE PDPE cache). */
+    for_each_vcpu ( current->domain, v )
+        paging_update_cr3(v);
+
+    /* Flush all dirty TLBs. */
     flush_tlb_mask(current->domain->domain_dirty_cpumask);
+
     return 0;
 }
 

_______________________________________________
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®.