diff options
Diffstat (limited to 'include/linux/lguest.h')
-rw-r--r-- | include/linux/lguest.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/lguest.h b/include/linux/lguest.h index f30c04fc22b7..500aace21ca7 100644 --- a/include/linux/lguest.h +++ b/include/linux/lguest.h | |||
@@ -3,11 +3,6 @@ | |||
3 | #ifndef _ASM_LGUEST_H | 3 | #ifndef _ASM_LGUEST_H |
4 | #define _ASM_LGUEST_H | 4 | #define _ASM_LGUEST_H |
5 | 5 | ||
6 | /* These are randomly chosen numbers which indicate we're an lguest at boot */ | ||
7 | #define LGUEST_MAGIC_EBP 0x4C687970 | ||
8 | #define LGUEST_MAGIC_EDI 0x652D4D65 | ||
9 | #define LGUEST_MAGIC_ESI 0xFFFFFFFF | ||
10 | |||
11 | #ifndef __ASSEMBLY__ | 6 | #ifndef __ASSEMBLY__ |
12 | #include <asm/irq.h> | 7 | #include <asm/irq.h> |
13 | 8 | ||
@@ -20,7 +15,7 @@ | |||
20 | #define LHCALL_LOAD_IDT_ENTRY 6 | 15 | #define LHCALL_LOAD_IDT_ENTRY 6 |
21 | #define LHCALL_SET_STACK 7 | 16 | #define LHCALL_SET_STACK 7 |
22 | #define LHCALL_TS 8 | 17 | #define LHCALL_TS 8 |
23 | #define LHCALL_TIMER_READ 9 | 18 | #define LHCALL_SET_CLOCKEVENT 9 |
24 | #define LHCALL_HALT 10 | 19 | #define LHCALL_HALT 10 |
25 | #define LHCALL_GET_WALLCLOCK 11 | 20 | #define LHCALL_GET_WALLCLOCK 11 |
26 | #define LHCALL_BIND_DMA 12 | 21 | #define LHCALL_BIND_DMA 12 |
@@ -29,6 +24,9 @@ | |||
29 | #define LHCALL_SET_PMD 15 | 24 | #define LHCALL_SET_PMD 15 |
30 | #define LHCALL_LOAD_TLS 16 | 25 | #define LHCALL_LOAD_TLS 16 |
31 | 26 | ||
27 | #define LG_CLOCK_MIN_DELTA 100UL | ||
28 | #define LG_CLOCK_MAX_DELTA ULONG_MAX | ||
29 | |||
32 | #define LGUEST_TRAP_ENTRY 0x1F | 30 | #define LGUEST_TRAP_ENTRY 0x1F |
33 | 31 | ||
34 | static inline unsigned long | 32 | static inline unsigned long |
@@ -75,6 +73,8 @@ struct lguest_data | |||
75 | unsigned long reserve_mem; | 73 | unsigned long reserve_mem; |
76 | /* ID of this guest (used by network driver to set ethernet address) */ | 74 | /* ID of this guest (used by network driver to set ethernet address) */ |
77 | u16 guestid; | 75 | u16 guestid; |
76 | /* KHz for the TSC clock. */ | ||
77 | u32 tsc_khz; | ||
78 | 78 | ||
79 | /* Fields initialized by the guest at boot: */ | 79 | /* Fields initialized by the guest at boot: */ |
80 | /* Instruction range to suppress interrupts even if enabled */ | 80 | /* Instruction range to suppress interrupts even if enabled */ |