KVM: Avoid checking huge page mappings in get_dirty_log()
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Thu, 1 Mar 2012 10:32:16 +0000 (19:32 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:49:58 +0000 (12:49 +0300)
commit5dc99b2380d59b8aeafa98791f92b96400ed3187
treeeba3731e113e14df9bd2e1ece5a3493dd5e606c0
parenta0ed46073c14f66dbf0707aaa7588b78da83d7c6
KVM: Avoid checking huge page mappings in get_dirty_log()

Dropped such mappings when we enabled dirty logging and we will never
create new ones until we stop the logging.

For this we introduce a new function which can be used to write protect
a range of PT level pages: although we do not need to care about a range
of pages at this point, the following patch will need this feature to
optimize the write protection of many pages.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
This page took 0.025407 seconds and 5 git commands to generate.