VirtualBox

Changeset 20835 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 23, 2009 1:55:08 PM (16 years ago)
Author:
vboxsync
Message:

Interface for generating NMI & SMI added.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r20374 r20835  
    11031103} PDMAPICVERSION;
    11041104
     1105/**
     1106 * APIC irq argument for SetInterruptFF.
     1107 */
     1108typedef enum PDMAPICIRQ
     1109{
     1110    /** Invalid 0 entry. */
     1111    PDMAPICIRQ_INVALID = 0,
     1112    /** Normal hardware interrupt. */
     1113    PDMAPICIRQ_HARDWARE,
     1114    /** NMI. */
     1115    PDMAPICIRQ_NMI,
     1116    /** SMI. */
     1117    PDMAPICIRQ_SMI,
     1118    /** The usual 32-bit paranoia. */
     1119    PDMAPICIRQ_32BIT_HACK = 0x7fffffff
     1120} PDMAPICIRQ;
     1121
    11051122
    11061123/**
     
    11161133     *
    11171134     * @param   pDevIns         Device instance of the APIC.
     1135     * @param   enmType         Irq type
    11181136     * @param   idCpu           Virtual CPU to set flag upon.
    11191137     */
    1120     DECLRCCALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns, VMCPUID idCpu));
     1138    DECLRCCALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns, PDMAPICIRQ enmType, VMCPUID idCpu));
    11211139
    11221140    /**
     
    11691187
    11701188/** Current PDMAPICHLPRC version number. */
    1171 #define PDM_APICHLPRC_VERSION   0x60010000
     1189#define PDM_APICHLPRC_VERSION   0x60010001
    11721190
    11731191
     
    11841202     *
    11851203     * @param   pDevIns         Device instance of the APIC.
     1204     * @param   enmType         Irq type
    11861205     * @param   idCpu           Virtual CPU to set flag upon.
    11871206     */
    1188     DECLR0CALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns, VMCPUID idCpu));
     1207    DECLR0CALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns, PDMAPICIRQ enmType, VMCPUID idCpu));
    11891208
    11901209    /**
     
    12371256
    12381257/** Current PDMAPICHLPR0 version number. */
    1239 #define PDM_APICHLPR0_VERSION   0x60010000
     1258#define PDM_APICHLPR0_VERSION   0x60010001
    12401259
    12411260/**
     
    12511270     *
    12521271     * @param   pDevIns         Device instance of the APIC.
     1272     * @param   enmType         IRQ type
    12531273     * @param   idCpu           Virtual CPU to set flag upon.
    12541274     */
    1255     DECLR3CALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns, VMCPUID idCpu));
     1275    DECLR3CALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns, PDMAPICIRQ enmType, VMCPUID idCpu));
    12561276
    12571277    /**
     
    13511371
    13521372/** Current PDMAPICHLP version number. */
    1353 #define PDM_APICHLPR3_VERSION  0xfd020000
     1373#define PDM_APICHLPR3_VERSION  0xfd020001
    13541374
    13551375
  • trunk/include/VBox/vm.h

    r20752 r20835  
    294294
    295295
    296 /** This action forces the VM to service check and pending interrups on the APIC. */
     296/** This action forces the VM to check any pending interrups on the APIC. */
    297297#define VMCPU_FF_INTERRUPT_APIC             RT_BIT_32(0)
    298 /** This action forces the VM to service check and pending interrups on the PIC. */
     298/** This action forces the VM to check any pending interrups on the PIC. */
    299299#define VMCPU_FF_INTERRUPT_PIC              RT_BIT_32(1)
    300300/** This action forces the VM to schedule and run pending timer (TM).
    301301 * @remarks Don't move - PATM compatability.  */
    302302#define VMCPU_FF_TIMER                      RT_BIT_32(2)
     303/** This action forces the VM to check any pending NMIs. */
     304#define VMCPU_FF_INTERRUPT_NMI              RT_BIT_32(3)
     305/** This action forces the VM to check any pending SMIs. */
     306#define VMCPU_FF_INTERRUPT_SMI              RT_BIT_32(4)
    303307/** PDM critical section unlocking is pending, process promptly upon return to R3. */
    304308#define VMCPU_FF_PDM_CRITSECT               RT_BIT_32(5)
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