diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-02-19 07:37:47 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 04:12:40 -0500 |
commit | c21415e84334af679630f6450ceb8929a5234fad (patch) | |
tree | 6f9ce30c9fd97a3fc94e79e1450fda86f612b56e /include/linux | |
parent | 102d8325a1d2f266d3d0a03fdde948544e72c12d (diff) |
KVM: Add host hypercall support for vmx
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm_para.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/kvm_para.h b/include/linux/kvm_para.h index 74be5c1002ec..3b292565a693 100644 --- a/include/linux/kvm_para.h +++ b/include/linux/kvm_para.h | |||
@@ -52,4 +52,22 @@ struct kvm_vcpu_para_state { | |||
52 | 52 | ||
53 | #define KVM_EINVAL 1 | 53 | #define KVM_EINVAL 1 |
54 | 54 | ||
55 | /* | ||
56 | * Hypercall calling convention: | ||
57 | * | ||
58 | * Each hypercall may have 0-6 parameters. | ||
59 | * | ||
60 | * 64-bit hypercall index is in RAX, goes from 0 to __NR_hypercalls-1 | ||
61 | * | ||
62 | * 64-bit parameters 1-6 are in the standard gcc x86_64 calling convention | ||
63 | * order: RDI, RSI, RDX, RCX, R8, R9. | ||
64 | * | ||
65 | * 32-bit index is EBX, parameters are: EAX, ECX, EDX, ESI, EDI, EBP. | ||
66 | * (the first 3 are according to the gcc regparm calling convention) | ||
67 | * | ||
68 | * No registers are clobbered by the hypercall, except that the | ||
69 | * return value is in RAX. | ||
70 | */ | ||
71 | #define __NR_hypercalls 0 | ||
72 | |||
55 | #endif | 73 | #endif |