VirtualBox

Changeset 1327 in vbox


Ignore:
Timestamp:
Mar 8, 2007 12:23:15 PM (18 years ago)
Author:
vboxsync
Message:

Some more logging.

Location:
trunk/src/VBox/VMM/VMMGC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/SELMGC.cpp

    r62 r1327  
    4545 * Synchronizes one GDT entry (guest -> shadow).
    4646 *
    47  * @returns VBox status code (appropritate for trap handling and GC return).
     47 * @returns VBox status code (appropriate for trap handling and GC return).
    4848 * @param   pVM         VM Handle.
    4949 * @param   pRegFrame   Trap register frame.
     
    153153 * \#PF Virtual Handler callback for Guest write access to the Guest's own GDT.
    154154 *
    155  * @returns VBox status code (appropritate for trap handling and GC return).
     155 * @returns VBox status code (appropriate for trap handling and GC return).
    156156 * @param   pVM         VM Handle.
    157157 * @param   uErrorCode  CPU Error code.
     
    226226 * \#PF Virtual Handler callback for Guest write access to the Guest's own LDT.
    227227 *
    228  * @returns VBox status code (appropritate for trap handling and GC return).
     228 * @returns VBox status code (appropriate for trap handling and GC return).
    229229 * @param   pVM         VM Handle.
    230230 * @param   uErrorCode   CPU Error code.
     
    249249 * \#PF Virtual Handler callback for Guest write access to the Guest's own current TSS.
    250250 *
    251  * @returns VBox status code (appropritate for trap handling and GC return).
     251 * @returns VBox status code (appropriate for trap handling and GC return).
    252252 * @param   pVM         VM Handle.
    253253 * @param   uErrorCode  CPU Error code.
     
    302302 * \#PF Virtual Handler callback for Guest write access to the VBox shadow GDT.
    303303 *
    304  * @returns VBox status code (appropritate for trap handling and GC return).
     304 * @returns VBox status code (appropriate for trap handling and GC return).
    305305 * @param   pVM         VM Handle.
    306306 * @param   uErrorCode   CPU Error code.
     
    320320 * \#PF Virtual Handler callback for Guest write access to the VBox shadow LDT.
    321321 *
    322  * @returns VBox status code (appropritate for trap handling and GC return).
     322 * @returns VBox status code (appropriate for trap handling and GC return).
    323323 * @param   pVM         VM Handle.
    324324 * @param   uErrorCode   CPU Error code.
     
    339339 * \#PF Virtual Handler callback for Guest write access to the VBox shadow TSS.
    340340 *
    341  * @returns VBox status code (appropritate for trap handling and GC return).
     341 * @returns VBox status code (appropriate for trap handling and GC return).
    342342 * @param   pVM         VM Handle.
    343343 * @param   uErrorCode   CPU Error code.
  • trunk/src/VBox/VMM/VMMGC/TRPMGC.cpp

    r23 r1327  
    9494 * \#PF Virtual Handler callback for Guest write access to the Guest's own current IDT.
    9595 *
    96  * @returns VBox status code (appropritate for trap handling and GC return).
     96 * @returns VBox status code (appropriate for trap handling and GC return).
    9797 * @param   pVM         VM Handle.
    9898 * @param   uErrorCode   CPU Error code.
     
    105105TRPMGCDECL(int) trpmgcGuestIDTWriteHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, void *pvFault, void *pvRange, uintptr_t offRange)
    106106{
     107    uint16_t    cbIDT;
     108    RTGCPTR     GCPtrIDT    = (RTGCPTR)CPUMGetGuestIDTR(pVM, &cbIDT);
     109#ifdef VBOX_STRICT
     110    RTGCPTR     GCPtrIDTEnd = (RTGCPTR)((RTGCUINTPTR)GCPtrIDT + cbIDT + 1);
     111    uint32_t    iTrap       = ((RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT)/sizeof(VBOXIDTE);
     112#endif
     113
     114    Assert(pvFault >= GCPtrIDT && pvFault < GCPtrIDTEnd);
     115    Log(("trpmgcGuestIDTWriteHandler: write to gate %x\n", iTrap));
     116
    107117    ////LogCom(("trpmgcGuestIDTWriteHandler: eip=%08X pvFault=%08X pvRange=%08X\r\n", pRegFrame->eip, pvFault, pvRange));
    108118    VM_FF_SET(pVM, VM_FF_TRPM_SYNC_IDT);
     
    117127 * \#PF Virtual Handler callback for Guest write access to the VBox shadow IDT.
    118128 *
    119  * @returns VBox status code (appropritate for trap handling and GC return).
     129 * @returns VBox status code (appropriate for trap handling and GC return).
    120130 * @param   pVM         VM Handle.
    121131 * @param   uErrorCode   CPU Error code.
Note: See TracChangeset for help on using the changeset viewer.

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