diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-06-11 14:35:52 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-06-11 14:35:52 +0100 |
commit | c8123f7439fc42b33c8a6c3a9a89973133b83da0 (patch) | |
tree | cf0a18b3be33881f990c06a2bb39f7eb18d2b9cd /xen/include/asm-x86/shadow.h | |
parent | bc47ea384baadc8fc704f23a302da3d5ed80d39c (diff) | |
download | xen-c8123f7439fc42b33c8a6c3a9a89973133b83da0.tar.gz xen-c8123f7439fc42b33c8a6c3a9a89973133b83da0.tar.bz2 xen-c8123f7439fc42b33c8a6c3a9a89973133b83da0.zip |
[XEN] Make common log-dirty paging code and add HAP log-dirty support.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r-- | xen/include/asm-x86/shadow.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h index 741d6169d8..85e6866d63 100644 --- a/xen/include/asm-x86/shadow.h +++ b/xen/include/asm-x86/shadow.h @@ -75,16 +75,14 @@ void shadow_teardown(struct domain *d); /* Call once all of the references to the domain have gone away */ 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 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)) ) - /* See the comment about locking in sh_mark_dirty */ - sh_mark_dirty(d, _mfn(gmfn)); -} +/* shadow code to call when log dirty is enabled */ +int shadow_enable_log_dirty(struct domain *d); + +/* shadow code to call when log dirty is disabled */ +int shadow_disable_log_dirty(struct domain *d); + +/* shadow code to call when bitmap is being cleaned */ +void shadow_clean_dirty_bitmap(struct domain *d); /* Update all the things that are derived from the guest's CR0/CR3/CR4. * Called to initialize paging structures if the paging mode |