diff options
author | Avi Kivity <avi@qumranet.com> | 2007-01-05 19:36:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-06 02:55:25 -0500 |
commit | 374cbac0333ddf5cf1c6637efaf7f3adcc67fd75 (patch) | |
tree | 0960a8c54aa6f592f5d1cb8a7dbc116c9cb3836e /drivers/kvm/paging_tmpl.h | |
parent | cea0f0e7ea54753c3265dc77f605a6dad1912cfc (diff) |
[PATCH] KVM: MMU: Write protect guest pages when a shadow is created for them
When we cache a guest page table into a shadow page table, we need to prevent
further access to that page by the guest, as that would render the cache
incoherent.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index f7cce443ca6f..cd71973c780c 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h | |||
@@ -133,6 +133,7 @@ static void FNAME(walk_addr)(struct guest_walker *walker, | |||
133 | walker->level - 1, table_gfn); | 133 | walker->level - 1, table_gfn); |
134 | } | 134 | } |
135 | walker->ptep = ptep; | 135 | walker->ptep = ptep; |
136 | pgprintk("%s: pte %llx\n", __FUNCTION__, (u64)*ptep); | ||
136 | } | 137 | } |
137 | 138 | ||
138 | static void FNAME(release_walker)(struct guest_walker *walker) | 139 | static void FNAME(release_walker)(struct guest_walker *walker) |