diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-01 10:20:13 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:23 -0400 |
commit | 739872c56f3322c38320c7a5a543ef6f56f174bc (patch) | |
tree | 1dbd6e3c541f14e9553fc32a1b1c1d4096a77858 /include/linux/kvm.h | |
parent | 2a4dac3952468157297b81ae0a29815c02ead179 (diff) |
KVM: Renumber ioctls
The recent changes have left the ioctl numbers in complete disarray.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index d89189a81aba..93472daec120 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -229,34 +229,34 @@ struct kvm_cpuid { | |||
229 | /* | 229 | /* |
230 | * ioctls for /dev/kvm fds: | 230 | * ioctls for /dev/kvm fds: |
231 | */ | 231 | */ |
232 | #define KVM_GET_API_VERSION _IO(KVMIO, 1) | 232 | #define KVM_GET_API_VERSION _IO(KVMIO, 0x00) |
233 | #define KVM_CREATE_VM _IO(KVMIO, 2) /* returns a VM fd */ | 233 | #define KVM_CREATE_VM _IO(KVMIO, 0x01) /* returns a VM fd */ |
234 | #define KVM_GET_MSR_INDEX_LIST _IOWR(KVMIO, 15, struct kvm_msr_list) | 234 | #define KVM_GET_MSR_INDEX_LIST _IOWR(KVMIO, 0x02, struct kvm_msr_list) |
235 | 235 | ||
236 | /* | 236 | /* |
237 | * ioctls for VM fds | 237 | * ioctls for VM fds |
238 | */ | 238 | */ |
239 | #define KVM_SET_MEMORY_REGION _IOW(KVMIO, 10, struct kvm_memory_region) | 239 | #define KVM_SET_MEMORY_REGION _IOW(KVMIO, 0x40, struct kvm_memory_region) |
240 | /* | 240 | /* |
241 | * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns | 241 | * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns |
242 | * a vcpu fd. | 242 | * a vcpu fd. |
243 | */ | 243 | */ |
244 | #define KVM_CREATE_VCPU _IO(KVMIO, 11) | 244 | #define KVM_CREATE_VCPU _IO(KVMIO, 0x41) |
245 | #define KVM_GET_DIRTY_LOG _IOW(KVMIO, 12, struct kvm_dirty_log) | 245 | #define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log) |
246 | 246 | ||
247 | /* | 247 | /* |
248 | * ioctls for vcpu fds | 248 | * ioctls for vcpu fds |
249 | */ | 249 | */ |
250 | #define KVM_RUN _IO(KVMIO, 16) | 250 | #define KVM_RUN _IO(KVMIO, 0x80) |
251 | #define KVM_GET_REGS _IOR(KVMIO, 3, struct kvm_regs) | 251 | #define KVM_GET_REGS _IOR(KVMIO, 0x81, struct kvm_regs) |
252 | #define KVM_SET_REGS _IOW(KVMIO, 4, struct kvm_regs) | 252 | #define KVM_SET_REGS _IOW(KVMIO, 0x82, struct kvm_regs) |
253 | #define KVM_GET_SREGS _IOR(KVMIO, 5, struct kvm_sregs) | 253 | #define KVM_GET_SREGS _IOR(KVMIO, 0x83, struct kvm_sregs) |
254 | #define KVM_SET_SREGS _IOW(KVMIO, 6, struct kvm_sregs) | 254 | #define KVM_SET_SREGS _IOW(KVMIO, 0x84, struct kvm_sregs) |
255 | #define KVM_TRANSLATE _IOWR(KVMIO, 7, struct kvm_translation) | 255 | #define KVM_TRANSLATE _IOWR(KVMIO, 0x85, struct kvm_translation) |
256 | #define KVM_INTERRUPT _IOW(KVMIO, 8, struct kvm_interrupt) | 256 | #define KVM_INTERRUPT _IOW(KVMIO, 0x86, struct kvm_interrupt) |
257 | #define KVM_DEBUG_GUEST _IOW(KVMIO, 9, struct kvm_debug_guest) | 257 | #define KVM_DEBUG_GUEST _IOW(KVMIO, 0x87, struct kvm_debug_guest) |
258 | #define KVM_GET_MSRS _IOWR(KVMIO, 13, struct kvm_msrs) | 258 | #define KVM_GET_MSRS _IOWR(KVMIO, 0x88, struct kvm_msrs) |
259 | #define KVM_SET_MSRS _IOW(KVMIO, 14, struct kvm_msrs) | 259 | #define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs) |
260 | #define KVM_SET_CPUID _IOW(KVMIO, 17, struct kvm_cpuid) | 260 | #define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid) |
261 | 261 | ||
262 | #endif | 262 | #endif |