]> git.baikalelectronics.ru Git - kernel.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>
Wed, 20 Feb 2019 21:48:52 +0000 (22:48 +0100)
commit5196e3a29a9ec24a2f6931f7ad0e392e3701e130
tree81a043afe06d1d0af15b195a76deaac5d7315459
parentd1181d214ec9201abcf0ea15489990fa9b7ee73b
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 97d7002041cd ("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