KVM: pci-assign: do not map smm memory slot pages in vt-d page tables
commit808ed3bd9d42823e00ab2d3dc4c9899437fa3c8a
authorHerongguang (Stephen) <herongguang.he@huawei.com>
Mon, 27 Mar 2017 07:21:17 +0000 (27 15:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:23:42 +0000 (25 14:23 +0100)
treef17e10ec46eba8fe34fd76cfcd4ec8e9a2564328
parent29c4f517ff5bb2f81750295418c8397755817d4c
KVM: pci-assign: do not map smm memory slot pages in vt-d page tables

[ Upstream commit 0292e169b2d9c8377a168778f0b16eadb1f578fd ]

or VM memory are not put thus leaked in kvm_iommu_unmap_memslots() when
destroy VM.

This is consistent with current vfio implementation.

Signed-off-by: herongguang <herongguang.he@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/kvm_main.c