AMD processors that report Automatic IBRS (CPUID 0x80000021 EAX bit 8)
apply IBRS protection to CPL 0 while EFER.AIBRSE is set. When IBRS is
enabled through hw.ibrs_disable, set EFER.AIBRSE on such processors
instead of writing SPEC_CTRL on every kernel entry and exit.
A guest using this needs the hypervisor to permit the EFER.AIBRSE write;
for bhyve this is handled in the following change.
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>