mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
Add generic virtualization support for pinning the current vCPU to a specified physical CPU. As this operation isn't performance critical (a very limited set of operations like BIOS calls and SMIs is expected to need this) just add a hypervisor specific indirection. Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: [email protected] Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
18 lines
289 B
C
18 lines
289 B
C
#ifndef __LINUX_HYPEVISOR_H
|
|
#define __LINUX_HYPEVISOR_H
|
|
|
|
/*
|
|
* Generic Hypervisor support
|
|
* Juergen Gross <[email protected]>
|
|
*/
|
|
|
|
#ifdef CONFIG_HYPERVISOR_GUEST
|
|
#include <asm/hypervisor.h>
|
|
#else
|
|
static inline void hypervisor_pin_vcpu(int cpu)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __LINUX_HYPEVISOR_H */
|