OSDN Git Service

KVM: x86: MMU: Add helper function to clear a bit in unsync child bitmap
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 20 Nov 2015 08:43:13 +0000 (17:43 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Nov 2015 16:26:15 +0000 (17:26 +0100)
commitfd9514572f721acbabb0ff24f6b5294a2449d492
tree77462fd96a52b6ebdf87a849156a59d1d4f2f7e3
parent7ee0e5b29d275ac299cdf8ef67e60bf1648c8c6a
KVM: x86: MMU: Add helper function to clear a bit in unsync child bitmap

Both __mmu_unsync_walk() and mmu_pages_clear_parents() have three line
code which clears a bit in the unsync child bitmap; the former places it
inside a loop block and uses a few goto statements to jump to it.

A new helper function, clear_unsync_child_bit(), makes the code cleaner.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c