vmm: Remove unneeded variable maxcpus

Reported by:	FreeBSD User <freebsd@walstatt-de.de>
Fixes:	a5a918b7a9 ("vmm: permit some IPIs to be handled by userspace")
This commit is contained in:
Emmanuel Vadot 2022-09-07 11:40:03 +02:00
parent 06c30b2c76
commit 653c36179d

View file

@ -964,7 +964,6 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic, bool *retu)
struct vlapic *vlapic2;
struct vm_exit *vmexit;
struct LAPIC *lapic;
uint16_t maxcpus;
lapic = vlapic->apic_page;
lapic->icr_lo &= ~APIC_DELSTAT_PEND;
@ -979,9 +978,6 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic, bool *retu)
phys = (icrval & APIC_DESTMODE_LOG) == 0;
shorthand = icrval & APIC_DEST_MASK;
maxcpus = vm_get_maxcpus(vlapic->vm);
VLAPIC_CTR2(vlapic, "icrlo 0x%016lx triggered ipi %d", icrval, vec);
switch (shorthand) {