Revert "KVM: Eliminate extra function calls in kvm_get_dirty_log_protect()"
authorLan Tianyu <Tianyu.Lan@microsoft.com>
Sat, 2 Feb 2019 09:20:27 +0000 (17:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:52 +0000 (22:48 +0100)
commita67794cafbc4594debf53dbe4e2a7708426f492e
tree81a043afe06d1d0af15b195a76deaac5d7315459
parent7539b174aef405d9d57db48c58390ba360c91312
Revert "KVM: Eliminate extra function calls in kvm_get_dirty_log_protect()"

The value of "dirty_bitmap[i]" is already check before setting its value
to mask. The following check of "mask" is redundant. The check of "mask" was
introduced by commit 58d2930f4ee3 ("KVM: Eliminate extra function calls in
kvm_get_dirty_log_protect()"), revert it.

Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c