Re: [RFC PATCH 2/2] KVM: selective write protection using dirty bitmap

2010-11-19 Thread Takuya Yoshikawa
(2010/11/18 22:06), Avi Kivity wrote: On 11/18/2010 07:15 AM, Takuya Yoshikawa wrote: We can also use this to selectively write protect pages to reduce unwanted page faults in the future. Looks like a good approach. Any measurements? OK, I'll do some tests to select a right approach.

Re: [RFC PATCH 2/2] KVM: selective write protection using dirty bitmap

2010-11-18 Thread Avi Kivity
On 11/18/2010 07:15 AM, Takuya Yoshikawa wrote: Lai Jiangshan once tried to rewrite kvm_mmu_slot_remove_write_access() using rmap: kvm: rework remove-write-access for a slot http://www.spinics.net/lists/kvm/msg35871.html One problem pointed out there was that this approach might hurt

[RFC PATCH 2/2] KVM: selective write protection using dirty bitmap

2010-11-17 Thread Takuya Yoshikawa
Lai Jiangshan once tried to rewrite kvm_mmu_slot_remove_write_access() using rmap: kvm: rework remove-write-access for a slot http://www.spinics.net/lists/kvm/msg35871.html One problem pointed out there was that this approach might hurt cache locality and make things slow down. But if we