From: Takuya Yoshikawa Date: Tue, 8 Jan 2013 10:44:48 +0000 (+0900) Subject: KVM: MMU: Make kvm_mmu_slot_remove_write_access() rmap based X-Git-Tag: v3.9-rc1~97^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b99db1d35295cb26b61a1c665f542504110b0ac3;p=pandora-kernel.git KVM: MMU: Make kvm_mmu_slot_remove_write_access() rmap based This makes it possible to release mmu_lock and reschedule conditionally in a later patch. Although this may increase the time needed to protect the whole slot when we start dirty logging, the kernel should not allow the userspace to trigger something that will hold a spinlock for such a long time as tens of milliseconds: actually there is no limit since it is roughly proportional to the number of guest pages. Another point to note is that this patch removes the only user of slot_bitmap which will cause some problems when we increase the number of slots further. Reviewed-by: Marcelo Tosatti Signed-off-by: Takuya Yoshikawa Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed