kvm: libkvm: implement kvm_destroy_phys_mem()
commit7ba44303081c300b01a9107df314869d0b99b4cb
authorUri Lublin <uril@qumranet.com>
Thu, 16 Aug 2007 08:58:21 +0000 (16 11:58 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 16 Aug 2007 09:45:39 +0000 (16 12:45 +0300)
treec96d69ba0cf0556c58c1d9f63a7ecf2c433fd313
parent60d88d959fdbcc03d2b56dac0174ee5239deff07
kvm: libkvm: implement kvm_destroy_phys_mem()

Freeing the whole slot (ignoring phys_start and len parameters).
Params are expected to be the same params kvm_create_phys_mem() was called with for
that slot.

Implemented by calling kvm_create_phys_mem with len=0.

Currently munmap must called separately by the user.

Signed-off-by: Uri Lublin <uril@qumranet.com>
kvm/user/kvmctl.c
kvm/user/kvmctl.h