diff options
author | 2017-04-07 10:50:18 +0200 | |
---|---|---|
committer | 2017-04-12 20:17:13 +0200 | |
commit | 1df6ddede10a1cacbf1da4cdfca3342510db1882 (patch) | |
tree | 612eb2b179fbf29f5cff7c5542969646908bb3f8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'kvm-s390-next-4.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux (diff) | |
download | linux-dev-1df6ddede10a1cacbf1da4cdfca3342510db1882.tar.xz linux-dev-1df6ddede10a1cacbf1da4cdfca3342510db1882.zip |
KVM: x86: race between KVM_SET_GSI_ROUTING and KVM_CREATE_IRQCHIP
Avoid races between KVM_SET_GSI_ROUTING and KVM_CREATE_IRQCHIP by taking
the kvm->lock when setting up routes.
If KVM_CREATE_IRQCHIP fails, KVM_SET_GSI_ROUTING could have already set
up routes pointing at pic/ioapic, being silently removed already.
Also, as a side effect, this patch makes sure that KVM_SET_GSI_ROUTING
and KVM_CAP_SPLIT_IRQCHIP cannot run in parallel.
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions