]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV: accept signals in sev_lock_two_vms
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Nov 2021 00:50:36 +0000 (19:50 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Nov 2021 08:54:15 +0000 (03:54 -0500)
commit1f700abd1d20fab42e07e2eaad6d22c3df424e73
treec58760947e78c0658a2222eefdeff70d7baab596
parentac5cc624885b3c259da63140da8bf7dc0cbcd069
KVM: SEV: accept signals in sev_lock_two_vms

Generally, kvm->lock is not taken for a long time, but
sev_lock_two_vms is different: it takes vCPU locks
inside, so userspace can hold it back just by calling
a vCPU ioctl.  Play it safe and use mutex_lock_killable.

Message-Id: <20211123005036.2954379-13-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c