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