Lines Matching refs:field
13 asmlinkage void vmread_error(unsigned long field, bool fault);
14 __attribute__((regparm(0))) void vmread_error_trampoline(unsigned long field,
16 void vmwrite_error(unsigned long field, unsigned long value);
22 static __always_inline void vmcs_check16(unsigned long field) in vmcs_check16() argument
24 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2000, in vmcs_check16()
26 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2001, in vmcs_check16()
28 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x4000, in vmcs_check16()
30 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x6000, in vmcs_check16()
34 static __always_inline void vmcs_check32(unsigned long field) in vmcs_check32() argument
36 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0, in vmcs_check32()
38 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2000, in vmcs_check32()
40 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2001, in vmcs_check32()
42 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x6000, in vmcs_check32()
46 static __always_inline void vmcs_check64(unsigned long field) in vmcs_check64() argument
48 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0, in vmcs_check64()
50 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2001, in vmcs_check64()
52 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x4000, in vmcs_check64()
54 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x6000, in vmcs_check64()
58 static __always_inline void vmcs_checkl(unsigned long field) in vmcs_checkl() argument
60 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0, in vmcs_checkl()
62 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2000, in vmcs_checkl()
64 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2001, in vmcs_checkl()
66 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x4000, in vmcs_checkl()
70 static __always_inline unsigned long __vmcs_readl(unsigned long field) in __vmcs_readl() argument
102 : ASM_CALL_CONSTRAINT, "=r"(value) : "r"(field) : "cc"); in __vmcs_readl()
106 static __always_inline u16 vmcs_read16(unsigned long field) in vmcs_read16() argument
108 vmcs_check16(field); in vmcs_read16()
110 return evmcs_read16(field); in vmcs_read16()
111 return __vmcs_readl(field); in vmcs_read16()
114 static __always_inline u32 vmcs_read32(unsigned long field) in vmcs_read32() argument
116 vmcs_check32(field); in vmcs_read32()
118 return evmcs_read32(field); in vmcs_read32()
119 return __vmcs_readl(field); in vmcs_read32()
122 static __always_inline u64 vmcs_read64(unsigned long field) in vmcs_read64() argument
124 vmcs_check64(field); in vmcs_read64()
126 return evmcs_read64(field); in vmcs_read64()
128 return __vmcs_readl(field); in vmcs_read64()
130 return __vmcs_readl(field) | ((u64)__vmcs_readl(field+1) << 32); in vmcs_read64()
134 static __always_inline unsigned long vmcs_readl(unsigned long field) in vmcs_readl() argument
136 vmcs_checkl(field); in vmcs_readl()
138 return evmcs_read64(field); in vmcs_readl()
139 return __vmcs_readl(field); in vmcs_readl()
176 static __always_inline void __vmcs_writel(unsigned long field, unsigned long value) in __vmcs_writel() argument
178 vmx_asm2(vmwrite, "r"(field), "rm"(value), field, value); in __vmcs_writel()
181 static __always_inline void vmcs_write16(unsigned long field, u16 value) in vmcs_write16() argument
183 vmcs_check16(field); in vmcs_write16()
185 return evmcs_write16(field, value); in vmcs_write16()
187 __vmcs_writel(field, value); in vmcs_write16()
190 static __always_inline void vmcs_write32(unsigned long field, u32 value) in vmcs_write32() argument
192 vmcs_check32(field); in vmcs_write32()
194 return evmcs_write32(field, value); in vmcs_write32()
196 __vmcs_writel(field, value); in vmcs_write32()
199 static __always_inline void vmcs_write64(unsigned long field, u64 value) in vmcs_write64() argument
201 vmcs_check64(field); in vmcs_write64()
203 return evmcs_write64(field, value); in vmcs_write64()
205 __vmcs_writel(field, value); in vmcs_write64()
207 __vmcs_writel(field+1, value >> 32); in vmcs_write64()
211 static __always_inline void vmcs_writel(unsigned long field, unsigned long value) in vmcs_writel() argument
213 vmcs_checkl(field); in vmcs_writel()
215 return evmcs_write64(field, value); in vmcs_writel()
217 __vmcs_writel(field, value); in vmcs_writel()
220 static __always_inline void vmcs_clear_bits(unsigned long field, u32 mask) in vmcs_clear_bits() argument
222 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x2000, in vmcs_clear_bits()
225 return evmcs_write32(field, evmcs_read32(field) & ~mask); in vmcs_clear_bits()
227 __vmcs_writel(field, __vmcs_readl(field) & ~mask); in vmcs_clear_bits()
230 static __always_inline void vmcs_set_bits(unsigned long field, u32 mask) in vmcs_set_bits() argument
232 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x2000, in vmcs_set_bits()
235 return evmcs_write32(field, evmcs_read32(field) | mask); in vmcs_set_bits()
237 __vmcs_writel(field, __vmcs_readl(field) | mask); in vmcs_set_bits()