summaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorTakuya Yoshikawa2011-11-14 10:22:28 +0100
committerAvi Kivity2011-12-27 10:17:17 +0100
commit9b9b1492364758de82c19c36f07baa9ae162c7e5 (patch)
tree2d600f1bdcc36831597cdcb779f434d668d9d392 /fs/char_dev.c
parentKVM: MMU: Clean up BUG_ON() conditions in rmap_write_protect() (diff)
downloadkernel-qcow2-linux-9b9b1492364758de82c19c36f07baa9ae162c7e5.tar.gz
kernel-qcow2-linux-9b9b1492364758de82c19c36f07baa9ae162c7e5.tar.xz
kernel-qcow2-linux-9b9b1492364758de82c19c36f07baa9ae162c7e5.zip
KVM: MMU: Split gfn_to_rmap() into two functions
rmap_write_protect() calls gfn_to_rmap() for each level with gfn fixed. This results in calling gfn_to_memslot() repeatedly with that gfn. This patch introduces __gfn_to_rmap() which takes the slot as an argument to avoid this. This is also needed for the following dirty logging optimization. Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions