Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 1 | #ifndef __LINUX_KVM_H |
| 2 | #define __LINUX_KVM_H |
| 3 | |
| 4 | /* |
| 5 | * Userspace interface for /dev/kvm - kernel based virtual machine |
| 6 | * |
Rusty Russell | dea8cae | 2007-07-17 23:12:26 +1000 | [diff] [blame] | 7 | * Note: you must update KVM_API_VERSION if you change this interface. |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <asm/types.h> |
| 11 | #include <linux/ioctl.h> |
| 12 | |
Avi Kivity | 2ff81f7 | 2007-04-29 16:25:49 +0300 | [diff] [blame] | 13 | #define KVM_API_VERSION 12 |
Avi Kivity | 0b76e20 | 2006-12-22 01:06:02 -0800 | [diff] [blame] | 14 | |
Rusty Russell | 9eb829c | 2007-07-18 13:05:58 +1000 | [diff] [blame] | 15 | /* Architectural interrupt line count. */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 16 | #define KVM_NR_INTERRUPTS 256 |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 17 | |
| 18 | /* for KVM_CREATE_MEMORY_REGION */ |
| 19 | struct kvm_memory_region { |
| 20 | __u32 slot; |
| 21 | __u32 flags; |
| 22 | __u64 guest_phys_addr; |
| 23 | __u64 memory_size; /* bytes */ |
| 24 | }; |
| 25 | |
| 26 | /* for kvm_memory_region::flags */ |
| 27 | #define KVM_MEM_LOG_DIRTY_PAGES 1UL |
| 28 | |
Avi Kivity | e820754 | 2007-03-30 16:54:30 +0300 | [diff] [blame] | 29 | struct kvm_memory_alias { |
| 30 | __u32 slot; /* this has a different namespace than memory slots */ |
| 31 | __u32 flags; |
| 32 | __u64 guest_phys_addr; |
| 33 | __u64 memory_size; |
| 34 | __u64 target_phys_addr; |
| 35 | }; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 36 | |
Eddie Dong | 97222cc | 2007-09-12 10:58:04 +0300 | [diff] [blame] | 37 | /* for KVM_IRQ_LINE */ |
Eddie Dong | 85f455f | 2007-07-06 12:20:49 +0300 | [diff] [blame] | 38 | struct kvm_irq_level { |
| 39 | /* |
| 40 | * ACPI gsi notion of irq. |
| 41 | * For IA-64 (APIC model) IOAPIC0: irq 0-23; IOAPIC1: irq 24-47.. |
| 42 | * For X86 (standard AT mode) PIC0/1: irq 0-15. IOAPIC0: 0-23.. |
| 43 | */ |
| 44 | __u32 irq; |
| 45 | __u32 level; |
| 46 | }; |
| 47 | |
He, Qing | 6ceb9d7 | 2007-07-26 11:05:18 +0300 | [diff] [blame^] | 48 | /* for KVM_GET_IRQCHIP / KVM_SET_IRQCHIP */ |
| 49 | struct kvm_pic_state { |
| 50 | __u8 last_irr; /* edge detection */ |
| 51 | __u8 irr; /* interrupt request register */ |
| 52 | __u8 imr; /* interrupt mask register */ |
| 53 | __u8 isr; /* interrupt service register */ |
| 54 | __u8 priority_add; /* highest irq priority */ |
| 55 | __u8 irq_base; |
| 56 | __u8 read_reg_select; |
| 57 | __u8 poll; |
| 58 | __u8 special_mask; |
| 59 | __u8 init_state; |
| 60 | __u8 auto_eoi; |
| 61 | __u8 rotate_on_auto_eoi; |
| 62 | __u8 special_fully_nested_mode; |
| 63 | __u8 init4; /* true if 4 byte init */ |
| 64 | __u8 elcr; /* PIIX edge/trigger selection */ |
| 65 | __u8 elcr_mask; |
| 66 | }; |
| 67 | |
| 68 | enum kvm_irqchip_id { |
| 69 | KVM_IRQCHIP_PIC_MASTER = 0, |
| 70 | KVM_IRQCHIP_PIC_SLAVE = 1, |
| 71 | }; |
| 72 | |
| 73 | struct kvm_irqchip { |
| 74 | __u32 chip_id; |
| 75 | __u32 pad; |
| 76 | union { |
| 77 | char dummy[512]; /* reserving space */ |
| 78 | struct kvm_pic_state pic; |
| 79 | } chip; |
| 80 | }; |
| 81 | |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 82 | enum kvm_exit_reason { |
| 83 | KVM_EXIT_UNKNOWN = 0, |
| 84 | KVM_EXIT_EXCEPTION = 1, |
| 85 | KVM_EXIT_IO = 2, |
Avi Kivity | b4e63f5 | 2007-03-04 13:59:30 +0200 | [diff] [blame] | 86 | KVM_EXIT_HYPERCALL = 3, |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 87 | KVM_EXIT_DEBUG = 4, |
| 88 | KVM_EXIT_HLT = 5, |
| 89 | KVM_EXIT_MMIO = 6, |
Dor Laor | c1150d8 | 2007-01-05 16:36:24 -0800 | [diff] [blame] | 90 | KVM_EXIT_IRQ_WINDOW_OPEN = 7, |
Joerg Roedel | 46fe4dd | 2007-01-26 00:56:42 -0800 | [diff] [blame] | 91 | KVM_EXIT_SHUTDOWN = 8, |
Avi Kivity | 8eb7d33 | 2007-03-04 14:17:08 +0200 | [diff] [blame] | 92 | KVM_EXIT_FAIL_ENTRY = 9, |
Avi Kivity | 1b19f3e | 2007-03-04 14:24:03 +0200 | [diff] [blame] | 93 | KVM_EXIT_INTR = 10, |
Yang, Sheng | 253abde | 2007-08-16 13:01:00 +0300 | [diff] [blame] | 94 | KVM_EXIT_SET_TPR = 11 |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 95 | }; |
| 96 | |
Avi Kivity | 9a2bb7f | 2007-02-22 12:58:31 +0200 | [diff] [blame] | 97 | /* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 98 | struct kvm_run { |
| 99 | /* in */ |
Dor Laor | c1150d8 | 2007-01-05 16:36:24 -0800 | [diff] [blame] | 100 | __u8 request_interrupt_window; |
Avi Kivity | 02c8320 | 2007-04-29 15:02:17 +0300 | [diff] [blame] | 101 | __u8 padding1[7]; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 102 | |
| 103 | /* out */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 104 | __u32 exit_reason; |
Dor Laor | c1150d8 | 2007-01-05 16:36:24 -0800 | [diff] [blame] | 105 | __u8 ready_for_interrupt_injection; |
| 106 | __u8 if_flag; |
Avi Kivity | 2ff81f7 | 2007-04-29 16:25:49 +0300 | [diff] [blame] | 107 | __u8 padding2[2]; |
Dor Laor | 5481034 | 2007-02-12 00:54:39 -0800 | [diff] [blame] | 108 | |
| 109 | /* in (pre_kvm_run), out (post_kvm_run) */ |
Dor Laor | c1150d8 | 2007-01-05 16:36:24 -0800 | [diff] [blame] | 110 | __u64 cr8; |
| 111 | __u64 apic_base; |
| 112 | |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 113 | union { |
| 114 | /* KVM_EXIT_UNKNOWN */ |
| 115 | struct { |
Avi Kivity | 8eb7d33 | 2007-03-04 14:17:08 +0200 | [diff] [blame] | 116 | __u64 hardware_exit_reason; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 117 | } hw; |
Avi Kivity | 8eb7d33 | 2007-03-04 14:17:08 +0200 | [diff] [blame] | 118 | /* KVM_EXIT_FAIL_ENTRY */ |
| 119 | struct { |
| 120 | __u64 hardware_entry_failure_reason; |
| 121 | } fail_entry; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 122 | /* KVM_EXIT_EXCEPTION */ |
| 123 | struct { |
| 124 | __u32 exception; |
| 125 | __u32 error_code; |
| 126 | } ex; |
| 127 | /* KVM_EXIT_IO */ |
Avi Kivity | 46fc147 | 2007-02-22 19:39:30 +0200 | [diff] [blame] | 128 | struct kvm_io { |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 129 | #define KVM_EXIT_IO_IN 0 |
| 130 | #define KVM_EXIT_IO_OUT 1 |
| 131 | __u8 direction; |
| 132 | __u8 size; /* bytes */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 133 | __u16 port; |
Avi Kivity | 039576c | 2007-03-20 12:46:50 +0200 | [diff] [blame] | 134 | __u32 count; |
| 135 | __u64 data_offset; /* relative to kvm_run start */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 136 | } io; |
| 137 | struct { |
| 138 | } debug; |
| 139 | /* KVM_EXIT_MMIO */ |
| 140 | struct { |
| 141 | __u64 phys_addr; |
| 142 | __u8 data[8]; |
| 143 | __u32 len; |
| 144 | __u8 is_write; |
| 145 | } mmio; |
Avi Kivity | b4e63f5 | 2007-03-04 13:59:30 +0200 | [diff] [blame] | 146 | /* KVM_EXIT_HYPERCALL */ |
| 147 | struct { |
Jeff Dike | 519ef35 | 2007-07-16 15:24:47 -0400 | [diff] [blame] | 148 | __u64 nr; |
Avi Kivity | b4e63f5 | 2007-03-04 13:59:30 +0200 | [diff] [blame] | 149 | __u64 args[6]; |
| 150 | __u64 ret; |
| 151 | __u32 longmode; |
| 152 | __u32 pad; |
| 153 | } hypercall; |
Avi Kivity | 24cbc7e | 2007-07-17 11:45:55 +0300 | [diff] [blame] | 154 | /* Fix the size of the union. */ |
| 155 | char padding[256]; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 156 | }; |
| 157 | }; |
| 158 | |
| 159 | /* for KVM_GET_REGS and KVM_SET_REGS */ |
| 160 | struct kvm_regs { |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 161 | /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */ |
| 162 | __u64 rax, rbx, rcx, rdx; |
| 163 | __u64 rsi, rdi, rsp, rbp; |
| 164 | __u64 r8, r9, r10, r11; |
| 165 | __u64 r12, r13, r14, r15; |
| 166 | __u64 rip, rflags; |
| 167 | }; |
| 168 | |
Avi Kivity | b883673 | 2007-04-01 16:34:31 +0300 | [diff] [blame] | 169 | /* for KVM_GET_FPU and KVM_SET_FPU */ |
| 170 | struct kvm_fpu { |
| 171 | __u8 fpr[8][16]; |
| 172 | __u16 fcw; |
| 173 | __u16 fsw; |
| 174 | __u8 ftwx; /* in fxsave format */ |
| 175 | __u8 pad1; |
| 176 | __u16 last_opcode; |
| 177 | __u64 last_ip; |
| 178 | __u64 last_dp; |
| 179 | __u8 xmm[16][16]; |
| 180 | __u32 mxcsr; |
| 181 | __u32 pad2; |
| 182 | }; |
| 183 | |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 184 | struct kvm_segment { |
| 185 | __u64 base; |
| 186 | __u32 limit; |
| 187 | __u16 selector; |
| 188 | __u8 type; |
| 189 | __u8 present, dpl, db, s, l, g, avl; |
| 190 | __u8 unusable; |
| 191 | __u8 padding; |
| 192 | }; |
| 193 | |
| 194 | struct kvm_dtable { |
| 195 | __u64 base; |
| 196 | __u16 limit; |
| 197 | __u16 padding[3]; |
| 198 | }; |
| 199 | |
| 200 | /* for KVM_GET_SREGS and KVM_SET_SREGS */ |
| 201 | struct kvm_sregs { |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 202 | /* out (KVM_GET_SREGS) / in (KVM_SET_SREGS) */ |
| 203 | struct kvm_segment cs, ds, es, fs, gs, ss; |
| 204 | struct kvm_segment tr, ldt; |
| 205 | struct kvm_dtable gdt, idt; |
| 206 | __u64 cr0, cr2, cr3, cr4, cr8; |
| 207 | __u64 efer; |
| 208 | __u64 apic_base; |
Rusty Russell | 9eb829c | 2007-07-18 13:05:58 +1000 | [diff] [blame] | 209 | __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64]; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | struct kvm_msr_entry { |
| 213 | __u32 index; |
| 214 | __u32 reserved; |
| 215 | __u64 data; |
| 216 | }; |
| 217 | |
| 218 | /* for KVM_GET_MSRS and KVM_SET_MSRS */ |
| 219 | struct kvm_msrs { |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 220 | __u32 nmsrs; /* number of msrs in entries */ |
Avi Kivity | bccf215 | 2007-02-21 18:04:26 +0200 | [diff] [blame] | 221 | __u32 pad; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 222 | |
| 223 | struct kvm_msr_entry entries[0]; |
| 224 | }; |
| 225 | |
| 226 | /* for KVM_GET_MSR_INDEX_LIST */ |
| 227 | struct kvm_msr_list { |
| 228 | __u32 nmsrs; /* number of msrs in entries */ |
| 229 | __u32 indices[0]; |
| 230 | }; |
| 231 | |
| 232 | /* for KVM_TRANSLATE */ |
| 233 | struct kvm_translation { |
| 234 | /* in */ |
| 235 | __u64 linear_address; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 236 | |
| 237 | /* out */ |
| 238 | __u64 physical_address; |
| 239 | __u8 valid; |
| 240 | __u8 writeable; |
| 241 | __u8 usermode; |
Avi Kivity | 8cd1330 | 2007-02-12 00:54:41 -0800 | [diff] [blame] | 242 | __u8 pad[5]; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 243 | }; |
| 244 | |
| 245 | /* for KVM_INTERRUPT */ |
| 246 | struct kvm_interrupt { |
| 247 | /* in */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 248 | __u32 irq; |
| 249 | }; |
| 250 | |
| 251 | struct kvm_breakpoint { |
| 252 | __u32 enabled; |
| 253 | __u32 padding; |
| 254 | __u64 address; |
| 255 | }; |
| 256 | |
| 257 | /* for KVM_DEBUG_GUEST */ |
| 258 | struct kvm_debug_guest { |
| 259 | /* int */ |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 260 | __u32 enabled; |
Avi Kivity | bccf215 | 2007-02-21 18:04:26 +0200 | [diff] [blame] | 261 | __u32 pad; |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 262 | struct kvm_breakpoint breakpoints[4]; |
| 263 | __u32 singlestep; |
| 264 | }; |
| 265 | |
| 266 | /* for KVM_GET_DIRTY_LOG */ |
| 267 | struct kvm_dirty_log { |
| 268 | __u32 slot; |
| 269 | __u32 padding; |
| 270 | union { |
| 271 | void __user *dirty_bitmap; /* one bit per page */ |
| 272 | __u64 padding; |
| 273 | }; |
| 274 | }; |
| 275 | |
Avi Kivity | 06465c5 | 2007-02-28 20:46:53 +0200 | [diff] [blame] | 276 | struct kvm_cpuid_entry { |
| 277 | __u32 function; |
| 278 | __u32 eax; |
| 279 | __u32 ebx; |
| 280 | __u32 ecx; |
| 281 | __u32 edx; |
| 282 | __u32 padding; |
| 283 | }; |
| 284 | |
| 285 | /* for KVM_SET_CPUID */ |
| 286 | struct kvm_cpuid { |
| 287 | __u32 nent; |
| 288 | __u32 padding; |
| 289 | struct kvm_cpuid_entry entries[0]; |
| 290 | }; |
| 291 | |
Avi Kivity | 1961d27 | 2007-03-05 19:46:05 +0200 | [diff] [blame] | 292 | /* for KVM_SET_SIGNAL_MASK */ |
| 293 | struct kvm_signal_mask { |
| 294 | __u32 len; |
| 295 | __u8 sigset[0]; |
| 296 | }; |
| 297 | |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 298 | #define KVMIO 0xAE |
| 299 | |
Avi Kivity | f17abe9 | 2007-02-21 19:28:04 +0200 | [diff] [blame] | 300 | /* |
| 301 | * ioctls for /dev/kvm fds: |
| 302 | */ |
Avi Kivity | 739872c | 2007-03-01 17:20:13 +0200 | [diff] [blame] | 303 | #define KVM_GET_API_VERSION _IO(KVMIO, 0x00) |
| 304 | #define KVM_CREATE_VM _IO(KVMIO, 0x01) /* returns a VM fd */ |
| 305 | #define KVM_GET_MSR_INDEX_LIST _IOWR(KVMIO, 0x02, struct kvm_msr_list) |
Avi Kivity | 5d308f4 | 2007-03-01 17:56:20 +0200 | [diff] [blame] | 306 | /* |
| 307 | * Check if a kvm extension is available. Argument is extension number, |
| 308 | * return is 1 (yes) or 0 (no, sorry). |
| 309 | */ |
| 310 | #define KVM_CHECK_EXTENSION _IO(KVMIO, 0x03) |
Avi Kivity | 07c45a3 | 2007-03-07 13:05:38 +0200 | [diff] [blame] | 311 | /* |
| 312 | * Get size for mmap(vcpu_fd) |
| 313 | */ |
| 314 | #define KVM_GET_VCPU_MMAP_SIZE _IO(KVMIO, 0x04) /* in bytes */ |
Avi Kivity | f17abe9 | 2007-02-21 19:28:04 +0200 | [diff] [blame] | 315 | |
| 316 | /* |
Eddie Dong | 85f455f | 2007-07-06 12:20:49 +0300 | [diff] [blame] | 317 | * Extension capability list. |
| 318 | */ |
| 319 | #define KVM_CAP_IRQCHIP 0 |
Eddie Dong | b6958ce | 2007-07-18 12:15:21 +0300 | [diff] [blame] | 320 | #define KVM_CAP_HLT 1 |
Eddie Dong | 85f455f | 2007-07-06 12:20:49 +0300 | [diff] [blame] | 321 | |
| 322 | /* |
Avi Kivity | f17abe9 | 2007-02-21 19:28:04 +0200 | [diff] [blame] | 323 | * ioctls for VM fds |
| 324 | */ |
Avi Kivity | 739872c | 2007-03-01 17:20:13 +0200 | [diff] [blame] | 325 | #define KVM_SET_MEMORY_REGION _IOW(KVMIO, 0x40, struct kvm_memory_region) |
Avi Kivity | bccf215 | 2007-02-21 18:04:26 +0200 | [diff] [blame] | 326 | /* |
| 327 | * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns |
| 328 | * a vcpu fd. |
| 329 | */ |
Avi Kivity | 739872c | 2007-03-01 17:20:13 +0200 | [diff] [blame] | 330 | #define KVM_CREATE_VCPU _IO(KVMIO, 0x41) |
| 331 | #define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log) |
Avi Kivity | e820754 | 2007-03-30 16:54:30 +0300 | [diff] [blame] | 332 | #define KVM_SET_MEMORY_ALIAS _IOW(KVMIO, 0x43, struct kvm_memory_alias) |
Eddie Dong | 85f455f | 2007-07-06 12:20:49 +0300 | [diff] [blame] | 333 | /* Device model IOC */ |
| 334 | #define KVM_CREATE_IRQCHIP _IO(KVMIO, 0x60) |
Eddie Dong | 97222cc | 2007-09-12 10:58:04 +0300 | [diff] [blame] | 335 | #define KVM_IRQ_LINE _IOW(KVMIO, 0x61, struct kvm_irq_level) |
He, Qing | 6ceb9d7 | 2007-07-26 11:05:18 +0300 | [diff] [blame^] | 336 | #define KVM_GET_IRQCHIP _IOWR(KVMIO, 0x62, struct kvm_irqchip) |
| 337 | #define KVM_SET_IRQCHIP _IOR(KVMIO, 0x63, struct kvm_irqchip) |
Avi Kivity | bccf215 | 2007-02-21 18:04:26 +0200 | [diff] [blame] | 338 | |
| 339 | /* |
| 340 | * ioctls for vcpu fds |
| 341 | */ |
Avi Kivity | 739872c | 2007-03-01 17:20:13 +0200 | [diff] [blame] | 342 | #define KVM_RUN _IO(KVMIO, 0x80) |
| 343 | #define KVM_GET_REGS _IOR(KVMIO, 0x81, struct kvm_regs) |
| 344 | #define KVM_SET_REGS _IOW(KVMIO, 0x82, struct kvm_regs) |
| 345 | #define KVM_GET_SREGS _IOR(KVMIO, 0x83, struct kvm_sregs) |
| 346 | #define KVM_SET_SREGS _IOW(KVMIO, 0x84, struct kvm_sregs) |
| 347 | #define KVM_TRANSLATE _IOWR(KVMIO, 0x85, struct kvm_translation) |
| 348 | #define KVM_INTERRUPT _IOW(KVMIO, 0x86, struct kvm_interrupt) |
| 349 | #define KVM_DEBUG_GUEST _IOW(KVMIO, 0x87, struct kvm_debug_guest) |
| 350 | #define KVM_GET_MSRS _IOWR(KVMIO, 0x88, struct kvm_msrs) |
| 351 | #define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs) |
| 352 | #define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid) |
Avi Kivity | 1961d27 | 2007-03-05 19:46:05 +0200 | [diff] [blame] | 353 | #define KVM_SET_SIGNAL_MASK _IOW(KVMIO, 0x8b, struct kvm_signal_mask) |
Avi Kivity | b883673 | 2007-04-01 16:34:31 +0300 | [diff] [blame] | 354 | #define KVM_GET_FPU _IOR(KVMIO, 0x8c, struct kvm_fpu) |
| 355 | #define KVM_SET_FPU _IOW(KVMIO, 0x8d, struct kvm_fpu) |
Avi Kivity | 6aa8b73 | 2006-12-10 02:21:36 -0800 | [diff] [blame] | 356 | |
| 357 | #endif |