Revert "vmm: Remove unneeded variable maxcpus"

This reverts commit 653c36179d.
This commit is contained in:
Emmanuel Vadot 2022-09-09 15:54:56 +02:00
parent 81560c5582
commit 83b65d0ae1

View file

@ -964,6 +964,7 @@ 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;
@ -978,6 +979,9 @@ 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) {