Laszlo Ersek <[email protected]> writes: > With the pc-q35-2.4 machine type, if the user creates an ISA FDC manually: > > -device isa-fdc,driveA=drive-fdc0-0-0 \ > -drive file=...,if=none,id=drive-fdc0-0-0,format=raw > > then the board-default FDC will be skipped, and only the explicitly > requested FDC will exist. qtree-wise, this is correct; however such an FDC > is currently not registered in the CMOS, because that code is only reached > for the board-default FDC. > > The pc_cmos_init_late() one-shot reset handler -- one-shot because the > CMOS is not reprogrammed during warm reset -- should search for any ISA > FDC devices, created implicitly (by board code) or explicitly, and set the > CMOS accordingly to the ISA FDC(s) with iobase=0x3f0: > > - if there is no such FDC, report both drives absent, > - if there is exactly one such FDC, report its drives in the CMOS, > - if there are more than one such FDCs, then pick one (it is not specified > which one), and print a warning about the ambiguity. > > Cc: Jan Tomko <[email protected]> > Cc: John Snow <[email protected]> > Cc: Markus Armbruster <[email protected]> > Cc: Paolo Bonzini <[email protected]> > Reported-by: Jan Tomko <[email protected]> > Suggested-by: Markus Armbruster <[email protected]> > Signed-off-by: Laszlo Ersek <[email protected]> > Reviewed-by: John Snow <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
