VirtualBox

Changeset 40280 in vbox for trunk/include


Ignore:
Timestamp:
Feb 28, 2012 7:47:00 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76509
Message:

Corrected a bunch of HC and GC uses in status codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/err.h

    r40054 r40280  
    4242/** Failed to allocate VM memory. */
    4343#define VERR_NO_VM_MEMORY                   (-1000)
    44 /** GC is toasted and the VMM should be terminated at once, but no need to panic about it :-) */
     44/** RC is toasted and the VMM should be terminated at once, but no need to
     45 * panic about it :-) */
    4546#define VERR_DONT_PANIC                     (-1001)
    4647/** Unsupported CPU. */
     
    171172#define VINF_EM_LAST                        1120
    172173
    173 /** Reason for leaving GC: Guest trap which couldn't be handled in GC.
     174/** Reason for leaving RC: Guest trap which couldn't be handled in RC.
    174175 * The trap is generally forwarded to the REM and executed there. */
    175176#define VINF_EM_RAW_GUEST_TRAP              1121
    176 /** Reason for leaving GC: Interrupted by external interrupt.
     177/** Reason for leaving RC: Interrupted by external interrupt.
    177178 * The interrupt needed to be handled by the host OS. */
    178179#define VINF_EM_RAW_INTERRUPT               1122
    179 /** Reason for leaving GC: Interrupted by external interrupt while in hypervisor code.
    180  * The interrupt needed to be handled by the host OS and hypervisor execution must be
    181  * resumed. VM state is not complete at this point. */
     180/** Reason for leaving RC: Interrupted by external interrupt while in hypervisor
     181 * code. The interrupt needed to be handled by the host OS and hypervisor
     182 * execution must be resumed. VM state is not complete at this point. */
    182183#define VINF_EM_RAW_INTERRUPT_HYPER         1123
    183 /** Reason for leaving GC: A Ring switch was attempted.
     184/** Reason for leaving RC: A Ring switch was attempted.
    184185 * Normal cause of action is to execute this in REM. */
    185186#define VINF_EM_RAW_RING_SWITCH             1124
    186 /** Reason for leaving GC: A Ring switch was attempted using software interrupt.
     187/** Reason for leaving RC: A Ring switch was attempted using software interrupt.
    187188 * Normal cause of action is to execute this in REM. */
    188189#define VINF_EM_RAW_RING_SWITCH_INT         1125
    189 /** Reason for leaving GC: A privileged instruction was attempted executed.
     190/** Reason for leaving RC: A privileged instruction was attempted executed.
    190191 * Normal cause of action is to execute this in REM. */
    191192#define VINF_EM_RAW_EXCEPTION_PRIVILEGED    1126
    192193
    193 /** Reason for leaving GC: Emulate instruction. */
     194/** Reason for leaving RZ: Emulate instruction. */
    194195#define VINF_EM_RAW_EMULATE_INSTR           1127
    195 /** Reason for leaving GC: Unhandled TSS write.
     196/** Reason for leaving RC: Unhandled TSS write.
    196197 * Recompiler gets control. */
    197198#define VINF_EM_RAW_EMULATE_INSTR_TSS_FAULT 1128
    198 /** Reason for leaving GC: Unhandled LDT write.
     199/** Reason for leaving RC: Unhandled LDT write.
    199200 * Recompiler gets control. */
    200201#define VINF_EM_RAW_EMULATE_INSTR_LDT_FAULT 1129
    201 /** Reason for leaving GC: Unhandled IDT write.
     202/** Reason for leaving RC: Unhandled IDT write.
    202203 * Recompiler gets control. */
    203204#define VINF_EM_RAW_EMULATE_INSTR_IDT_FAULT 1130
    204 /** Reason for leaving GC: Unhandled GDT write.
     205/** Reason for leaving RC: Unhandled GDT write.
    205206 * Recompiler gets control. */
    206207#define VINF_EM_RAW_EMULATE_INSTR_GDT_FAULT 1131
    207 /** Reason for leaving GC: Unhandled Page Directory write.
     208/** Reason for leaving RC: Unhandled Page Directory write.
    208209 * Recompiler gets control. */
    209210#define VINF_EM_RAW_EMULATE_INSTR_PD_FAULT  1132
    210 /** Reason for leaving GC: jump inside generated patch jump.
     211/** Reason for leaving RC: jump inside generated patch jump.
    211212 * Fatal error. */
    212213#define VERR_EM_RAW_PATCH_CONFLICT          (-1133)
    213 /** Reason for leaving GC: Hlt instruction.
     214/** Reason for leaving RC: Hlt instruction.
    214215 * Recompiler gets control. */
    215216#define VINF_EM_RAW_EMULATE_INSTR_HLT       1134
    216 /** Reason for leaving GC: Ring-3 operation pending. */
     217/** Reason for leaving RZ: Ring-3 operation pending. */
    217218#define VINF_EM_RAW_TO_R3                   1135
    218 /** Reason for leaving GC: Timer pending. */
     219/** Reason for leaving RZ: Timer pending. */
    219220#define VINF_EM_RAW_TIMER_PENDING           1136
    220 /** Reason for leaving GC: Interrupt pending (guest). */
     221/** Reason for leaving RC: Interrupt pending (guest). */
    221222#define VINF_EM_RAW_INTERRUPT_PENDING       1137
    222 /** Reason for leaving GC: Encountered a stale selector. */
     223/** Reason for leaving RC: Encountered a stale selector. */
    223224#define VINF_EM_RAW_STALE_SELECTOR          1138
    224 /** Reason for leaving GC: The IRET resuming guest code trapped. */
     225/** Reason for leaving RC: The IRET resuming guest code trapped. */
    225226#define VINF_EM_RAW_IRET_TRAP               1139
    226 /** Reason for leaving GC: Emulate (MM)IO intensive code in the recompiler. */
     227/** Reason for leaving RC: Emulate (MM)IO intensive code in the recompiler. */
    227228#define VINF_EM_RAW_EMULATE_IO_BLOCK        1140
    228229/** The interpreter was unable to deal with the instruction at hand. */
     
    323324#define VWRN_PATCH_REMOVED                  1407
    324325
    325 /** Reason for leaving GC: \#GP with EIP pointing to patch code. */
     326/** Reason for leaving RC: \#GP with EIP pointing to patch code. */
    326327#define VINF_PATM_PATCH_TRAP_GP             1408
    327 /** First leave GC code. */
    328 #define VINF_PATM_LEAVEGC_FIRST             VINF_PATM_PATCH_TRAP_GP
    329 /** Reason for leaving GC: \#PF with EIP pointing to patch code. */
     328/** First leave RC code. */
     329#define VINF_PATM_LEAVE_RC_FIRST             VINF_PATM_PATCH_TRAP_GP
     330/** Reason for leaving RC: \#PF with EIP pointing to patch code. */
    330331#define VINF_PATM_PATCH_TRAP_PF             1409
    331 /** Reason for leaving GC: int3 with EIP pointing to patch code. */
     332/** Reason for leaving RC: int3 with EIP pointing to patch code. */
    332333#define VINF_PATM_PATCH_INT3                1410
    333 /** Reason for leaving GC: \#PF for monitored patch page. */
     334/** Reason for leaving RC: \#PF for monitored patch page. */
    334335#define VINF_PATM_CHECK_PATCH_PAGE          1411
    335 /** Reason for leaving GC: duplicate instruction called at current eip. */
     336/** Reason for leaving RC: duplicate instruction called at current eip. */
    336337#define VINF_PATM_DUPLICATE_FUNCTION        1412
    337338/** Execute one instruction with the recompiler */
    338339#define VINF_PATCH_EMULATE_INSTR            1413
    339 /** Reason for leaving GC: attempt to patch MMIO write. */
     340/** Reason for leaving RC: attempt to patch MMIO write. */
    340341#define VINF_PATM_HC_MMIO_PATCH_WRITE       1414
    341 /** Reason for leaving GC: attempt to patch MMIO read. */
     342/** Reason for leaving RC: attempt to patch MMIO read. */
    342343#define VINF_PATM_HC_MMIO_PATCH_READ        1415
    343 /** Reason for leaving GC: pending irq after iret that sets IF. */
     344/** Reason for leaving RC: pending irq after iret that sets IF. */
    344345#define VINF_PATM_PENDING_IRQ_AFTER_IRET    1416
    345 /** Last leave GC code. */
    346 #define VINF_PATM_LEAVEGC_LAST              VINF_PATM_PENDING_IRQ_AFTER_IRET
     346/** Last leave RC code. */
     347#define VINF_PATM_LEAVE_RC_LAST              VINF_PATM_PENDING_IRQ_AFTER_IRET
    347348
    348349/** No conflicts to resolve */
     
    371372/** Page record not found */
    372373#define VWRN_CSAM_PAGE_NOT_FOUND            1502
    373 /** Reason for leaving GC: CSAM wants perform a task in ring-3. */
     374/** Reason for leaving RC: CSAM wants perform a task in ring-3. */
    374375#define VINF_CSAM_PENDING_ACTION            1503
    375376/** @} */
     
    412413/** Failed to fix mappings because the proposed memory area was to small. */
    413414#define VERR_PGM_MAPPINGS_FIX_TOO_SMALL     (-1612)
    414 /** Reason for leaving GC: The urge to syncing CR3. */
     415/** Reason for leaving RZ: The urge to syncing CR3. */
    415416#define VINF_PGM_SYNC_CR3                   1613
    416417/** Page not marked for dirty bit tracking */
     
    419420#define VINF_PGM_HANDLED_DIRTY_BIT_FAULT    1615
    420421/** Go ahead with the default Read/Write operation.
    421  * This is returned by a HC physical or virtual handler when it wants the PGMPhys[Read|Write]
    422  * routine do the reading/writing. */
     422 * This is returned by a R3 physical or virtual handler when it wants the
     423 * PGMPhys[Read|Write] routine do the reading/writing. */
    423424#define VINF_PGM_HANDLER_DO_DEFAULT         1616
    424425/** The paging mode of the host is not supported yet. */
    425426#define VERR_PGM_UNSUPPORTED_HOST_PAGING_MODE (-1617)
    426 /** The physical guest page is a reserved/mmio page and does not have any HC address. */
     427/** The physical guest page is a reserved/MMIO page and does not have any HC
     428 *  address. */
    427429#define VERR_PGM_PHYS_PAGE_RESERVED         (-1618)
    428430/** No page directory available for the hypervisor. */
     
    442444 * aliased or/and mapped by multiple PTs. */
    443445#define VINF_PGM_GCPHYS_ALIASED             1623
    444 /** Reason for leaving GC: Paging mode changed.
    445  * PGMChangeMode() uses this to force a switch to HC so it can safely
    446  * deal with a mode switch.
    447  */
     446/** Reason for leaving RC: Paging mode changed.
     447 * PGMChangeMode() uses this to force a switch to R3 so it can safely deal with
     448 * a mode switch. */
    448449#define VINF_PGM_CHANGE_MODE                1624
    449450/** SyncPage modified the PDE.
     
    941942/** Active trap. Cannot assert a new trap when when one is already active. */
    942943#define VERR_TRPM_ACTIVE_TRAP               (-2401)
    943 /** Reason for leaving GC: Guest tried to write to our IDT - fatal.
     944/** Reason for leaving RC: Guest tried to write to our IDT - fatal.
    944945 * The VM will be terminated assuming the worst, i.e. that the
    945946 * guest has read the idtr register. */
    946947#define VERR_TRPM_SHADOW_IDT_WRITE          (-2402)
    947 /** Reason for leaving GC: Fatal trap in hypervisor. */
     948/** Reason for leaving RC: Fatal trap in hypervisor. */
    948949#define VERR_TRPM_DONT_PANIC                (-2403)
    949 /** Reason for leaving GC: Double Fault. */
     950/** Reason for leaving RC: Double Fault. */
    950951#define VERR_TRPM_PANIC                     (-2404)
    951952/** The exception was dispatched for raw-mode execution. */
     
    965966 * @{
    966967 */
    967 /** Reason for leaving GC: Guest tried to write to our GDT - fatal.
     968/** Reason for leaving RC: Guest tried to write to our GDT - fatal.
    968969 * The VM will be terminated assuming the worst, i.e. that the
    969970 * guest has read the gdtr register. */
    970971#define VERR_SELM_SHADOW_GDT_WRITE          (-2500)
    971 /** Reason for leaving GC: Guest tried to write to our LDT - fatal.
     972/** Reason for leaving RC: Guest tried to write to our LDT - fatal.
    972973 * The VM will be terminated assuming the worst, i.e. that the
    973974 * guest has read the ldtr register. */
    974975#define VERR_SELM_SHADOW_LDT_WRITE          (-2501)
    975 /** Reason for leaving GC: Guest tried to write to our TSS - fatal.
     976/** Reason for leaving RC: Guest tried to write to our TSS - fatal.
    976977 * The VM will be terminated assuming the worst, i.e. that the
    977978 * guest has read the ltr register. */
    978979#define VERR_SELM_SHADOW_TSS_WRITE          (-2502)
    979 /** Reason for leaving GC: Sync the GDT table to solve a conflict. */
     980/** Reason for leaving RC: Sync the GDT table to solve a conflict. */
    980981#define VINF_SELM_SYNC_GDT                  2503
    981982/** No valid TSS present. */
     
    994995 * It was either empty or it was out of bounds. */
    995996#define VERR_IOM_INVALID_IOPORT_RANGE       (-2600)
    996 /** The specified GC I/O port range didn't have a corresponding HC range.
    997  * IOMIOPortRegisterHC() must be called before IOMIOPortRegisterGC(). */
    998 #define VERR_IOM_NO_HC_IOPORT_RANGE         (-2601)
     997/** The specified R0 or RC I/O port range didn't have a corresponding R3 range.
     998 * IOMR3IOPortRegisterR3() must be called first. */
     999#define VERR_IOM_NO_R3_IOPORT_RANGE         (-2601)
    9991000/** The specified I/O port range intruded on an existing range. There is
    10001001 * a I/O port conflict between two device, or a device tried to register
     
    10041005#define VERR_IOM_IOPORT_RANGE_NOT_FOUND     (-2603)
    10051006/** The specified I/O port range was owned by some other device(s). Both registration
    1006  * and deregistration, but in the first case only GC ranges. */
     1007 * and deregistration, but in the first case only RC and R0 ranges. */
    10071008#define VERR_IOM_NOT_IOPORT_RANGE_OWNER     (-2604)
    10081009
     
    10101011 * It was either empty or it was out of bounds. */
    10111012#define VERR_IOM_INVALID_MMIO_RANGE         (-2605)
    1012 /** The specified GC MMIO range didn't have a corresponding HC range.
    1013  * IOMMMIORegisterHC() must be called before IOMMMIORegisterGC(). */
    1014 #define VERR_IOM_NO_HC_MMIO_RANGE           (-2606)
     1013/** The specified R0 or RC MMIO range didn't have a corresponding R3 range.
     1014 * IOMR3MMIORegisterR3() must be called first. */
     1015#define VERR_IOM_NO_R3_MMIO_RANGE           (-2606)
    10151016/** The specified MMIO range was owned by some other device(s). Both registration
    1016  * and deregistration, but in the first case only GC ranges. */
     1017 * and deregistration, but in the first case only RC and R0 ranges. */
    10171018#define VERR_IOM_NOT_MMIO_RANGE_OWNER       (-2607)
    10181019/** The specified MMIO range intruded on an existing range. There is
     
    10391040#define VINF_IOM_MMIO_UNUSED_FF             2616
    10401041
    1041 /** Reason for leaving GC: I/O port read. */
    1042 #define VINF_IOM_HC_IOPORT_READ             2620
    1043 /** Reason for leaving GC: I/O port write. */
    1044 #define VINF_IOM_HC_IOPORT_WRITE            2621
    1045 /** Reason for leaving GC: MMIO write. */
    1046 #define VINF_IOM_HC_MMIO_READ               2623
    1047 /** Reason for leaving GC: MMIO read. */
    1048 #define VINF_IOM_HC_MMIO_WRITE              2624
    1049 /** Reason for leaving GC: MMIO read/write. */
    1050 #define VINF_IOM_HC_MMIO_READ_WRITE         2625
     1042/** Reason for leaving RZ: I/O port read. */
     1043#define VINF_IOM_R3_IOPORT_READ             2620
     1044/** Reason for leaving RZ: I/O port write. */
     1045#define VINF_IOM_R3_IOPORT_WRITE            2621
     1046/** Reason for leaving RZ: MMIO write. */
     1047#define VINF_IOM_R3_MMIO_READ               2623
     1048/** Reason for leaving RZ: MMIO read. */
     1049#define VINF_IOM_R3_MMIO_WRITE              2624
     1050/** Reason for leaving RZ: MMIO read/write. */
     1051#define VINF_IOM_R3_MMIO_READ_WRITE         2625
    10511052
    10521053/** IOMGCIOPortHandler was given an unexpected opcode. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette