This patch cleans up the APIC x86 code, and fixes a few things that limited support for emulating Twizzler on Qemu without KVM.
It does not, however, finish the job of cleanup on the trampoline code for starting secondary CPUs on x86, as that needs a fuller overhaul and will happen in a separate patch. There are also a couple other cleanup tasks that I am deferring in the interest of getting macos support working sooner.
This patch cleans up the APIC x86 code, and fixes a few things that limited support for emulating Twizzler on Qemu without KVM.
It does not, however, finish the job of cleanup on the trampoline code for starting secondary CPUs on x86, as that needs a fuller overhaul and will happen in a separate patch. There are also a couple other cleanup tasks that I am deferring in the interest of getting macos support working sooner.