Changeset 107910 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jan 23, 2025 2:18:38 PM (2 weeks ago)
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/Makefile.kmk
r107640 r107910 80 80 PROGRAMS += \ 81 81 tstCompressionBenchmark \ 82 tstInt \ 82 83 tstIEMCheckMc \ 83 84 tstIEMAImpl \ … … 240 241 tstGlobalConfig_SOURCES = tstGlobalConfig.cpp 241 242 tstGlobalConfig_LIBS = $(LIB_RUNTIME) 243 244 245 # 246 # Testcase for bencharmking 247 # 248 tstInt_TEMPLATE = VBoxR3SignedExe 249 tstInt_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS) VBOX_SVN_REV=$(VBOX_SVN_REV) 250 tstInt_SOURCES = tstInt.cpp 251 tstInt_LIBS = $(LIB_RUNTIME) 242 252 243 253 -
trunk/src/VBox/VMM/testcase/tstInt.cpp
r107909 r107910 1 1 /* $Id$ */ 2 2 /** @file 3 * SUP Testcase - Test the interrupt gate feature of the support library. 3 * SUP Testcase - Benchmark VMMR0 calls. 4 * 5 * The 'Int' bit of the name refers to the interrupt gate we used to use back 6 * in the beginning. This was more of a testcase back then. 4 7 */ 5 8 … … 39 42 * Header Files * 40 43 *********************************************************************************************************************************/ 44 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 45 # define VBOX_VMM_TARGET_X86 46 #elif defined(RT_ARCH_ARM64) 47 # define VBOX_VMM_TARGET_ARMV8 48 #else 49 # error "port me" 50 #endif 41 51 #include <VBox/sup.h> 42 52 #include <VBox/vmm/vmm.h> … … 100 110 CreateVMReq.Hdr.cbReq = sizeof(CreateVMReq); 101 111 CreateVMReq.pSession = pSession; 112 CreateVMReq.enmTarget = VMTARGET_DEFAULT; 113 CreateVMReq.cCpus = 1; 114 CreateVMReq.cbVM = sizeof(VM); 115 CreateVMReq.cbVCpu = sizeof(VMCPU); 116 CreateVMReq.uStructVersion = VM_STRUCT_VERSION; 117 CreateVMReq.uSvnRevision = VBOX_SVN_REV; 118 CreateVMReq.pVMR3 = NULL; 102 119 CreateVMReq.pVMR0 = NIL_RTR0PTR; 103 CreateVMReq.pVMR3 = NULL;104 CreateVMReq.cCpus = 1;105 120 rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_GVMM_CREATE_VM, 0, &CreateVMReq.Hdr); 106 121 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.