entry.S 413 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Common place for both 32- and 64-bit entry routines.
  4. */
  5. #include <linux/linkage.h>
  6. #include <asm/export.h>
  7. #include <asm/msr-index.h>
  8. .pushsection .noinstr.text, "ax"
  9. SYM_FUNC_START(entry_ibpb)
  10. movl $MSR_IA32_PRED_CMD, %ecx
  11. movl $PRED_CMD_IBPB, %eax
  12. xorl %edx, %edx
  13. wrmsr
  14. RET
  15. SYM_FUNC_END(entry_ibpb)
  16. /* For KVM */
  17. EXPORT_SYMBOL_GPL(entry_ibpb);
  18. .popsection