VirtualBox

Changeset 346 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 26, 2007 9:35:00 AM (18 years ago)
Author:
vboxsync
Message:

Rewrote and simplified interrupt handler patching.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r187 r346  
    440440
    441441/**
    442  * Handle traps in patch code.
    443  *
    444  * The current guest trap has an EIP inside patch code space.
    445  *
    446  * @returns On success VINF_SUCCESS or between VINF_EM_FIRST and VINF_EM_LAST.
    447  * @returns On failure appropriate status code.
    448  * @param   pVM         VM Handle.
    449  * @param   rc          The GC return code.
    450  */
    451 PATMR3DECL(int) PATMR3Trap(PVM pVM, int rc);
    452 
    453 /**
    454442 * Handle trap inside patch code
    455443 *
  • trunk/include/VBox/trpm.h

    r1 r346  
    339339
    340340/**
    341  * Marks IDT entry as dirty
    342  *
    343  * @returns Guest trap handler address or TRPM_INVALID_HANDLER if none installed
    344  * @param   pVM         The VM to operate on.
    345  * @param   iTrap       Interrupt/trap number.
    346  * @param   fSetDirty   Set or clear
    347  */
    348 TRPMR3DECL(int) TRPMR3SetGuestTrapHandlerDirty(PVM pVM, unsigned iGate, bool fSetDirty);
    349 
    350 /**
    351  * Checks if IDT entry is dirty
    352  *
    353  * @returns dirty status
    354  * @param   pVM         The VM to operate on.
    355  * @param   iTrap       Interrupt/trap number.
    356  */
    357 TRPMR3DECL(bool) TRPMR3IsGuestTrapHandlerDirty(PVM pVM, unsigned iGate);
    358 
    359 /**
    360341 * Disable IDT monitoring and syncing
    361342 *
     
    371352 */
    372353TRPMR3DECL(int) TRPMR3SyncIDT(PVM pVM);
    373 
    374 /**
    375  * Clear interrupt gate handler (reset to default handler)
    376  *
    377  * @returns VBox status code.
    378  * @param   pVM         The VM to operate on.
    379  * @param   iTrap       Trap/interrupt gate number.
    380  */
    381 TRPMR3DECL(int) TRPMR3ClearHandler(PVM pVM, unsigned iTrap);
    382354
    383355/**
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