]> 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)
commit09de84212288455210e42fdda08571d8a8d1d9d1
tree81a043afe06d1d0af15b195a76deaac5d7315459
parent4c4905d8413c67ae2c71b27805cb644c8cb59f2e
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 82c523f0e9ec ("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