VirtualBox

Ignore:
Timestamp:
Mar 17, 2008 10:50:10 AM (17 years ago)
Author:
vboxsync
Message:

Rewrote VT-x & AMD-V mode changes. Requires the MP apis in our runtime to function properly. (only tested Windows)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.h

    r5999 r7471  
    11/* $Id$ */
    22/** @file
    3  * HWACCM SVM - Internal header file.
     3 * HWACCM VT-x - Internal header file.
    44 */
    55
     
    3939
    4040/**
    41  * Enable VMX
     41 * Enters the VT-x session
    4242 *
    4343 * @returns VBox status code.
    4444 * @param   pVM         The VM to operate on.
    4545 */
    46 HWACCMR0DECL(int) VMXR0Enable(PVM pVM);
     46HWACCMR0DECL(int) VMXR0Enter(PVM pVM);
    4747
    4848/**
    49  * Disable VMX
     49 * Leaves the VT-x session
    5050 *
    5151 * @returns VBox status code.
    5252 * @param   pVM         The VM to operate on.
    5353 */
    54 HWACCMR0DECL(int) VMXR0Disable(PVM pVM);
     54HWACCMR0DECL(int) VMXR0Leave(PVM pVM);
     55
    5556
    5657/**
    57  * Sets up and activates VMX
     58 * Sets up and activates VT-x on the current CPU
     59 *
     60 * @returns VBox status code.
     61 * @param   idCpu           The identifier for the CPU the function is called on.
     62 * @param   pVM             The VM to operate on.
     63 * @param   pvPageCpu       Pointer to the global cpu page
     64 * @param   pPageCpuPhys    Physical address of the global cpu page
     65 */
     66HWACCMR0DECL(int) VMXR0EnableCpu(RTCPUID idCpu, PVM pVM, void *pvPageCpu, RTHCPHYS pPageCpuPhys);
     67
     68/**
     69 * Deactivates VT-x on the current CPU
     70 *
     71 * @returns VBox status code.
     72 * @param   idCpu           The identifier for the CPU the function is called on.
     73 * @param   pvPageCpu       Pointer to the global cpu page
     74 * @param   pPageCpuPhys    Physical address of the global cpu page
     75 */
     76HWACCMR0DECL(int) VMXR0DisableCpu(RTCPUID idCpu, void *pvPageCpu, RTHCPHYS pPageCpuPhys);
     77
     78/**
     79 * Sets up VT-x for the specified VM
    5880 *
    5981 * @returns VBox status code.
    6082 * @param   pVM         The VM to operate on.
    6183 */
    62 HWACCMR0DECL(int) VMXR0Setup(PVM pVM);
     84HWACCMR0DECL(int) VMXR0SetupVM(PVM pVM);
    6385
    6486
     
    82104
    83105/**
    84  * Runs guest code in a VMX VM.
     106 * Runs guest code in a VT-x VM.
    85107 *
    86108 * @note NEVER EVER turn on interrupts here. Due to our illegal entry into the kernel, it might mess things up. (XP kernel traps have been frequently observed)
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