]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: nVMX: Refactor IO bitmap checks into helper function
authorOliver Upton <oupton@google.com>
Thu, 27 Feb 2020 18:51:00 +0000 (19:51 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 28 Feb 2020 10:42:52 +0000 (11:42 +0100)
commite8c9d7108420f7f5b45f5ec37d3b78783d0a6591
tree6c15081f21c1ccd9e4510f4e6151e8fb9758ba1a
parent7c111381fa67a574bd3514cb9e3e07fda0a111f8
KVM: nVMX: Refactor IO bitmap checks into helper function

CVE-2020-2732

commit e71237d3ff1abf9f3388337cfebf53b96df2020d upstream.

Checks against the IO bitmap are useful for both instruction emulation
and VM-exit reflection. Refactor the IO bitmap checks into a helper
function.

Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Benjamin M Romer <benjamin.romer@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/kvm/vmx.c