commit | 80b14b5b32cb0a98234283daf9b5a6643e1a1ef3 | [log] [tgz] |
---|---|---|
author | Izik Eidus <izike@qumranet.com> | Thu Oct 25 11:54:04 2007 +0200 |
committer | Avi Kivity <avi@qumranet.com> | Wed Jan 30 17:52:55 2008 +0200 |
tree | 1abf719d18e5bcbb6ba7fd5b517bb70ebb8b1776 | |
parent | 5f43238d036fb30e73563e81e42d9c6f1de5551a [diff] |
KVM: Unmap kernel-allocated memory on slot destruction kvm_vm_ioctl_set_memory_region() is able to remove memory in addition to adding it. Therefore when using kernel swapping support for old userspaces, we need to munmap the memory if the user request to remove it Signed-off-by: Izik Eidus <izike@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>