summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorJiang Biao <benbjiang@tencent.com>2019-04-23 19:40:30 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-04-30 21:32:19 +0200
commitb8b002209c061273fd1ef7bb3c3c32301623a282 (patch)
treed516be29fb8d3b3f57044639e9a9c14d593faa96 /virt
parent65c4189de8c1d995f6bc2cc96b22206405466b53 (diff)
downloadlinux-stable-b8b002209c061273fd1ef7bb3c3c32301623a282.tar.gz
linux-stable-b8b002209c061273fd1ef7bb3c3c32301623a282.tar.bz2
linux-stable-b8b002209c061273fd1ef7bb3c3c32301623a282.zip
kvm_main: fix some comments
is_dirty has been renamed to flush, but the comment for it is outdated. And the description about @flush parameter for kvm_clear_dirty_log_protect() is missing, add it in this patch as well. Signed-off-by: Jiang Biao <benbjiang@tencent.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index e9ca417b9ae9..3194aa3d0b43 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1134,11 +1134,11 @@ EXPORT_SYMBOL_GPL(kvm_get_dirty_log);
#ifdef CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT
/**
- * kvm_get_dirty_log_protect - get a snapshot of dirty pages, and if any pages
+ * kvm_get_dirty_log_protect - get a snapshot of dirty pages
* and reenable dirty page tracking for the corresponding pages.
* @kvm: pointer to kvm instance
* @log: slot id and address to which we copy the log
- * @is_dirty: flag set if any page is dirty
+ * @flush: true if TLB flush is needed by caller
*
* We need to keep it in mind that VCPU threads can write to the bitmap
* concurrently. So, to avoid losing track of dirty pages we keep the
@@ -1223,6 +1223,7 @@ EXPORT_SYMBOL_GPL(kvm_get_dirty_log_protect);
* and reenable dirty page tracking for the corresponding pages.
* @kvm: pointer to kvm instance
* @log: slot id and address from which to fetch the bitmap of dirty pages
+ * @flush: true if TLB flush is needed by caller
*/
int kvm_clear_dirty_log_protect(struct kvm *kvm,
struct kvm_clear_dirty_log *log, bool *flush)