diff options
author | 2016-12-16 16:10:05 +0100 | |
---|---|---|
committer | 2017-01-09 14:45:50 +0100 | |
commit | 8231f50d9853274ed104aac86b6b6263ca666c4d (patch) | |
tree | 5d9a37472616e7a789505ecec1cd1458c7c2c5a0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | KVM: x86: refactor pic setup in kvm_set_routing_entry (diff) | |
download | linux-dev-8231f50d9853274ed104aac86b6b6263ca666c4d.tar.xz linux-dev-8231f50d9853274ed104aac86b6b6263ca666c4d.zip |
KVM: x86: prevent setup of invalid routes
The check in kvm_set_pic_irq() and kvm_set_ioapic_irq() was just a
temporary measure until the code improved enough for us to do this.
This changes APIC in a case when KVM_SET_GSI_ROUTING is called to set up pic
and ioapic routes before KVM_CREATE_IRQCHIP. Those rules would get overwritten
by KVM_CREATE_IRQCHIP at best, so it is pointless to allow it. Userspaces
hopefully noticed that things don't work if they do that and don't do that.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions