commit | 9b9b1492364758de82c19c36f07baa9ae162c7e5 | [log] [tgz] |
---|---|---|
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | Mon Nov 14 18:22:28 2011 +0900 |
committer | Avi Kivity <avi@redhat.com> | Tue Dec 27 11:17:17 2011 +0200 |
tree | 2d600f1bdcc36831597cdcb779f434d668d9d392 | |
parent | d6eebf8b80316ea61718dc115cd6a20c16195327 [diff] |
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>