Changeset 30718 in vbox
- Timestamp:
- Jul 7, 2010 5:04:11 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.kmk
r30715 r30718 1106 1106 # 1107 1107 incs: 1108 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac 1108 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h 1109 1109 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"' 1110 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h 1111 $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h 1112 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h 1113 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h 1110 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h 1111 $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h 1112 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h 1114 1113 1115 1114 -
trunk/include/VBox/err.mac
r30715 r30718 19 19 %define VERR_INVALID_CPU_ID (-1018) 20 20 %define VERR_TOO_MANY_CPUS (-1019) 21 %define VERR_SERVICE_DISABLED (-1020)22 21 %define VINF_EM_FIRST 1100 23 22 %define VINF_EM_TERMINATE 1100 … … 158 157 %define VERR_PGM_INVALID_LARGE_PAGE_RANGE (-1645) 159 158 %define VERR_PGM_PHYS_PAGE_BALLOONED (-1646) 160 %define VINF_PGM_SHARED_MODULE_ALREADY_REGISTERED (1647)161 %define VERR_PGM_SHARED_MODULE_NOT_FOUND (-1648)162 %define VINF_PGM_SHARED_MODULE_COLLISION (1649)163 %define VERR_PGM_SHARED_MODULE_REGISTRATION_INCONSISTENCY (-1650)164 %define VERR_PGM_SHARED_MODULE_FIRST_CHECK (-1651)165 159 %define VERR_MM_RAM_CONFLICT (-1700) 166 160 %define VERR_MM_HYPER_NO_MEMORY (-1701) … … 222 216 %define VERR_SSM_FIELD_INVALID_PADDING_SIZE (-1869) 223 217 %define VERR_SSM_FIELD_INVALID_VALUE (-1870) 224 %define VERR_SSM_STREAM_ERROR (-1871)225 218 %define VERR_VM_ATRESET_NOT_FOUND (-1900) 226 219 %define VERR_VM_REQUEST_INVALID_TYPE (-1901) … … 237 230 %define VERR_VM_DRIVER_VERSION_MISMATCH (-1912) 238 231 %define VERR_VM_SAVE_STATE_NOT_ALLOWED (-1913) 239 %define VERR_VM_THREAD_IS_EMT (-1914)240 232 %define VINF_VRDP_SUCCESS VINF_SUCCESS 241 233 %define VERR_VRDP_TIMEOUT VERR_TIMEOUT … … 436 428 %define VERR_VD_RAW_INVALID_TYPE (-3271) 437 429 %define VERR_VD_NOT_ENOUGH_METADATA (-3272) 438 %define VERR_VD_IOCTX_HALT (-3273)439 430 %define VERR_VBGL_NOT_INITIALIZED (-3300) 440 431 %define VERR_VBGL_INVALID_ADDR (-3301) … … 455 446 %define VERR_INTNET_INCOMPATIBLE_TRUNK (-3603) 456 447 %define VERR_INTNET_INCOMPATIBLE_FLAGS (-3604) 457 %define VERR_INTNET_FLT_VNIC_CREATE_FAILED (-3605)458 448 %define VERR_SUPDRV_COMPONENT_NOT_FOUND (-3700) 459 449 %define VERR_SUPDRV_INTERFACE_NOT_SUPPORTED (-3701) … … 497 487 %define VERR_VMX_UNEXPECTED_EXCEPTION (-4016) 498 488 %define VERR_VMX_UNEXPECTED_INTERRUPTION_EXIT_CODE (-4017) 499 %define VERR_VMX_NOT_IN_VMX_ROOT_MODE (-4018)500 489 %define VERR_SVM_UNABLE_TO_START_VM (-4050) 501 490 %define VERR_SVM_ILLEGAL_EFER_MSR (-4051) … … 516 505 %define VINF_PARAV_SWITCH_TO_HOST 4400 517 506 %define VINF_VHWA_CMD_PENDING 4500 518 %define VERR_COM_UNEXPECTED (-4600) 519 %define VERR_COM_VBOX_LOWEST (-4699) 520 %define VERR_COM_OBJECT_NOT_FOUND (VERR_COM_VBOX_LOWEST + 1) 521 %define VERR_COM_INVALID_VM_STATE (VERR_COM_VBOX_LOWEST + 2) 522 %define VERR_COM_VM_ERROR (VERR_COM_VBOX_LOWEST + 3) 523 %define VERR_COM_FILE_ERROR (VERR_COM_VBOX_LOWEST + 4) 524 %define VERR_COM_IPRT_ERROR (VERR_COM_VBOX_LOWEST + 5) 525 %define VERR_COM_PDM_ERROR (VERR_COM_VBOX_LOWEST + 6) 526 %define VERR_COM_INVALID_OBJECT_STATE (VERR_COM_VBOX_LOWEST + 7) 527 %define VERR_COM_HOST_ERROR (VERR_COM_VBOX_LOWEST + 8) 528 %define VERR_COM_NOT_SUPPORTED (VERR_COM_VBOX_LOWEST + 9) 529 %define VERR_COM_XML_ERROR (VERR_COM_VBOX_LOWEST + 10) 530 %define VERR_COM_INVALID_SESSION_STATE (VERR_COM_VBOX_LOWEST + 11) 531 %define VERR_COM_OBJECT_IN_USE (VERR_COM_VBOX_LOWEST + 12) 532 %define VERR_COM_DONT_CALL_AGAIN (VERR_COM_VBOX_LOWEST + 13) 507 %define VERR_COM_OBJECT_NOT_FOUND (-4601) 508 %define VERR_COM_INVALID_VM_STATE (-4602) 509 %define VERR_COM_VM_ERROR (-4603) 510 %define VERR_COM_FILE_ERROR (-4604) 511 %define VERR_COM_IPRT_ERROR (-4605) 512 %define VERR_COM_PDM_ERROR (-4606) 513 %define VERR_COM_INVALID_OBJECT_STATE (-4607) 514 %define VERR_COM_HOST_ERROR (-4608) 515 %define VERR_COM_NOT_SUPPORTED (-4609) 516 %define VERR_COM_XML_ERROR (-4610) 517 %define VERR_COM_INVALID_SESSION_STATE (-4611) 518 %define VERR_COM_OBJECT_IN_USE (-4612) 533 519 %define VERR_CPU_HOTPLUG_NOT_MONITORED_BY_GUEST (-4700) 534 520 %define VINF_AIO_TASK_PENDING 4800 -
trunk/include/VBox/iom.h
r30715 r30718 91 91 * @param pvUser User argument. 92 92 * @param uPort Port number used for the IN operation. 93 * @param pu32 Where to store the result. This is always a 32-bit 94 * variable regardless of what @a cb might say. 93 * @param pu32 Where to store the result. 95 94 * @param cb Number of bytes read. 96 95 */ -
trunk/include/iprt/err.mac
r30715 r30718 104 104 %define VERR_CONCURRENT_ACCESS (-92) 105 105 %define VERR_CALLER_NO_REFERENCE (-93) 106 %define VERR_NO_CHANGE (-95) 107 %define VINF_NO_CHANGE 95 108 %define VERR_NO_EXEC_MEMORY (-96) 106 %define VERR_LOGON_FAILURE (-94) 109 107 %define VERR_FILE_IO_ERROR (-100) 110 108 %define VERR_OPEN_FAILED (-101) -
trunk/src/VBox/Devices/Makefile.kmk
r30715 r30718 310 310 VMMDev/VMMDev.cpp \ 311 311 VMMDev/VMMDevHGCM.cpp \ 312 VMMDev/VMMDevTesting.cpp \313 312 Network/DevPCNet.cpp \ 314 313 Audio/DevIchAc97.cpp \ … … 540 539 # 541 540 VBoxDDGC_TEMPLATE = VBoxRc 541 VBoxDDGC_SYSSUFF = .gc 542 542 ifeq ($(KBUILD_TARGET_ARCH),x86) 543 543 VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE … … 557 557 Network/DevPCNet.cpp \ 558 558 Serial/DevSerial.cpp \ 559 Parallel/DevParallel.cpp \ 560 VMMDev/VMMDevTesting.cpp 559 Parallel/DevParallel.cpp 561 560 562 561 ifdef VBOX_DYNAMIC_NET_ATTACH … … 653 652 # 654 653 VBoxDDR0_TEMPLATE = VBoxR0 654 VBoxDDR0_SYSSUFF = .r0 655 655 VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE 656 656 VBoxDDR0_DEFS = IN_RT_R0 … … 669 669 Serial/DevSerial.cpp \ 670 670 Parallel/DevParallel.cpp \ 671 VMMDev/VMMDevTesting.cpp \672 671 \ 673 672 Network/DrvIntNet.cpp \ … … 767 766 VBoxDD2GC_TEMPLATE = VBoxRc 768 767 VBoxDD2GC_DEFS = 768 VBoxDD2GC_SYSSUFF = .gc 769 769 VBoxDD2GC_INCS := \ 770 770 $(PATH_SUB_CURRENT) … … 783 783 VBoxDD2R0_TEMPLATE = VBoxR0 784 784 VBoxDD2R0_DEFS = IN_RT_R0 785 VBoxDD2R0_SYSSUFF = .r0 785 786 VBoxDD2R0_INCS := \ 786 787 $(PATH_SUB_CURRENT) -
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r30715 r30718 27 27 #include <VBox/log.h> 28 28 #include <VBox/param.h> 29 #include <VBox/mm.h> 29 30 #include <VBox/pgm.h> 30 31 #include <VBox/err.h> … … 47 48 #ifdef VBOX_WITH_HGCM 48 49 # include "VMMDevHGCM.h" 49 #endif50 #ifndef VBOX_WITHOUT_TESTING_FEATURES51 # include "VMMDevTesting.h"52 50 #endif 53 51 … … 2730 2728 pThis->pDrv->pfnUpdateGuestCapabilities(pThis->pDrv, pThis->guestCaps); 2731 2729 2732 /* Generate a unique session id for this VM; it will be changed for each start, reset or restore. 2730 /* Generate a unique session id for this VM; it will be changed for each start, reset or restore. 2733 2731 * This can be used for restore detection inside the guest. 2734 2732 */ 2735 2733 pThis->idSession = ASMReadTSC(); 2736 }2737 2738 2739 /**2740 * @interface_method_impl{PDMDEVREG,pfnRelocate}2741 */2742 static DECLCALLBACK(void) vmmdevRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)2743 {2744 NOREF(pDevIns);2745 NOREF(offDelta);2746 2734 } 2747 2735 … … 2757 2745 Assert(iInstance == 0); 2758 2746 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2747 2748 /* 2749 * Validate and read the configuration. 2750 */ 2751 if (!CFGMR3AreValuesValid(pCfg, 2752 "GetHostTimeDisabled\0" 2753 "BackdoorLogDisabled\0" 2754 "KeepCredentials\0" 2755 "HeapEnabled\0" 2756 )) 2757 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 2758 2759 rc = CFGMR3QueryBoolDef(pCfg, "GetHostTimeDisabled", &pThis->fGetHostTimeDisabled, false); 2760 if (RT_FAILURE(rc)) 2761 return PDMDEV_SET_ERROR(pDevIns, rc, 2762 N_("Configuration error: Failed querying \"GetHostTimeDisabled\" as a boolean")); 2763 2764 rc = CFGMR3QueryBoolDef(pCfg, "BackdoorLogDisabled", &pThis->fBackdoorLogDisabled, false); 2765 if (RT_FAILURE(rc)) 2766 return PDMDEV_SET_ERROR(pDevIns, rc, 2767 N_("Configuration error: Failed querying \"BackdoorLogDisabled\" as a boolean")); 2768 2769 rc = CFGMR3QueryBoolDef(pCfg, "KeepCredentials", &pThis->fKeepCredentials, false); 2770 if (RT_FAILURE(rc)) 2771 return PDMDEV_SET_ERROR(pDevIns, rc, 2772 N_("Configuration error: Failed querying \"KeepCredentials\" as a boolean")); 2773 2774 rc = CFGMR3QueryBoolDef(pCfg, "HeapEnabled", &pThis->fHeapEnabled, true); 2775 if (RT_FAILURE(rc)) 2776 return PDMDEV_SET_ERROR(pDevIns, rc, 2777 N_("Configuration error: Failed querying \"HeapEnabled\" as a boolean")); 2759 2778 2760 2779 /* … … 2809 2828 #endif 2810 2829 2811 /* 2812 * Validate and read the configuration. 2813 */ 2814 PDMDEV_VALIDATE_CONFIG_RETURN(pDevIns, 2815 "GetHostTimeDisabled|" 2816 "BackdoorLogDisabled|" 2817 "KeepCredentials|" 2818 "HeapEnabled|" 2819 "RamSize|" 2820 "TestingEnabled" 2821 , 2822 ""); 2823 2824 rc = CFGMR3QueryU64(pCfg, "RamSize", &pThis->cbGuestRAM); 2825 if (RT_FAILURE(rc)) 2826 return PDMDEV_SET_ERROR(pDevIns, rc, 2827 N_("Configuration error: Failed querying \"RamSize\" as a 64-bit unsigned integer")); 2828 2829 rc = CFGMR3QueryBoolDef(pCfg, "GetHostTimeDisabled", &pThis->fGetHostTimeDisabled, false); 2830 if (RT_FAILURE(rc)) 2831 return PDMDEV_SET_ERROR(pDevIns, rc, 2832 N_("Configuration error: Failed querying \"GetHostTimeDisabled\" as a boolean")); 2833 2834 rc = CFGMR3QueryBoolDef(pCfg, "BackdoorLogDisabled", &pThis->fBackdoorLogDisabled, false); 2835 if (RT_FAILURE(rc)) 2836 return PDMDEV_SET_ERROR(pDevIns, rc, 2837 N_("Configuration error: Failed querying \"BackdoorLogDisabled\" as a boolean")); 2838 2839 rc = CFGMR3QueryBoolDef(pCfg, "KeepCredentials", &pThis->fKeepCredentials, false); 2840 if (RT_FAILURE(rc)) 2841 return PDMDEV_SET_ERROR(pDevIns, rc, 2842 N_("Configuration error: Failed querying \"KeepCredentials\" as a boolean")); 2843 2844 rc = CFGMR3QueryBoolDef(pCfg, "HeapEnabled", &pThis->fHeapEnabled, true); 2845 if (RT_FAILURE(rc)) 2846 return PDMDEV_SET_ERROR(pDevIns, rc, 2847 N_("Configuration error: Failed querying \"HeapEnabled\" as a boolean")); 2848 2849 rc = CFGMR3QueryBoolDef(pCfg, "RZEnabled", &pThis->fRZEnabled, true); 2850 if (RT_FAILURE(rc)) 2851 return PDMDEV_SET_ERROR(pDevIns, rc, 2852 N_("Configuration error: Failed querying \"RZEnabled\" as a boolean")); 2853 2854 #ifndef VBOX_WITHOUT_TESTING_FEATURES 2855 rc = CFGMR3QueryBoolDef(pCfg, "TestingEnabled", &pThis->fTestingEnabled, false); 2856 if (RT_FAILURE(rc)) 2857 return PDMDEV_SET_ERROR(pDevIns, rc, 2858 N_("Configuration error: Failed querying \"TestingEnabled\" as a boolean")); 2859 # ifdef DEBUG_bird /* lazy bird */ 2860 pThis->fTestingEnabled = true; 2861 # endif 2862 /** @todo image-to-load-filename? */ 2863 #endif 2830 /** @todo convert this into a config parameter like we do everywhere else! */ 2831 pThis->cbGuestRAM = MMR3PhysGetRamSize(PDMDevHlpGetVM(pDevIns)); 2864 2832 2865 2833 /* … … 2922 2890 } 2923 2891 2924 #ifndef VBOX_WITHOUT_TESTING_FEATURES2925 /*2926 * Initialize testing.2927 */2928 rc = vmmdevTestingInitialize(pDevIns);2929 if (RT_FAILURE(rc))2930 return rc;2931 #endif2932 2933 2892 /* 2934 2893 * Get the corresponding connector interface … … 2990 2949 pThis->u32HGCMEnabled = 0; 2991 2950 #endif /* VBOX_WITH_HGCM */ 2992 2993 2951 /* In this version of VirtualBox the GUI checks whether "needs host cursor" 2994 2952 * changes. */ … … 2997 2955 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMemBalloonChunks, STAMTYPE_U32, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT, "Memory balloon size", "/Devices/VMMDev/BalloonChunks"); 2998 2956 2999 /* Generate a unique session id for this VM; it will be changed for each start, reset or restore. 2957 /* Generate a unique session id for this VM; it will be changed for each start, reset or restore. 3000 2958 * This can be used for restore detection inside the guest. 3001 2959 */ … … 3014 2972 "VMMDev", 3015 2973 /* szRCMod */ 3016 " VBoxDDGC.gc",2974 "", 3017 2975 /* szR0Mod */ 3018 " VBoxDDR0.r0",2976 "", 3019 2977 /* pszDescription */ 3020 2978 "VirtualBox VMM Device\n", 3021 2979 /* fFlags */ 3022 PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT | PDM_DEVREG_FLAGS_GUEST_BITS_DEFAULT | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0,2980 PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT | PDM_DEVREG_FLAGS_GUEST_BITS_DEFAULT, 3023 2981 /* fClass */ 3024 2982 PDM_DEVREG_CLASS_VMM_DEV, … … 3032 2990 NULL, 3033 2991 /* pfnRelocate */ 3034 vmmdevRelocate,2992 NULL, 3035 2993 /* pfnIOCtl */ 3036 2994 NULL, -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r30715 r30718 164 164 /* guest ram size */ 165 165 uint64_t cbGuestRAM; 166 166 167 167 /* unique session id; the id will be different after each start, reset or restore of the VM. */ 168 168 uint64_t idSession; … … 215 215 216 216 /** FLag whether CPU hotplug events are monitored */ 217 bool fCpuHotPlugEventsEnabled;217 bool fCpuHotPlugEventsEnabled; 218 218 /** CPU hotplug event */ 219 VMMDevCpuEventType enmCpuHotPlugEvent;219 VMMDevCpuEventType enmCpuHotPlugEvent; 220 220 /** Core id of the CPU to change */ 221 uint32_t idCpuCore;221 uint32_t idCpuCore; 222 222 /** Package id of the CPU to changhe */ 223 uint32_t idCpuPackage; 224 225 uint32_t StatMemBalloonChunks; 226 227 /** Set if RC/R0 is enabled. */ 228 bool fRZEnabled; 229 /** Set if testing is enabled. */ 230 bool fTestingEnabled; 231 /** The high timestamp value. */ 232 uint32_t u32TestingHighTimestamp; 233 223 uint32_t idCpuPackage; 224 225 uint32_t StatMemBalloonChunks; 234 226 } VMMDevState; 235 227 AssertCompileMemberAlignment(VMMDevState, CritSect, 8); -
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r30715 r30718 1898 1898 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 4); UPDATE_RC(); 1899 1899 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); UPDATE_RC(); 1900 rc = CFGMR3InsertInteger(pCfg, "RamSize", g_u32MemorySizeMB * _1M); UPDATE_RC();1901 1900 1902 1901 /* the VMM device's Main driver */ -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r30715 r30718 1616 1616 Bstr hwVersion; 1617 1617 hrc = pMachine->COMGETTER(HardwareVersion)(hwVersion.asOutParam()); H(); 1618 rc = CFGMR3InsertInteger(pCfg, "RamSize", cbRam); RC_CHECK();1619 1618 if (hwVersion.compare(Bstr("1")) == 0) /* <= 2.0.x */ 1620 1619 {
Note:
See TracChangeset
for help on using the changeset viewer.