[RESEND PATCH V8 01/11] KVM: State whether memory should be freed in kvm_free_memslot

2019-01-21 Thread Ahmed Abd El Mawgood
The conditions upon which kvm_free_memslot are kind of ad-hock, it will be hard to extend memslot with allocatable data that needs to be freed, so I replaced the current mechanism by clear flag that states if the memory slot should be freed. Signed-off-by: Ahmed Abd El Mawgood --- virt/kvm/kvm_m

[PATCH V8 01/11] KVM: State whether memory should be freed in kvm_free_memslot

2019-01-06 Thread Ahmed Abd El Mawgood
The conditions upon which kvm_free_memslot are kind of ad-hock, it will be hard to extend memslot with allocatable data that needs to be freed, so I replaced the current mechanism by clear flag that states if the memory slot should be freed. Signed-off-by: Ahmed Abd El Mawgood --- virt/kvm/kvm_m