KVM: reuse memslot in kvm_write_guest_page
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 10 Apr 2015 19:47:27 +0000 (21:47 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 May 2015 08:51:38 +0000 (10:51 +0200)
commit251eb84144ec7aba5e344fb8553c67e749655aef
tree7bdf7614318665a65267d274cae7fbf3205b5263
parent4eb64dce8d0a3ceccc0036383e4683b7c3ea7a50
KVM: reuse memslot in kvm_write_guest_page

Caching memslot value and using mark_page_dirty_in_slot() avoids another
O(log N) search when dirtying the page.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1428695247-27603-1-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c