]> www.infradead.org Git - users/dwmw2/linux.git/commit
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>
Thu, 14 Feb 2019 16:41:45 +0000 (17:41 +0100)
commiteb9d5fef66c5fb32f898103784c40ca7b2ae5fa4
tree5b900175665e078cdc7355f4afc0588671080d56
parent8053723eea4c4354a858233ac97790f96648b53d
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