Re: [patch 06/11] KVM: introduce kvm-srcu and convert kvm_set_memory_region to SRCU update

2009-12-23 Thread Avi Kivity
On 12/23/2009 01:38 PM, Marcelo Tosatti wrote: Use two steps for memslot deletion: mark the slot invalid (which stops instantiation of new shadow pages for that slot, but allows destruction), then instantiate the new empty slot. Also simplifies kvm_handle_hva locking. r =

Re: [patch 06/11] KVM: introduce kvm-srcu and convert kvm_set_memory_region to SRCU update

2009-12-23 Thread Avi Kivity
On 12/23/2009 04:19 PM, Marcelo Tosatti wrote: On Wed, Dec 23, 2009 at 02:32:55PM +0200, Avi Kivity wrote: On 12/23/2009 01:38 PM, Marcelo Tosatti wrote: Use two steps for memslot deletion: mark the slot invalid (which stops instantiation of new shadow pages for that slot, but allows

Re: [patch 06/11] KVM: introduce kvm-srcu and convert kvm_set_memory_region to SRCU update

2009-12-23 Thread Marcelo Tosatti
On Wed, Dec 23, 2009 at 04:33:06PM +0200, Avi Kivity wrote: On 12/23/2009 04:19 PM, Marcelo Tosatti wrote: On Wed, Dec 23, 2009 at 02:32:55PM +0200, Avi Kivity wrote: On 12/23/2009 01:38 PM, Marcelo Tosatti wrote: Use two steps for memslot deletion: mark the slot invalid (which

[patch 06/11] KVM: introduce kvm-srcu and convert kvm_set_memory_region to SRCU update

2009-12-23 Thread Marcelo Tosatti
Use two steps for memslot deletion: mark the slot invalid (which stops instantiation of new shadow pages for that slot, but allows destruction), then instantiate the new empty slot. Also simplifies kvm_handle_hva locking. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: