]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
kvm: Convert kvm_lock to a mutex
authorJunaid Shahid <junaids@google.com>
Fri, 4 Jan 2019 01:14:28 +0000 (17:14 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 6 Nov 2019 09:27:24 +0000 (10:27 +0100)
commit34d52a5237d6ea582a7831d703c4725b01d09e2a
tree1f7eab18d5244cf222ac9b894b8109f776e69d36
parenteb15ff263c76a5c1832db0b48e4eee32e3ad88f4
kvm: Convert kvm_lock to a mutex

It doesn't seem as if there is any particular need for kvm_lock to be a
spinlock, so convert the lock to a mutex so that sleepable functions (in
particular cond_resched()) can be called while holding it.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
CVE-2018-12207

(backported from commit 0d9ce162cf46c99628cc5da9510b959c7976735b)
[tyhicks: Backport to 4.15
 - kvm_hyperv_tsc_notifier() does not exist]
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Documentation/virtual/kvm/locking.txt
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c