]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm: Introduce kvm_(un)map_gfn()
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 12 Nov 2019 16:35:06 +0000 (16:35 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Jan 2020 17:45:54 +0000 (18:45 +0100)
commit240fa5b0158ccaa5baec87fa122f6be6c2cf3515
tree977d32b00d6c75b404fb7b131d89f9e5de9021cd
parente33de78104a4869058a3aa58c341d50164fd53de
x86/kvm: Introduce kvm_(un)map_gfn()

kvm_vcpu_(un)map operates on gfns from any current address space.
In certain cases we want to make sure we are not mapping SMRAM
and for that we can use kvm_(un)map_gfn() that we are introducing
in this patch.

This is part of CVE-2019-3016.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c