VirtualBox

Changeset 57158 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Aug 3, 2015 1:47:44 PM (9 years ago)
Author:
vboxsync
Message:

VMM/GIM: Add support for Hyper-V guest-crash reporting. Better logging for Guest-OS identity MSR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/GIMHvInternal.h

    r56694 r57158  
    421421/** @} */
    422422
     423/** @name Hyper-V MSR - Guest crash control (MSR_GIM_HV_CRASH_CTL).
     424 * @{
     425 */
     426/** The Crash Notify bit. */
     427#define MSR_GIM_HV_CRASH_CTL_NOTIFY_BIT           RT_BIT_64(63)
     428/** @} */
     429
     430/** @name Hyper-V MSR - Guest OS ID (MSR_GIM_HV_GUEST_OS_ID).
     431 * @{
     432 */
     433/** An open-source operating system. */
     434#define MSR_GIM_HV_GUEST_OS_ID_IS_OPENSOURCE(a)   RT_BOOL((a) & RT_BIT_64(63))
     435/** Vendor ID. */
     436#define MSR_GIM_HV_GUEST_OS_ID_VENDOR(a)          (((a) >> 48) & 0xfff)
     437/** Guest OS variant, depending on the vendor ID.  */
     438#define MSR_GIM_HV_GUEST_OS_ID_OS_VARIANT(a)      (((a) >> 40) & 0xff)
     439/** Guest OS major version. */
     440#define MSR_GIM_HV_GUEST_OS_ID_MAJOR_VERSION(a)   (((a) >> 32) & 0xff)
     441/** Guest OS minor version. */
     442#define MSR_GIM_HV_GUEST_OS_ID_MINOR_VERSION(a)   (((a) >> 24) & 0xff)
     443/** Guest OS service version (e.g. service pack number in case of Windows). */
     444#define MSR_GIM_HV_GUEST_OS_ID_SERVICE_VERSION(a) (((a) >> 16) & 0xff)
     445/** Guest OS build number. */
     446#define MSR_GIM_HV_GUEST_OS_ID_BUILD(a)           ((a) & 0xffff)
     447/** @} */
     448
    423449/** Hyper-V page size.  */
    424450#define GIM_HV_PAGE_SIZE                          0x1000
     
    483509    /** @} */
    484510
     511    /** @name Guest Crash MSRs.
     512     *  @{
     513     */
     514    /** Guest crash control MSR. */
     515    uint64_t                    uCrashCtl;
     516    /** Guest crash parameter 0 MSR. */
     517    uint64_t                    uCrashP0;
     518    /** Guest crash parameter 1 MSR. */
     519    uint64_t                    uCrashP1;
     520    /** Guest crash parameter 2 MSR. */
     521    uint64_t                    uCrashP2;
     522    /** Guest crash parameter 3 MSR. */
     523    uint64_t                    uCrashP3;
     524    /** Guest crash parameter 4 MSR. */
     525    uint64_t                    uCrashP4;
     526    /** @} */
     527
    485528    /** Per-VM R0 Spinlock for protecting EMT writes to the TSC page. */
    486529    RTSPINLOCK                  hSpinlockR0;
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