OSDN Git Service

KVM: pci-assign: do not map smm memory slot pages in vt-d page tables
authorHerongguang (Stephen) <herongguang.he@huawei.com>
Mon, 27 Mar 2017 07:21:17 +0000 (15:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:22:13 +0000 (14:22 +0100)
commitf15394085d11c01a9b2a362068182b47b17e2fbe
treeb1ca1c2915d5a27d691f7c4e4d2ece034ef6eba9
parent27c2fa1ae0ea735b32376777f012ab92c4ee8650
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