Relax the check on which vectors can be delivered through the APIC. According

to the Intel SDM vectors 16 through 255 are allowed to be delivered via the
local APIC.

Reported by:	Leon Dang (ldang@nahannisys.com)
MFC after:	2 weeks
This commit is contained in:
Neel Natu 2015-04-16 22:44:51 +00:00
parent f384739d96
commit 631947366f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281630

View File

@ -57,7 +57,11 @@ lapic_set_intr(struct vm *vm, int cpu, int vector, bool level)
if (cpu < 0 || cpu >= VM_MAXCPU)
return (EINVAL);
if (vector < 32 || vector > 255)
/*
* According to section "Maskable Hardware Interrupts" in Intel SDM
* vectors 16 through 255 can be delivered through the local APIC.
*/
if (vector < 16 || vector > 255)
return (EINVAL);
vlapic = vm_lapic(vm, cpu);