From: Yang, S. <she...@in...> - 2008-05-01 08:47:51
|
On Thursday 01 May 2008 04:16:05 Anthony Liguori wrote: > In vmx.c:alloc_identity_pagetable() we grab a reference to the EPT identity > page table via gfn_to_page(). We never release this reference though. > > This patch releases the reference to this page on VM destruction. I > haven't tested this with EPT. > > Signed-off-by: Anthony Liguori <ali...@us...> > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 578a0c1..63f46cf 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -3909,6 +3909,8 @@ void kvm_arch_destroy_vm(struct kvm *kvm) > kvm_free_physmem(kvm); > if (kvm->arch.apic_access_page) > put_page(kvm->arch.apic_access_page); > + if (kvm->arch.ept_identity_pagetable) > + put_page(kvm->arch.ept_identity_pagetable); > kfree(kvm); > } Um... I neglected that...Thanks for point it out! -- Thanks Yang, Sheng |