mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Modify the default behavior of bhyve such that it no longer forces the use of
x2apic mode on the guest. The guest can decide whether or not it wants to use legacy mmio or x2apic access to the APIC by writing to the MSR_APICBASE register. Obtained from: NetApp
This commit is contained in:
parent
682b847ede
commit
485f986ac9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bhyve/; revision=244283
@ -896,8 +896,6 @@ vlapic_set_x2apic_state(struct vm *vm, int vcpuid, enum x2apic_state state)
|
||||
|
||||
vlapic = vm_lapic(vm, vcpuid);
|
||||
|
||||
if (state == X2APIC_ENABLED)
|
||||
vlapic->msr_apicbase |= APICBASE_X2APIC;
|
||||
else
|
||||
if (state == X2APIC_DISABLED)
|
||||
vlapic->msr_apicbase &= ~APICBASE_X2APIC;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user