Currently, due to a few oversights, when kvm_finalize is called there are several memory allocations which are not taken care of and are only freed when the process exits.
- In libkvm, VCPU file descriptors are not closed and the corresponding kvm_run structures are not unmapped. - In the kvm module, VM memory which is not allocated by userspace (for example TSS data on x86) is not freed. The following patches try to fix these issues although I don't have much experience in kernel developpement so please forgive me for my mistakes ;) In particular I had to add a test on current->mm because it seems that when a process is closed, its address space is released before its files are closed. I dont know if that is the correct way to proceed... Any comments are welcome ! Thanks, François -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html