Page MenuHomeFreeBSD

D669.1796611247.diff
No OneTemporary

Authored By
Unknown
Size
656 B
Referenced Files
None
Subscribers
None

D669.1796611247.diff

Index: sys/amd64/vmm/io/vatpic.c
===================================================================
--- sys/amd64/vmm/io/vatpic.c
+++ sys/amd64/vmm/io/vatpic.c
@@ -500,13 +500,19 @@
VATPIC_LOCK(vatpic);
pin = vatpic_get_highest_irrpin(atpic);
- if (pin == -1)
- pin = 7;
if (pin == 2) {
atpic = &vatpic->atpic[1];
pin = vatpic_get_highest_irrpin(atpic);
}
+ /*
+ * If there are no pins active at this moment then return the spurious
+ * interrupt vector instead.
+ */
+ if (pin == -1)
+ pin = 7;
+
+ KASSERT(pin >= 0 && pin <= 7, ("%s: invalid pin %d", __func__, pin));
*vecptr = atpic->irq_base + pin;
VATPIC_UNLOCK(vatpic);

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 7, 2:40 AM (8 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42269965
Default Alt Text
D669.1796611247.diff (656 B)

Event Timeline