VirtualBox

Changeset 14825 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 30, 2008 7:54:21 AM (16 years ago)
Author:
vboxsync
Message:

SUPDrv: Permit userland to make kernel mappings of SUPR0PageAllocEx allocations. (darwin + VGA + VT-x, #1865/#3202)

File:
1 edited

Legend:

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

    r14805 r14825  
    567567
    568568/**
     569 * Maps a portion of a ring-3 only allocation into kernel space.
     570 *
     571 * @return VBox status code.
     572 *
     573 * @param  pvR3             The address SUPR3PageAllocEx return.
     574 * @param  off              Offset to start mapping at. Must be page aligned.
     575 * @param  cb               Number of bytes to map. Must be page aligned.
     576 * @param  fFlags           Flags, must be zero.
     577 * @param  pR0Ptr           Where to store the address on success.
     578 *
     579 */
     580SUPR3DECL(int) SUPR3PageMapKernel(void *pvR3, uint32_t off, uint32_t cb, uint32_t fFlags, PRTR0PTR pR0Ptr);
     581
     582/**
    569583 * Free pages allocated by SUPR3PageAllocEx.
    570584 *
     
    837851SUPR0DECL(int) SUPR0PageAlloc(PSUPDRVSESSION pSession, uint32_t cPages, PRTR3PTR ppvR3, PRTHCPHYS paPages);
    838852SUPR0DECL(int) SUPR0PageAllocEx(PSUPDRVSESSION pSession, uint32_t cPages, uint32_t fFlags, PRTR3PTR ppvR3, PRTR0PTR ppvR0, PRTHCPHYS paPages);
     853SUPR0DECL(int) SUPR0PageMapKernel(PSUPDRVSESSION pSession, RTR3PTR pvR3, uint32_t offSub, uint32_t cbSub, uint32_t fFlags, PRTR0PTR ppvR0);
    839854SUPR0DECL(int) SUPR0PageFree(PSUPDRVSESSION pSession, RTR3PTR pvR3);
    840855SUPR0DECL(int) SUPR0GipMap(PSUPDRVSESSION pSession, PRTR3PTR ppGipR3, PRTHCPHYS pHCPhysGip);
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