Changeset 101171 in vbox
- Timestamp:
- Sep 19, 2023 3:04:10 PM (12 months ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
-
idl/VirtualBox.xidl (modified) (2 diffs)
-
include/GuestOSTypeImpl.h (modified) (1 diff)
-
src-server/GuestOSTypeImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r101169 r101171 13519 13519 <interface 13520 13520 name="IGuestOSType" extends="$unknown" 13521 uuid=" 858fc38e-efe6-47d0-b6ac-c71023f9d043"13521 uuid="4799a50c-9451-4cbe-b80b-73df6c21ac06" 13522 13522 wsmap="struct" 13523 13523 rest="managed" … … 13550 13550 <attribute name="is64Bit" type="boolean" readonly="yes"> 13551 13551 <desc>Returns @c true if the given OS is 64-bit</desc> 13552 </attribute> 13553 13554 <attribute name="platformArchitecture" type="PlatformArchitecture" readonly="yes"> 13555 <desc>Returns the guest OS platform architecture.</desc> 13552 13556 </attribute> 13553 13557 -
trunk/src/VBox/Main/include/GuestOSTypeImpl.h
r101164 r101171 74 74 HRESULT getDescription(com::Utf8Str &aDescription); 75 75 HRESULT getIs64Bit(BOOL *aIs64Bit); 76 HRESULT getPlatformArchitecture(PlatformArchitecture_T *aPlatformArchitecture); 76 77 HRESULT getRecommendedIOAPIC(BOOL *aRecommendedIOAPIC); 77 78 HRESULT getRecommendedVirtEx(BOOL *aRecommendedVirtEx); -
trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp
r101164 r101171 208 208 } 209 209 210 HRESULT GuestOSType::getPlatformArchitecture(PlatformArchitecture_T *aPlatformArchitecture) 211 { 212 /* mOSType constant during life time, no need to lock */ 213 VBOXOSTYPE const osTypePlatformArchitectureMasked = VBOXOSTYPE(mOSType & VBOXOSTYPE_ArchitectureMask); 214 if ( osTypePlatformArchitectureMasked & VBOXOSTYPE_x86 215 || osTypePlatformArchitectureMasked & VBOXOSTYPE_x64) 216 *aPlatformArchitecture = PlatformArchitecture_x86; 217 else if ( osTypePlatformArchitectureMasked & VBOXOSTYPE_arm32 218 || osTypePlatformArchitectureMasked & VBOXOSTYPE_arm64) 219 *aPlatformArchitecture = PlatformArchitecture_ARM; 220 else 221 { 222 AssertFailed(); /* Something is fishy in the OSTYPE spec. */ 223 *aPlatformArchitecture = PlatformArchitecture_None; 224 } 225 226 return S_OK; 227 } 228 210 229 HRESULT GuestOSType::getRecommendedIOAPIC(BOOL *aRecommendedIOAPIC) 211 230 {
Note:
See TracChangeset
for help on using the changeset viewer.

