diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-10-08 11:51:39 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-10-08 11:51:39 +0100 |
commit | 7aae95e2ee27063ba36219d730757eb8723b07c1 (patch) | |
tree | a86add3d379bc6f96cb4e69998f3b93fea6a59b6 /xen/arch/x86/i8259.c | |
parent | f1c40110f2f18fca14b081ff5f2dec84270a8ccc (diff) | |
download | xen-7aae95e2ee27063ba36219d730757eb8723b07c1.tar.gz xen-7aae95e2ee27063ba36219d730757eb8723b07c1.tar.bz2 xen-7aae95e2ee27063ba36219d730757eb8723b07c1.zip |
x86: Free MSI vector when a pirq is unmapped.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/i8259.c')
-rw-r--r-- | xen/arch/x86/i8259.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index 525bf1720e..555d937c4d 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -408,6 +408,10 @@ void __init init_IRQ(void) irq_desc[LEGACY_VECTOR(i)].handler = &i8259A_irq_type; } + /* Never allocate the hypercall vector or Linux/BSD fast-trap vector. */ + vector_irq[HYPERCALL_VECTOR] = NEVER_ASSIGN; + vector_irq[0x80] = NEVER_ASSIGN; + apic_intr_init(); /* Set the clock to HZ Hz */ |