On Fri, Jan 11, 2013 at 06:25:18PM +0900, Takuya Yoshikawa wrote: > Patches 1 to 3 are trivial. > > Patch 4 is the main cause of the increased lines, but I think the new > code makes it easier to understand why each condition in > __kvm_set_memory_region() is there. > > If you don't agree with patch 4, please consider taking the rest of the > series at this time. > > Takuya Yoshikawa (4): > KVM: set_memory_region: Don't jump to out_free unnecessarily > KVM: set_memory_region: Don't check for overlaps unless we create or move a slot > KVM: set_memory_region: Remove unnecessary variable memslot > KVM: set_memory_region: Identify the requested change explicitly > > virt/kvm/kvm_main.c | 94 ++++++++++++++++++++++++++++++++------------------- > 1 files changed, 59 insertions(+), 35 deletions(-) > > -- > 1.7.5.4 Reviewed-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx> BTW, while at it, its probably worthwhile to restrict flags modifications: change from flags = 0 to flags = read-only is incomplete. Xiao, should it be allowed only during creation? -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html