2 #ifndef __KVM_X86_SVM_OPS_H
3 #define __KVM_X86_SVM_OPS_H
5 #include <linux/compiler_types.h>
9 #define svm_asm(insn, clobber...) \
11 asm goto("1: " __stringify(insn) "\n\t" \
12 _ASM_EXTABLE(1b, %l[fault]) \
13 ::: clobber : fault); \
16 kvm_spurious_fault(); \
19 #define svm_asm1(insn, op1, clobber...) \
21 asm goto("1: " __stringify(insn) " %0\n\t" \
22 _ASM_EXTABLE(1b, %l[fault]) \
23 :: op1 : clobber : fault); \
26 kvm_spurious_fault(); \
29 #define svm_asm2(insn, op1, op2, clobber...) \
31 asm goto("1: " __stringify(insn) " %1, %0\n\t" \
32 _ASM_EXTABLE(1b, %l[fault]) \
33 :: op1, op2 : clobber : fault); \
36 kvm_spurious_fault(); \
39 static inline void clgi(
void)
44 static inline void stgi(
void)
49 static inline void invlpga(
unsigned long addr, u32 asid)
59 static __always_inline
void vmsave(
unsigned long pa)
#define svm_asm2(insn, op1, op2, clobber...)
static __always_inline void vmsave(unsigned long pa)
#define svm_asm1(insn, op1, clobber...)
static void invlpga(unsigned long addr, u32 asid)
#define svm_asm(insn, clobber...)