hypervisor.h 400 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_HYPEVISOR_H
  3. #define __LINUX_HYPEVISOR_H
  4. /*
  5. * Generic Hypervisor support
  6. * Juergen Gross <jgross@suse.com>
  7. */
  8. #ifdef CONFIG_X86
  9. #include <asm/x86_init.h>
  10. static inline void hypervisor_pin_vcpu(int cpu)
  11. {
  12. x86_platform.hyper.pin_vcpu(cpu);
  13. }
  14. #else
  15. static inline void hypervisor_pin_vcpu(int cpu)
  16. {
  17. }
  18. #endif
  19. #endif /* __LINUX_HYPEVISOR_H */