VirtualBox

Changeset 101214 in vbox for trunk


Ignore:
Timestamp:
Sep 21, 2023 8:30:08 AM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159190
Message:

Main: Got rid of VBOX_WITH_ARMV8_HARDCODED_DEFAULTS, as we now have dedicated guest OS types for arm64, plus we don't need to configure a serial port anymore to bring up the VM. bugref:10384

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r101212 r101214  
    540540if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.arm64)
    541541 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 = 1
    545542endif
    546543if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.amd64)
  • trunk/src/VBox/Main/Makefile.kmk

    r101146 r101214  
    571571        $(if $(VBOX_WITH_FULL_VM_ENCRYPTION),VBOX_WITH_FULL_VM_ENCRYPTION,) \
    572572        $(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,)
    575574 ifdef VBOX_WITH_USB
    576575  VBoxSVC_DEFS += \
  • trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp

    r101204 r101214  
    5454    , mAudioCodecType(AudioCodecType_STAC9700)
    5555{
    56 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS
    57     unconst(mGraphicsControllerType)    = GraphicsControllerType_VMSVGA;
    58     unconst(mVRAMSize)                  = 128; /* MB */
    59 # ifdef VBOX_WITH_E1000
    60     unconst(mNetworkAdapterType)        = NetworkAdapterType_I82540EM;
    61 # endif
    62     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 */
    6956}
    7057
     
    121108    unconst(mCPUCount)                  = ostype.recommendedCPUCount;
    122109    unconst(mHDDSize)                   = ostype.recommendedHDD;
    123 #ifndef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS
    124110    unconst(mGraphicsControllerType)    = ostype.graphicsControllerType;
    125111    unconst(mVRAMSize)                  = ostype.recommendedVRAM;
     
    131117    unconst(mHDStorageBusType)          = ostype.hdStorageBusType;
    132118    unconst(mChipsetType)               = ostype.chipsetType;
    133 #endif
    134119    unconst(mIommuType)                 = ostype.iommuType;
    135120    unconst(mAudioControllerType)       = ostype.audioControllerType;
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r101146 r101214  
    506506        hrc = mNvramStore->i_updateEncryptionSettings(strNVRAMKeyId, strNVRAMKeyStore);
    507507#endif
    508 
    509 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS
    510         /* 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 
    534508        if (SUCCEEDED(hrc))
    535509        {
     
    1526715241        mNetworkAdapters[slot]->i_applyDefaults(osType);
    1526815242
    15269 #ifdef VBOX_WITH_ARMV8_HARDCODED_DEFAULTS
    15270     /* Configuration is done in Machine::init(). */
    15271 #else
    1527215243    /* Apply serial port defaults */
    1527315244    for (ULONG slot = 0; slot < RT_ELEMENTS(mSerialPorts); ++slot)
    1527415245        mSerialPorts[slot]->i_applyDefaults(osType);
    15275 #endif
    1527615246
    1527715247    /* Apply parallel port defaults  - not OS dependent*/
     
    1536615336        storageController->COMSETTER(PortCount)(1);
    1536715337
    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. */
    1537015339    if (hdStorageControllerType == StorageControllerType_VirtioSCSI)
    1537115340    {
     
    1537315342        if (FAILED(hrc)) return hrc;
    1537415343    }
    15375 #endif
    1537615344
    1537715345    /* USB stuff */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette