Staging: hv: coding style cleanups for HvStatus.h
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / hv / include / HvStatus.h
blobb19ff9674c5fbd7287e9979a4d8e316f628d7065
1 /*
3 * Copyright (c) 2009, Microsoft Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16 * Place - Suite 330, Boston, MA 02111-1307 USA.
18 * Authors:
19 * Haiyang Zhang <haiyangz@microsoft.com>
20 * Hank Janssen <hjanssen@microsoft.com>
24 #ifndef __HVSTATUS_H
25 #define __HVSTATUS_H
27 /* Status codes for hypervisor operations. */
30 * HV_STATUS_SUCCESS
31 * The specified hypercall succeeded
33 #define HV_STATUS_SUCCESS ((u16)0x0000)
36 * HV_STATUS_INVALID_HYPERCALL_CODE
37 * The hypervisor does not support the operation because the specified
38 * hypercall code is not supported.
40 #define HV_STATUS_INVALID_HYPERCALL_CODE ((u16)0x0002)
43 * HV_STATUS_INVALID_HYPERCALL_INPUT
44 * The hypervisor does not support the operation because the encoding for the
45 * hypercall input register is not supported.
47 #define HV_STATUS_INVALID_HYPERCALL_INPUT ((u16)0x0003)
50 * HV_STATUS_INVALID_ALIGNMENT
51 * The hypervisor could not perform the operation beacuse a parameter has an
52 * invalid alignment.
54 #define HV_STATUS_INVALID_ALIGNMENT ((u16)0x0004)
57 * HV_STATUS_INVALID_PARAMETER
58 * The hypervisor could not perform the operation beacuse an invalid parameter
59 * was specified.
61 #define HV_STATUS_INVALID_PARAMETER ((u16)0x0005)
64 * HV_STATUS_ACCESS_DENIED
65 * Access to the specified object was denied.
67 #define HV_STATUS_ACCESS_DENIED ((u16)0x0006)
70 * HV_STATUS_INVALID_PARTITION_STATE
71 * The hypervisor could not perform the operation because the partition is
72 * entering or in an invalid state.
74 #define HV_STATUS_INVALID_PARTITION_STATE ((u16)0x0007)
77 * HV_STATUS_OPERATION_DENIED
78 * The operation is not allowed in the current state.
80 #define HV_STATUS_OPERATION_DENIED ((u16)0x0008)
83 * HV_STATUS_UNKNOWN_PROPERTY
84 * The hypervisor does not recognize the specified partition property.
86 #define HV_STATUS_UNKNOWN_PROPERTY ((u16)0x0009)
89 * HV_STATUS_PROPERTY_VALUE_OUT_OF_RANGE
90 * The specified value of a partition property is out of range or violates an
91 * invariant.
93 #define HV_STATUS_PROPERTY_VALUE_OUT_OF_RANGE ((u16)0x000A)
96 * HV_STATUS_INSUFFICIENT_MEMORY
97 * There is not enough memory in the hypervisor pool to complete the operation.
99 #define HV_STATUS_INSUFFICIENT_MEMORY ((u16)0x000B)
102 * HV_STATUS_PARTITION_TOO_DEEP
103 * The maximum partition depth has been exceeded for the partition hierarchy.
105 #define HV_STATUS_PARTITION_TOO_DEEP ((u16)0x000C)
108 * HV_STATUS_INVALID_PARTITION_ID
109 * A partition with the specified partition Id does not exist.
111 #define HV_STATUS_INVALID_PARTITION_ID ((u16)0x000D)
114 * HV_STATUS_INVALID_VP_INDEX
115 * The hypervisor could not perform the operation because the specified VP
116 * index is invalid.
118 #define HV_STATUS_INVALID_VP_INDEX ((u16)0x000E)
121 * HV_STATUS_NOT_FOUND
122 * The iteration is complete; no addition items in the iteration could be
123 * found.
125 #define HV_STATUS_NOT_FOUND ((u16)0x0010)
128 * HV_STATUS_INVALID_PORT_ID
129 * The hypervisor could not perform the operation because the specified port
130 * identifier is invalid.
132 #define HV_STATUS_INVALID_PORT_ID ((u16)0x0011)
135 * HV_STATUS_INVALID_CONNECTION_ID
136 * The hypervisor could not perform the operation because the specified
137 * connection identifier is invalid.
139 #define HV_STATUS_INVALID_CONNECTION_ID ((u16)0x0012)
142 * HV_STATUS_INSUFFICIENT_BUFFERS
143 * You did not supply enough message buffers to send a message.
145 #define HV_STATUS_INSUFFICIENT_BUFFERS ((u16)0x0013)
148 * HV_STATUS_NOT_ACKNOWLEDGED
149 * The previous virtual interrupt has not been acknowledged.
151 #define HV_STATUS_NOT_ACKNOWLEDGED ((u16)0x0014)
154 * HV_STATUS_INVALID_VP_STATE
155 * A virtual processor is not in the correct state for the performance of the
156 * indicated operation.
158 #define HV_STATUS_INVALID_VP_STATE ((u16)0x0015)
161 * HV_STATUS_ACKNOWLEDGED
162 * The previous virtual interrupt has already been acknowledged.
164 #define HV_STATUS_ACKNOWLEDGED ((u16)0x0016)
167 * HV_STATUS_INVALID_SAVE_RESTORE_STATE
168 * The indicated partition is not in a valid state for saving or restoring.
170 #define HV_STATUS_INVALID_SAVE_RESTORE_STATE ((u16)0x0017)
173 * HV_STATUS_INVALID_SYNIC_STATE
174 * The hypervisor could not complete the operation because a required feature
175 * of the synthetic interrupt controller (SynIC) was disabled.
177 #define HV_STATUS_INVALID_SYNIC_STATE ((u16)0x0018)
180 * HV_STATUS_OBJECT_IN_USE
181 * The hypervisor could not perform the operation because the object or value
182 * was either already in use or being used for a purpose that would not permit
183 * completing the operation.
185 #define HV_STATUS_OBJECT_IN_USE ((u16)0x0019)
188 * HV_STATUS_INVALID_PROXIMITY_DOMAIN_INFO
189 * The proximity domain information is invalid.
191 #define HV_STATUS_INVALID_PROXIMITY_DOMAIN_INFO ((u16)0x001A)
194 * HV_STATUS_NO_DATA
195 * An attempt to retrieve debugging data failed because none was available.
197 #define HV_STATUS_NO_DATA ((u16)0x001B)
200 * HV_STATUS_INACTIVE
201 * The physical connection being used for debuggging has not recorded any
202 * receive activity since the last operation.
204 #define HV_STATUS_INACTIVE ((u16)0x001C)
207 * HV_STATUS_NO_RESOURCES
208 * There are not enough resources to complete the operation.
210 #define HV_STATUS_NO_RESOURCES ((u16)0x001D)
213 * HV_STATUS_FEATURE_UNAVAILABLE
214 * A hypervisor feature is not available to the user.
216 #define HV_STATUS_FEATURE_UNAVAILABLE ((u16)0x001E)
219 * HV_STATUS_UNSUCCESSFUL
220 * {Operation Failed} The requested operation was unsuccessful.
222 #define HV_STATUS_UNSUCCESSFUL ((u16)0x1001)
225 * HV_STATUS_INSUFFICIENT_BUFFER
226 * The specified buffer was too small to contain all of the requested data.
228 #define HV_STATUS_INSUFFICIENT_BUFFER ((u16)0x1002)
231 * HV_STATUS_GPA_NOT_PRESENT
232 * The guest physical address is not currently associated with a system
233 * physical address.
235 #define HV_STATUS_GPA_NOT_PRESENT ((u16)0x1003)
238 * HV_STATUS_GUEST_PAGE_FAULT
239 * The operation would have resulted in a page fault in the guest.
241 #define HV_STATUS_GUEST_PAGE_FAULT ((u16)0x1004)
244 * HV_STATUS_RUNDOWN_DISABLED
245 * The operation cannot proceed as the rundown object was marked disabled.
247 #define HV_STATUS_RUNDOWN_DISABLED ((u16)0x1005)
250 * HV_STATUS_KEY_ALREADY_EXISTS
251 * The entry cannot be added as another entry with the same key already exists.
253 #define HV_STATUS_KEY_ALREADY_EXISTS ((u16)0x1006)
256 * HV_STATUS_GPA_INTERCEPT
257 * The operation resulted an intercept on a region of guest physical memory.
259 #define HV_STATUS_GPA_INTERCEPT ((u16)0x1007)
262 * HV_STATUS_GUEST_GENERAL_PROTECTION_FAULT
263 * The operation would have resulted in a general protection fault in the
264 * guest.
266 #define HV_STATUS_GUEST_GENERAL_PROTECTION_FAULT ((u16)0x1008)
269 * HV_STATUS_GUEST_STACK_FAULT
270 * The operation would have resulted in a stack fault in the guest.
272 #define HV_STATUS_GUEST_STACK_FAULT ((u16)0x1009)
275 * HV_STATUS_GUEST_INVALID_OPCODE_FAULT
276 * The operation would have resulted in an invalid opcode fault in the guest.
278 #define HV_STATUS_GUEST_INVALID_OPCODE_FAULT ((u16)0x100A)
281 * HV_STATUS_FINALIZE_INCOMPLETE
282 * The partition is not completely finalized.
284 #define HV_STATUS_FINALIZE_INCOMPLETE ((u16)0x100B)
287 * HV_STATUS_GUEST_MACHINE_CHECK_ABORT
288 * The operation would have resulted in an machine check abort in the guest.
290 #define HV_STATUS_GUEST_MACHINE_CHECK_ABORT ((u16)0x100C)
293 * HV_STATUS_ILLEGAL_OVERLAY_ACCESS
294 * An illegal access was attempted to an overlay page.
296 #define HV_STATUS_ILLEGAL_OVERLAY_ACCESS ((u16)0x100D)
299 * HV_STATUS_INSUFFICIENT_SYSTEM_VA
300 * There is not enough system VA space available to satisfy the request,
302 #define HV_STATUS_INSUFFICIENT_SYSTEM_VA ((u16)0x100E)
305 * HV_STATUS_VIRTUAL_ADDRESS_NOT_MAPPED
306 * The passed virtual address was not mapped in the hypervisor address space.
308 #define HV_STATUS_VIRTUAL_ADDRESS_NOT_MAPPED ((u16)0x100F)
311 * HV_STATUS_NOT_IMPLEMENTED
312 * The requested operation is not implemented in this version of the
313 * hypervisor.
315 #define HV_STATUS_NOT_IMPLEMENTED ((u16)0x1010)
318 * HV_STATUS_VMX_INSTRUCTION_FAILED
319 * The requested VMX instruction failed to complete succesfully.
321 #define HV_STATUS_VMX_INSTRUCTION_FAILED ((u16)0x1011)
324 * HV_STATUS_VMX_INSTRUCTION_FAILED_WITH_STATUS
325 * The requested VMX instruction failed to complete succesfully indicating
326 * status.
328 #define HV_STATUS_VMX_INSTRUCTION_FAILED_WITH_STATUS ((u16)0x1012)
331 * HV_STATUS_MSR_ACCESS_FAILED
332 * The requested access to the model specific register failed.
334 #define HV_STATUS_MSR_ACCESS_FAILED ((u16)0x1013)
337 * HV_STATUS_CR_ACCESS_FAILED
338 * The requested access to the control register failed.
340 #define HV_STATUS_CR_ACCESS_FAILED ((u16)0x1014)
343 * HV_STATUS_TIMEOUT
344 * The specified timeout expired before the operation completed.
346 #define HV_STATUS_TIMEOUT ((u16)0x1016)
349 * HV_STATUS_MSR_INTERCEPT
350 * The requested access to the model specific register generated an intercept.
352 #define HV_STATUS_MSR_INTERCEPT ((u16)0x1017)
355 * HV_STATUS_CPUID_INTERCEPT
356 * The CPUID instruction generated an intercept.
358 #define HV_STATUS_CPUID_INTERCEPT ((u16)0x1018)
361 * HV_STATUS_REPEAT_INSTRUCTION
362 * The current instruction should be repeated and the instruction pointer not
363 * advanced.
365 #define HV_STATUS_REPEAT_INSTRUCTION ((u16)0x1019)
368 * HV_STATUS_PAGE_PROTECTION_VIOLATION
369 * The current instruction should be repeated and the instruction pointer not
370 * advanced.
372 #define HV_STATUS_PAGE_PROTECTION_VIOLATION ((u16)0x101A)
375 * HV_STATUS_PAGE_TABLE_INVALID
376 * The current instruction should be repeated and the instruction pointer not
377 * advanced.
379 #define HV_STATUS_PAGE_TABLE_INVALID ((u16)0x101B)
382 * HV_STATUS_PAGE_NOT_PRESENT
383 * The current instruction should be repeated and the instruction pointer not
384 * advanced.
386 #define HV_STATUS_PAGE_NOT_PRESENT ((u16)0x101C)
389 * HV_STATUS_IO_INTERCEPT
390 * The requested access to the I/O port generated an intercept.
392 #define HV_STATUS_IO_INTERCEPT ((u16)0x101D)
395 * HV_STATUS_NOTHING_TO_DO
396 * There is nothing to do.
398 #define HV_STATUS_NOTHING_TO_DO ((u16)0x101E)
401 * HV_STATUS_THREAD_TERMINATING
402 * The requested thread is terminating.
404 #define HV_STATUS_THREAD_TERMINATING ((u16)0x101F)
407 * HV_STATUS_SECTION_ALREADY_CONSTRUCTED
408 * The specified section was already constructed.
410 #define HV_STATUS_SECTION_ALREADY_CONSTRUCTED ((u16)0x1020)
412 /* HV_STATUS_SECTION_NOT_ALREADY_CONSTRUCTED
413 * The specified section was not already constructed.
415 #define HV_STATUS_SECTION_NOT_ALREADY_CONSTRUCTED ((u16)0x1021)
418 * HV_STATUS_PAGE_ALREADY_COMMITTED
419 * The specified virtual address was already backed by physical memory.
421 #define HV_STATUS_PAGE_ALREADY_COMMITTED ((u16)0x1022)
424 * HV_STATUS_PAGE_NOT_ALREADY_COMMITTED
425 * The specified virtual address was not already backed by physical memory.
427 #define HV_STATUS_PAGE_NOT_ALREADY_COMMITTED ((u16)0x1023)
430 * HV_STATUS_COMMITTED_PAGES_REMAIN
431 * Committed pages remain in the section.
433 #define HV_STATUS_COMMITTED_PAGES_REMAIN ((u16)0x1024)
436 * HV_STATUS_NO_REMAINING_COMMITTED_PAGES
437 * No additional committed pages beyond the specified page exist in the
438 * section.
440 #define HV_STATUS_NO_REMAINING_COMMITTED_PAGES ((u16)0x1025)
443 * HV_STATUS_INSUFFICIENT_COMPARTMENT_VA
444 * The VA space of the compartment is exhausted.
446 #define HV_STATUS_INSUFFICIENT_COMPARTMENT_VA ((u16)0x1026)
449 * HV_STATUS_DEREF_SPA_LIST_FULL
450 * The SPA dereference list is full, and there are additional entries to be
451 * added to it.
453 #define HV_STATUS_DEREF_SPA_LIST_FULL ((u16)0x1027)
456 * HV_STATUS_GPA_OUT_OF_RANGE
457 * The supplied GPA is out of range.
459 #define HV_STATUS_GPA_OUT_OF_RANGE ((u16)0x1027)
462 * HV_STATUS_NONVOLATILE_XMM_STALE
463 * The XMM register that was being accessed is stale.
465 #define HV_STATUS_NONVOLATILE_XMM_STALE ((u16)0x1028)
467 /* HV_STATUS_UNSUPPORTED_PROCESSOR
468 * The hypervisor does not support the processors in this system.
470 #define HV_STATUS_UNSUPPORTED_PROCESSOR ((u16)0x1029)
473 * HV_STATUS_INSUFFICIENT_CROM_SPACE
474 * Insufficient space existed for copying over the CROM contents.
476 #define HV_STATUS_INSUFFICIENT_CROM_SPACE ((u16)0x2000)
479 * HV_STATUS_BAD_CROM_FORMAT
480 * The contents of the CROM failed validation attempts.
482 #define HV_STATUS_BAD_CROM_FORMAT ((u16)0x2001)
485 * HV_STATUS_UNSUPPORTED_CROM_FORMAT
486 * The contents of the CROM contain contents the parser doesn't support.
488 #define HV_STATUS_UNSUPPORTED_CROM_FORMAT ((u16)0x2002)
491 * HV_STATUS_UNSUPPORTED_CONTROLLER
492 * The register format of the OHCI controller specified for debugging is not
493 * supported.
495 #define HV_STATUS_UNSUPPORTED_CONTROLLER ((u16)0x2003)
498 * HV_STATUS_CROM_TOO_LARGE
499 * The CROM contents were to large to copy over.
501 #define HV_STATUS_CROM_TOO_LARGE ((u16)0x2004)
504 * HV_STATUS_CONTROLLER_IN_USE
505 * The OHCI controller specified for debugging cannot be used as it is already
506 * in use.
508 #define HV_STATUS_CONTROLLER_IN_USE ((u16)0x2005)
510 #endif