Forbid multi-vector MSI interrupt vectors migration to another CPU once
allocated. MSI have strict vectors allocation requirements, which are not satisfied now during reallocation. This is not the best possible solution, but better then just broken, as it was. No objections: current@, arch@, jhb@
This commit is contained in:
parent
cf1afc1774
commit
c4234dfc7e
@ -210,6 +210,8 @@ msi_assign_cpu(struct intsrc *isrc, u_int apic_id)
|
||||
old_id = msi->msi_cpu;
|
||||
if (old_vector && old_id == apic_id)
|
||||
return;
|
||||
if (old_vector && !msi->msi_msix && msi->msi_first->msi_count > 1)
|
||||
return;
|
||||
/* Allocate IDT vector on this cpu. */
|
||||
vector = apic_alloc_vector(apic_id, msi->msi_irq);
|
||||
if (vector == 0)
|
||||
|
@ -210,6 +210,8 @@ msi_assign_cpu(struct intsrc *isrc, u_int apic_id)
|
||||
old_id = msi->msi_cpu;
|
||||
if (old_vector && old_id == apic_id)
|
||||
return;
|
||||
if (old_vector && !msi->msi_msix && msi->msi_first->msi_count > 1)
|
||||
return;
|
||||
/* Allocate IDT vector on this cpu. */
|
||||
vector = apic_alloc_vector(apic_id, msi->msi_irq);
|
||||
if (vector == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user