KVM: set_memory_region: Don't check for overlaps unless we create or move a slot
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 11 Jan 2013 09:26:55 +0000 (18:26 +0900)
committerGleb Natapov <gleb@redhat.com>
Thu, 17 Jan 2013 12:27:50 +0000 (14:27 +0200)
commit0a706beefb1de71bf8551f9860dc529ef14d6753
treea4873b1deb1d4a9d5f95b00dc73effdf34683dcc
parent0ea75e1d26dd4ccbbfe4d1a5931903b15b82ba2a
KVM: set_memory_region: Don't check for overlaps unless we create or move a slot

Don't need the check for deleting an existing slot or just modifiying
the flags.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
virt/kvm/kvm_main.c