]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Remove test-before-set optimization for dirty bits
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Fri, 23 Apr 2010 08:48:35 +0000 (17:48 +0900)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:19:13 +0000 (12:19 +0300)
commit488973153bbe47d0e165761bfa7f9ce521a6e838
treefd7e0de9712a29f99962b789ab3ab70a1338087f
parent7366e84e923575324282448fad6f15e37b410bcf
KVM: Remove test-before-set optimization for dirty bits

As Avi pointed out, testing bit part in mark_page_dirty() was important
in the days of shadow paging, but currently EPT and NPT has already become
common and the chance of faulting a page more that once per iteration is
small. So let's remove the test bit to avoid extra access.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c