diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-02-26 13:56:01 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-02-26 13:56:01 +0000 |
commit | 9990621f33d08372a02380e632c21173d1ad3c61 (patch) | |
tree | 050d4a006cf19de1512d81679e53382ef6895a8a /xen/include/asm-x86/shadow.h | |
parent | 27655213990ed7ef65a7950b27a05448552348a6 (diff) | |
download | xen-9990621f33d08372a02380e632c21173d1ad3c61.tar.gz xen-9990621f33d08372a02380e632c21173d1ad3c61.tar.bz2 xen-9990621f33d08372a02380e632c21173d1ad3c61.zip |
[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
and catch a few missing mark_dirty() calls
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r-- | xen/include/asm-x86/shadow.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h index 5a3dbfc72e..cfd8e841c8 100644 --- a/xen/include/asm-x86/shadow.h +++ b/xen/include/asm-x86/shadow.h @@ -87,12 +87,13 @@ void shadow_final_teardown(struct domain *d); /* Mark a page as dirty in the log-dirty bitmap: called when Xen * makes changes to guest memory on its behalf. */ -void shadow_mark_dirty(struct domain *d, mfn_t gmfn); +void sh_mark_dirty(struct domain *d, mfn_t gmfn); /* Cleaner version so we don't pepper shadow_mode tests all over the place */ static inline void mark_dirty(struct domain *d, unsigned long gmfn) { if ( unlikely(shadow_mode_log_dirty(d)) ) - shadow_mark_dirty(d, _mfn(gmfn)); + /* See the comment about locking in sh_mark_dirty */ + sh_mark_dirty(d, _mfn(gmfn)); } /* Update all the things that are derived from the guest's CR0/CR3/CR4. |