xen/control: gate x86 specific code in the preprocessor

Commit 152265223048 was implemented strictly for x86.  Unfortunately
one of the pieces was mixed into a common area breaking other
architectures. For now disable these bits on !x86, this should be
cleaned up later.

Fixes: 152265223048 ('xen: fix dropping bitmap IPIs during resume')
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D29306
This commit is contained in:
Elliott Mitchell 2021-04-06 10:18:47 +02:00 committed by Roger Pau Monné
parent d561380eb3
commit d3705b5a7f

View File

@ -132,7 +132,9 @@ __FBSDID("$FreeBSD$");
#include <machine/_inttypes.h>
#include <machine/intr_machdep.h>
#if defined(__amd64__) || defined(__i386__)
#include <x86/apicvar.h>
#endif
#include <vm/vm.h>
#include <vm/vm_extern.h>
@ -289,8 +291,10 @@ xctrl_suspend()
* resume CPUs.
*/
resume_cpus(cpu_suspend_map);
#if defined(__amd64__) || defined(__i386__)
/* Send an IPI_BITMAP in case there are pending bitmap IPIs. */
lapic_ipi_vectored(IPI_BITMAP_VECTOR, APIC_IPI_DEST_ALL);
#endif
}
#endif