VirtualBox

Changeset 4412 in vbox for trunk


Ignore:
Timestamp:
Aug 29, 2007 8:49:20 AM (17 years ago)
Author:
vboxsync
Message:

Added PGMPhysWriteGCPtrSafe & PGMPhysReadGCPtrSafe

File:
1 edited

Legend:

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

    r4387 r4412  
    10101010
    10111011/**
     1012 * Read from guest physical memory referenced by GC pointer.
     1013 *
     1014 * This function uses the current CR3/CR0/CR4 of the guest and will
     1015 * respect access handlers and set accessed bits.
     1016 *
     1017 * @returns VBox status.
     1018 * @param   pVM         VM handle.
     1019 * @param   pvDst       The destination address.
     1020 * @param   GCPtrSrc    The source address (GC pointer).
     1021 * @param   cb          The number of bytes to read.
     1022 */
     1023PGMDECL(int) PGMPhysReadGCPtrSafe(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb);
     1024
     1025/**
     1026 * Write to guest physical memory referenced by GC pointer.
     1027 *
     1028 * This function uses the current CR3/CR0/CR4 of the guest and will
     1029 * respect access handlers and set dirty and accessed bits.
     1030 *
     1031 * @returns VBox status.
     1032 * @param   pVM         VM handle.
     1033 * @param   GCPtrDst    The destination address (GC pointer).
     1034 * @param   pvSrc       The source address.
     1035 * @param   cb          The number of bytes to write.
     1036 */
     1037PGMDECL(int) PGMPhysWriteGCPtrSafe(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
     1038
     1039/**
    10121040 * Write to guest physical memory referenced by GC pointer and update the PTE.
    10131041 *
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