- Timestamp:
- Sep 21, 2023 8:30:08 AM (18 months ago)
- svn:sync-xref-src-repo-rev:
- 159190
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r101212 r101214 540 540 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.arm64) 541 541 VBOX_WITH_VIRT_ARMV8 = 1 542 # Enables setting hardcoded defaults for newly created VMs,543 # to get the VM off the ground. That setting might go away again as development progresses.544 VBOX_WITH_ARMV8_HARDCODED_DEFAULTS = 1545 542 endif 546 543 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.amd64) -
trunk/src/VBox/Main/Makefile.kmk
r101146 r101214 571 571 $(if $(VBOX_WITH_FULL_VM_ENCRYPTION),VBOX_WITH_FULL_VM_ENCRYPTION,) \ 572 572 $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,) \ 573 $(if $(VBOX_WITH_VIRT_ARMV8),VBOX_WITH_VIRT_ARMV8,) \ 574 $(if $(VBOX_WITH_ARMV8_HARDCODED_DEFAULTS),VBOX_WITH_ARMV8_HARDCODED_DEFAULTS,) 573 $(if $(VBOX_WITH_VIRT_ARMV8),VBOX_WITH_VIRT_ARMV8,) 575 574 ifdef VBOX_WITH_USB 576 575 VBoxSVC_DEFS += \ -
trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp
r101204 r101214 54 54 , mAudioCodecType(AudioCodecType_STAC9700) 55 55 { 56 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS57 unconst(mGraphicsControllerType) = GraphicsControllerType_VMSVGA;58 unconst(mVRAMSize) = 128; /* MB */59 # ifdef VBOX_WITH_E100060 unconst(mNetworkAdapterType) = NetworkAdapterType_I82540EM;61 # endif62 unconst(mNumSerialEnabled) = 1;63 unconst(mDVDStorageControllerType) = StorageControllerType_VirtioSCSI;64 unconst(mDVDStorageBusType) = StorageBus_VirtioSCSI;65 unconst(mHDStorageControllerType) = StorageControllerType_VirtioSCSI;66 unconst(mHDStorageBusType) = StorageBus_VirtioSCSI;67 unconst(mChipsetType) = ChipsetType_ARMv8Virtual;68 #endif /* VBOX_WITH_ARMV8_HARDCODED_DEFAULTS */69 56 } 70 57 … … 121 108 unconst(mCPUCount) = ostype.recommendedCPUCount; 122 109 unconst(mHDDSize) = ostype.recommendedHDD; 123 #ifndef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS124 110 unconst(mGraphicsControllerType) = ostype.graphicsControllerType; 125 111 unconst(mVRAMSize) = ostype.recommendedVRAM; … … 131 117 unconst(mHDStorageBusType) = ostype.hdStorageBusType; 132 118 unconst(mChipsetType) = ostype.chipsetType; 133 #endif134 119 unconst(mIommuType) = ostype.iommuType; 135 120 unconst(mAudioControllerType) = ostype.audioControllerType; -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r101146 r101214 506 506 hrc = mNvramStore->i_updateEncryptionSettings(strNVRAMKeyId, strNVRAMKeyStore); 507 507 #endif 508 509 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS510 /* At least one serial port has to be enabled. */511 char szPathTemp[RTPATH_MAX];512 int vrc = RTPathTemp(szPathTemp, sizeof(szPathTemp)); /* Don't clutter the VM directory; instead use the temp dir. */513 if (RT_SUCCESS(vrc))514 {515 vrc = RTPathAppend(szPathTemp, sizeof(szPathTemp), strName.c_str());516 if (RT_SUCCESS(vrc))517 {518 vrc = RTStrCat(szPathTemp, sizeof(szPathTemp), "-serialPort0");519 if (RT_SUCCESS(vrc))520 {521 mSerialPorts[0]->COMSETTER(Path)(Bstr(szPathTemp).raw()); /* Must be set first. */522 mSerialPorts[0]->COMSETTER(HostMode)(PortMode_RawFile);523 mSerialPorts[0]->COMSETTER(Enabled)(TRUE);524 }525 }526 }527 /* Always needs EFI. */528 mFirmwareSettings->COMSETTER(FirmwareType)(FirmwareType_EFI);529 /* Needs VMSVGA for now. */530 mGraphicsAdapter->COMSETTER(GraphicsControllerType)(GraphicsControllerType_VMSVGA);531 mGraphicsAdapter->COMSETTER(VRAMSize)(128 /* MB */);532 #endif /* VBOX_WITH_ARMV8_HARDCODED_DEFAULTS */533 534 508 if (SUCCEEDED(hrc)) 535 509 { … … 15267 15241 mNetworkAdapters[slot]->i_applyDefaults(osType); 15268 15242 15269 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS15270 /* Configuration is done in Machine::init(). */15271 #else15272 15243 /* Apply serial port defaults */ 15273 15244 for (ULONG slot = 0; slot < RT_ELEMENTS(mSerialPorts); ++slot) 15274 15245 mSerialPorts[slot]->i_applyDefaults(osType); 15275 #endif15276 15246 15277 15247 /* Apply parallel port defaults - not OS dependent*/ … … 15366 15336 storageController->COMSETTER(PortCount)(1); 15367 15337 15368 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS 15369 /* ARM VMs only support VirtioSCSI for now -- set two ports here, one for HDD and one for DVD drive. */ 15338 /* VirtioSCSI configures only one port per default -- set two ports here, one for HDD and one for DVD drive. */ 15370 15339 if (hdStorageControllerType == StorageControllerType_VirtioSCSI) 15371 15340 { … … 15373 15342 if (FAILED(hrc)) return hrc; 15374 15343 } 15375 #endif15376 15344 15377 15345 /* USB stuff */
Note:
See TracChangeset
for help on using the changeset viewer.