kvm: update_memslots: clean flags for invalid memslots
authorTiejun Chen <tiejun.chen@intel.com>
Fri, 9 Jan 2015 08:29:14 +0000 (16:29 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jan 2015 20:31:44 +0000 (21:31 +0100)
commitb0165f1b415daeedab78455aaac529aaec6007dd
tree723f612cd129f74f402d38e8ba4ae5222d2f5836
parent128ca093cc3cf3fc0368fa56b6a98f395090ddb0
kvm: update_memslots: clean flags for invalid memslots

Indeed, any invalid memslots should be new->npages = 0,
new->base_gfn = 0 and new->flags = 0 at the same time.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c