VirtualBox

Changeset 17732 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Mar 12, 2009 11:15:24 AM (16 years ago)
Author:
vboxsync
Message:

Storage/AHCI: fix iSCSI-induced geometry error preventing VM start in the AHCI case. ATA change is a no-op, just to make the code as similar as possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r17312 r17732  
    57065706            pIf->PCHSGeometry.cHeads = 16;
    57075707            pIf->PCHSGeometry.cSectors = 63;
    5708             /* Set the disk geometry information. */
    5709             rc = pIf->pDrvBlockBios->pfnSetPCHSGeometry(pIf->pDrvBlockBios,
    5710                                                         &pIf->PCHSGeometry);
     5708            /* Set the disk geometry information. Ignore errors. */
     5709            pIf->pDrvBlockBios->pfnSetPCHSGeometry(pIf->pDrvBlockBios,
     5710                                                   &pIf->PCHSGeometry);
     5711            rc = VINF_SUCCESS;
    57115712        }
    57125713        LogRel(("PIIX3 ATA: LUN#%d: disk, PCHS=%u/%u/%u, total number of sectors %Ld\n", pIf->iLUN, pIf->PCHSGeometry.cCylinders, pIf->PCHSGeometry.cHeads, pIf->PCHSGeometry.cSectors, pIf->cTotalSectors));
    57135714    }
    5714     return VINF_SUCCESS;
     5715    return rc;
    57155716}
    57165717
     
    61846185        return rc;
    61856186    pThis->u8Type = (uint8_t)enmChipset;
    6186    
     6187
    61876188    /*
    61886189     * Initialize data (most of it anyway).
     
    61956196    PCIDevSetVendorId(&pThis->dev, 0x8086); /* Intel */
    61966197
    6197     /* 
     6198    /*
    61986199     * When adding more IDE chipsets, don't forget to update pci_bios_init_device()
    61996200     * as it explicitly checks for PCI id for IDE controllers.
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