VirtualBox

Ignore:
Timestamp:
Apr 8, 2015 11:31:47 AM (10 years ago)
Author:
vboxsync
Message:

VMM/GIM: Allow dynamic enabling of #UD traps and per-VCPU hypercalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/GIMKvm.cpp

    r55118 r55129  
    143143
    144144    /*
    145      * Setup #UD and hypercall behaviour.
    146      */
    147     VMMHypercallsEnable(pVM);
     145     * Setup hypercall and #UD handling.
     146     */
     147    for (VMCPUID i = 0; i < pVM->cCpus; i++)
     148        VMMHypercallsEnable(&pVM->aCpus[i]);
     149
    148150    if (ASMIsAmdCpu())
    149151    {
     
    157159        pKvm->uOpCodeNative = OP_VMCALL;
    158160    }
     161
    159162    /* We always need to trap VMCALL/VMMCALL hypercall using #UDs for raw-mode VMs. */
    160163    if (!HMIsEnabled(pVM))
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