35 lines
937 B
C
35 lines
937 B
C
#ifndef _ASM_KVM_GUEST_E2K_H_
|
|
#define _ASM_KVM_GUEST_E2K_H_
|
|
|
|
/* Do not include the header directly, only through asm/e2k.h */
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/kvm/guest/e2k_virt.h>
|
|
|
|
#ifdef CONFIG_VIRTUALIZATION
|
|
|
|
#if defined(CONFIG_KVM_GUEST_KERNEL) || defined(CONFIG_PARAVIRT_GUEST)
|
|
extern unsigned int guest_machine_id;
|
|
#define boot_guest_machine_id boot_get_vo_value(guest_machine_id)
|
|
#endif /* CONFIG_KVM_GUEST_KERNEL || CONFIG_PARAVIRT_GUEST */
|
|
|
|
#define machine_id guest_machine_id
|
|
#define boot_machine_id boot_guest_machine_id
|
|
|
|
#define get_machine_id() machine_id
|
|
#define boot_get_machine_id() boot_machine_id
|
|
#define set_machine_id(mach_id) (machine_id = (mach_id))
|
|
#define boot_set_machine_id(mach_id) (boot_machine_id = (mach_id))
|
|
|
|
extern void kvm_set_mach_type_id(void);
|
|
static inline void set_mach_type_id(void)
|
|
{
|
|
kvm_set_mach_type_id();
|
|
}
|
|
|
|
#endif /* CONFIG_VIRTUALIZATION */
|
|
|
|
#endif /* _ASM_KVM_GUEST_E2K_H_ */
|