1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_X86_PARAVIRT_TYPES_H 3 #define _ASM_X86_PARAVIRT_TYPES_H 4 5 #ifdef CONFIG_PARAVIRT 6 7 #ifndef __ASSEMBLER__ 8 #include <linux/types.h> 9 10 #include <asm/desc_defs.h> 11 #include <asm/pgtable_types.h> 12 #include <asm/nospec-branch.h> 13 14 struct page; 15 struct thread_struct; 16 struct desc_ptr; 17 struct tss_struct; 18 struct mm_struct; 19 struct desc_struct; 20 struct task_struct; 21 struct cpumask; 22 struct flush_tlb_info; 23 struct mmu_gather; 24 struct vm_area_struct; 25 26 /* 27 * Wrapper type for pointers to code which uses the non-standard 28 * calling convention. See PV_CALL_SAVE_REGS_THUNK below. 29 */ 30 struct paravirt_callee_save { 31 void *func; 32 }; 33 34 /* general info */ 35 struct pv_info { 36 #ifdef CONFIG_PARAVIRT_XXL 37 u16 extra_user_64bit_cs; /* __USER_CS if none */ 38 #endif 39 40 const char *name; 41 }; 42 43 #ifdef CONFIG_PARAVIRT_XXL 44 struct pv_lazy_ops { 45 /* Set deferred update mode, used for batching operations. */ 46 void (*enter)(void); 47 void (*leave)(void); 48 void (*flush)(void); 49 } __no_randomize_layout; 50 #endif 51 52 struct pv_cpu_ops { 53 /* hooks for various privileged instructions */ 54 void (*io_delay)(void); 55 56 #ifdef CONFIG_PARAVIRT_XXL 57 unsigned long (*get_debugreg)(int regno); 58 void (*set_debugreg)(int regno, unsigned long value); 59 60 unsigned long (*read_cr0)(void); 61 void (*write_cr0)(unsigned long); 62 63 void (*write_cr4)(unsigned long); 64 65 /* Segment descriptor handling */ 66 void (*load_tr_desc)(void); 67 void (*load_gdt)(const struct desc_ptr *); 68 void (*load_idt)(const struct desc_ptr *); 69 void (*set_ldt)(const void *desc, unsigned entries); 70 unsigned long (*store_tr)(void); 71 void (*load_tls)(struct thread_struct *t, unsigned int cpu); 72 void (*load_gs_index)(unsigned int idx); 73 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 74 const void *desc); 75 void (*write_gdt_entry)(struct desc_struct *, 76 int entrynum, const void *desc, int size); 77 void (*write_idt_entry)(gate_desc *, 78 int entrynum, const gate_desc *gate); 79 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 80 void (*free_ldt)(struct desc_struct *ldt, unsigned entries); 81 82 void (*load_sp0)(unsigned long sp0); 83 84 #ifdef CONFIG_X86_IOPL_IOPERM 85 void (*invalidate_io_bitmap)(void); 86 void (*update_io_bitmap)(void); 87 #endif 88 89 /* cpuid emulation, mostly so that caps bits can be disabled */ 90 void (*cpuid)(unsigned int *eax, unsigned int *ebx, 91 unsigned int *ecx, unsigned int *edx); 92 93 /* Unsafe MSR operations. These will warn or panic on failure. */ 94 u64 (*read_msr)(unsigned int msr); 95 void (*write_msr)(unsigned int msr, unsigned low, unsigned high); 96 97 /* 98 * Safe MSR operations. 99 * read sets err to 0 or -EIO. write returns 0 or -EIO. 100 */ 101 u64 (*read_msr_safe)(unsigned int msr, int *err); 102 int (*write_msr_safe)(unsigned int msr, unsigned low, unsigned high); 103 104 u64 (*read_pmc)(int counter); 105 106 void (*start_context_switch)(struct task_struct *prev); 107 void (*end_context_switch)(struct task_struct *next); 108 #endif 109 } __no_randomize_layout; 110 111 struct pv_irq_ops { 112 #ifdef CONFIG_PARAVIRT_XXL 113 /* 114 * Get/set interrupt state. save_fl is expected to use X86_EFLAGS_IF; 115 * all other bits returned from save_fl are undefined. 116 * 117 * NOTE: These functions callers expect the callee to preserve 118 * more registers than the standard C calling convention. 119 */ 120 struct paravirt_callee_save save_fl; 121 struct paravirt_callee_save irq_disable; 122 struct paravirt_callee_save irq_enable; 123 #endif 124 void (*safe_halt)(void); 125 void (*halt)(void); 126 } __no_randomize_layout; 127 128 struct pv_mmu_ops { 129 /* TLB operations */ 130 void (*flush_tlb_user)(void); 131 void (*flush_tlb_kernel)(void); 132 void (*flush_tlb_one_user)(unsigned long addr); 133 void (*flush_tlb_multi)(const struct cpumask *cpus, 134 const struct flush_tlb_info *info); 135 136 /* Hook for intercepting the destruction of an mm_struct. */ 137 void (*exit_mmap)(struct mm_struct *mm); 138 void (*notify_page_enc_status_changed)(unsigned long pfn, int npages, bool enc); 139 140 #ifdef CONFIG_PARAVIRT_XXL 141 struct paravirt_callee_save read_cr2; 142 void (*write_cr2)(unsigned long); 143 144 unsigned long (*read_cr3)(void); 145 void (*write_cr3)(unsigned long); 146 147 /* Hook for intercepting the creation/use of an mm_struct. */ 148 void (*enter_mmap)(struct mm_struct *mm); 149 150 /* Hooks for allocating and freeing a pagetable top-level */ 151 int (*pgd_alloc)(struct mm_struct *mm); 152 void (*pgd_free)(struct mm_struct *mm, pgd_t *pgd); 153 154 /* 155 * Hooks for allocating/releasing pagetable pages when they're 156 * attached to a pagetable 157 */ 158 void (*alloc_pte)(struct mm_struct *mm, unsigned long pfn); 159 void (*alloc_pmd)(struct mm_struct *mm, unsigned long pfn); 160 void (*alloc_pud)(struct mm_struct *mm, unsigned long pfn); 161 void (*alloc_p4d)(struct mm_struct *mm, unsigned long pfn); 162 void (*release_pte)(unsigned long pfn); 163 void (*release_pmd)(unsigned long pfn); 164 void (*release_pud)(unsigned long pfn); 165 void (*release_p4d)(unsigned long pfn); 166 167 /* Pagetable manipulation functions */ 168 void (*set_pte)(pte_t *ptep, pte_t pteval); 169 void (*set_pmd)(pmd_t *pmdp, pmd_t pmdval); 170 171 pte_t (*ptep_modify_prot_start)(struct vm_area_struct *vma, unsigned long addr, 172 pte_t *ptep); 173 void (*ptep_modify_prot_commit)(struct vm_area_struct *vma, unsigned long addr, 174 pte_t *ptep, pte_t pte); 175 176 struct paravirt_callee_save pte_val; 177 struct paravirt_callee_save make_pte; 178 179 struct paravirt_callee_save pgd_val; 180 struct paravirt_callee_save make_pgd; 181 182 void (*set_pud)(pud_t *pudp, pud_t pudval); 183 184 struct paravirt_callee_save pmd_val; 185 struct paravirt_callee_save make_pmd; 186 187 struct paravirt_callee_save pud_val; 188 struct paravirt_callee_save make_pud; 189 190 void (*set_p4d)(p4d_t *p4dp, p4d_t p4dval); 191 192 #if CONFIG_PGTABLE_LEVELS >= 5 193 struct paravirt_callee_save p4d_val; 194 struct paravirt_callee_save make_p4d; 195 196 void (*set_pgd)(pgd_t *pgdp, pgd_t pgdval); 197 #endif /* CONFIG_PGTABLE_LEVELS >= 5 */ 198 199 struct pv_lazy_ops lazy_mode; 200 201 /* dom0 ops */ 202 203 /* Sometimes the physical address is a pfn, and sometimes its 204 an mfn. We can tell which is which from the index. */ 205 void (*set_fixmap)(unsigned /* enum fixed_addresses */ idx, 206 phys_addr_t phys, pgprot_t flags); 207 #endif 208 } __no_randomize_layout; 209 210 struct arch_spinlock; 211 #ifdef CONFIG_SMP 212 #include <asm/spinlock_types.h> 213 #endif 214 215 struct qspinlock; 216 217 struct pv_lock_ops { 218 void (*queued_spin_lock_slowpath)(struct qspinlock *lock, u32 val); 219 struct paravirt_callee_save queued_spin_unlock; 220 221 void (*wait)(u8 *ptr, u8 val); 222 void (*kick)(int cpu); 223 224 struct paravirt_callee_save vcpu_is_preempted; 225 } __no_randomize_layout; 226 227 /* This contains all the paravirt structures: we get a convenient 228 * number for each function using the offset which we use to indicate 229 * what to patch. */ 230 struct paravirt_patch_template { 231 struct pv_cpu_ops cpu; 232 struct pv_irq_ops irq; 233 struct pv_mmu_ops mmu; 234 struct pv_lock_ops lock; 235 } __no_randomize_layout; 236 237 extern struct pv_info pv_info; 238 extern struct paravirt_patch_template pv_ops; 239 240 #define paravirt_ptr(op) [paravirt_opptr] "m" (pv_ops.op) 241 242 /* 243 * This generates an indirect call based on the operation type number. 244 * 245 * Since alternatives run after enabling CET/IBT -- the latter setting/clearing 246 * capabilities and the former requiring all capabilities being finalized -- 247 * these indirect calls are subject to IBT and the paravirt stubs should have 248 * ENDBR on. 249 * 250 * OTOH since this is effectively a __nocfi indirect call, the paravirt stubs 251 * don't need to bother with CFI prefixes. 252 */ 253 #define PARAVIRT_CALL \ 254 ANNOTATE_RETPOLINE_SAFE \ 255 "call *%[paravirt_opptr];" 256 257 /* 258 * These macros are intended to wrap calls through one of the paravirt 259 * ops structs, so that they can be later identified and patched at 260 * runtime. 261 * 262 * Normally, a call to a pv_op function is a simple indirect call: 263 * (pv_op_struct.operations)(args...). 264 * 265 * Unfortunately, this is a relatively slow operation for modern CPUs, 266 * because it cannot necessarily determine what the destination 267 * address is. In this case, the address is a runtime constant, so at 268 * the very least we can patch the call to a simple direct call, or, 269 * ideally, patch an inline implementation into the callsite. (Direct 270 * calls are essentially free, because the call and return addresses 271 * are completely predictable.) 272 * 273 * For i386, these macros rely on the standard gcc "regparm(3)" calling 274 * convention, in which the first three arguments are placed in %eax, 275 * %edx, %ecx (in that order), and the remaining arguments are placed 276 * on the stack. All caller-save registers (eax,edx,ecx) are expected 277 * to be modified (either clobbered or used for return values). 278 * X86_64, on the other hand, already specifies a register-based calling 279 * conventions, returning at %rax, with parameters going in %rdi, %rsi, 280 * %rdx, and %rcx. Note that for this reason, x86_64 does not need any 281 * special handling for dealing with 4 arguments, unlike i386. 282 * However, x86_64 also has to clobber all caller saved registers, which 283 * unfortunately, are quite a bit (r8 - r11) 284 * 285 * Unfortunately there's no way to get gcc to generate the args setup 286 * for the call, and then allow the call itself to be generated by an 287 * inline asm. Because of this, we must do the complete arg setup and 288 * return value handling from within these macros. This is fairly 289 * cumbersome. 290 * 291 * There are 5 sets of PVOP_* macros for dealing with 0-4 arguments. 292 * It could be extended to more arguments, but there would be little 293 * to be gained from that. For each number of arguments, there are 294 * two VCALL and CALL variants for void and non-void functions. 295 * 296 * When there is a return value, the invoker of the macro must specify 297 * the return type. The macro then uses sizeof() on that type to 298 * determine whether it's a 32 or 64 bit value and places the return 299 * in the right register(s) (just %eax for 32-bit, and %edx:%eax for 300 * 64-bit). For x86_64 machines, it just returns in %rax regardless of 301 * the return value size. 302 * 303 * 64-bit arguments are passed as a pair of adjacent 32-bit arguments; 304 * i386 also passes 64-bit arguments as a pair of adjacent 32-bit arguments 305 * in low,high order 306 * 307 * Small structures are passed and returned in registers. The macro 308 * calling convention can't directly deal with this, so the wrapper 309 * functions must do it. 310 * 311 * These PVOP_* macros are only defined within this header. This 312 * means that all uses must be wrapped in inline functions. This also 313 * makes sure the incoming and outgoing types are always correct. 314 */ 315 #ifdef CONFIG_X86_32 316 #define PVOP_CALL_ARGS \ 317 unsigned long __eax = __eax, __edx = __edx, __ecx = __ecx; 318 319 #define PVOP_CALL_ARG1(x) "a" ((unsigned long)(x)) 320 #define PVOP_CALL_ARG2(x) "d" ((unsigned long)(x)) 321 #define PVOP_CALL_ARG3(x) "c" ((unsigned long)(x)) 322 323 #define PVOP_VCALL_CLOBBERS "=a" (__eax), "=d" (__edx), \ 324 "=c" (__ecx) 325 #define PVOP_CALL_CLOBBERS PVOP_VCALL_CLOBBERS 326 327 #define PVOP_VCALLEE_CLOBBERS "=a" (__eax), "=d" (__edx) 328 #define PVOP_CALLEE_CLOBBERS PVOP_VCALLEE_CLOBBERS 329 330 #define EXTRA_CLOBBERS 331 #define VEXTRA_CLOBBERS 332 #else /* CONFIG_X86_64 */ 333 /* [re]ax isn't an arg, but the return val */ 334 #define PVOP_CALL_ARGS \ 335 unsigned long __edi = __edi, __esi = __esi, \ 336 __edx = __edx, __ecx = __ecx, __eax = __eax; 337 338 #define PVOP_CALL_ARG1(x) "D" ((unsigned long)(x)) 339 #define PVOP_CALL_ARG2(x) "S" ((unsigned long)(x)) 340 #define PVOP_CALL_ARG3(x) "d" ((unsigned long)(x)) 341 #define PVOP_CALL_ARG4(x) "c" ((unsigned long)(x)) 342 343 #define PVOP_VCALL_CLOBBERS "=D" (__edi), \ 344 "=S" (__esi), "=d" (__edx), \ 345 "=c" (__ecx) 346 #define PVOP_CALL_CLOBBERS PVOP_VCALL_CLOBBERS, "=a" (__eax) 347 348 /* 349 * void functions are still allowed [re]ax for scratch. 350 * 351 * The ZERO_CALL_USED REGS feature may end up zeroing out callee-saved 352 * registers. Make sure we model this with the appropriate clobbers. 353 */ 354 #ifdef CONFIG_ZERO_CALL_USED_REGS 355 #define PVOP_VCALLEE_CLOBBERS "=a" (__eax), PVOP_VCALL_CLOBBERS 356 #else 357 #define PVOP_VCALLEE_CLOBBERS "=a" (__eax) 358 #endif 359 #define PVOP_CALLEE_CLOBBERS PVOP_VCALLEE_CLOBBERS 360 361 #define EXTRA_CLOBBERS , "r8", "r9", "r10", "r11" 362 #define VEXTRA_CLOBBERS , "rax", "r8", "r9", "r10", "r11" 363 #endif /* CONFIG_X86_32 */ 364 365 #ifdef CONFIG_PARAVIRT_DEBUG 366 #define PVOP_TEST_NULL(op) BUG_ON(pv_ops.op == NULL) 367 #else 368 #define PVOP_TEST_NULL(op) ((void)pv_ops.op) 369 #endif 370 371 #define PVOP_RETVAL(rettype) \ 372 ({ unsigned long __mask = ~0UL; \ 373 BUILD_BUG_ON(sizeof(rettype) > sizeof(unsigned long)); \ 374 switch (sizeof(rettype)) { \ 375 case 1: __mask = 0xffUL; break; \ 376 case 2: __mask = 0xffffUL; break; \ 377 case 4: __mask = 0xffffffffUL; break; \ 378 default: break; \ 379 } \ 380 __mask & __eax; \ 381 }) 382 383 /* 384 * Use alternative patching for paravirt calls: 385 * - For replacing an indirect call with a direct one, use the "normal" 386 * ALTERNATIVE() macro with the indirect call as the initial code sequence, 387 * which will be replaced with the related direct call by using the 388 * ALT_FLAG_DIRECT_CALL special case and the "always on" feature. 389 * - In case the replacement is either a direct call or a short code sequence 390 * depending on a feature bit, the ALTERNATIVE_2() macro is being used. 391 * The indirect call is the initial code sequence again, while the special 392 * code sequence is selected with the specified feature bit. In case the 393 * feature is not active, the direct call is used as above via the 394 * ALT_FLAG_DIRECT_CALL special case and the "always on" feature. 395 */ 396 #define ____PVOP_CALL(ret, op, call_clbr, extra_clbr, ...) \ 397 ({ \ 398 PVOP_CALL_ARGS; \ 399 PVOP_TEST_NULL(op); \ 400 asm volatile(ALTERNATIVE(PARAVIRT_CALL, ALT_CALL_INSTR, \ 401 ALT_CALL_ALWAYS) \ 402 : call_clbr, ASM_CALL_CONSTRAINT \ 403 : paravirt_ptr(op), \ 404 ##__VA_ARGS__ \ 405 : "memory", "cc" extra_clbr); \ 406 ret; \ 407 }) 408 409 #define ____PVOP_ALT_CALL(ret, op, alt, cond, call_clbr, \ 410 extra_clbr, ...) \ 411 ({ \ 412 PVOP_CALL_ARGS; \ 413 PVOP_TEST_NULL(op); \ 414 asm volatile(ALTERNATIVE_2(PARAVIRT_CALL, \ 415 ALT_CALL_INSTR, ALT_CALL_ALWAYS, \ 416 alt, cond) \ 417 : call_clbr, ASM_CALL_CONSTRAINT \ 418 : paravirt_ptr(op), \ 419 ##__VA_ARGS__ \ 420 : "memory", "cc" extra_clbr); \ 421 ret; \ 422 }) 423 424 #define __PVOP_CALL(rettype, op, ...) \ 425 ____PVOP_CALL(PVOP_RETVAL(rettype), op, \ 426 PVOP_CALL_CLOBBERS, EXTRA_CLOBBERS, ##__VA_ARGS__) 427 428 #define __PVOP_ALT_CALL(rettype, op, alt, cond, ...) \ 429 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op, alt, cond, \ 430 PVOP_CALL_CLOBBERS, EXTRA_CLOBBERS, \ 431 ##__VA_ARGS__) 432 433 #define __PVOP_CALLEESAVE(rettype, op, ...) \ 434 ____PVOP_CALL(PVOP_RETVAL(rettype), op.func, \ 435 PVOP_CALLEE_CLOBBERS, , ##__VA_ARGS__) 436 437 #define __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond, ...) \ 438 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op.func, alt, cond, \ 439 PVOP_CALLEE_CLOBBERS, , ##__VA_ARGS__) 440 441 442 #define __PVOP_VCALL(op, ...) \ 443 (void)____PVOP_CALL(, op, PVOP_VCALL_CLOBBERS, \ 444 VEXTRA_CLOBBERS, ##__VA_ARGS__) 445 446 #define __PVOP_ALT_VCALL(op, alt, cond, ...) \ 447 (void)____PVOP_ALT_CALL(, op, alt, cond, \ 448 PVOP_VCALL_CLOBBERS, VEXTRA_CLOBBERS, \ 449 ##__VA_ARGS__) 450 451 #define __PVOP_VCALLEESAVE(op, ...) \ 452 (void)____PVOP_CALL(, op.func, \ 453 PVOP_VCALLEE_CLOBBERS, , ##__VA_ARGS__) 454 455 #define __PVOP_ALT_VCALLEESAVE(op, alt, cond, ...) \ 456 (void)____PVOP_ALT_CALL(, op.func, alt, cond, \ 457 PVOP_VCALLEE_CLOBBERS, , ##__VA_ARGS__) 458 459 460 #define PVOP_CALL0(rettype, op) \ 461 __PVOP_CALL(rettype, op) 462 #define PVOP_VCALL0(op) \ 463 __PVOP_VCALL(op) 464 #define PVOP_ALT_CALL0(rettype, op, alt, cond) \ 465 __PVOP_ALT_CALL(rettype, op, alt, cond) 466 #define PVOP_ALT_VCALL0(op, alt, cond) \ 467 __PVOP_ALT_VCALL(op, alt, cond) 468 469 #define PVOP_CALLEE0(rettype, op) \ 470 __PVOP_CALLEESAVE(rettype, op) 471 #define PVOP_VCALLEE0(op) \ 472 __PVOP_VCALLEESAVE(op) 473 #define PVOP_ALT_CALLEE0(rettype, op, alt, cond) \ 474 __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond) 475 #define PVOP_ALT_VCALLEE0(op, alt, cond) \ 476 __PVOP_ALT_VCALLEESAVE(op, alt, cond) 477 478 479 #define PVOP_CALL1(rettype, op, arg1) \ 480 __PVOP_CALL(rettype, op, PVOP_CALL_ARG1(arg1)) 481 #define PVOP_VCALL1(op, arg1) \ 482 __PVOP_VCALL(op, PVOP_CALL_ARG1(arg1)) 483 #define PVOP_ALT_VCALL1(op, arg1, alt, cond) \ 484 __PVOP_ALT_VCALL(op, alt, cond, PVOP_CALL_ARG1(arg1)) 485 486 #define PVOP_CALLEE1(rettype, op, arg1) \ 487 __PVOP_CALLEESAVE(rettype, op, PVOP_CALL_ARG1(arg1)) 488 #define PVOP_VCALLEE1(op, arg1) \ 489 __PVOP_VCALLEESAVE(op, PVOP_CALL_ARG1(arg1)) 490 #define PVOP_ALT_CALLEE1(rettype, op, arg1, alt, cond) \ 491 __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond, PVOP_CALL_ARG1(arg1)) 492 #define PVOP_ALT_VCALLEE1(op, arg1, alt, cond) \ 493 __PVOP_ALT_VCALLEESAVE(op, alt, cond, PVOP_CALL_ARG1(arg1)) 494 495 496 #define PVOP_CALL2(rettype, op, arg1, arg2) \ 497 __PVOP_CALL(rettype, op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2)) 498 #define PVOP_VCALL2(op, arg1, arg2) \ 499 __PVOP_VCALL(op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2)) 500 501 #define PVOP_CALL3(rettype, op, arg1, arg2, arg3) \ 502 __PVOP_CALL(rettype, op, PVOP_CALL_ARG1(arg1), \ 503 PVOP_CALL_ARG2(arg2), PVOP_CALL_ARG3(arg3)) 504 #define PVOP_VCALL3(op, arg1, arg2, arg3) \ 505 __PVOP_VCALL(op, PVOP_CALL_ARG1(arg1), \ 506 PVOP_CALL_ARG2(arg2), PVOP_CALL_ARG3(arg3)) 507 508 #define PVOP_CALL4(rettype, op, arg1, arg2, arg3, arg4) \ 509 __PVOP_CALL(rettype, op, \ 510 PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2), \ 511 PVOP_CALL_ARG3(arg3), PVOP_CALL_ARG4(arg4)) 512 #define PVOP_VCALL4(op, arg1, arg2, arg3, arg4) \ 513 __PVOP_VCALL(op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2), \ 514 PVOP_CALL_ARG3(arg3), PVOP_CALL_ARG4(arg4)) 515 516 unsigned long paravirt_ret0(void); 517 #ifdef CONFIG_PARAVIRT_XXL 518 u64 _paravirt_ident_64(u64); 519 unsigned long pv_native_save_fl(void); 520 void pv_native_irq_disable(void); 521 void pv_native_irq_enable(void); 522 unsigned long pv_native_read_cr2(void); 523 #endif 524 525 #define paravirt_nop ((void *)nop_func) 526 527 #endif /* __ASSEMBLER__ */ 528 529 #define ALT_NOT_XEN ALT_NOT(X86_FEATURE_XENPV) 530 531 #endif /* CONFIG_PARAVIRT */ 532 #endif /* _ASM_X86_PARAVIRT_TYPES_H */ 533