Re: [PATCH 3/9] KVM: const-ify uses of struct kvm_userspace_memory_region

2015-05-20 Thread Takuya Yoshikawa
On 2015/05/20 2:25, Paolo Bonzini wrote: > Architecture-specific helpers are not supposed to muck with > struct kvm_userspace_memory_region contents. Add const to > enforce this. Nice, this is what I wanted to do, but could not do, when I cleaned up these functions a few years ago. > > In order

[PATCH 3/9] KVM: const-ify uses of struct kvm_userspace_memory_region

2015-05-19 Thread Paolo Bonzini
Architecture-specific helpers are not supposed to muck with struct kvm_userspace_memory_region contents. Add const to enforce this. In order to eliminate the only write in __kvm_set_memory_region, the cleaning of deleted slots is pulled up from update_memslots to __kvm_set_memory_region. Signed-