VirtualBox

source: vbox/trunk/src/VBox/VMM/include/TRPMInternal.h@ 94249

Last change on this file since 94249 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.3 KB
Line 
1/* $Id: TRPMInternal.h 93115 2022-01-01 11:31:46Z vboxsync $ */
2/** @file
3 * TRPM - Internal header file.
4 */
5
6/*
7 * Copyright (C) 2006-2022 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef VMM_INCLUDED_SRC_include_TRPMInternal_h
19#define VMM_INCLUDED_SRC_include_TRPMInternal_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include <VBox/cdefs.h>
25#include <VBox/types.h>
26#include <VBox/vmm/stam.h>
27#include <VBox/vmm/cpum.h>
28#include <VBox/vmm/pgm.h>
29
30RT_C_DECLS_BEGIN
31
32
33/** @defgroup grp_trpm_int Internals
34 * @ingroup grp_trpm
35 * @internal
36 * @{
37 */
38
39/**
40 * TRPM Data (part of VM)
41 *
42 * @note This used to be a big deal when we had raw-mode, now it's a dud. :-)
43 */
44typedef struct TRPM
45{
46 /** Statistics for interrupt handlers. */
47 STAMCOUNTER aStatForwardedIRQ[256];
48} TRPM;
49
50/** Pointer to TRPM Data. */
51typedef TRPM *PTRPM;
52
53
54/**
55 * Per CPU data for TRPM.
56 */
57typedef struct TRPMCPU
58{
59 /** Active Interrupt or trap vector number.
60 * If not UINT32_MAX this indicates that we're currently processing a
61 * interrupt, trap, fault, abort, whatever which have arrived at that
62 * vector number.
63 */
64 uint32_t uActiveVector;
65
66 /** Active trap type. */
67 TRPMEVENT enmActiveType;
68
69 /** Errorcode for the active interrupt/trap. */
70 uint32_t uActiveErrorCode;
71
72 /** Instruction length for software interrupts and software exceptions
73 * (\#BP, \#OF) */
74 uint8_t cbInstr;
75
76 /** Whether this \#DB trap is caused due to INT1/ICEBP. */
77 bool fIcebp;
78
79 /** CR2 at the time of the active exception. */
80 RTGCUINTPTR uActiveCR2;
81} TRPMCPU;
82
83/** Pointer to TRPMCPU Data. */
84typedef TRPMCPU *PTRPMCPU;
85/** Pointer to const TRPMCPU Data. */
86typedef const TRPMCPU *PCTRPMCPU;
87
88/** @} */
89
90RT_C_DECLS_END
91
92#endif /* !VMM_INCLUDED_SRC_include_TRPMInternal_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette