VirtualBox

Changeset 107910 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 23, 2025 2:18:38 PM (2 weeks ago)
Author:
vboxsync
Message:

VMM,HostDrivers/SUP: Moved tstInt from HostDrivers to the VMM and fixed the breakage caused by the recent GVMMCREATEVMREQ modifications. jiraref:1470

Location:
trunk/src/VBox/VMM/testcase
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/Makefile.kmk

    r107640 r107910  
    8080  PROGRAMS += \
    8181        tstCompressionBenchmark \
     82        tstInt \
    8283        tstIEMCheckMc \
    8384        tstIEMAImpl \
     
    240241tstGlobalConfig_SOURCES  = tstGlobalConfig.cpp
    241242tstGlobalConfig_LIBS     = $(LIB_RUNTIME)
     243
     244
     245#
     246# Testcase for bencharmking
     247#
     248tstInt_TEMPLATE       = VBoxR3SignedExe
     249tstInt_DEFS           = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS) VBOX_SVN_REV=$(VBOX_SVN_REV)
     250tstInt_SOURCES        = tstInt.cpp
     251tstInt_LIBS           = $(LIB_RUNTIME)
    242252
    243253
  • trunk/src/VBox/VMM/testcase/tstInt.cpp

    r107909 r107910  
    11/* $Id$ */
    22/** @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.
    47 */
    58
     
    3942*   Header Files                                                                                                                 *
    4043*********************************************************************************************************************************/
     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
    4151#include <VBox/sup.h>
    4252#include <VBox/vmm/vmm.h>
     
    100110            CreateVMReq.Hdr.cbReq       = sizeof(CreateVMReq);
    101111            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;
    102119            CreateVMReq.pVMR0           = NIL_RTR0PTR;
    103             CreateVMReq.pVMR3           = NULL;
    104             CreateVMReq.cCpus           = 1;
    105120            rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_GVMM_CREATE_VM, 0, &CreateVMReq.Hdr);
    106121            if (RT_SUCCESS(rc))
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