git: 653c36179d9e - main - vmm: Remove unneeded variable maxcpus
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Sep 2022 09:41:27 UTC
The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=653c36179d9ee587e4d5e4668fd73d6c3d318ef8 commit 653c36179d9ee587e4d5e4668fd73d6c3d318ef8 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-09-07 09:40:03 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-09-07 09:41:16 +0000 vmm: Remove unneeded variable maxcpus Reported by: FreeBSD User <freebsd@walstatt-de.de> Fixes: a5a918b7a906 ("vmm: permit some IPIs to be handled by userspace") --- sys/amd64/vmm/io/vlapic.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/amd64/vmm/io/vlapic.c b/sys/amd64/vmm/io/vlapic.c index dc9b00d2316e..5eda9a8b3616 100644 --- a/sys/amd64/vmm/io/vlapic.c +++ b/sys/amd64/vmm/io/vlapic.c @@ -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) {