qemu-irix/hw
Markus Armbruster c0897e0cb9 pc: Fix CMOS info for drives defined with -device
Drives defined with -drive if=ide get get created along with the IDE
controller, inside machine->init().  That's before cmos_init().
Drives defined with -device get created during generic device init.
That's after cmos_init().  Because of that, CMOS has no information on
them (type, geometry, translation).  Older versions of Windows such as
XP reportedly choke on that.

Split off the part of CMOS initialization that needs to know about
-device devices, and turn it into a reset handler, so it runs after
device creation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-07-02 13:18:02 +02:00
..
ide pc: Fix CMOS info for drives defined with -device 2010-07-02 13:18:02 +02:00
9p.h Move stdbool.h 2010-06-13 19:00:50 +01:00
a9mpcore.c
ac97.c
acpi.c Trim unnecessary includes 2010-05-15 17:36:13 +00:00
acpi.h Update to a hopefully more future proof FSF address 2010-05-15 17:52:49 +00:00
acpi_piix4.c acpi_piix4: save gpe and pci hotplug slot status 2010-06-14 15:46:28 -05:00
adb.c
adlib.c
ads7846.c
alpha_palcode.c
an5206.c
apb_pci.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
apb_pci.h
apic.c apic: qdev conversion cleanup 2010-06-19 07:47:42 +00:00
apic.h apic: qdev conversion cleanup 2010-06-19 07:47:42 +00:00
apm.c Trim unnecessary includes 2010-05-15 17:36:13 +00:00
apm.h acpi: split out apm register emulation from acpi.c 2010-05-15 15:27:19 +00:00
arm-misc.h
arm11mpcore.c
arm_boot.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
arm_gic.c
arm_pic.c
arm_sysctl.c
arm_timer.c arm_timer: fix oneshot mode 2010-05-21 12:00:22 +02:00
armv7m.c
armv7m_nvic.c Fix missing '|' in '|=', spotted by clang analyzer 2010-05-02 18:38:10 +00:00
audiodev.h
axis_dev88.c cris: Break out image loading to hw/cris-boot.c. 2010-06-10 14:45:46 +02:00
baum.c
baum.h
bitbang_i2c.c
bitbang_i2c.h
blizzard.c
blizzard_template.h
boards.h
bonito.c MIPS: Initial support of bonito north bridge used by fulong mini pc 2010-06-29 23:07:51 +02:00
bt-hci-csr.c
bt-hci.c
bt-hid.c
bt-l2cap.c
bt-sdp.c
bt.c
bt.h
cbus.c
cdrom.c
cirrus_vga.c vmstate: fix breakage by 7e72abc382 2010-05-22 08:39:13 +00:00
cirrus_vga_rop.h
cirrus_vga_rop2.h
cris-boot.c cris: Break out image loading to hw/cris-boot.c. 2010-06-10 14:45:46 +02:00
cris-boot.h cris: Break out image loading to hw/cris-boot.c. 2010-06-10 14:45:46 +02:00
cris_pic_cpu.c
cs4231.c
cs4231a.c
cuda.c
debugcon.c
dec_pci.c
dec_pci.h
device-hotplug.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
devices.h
dma.c Compile dma only once 2010-05-22 08:00:52 +00:00
dp8393x.c
ds1225y.c
ds1338.c
dummy_m68k.c
e1000.c Change #define DEBUG to #define E1000_DEBUG in hw/e1000.c 2010-06-14 10:58:08 -05:00
e1000_hw.h
ecc.c
eccmemctl.c
eepro100.c Move stdbool.h 2010-06-13 19:00:50 +01:00
eeprom93xx.c
eeprom93xx.h
elf_ops.h microblaze: Handle new elf mach nr for sysemu. 2010-05-24 11:14:04 +02:00
empty_slot.c
empty_slot.h
es1370.c
escc.c
escc.h
esp.c scsi: scsi_bus_legacy_handle_cmdline() can fail, fix callers 2010-07-02 13:18:01 +02:00
esp.h
etraxfs.c cris: Break out image loading to hw/cris-boot.c. 2010-06-10 14:45:46 +02:00
etraxfs.h
etraxfs_dma.c
etraxfs_dma.h
etraxfs_eth.c
etraxfs_pic.c
etraxfs_ser.c etrax-ser: Support the uart rx fifo. 2010-06-14 18:41:12 +02:00
etraxfs_timer.c
event_notifier.c
event_notifier.h
fdc.c block: Fix virtual media change for if=none 2010-07-02 13:18:02 +02:00
fdc.h blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
file-op-9p.h virtio-9p: Implement Security model for mksock using mknod. 2010-06-22 15:15:51 -05:00
firmware_abi.h
flash.h
fmopl.c
fmopl.h
framebuffer.c
framebuffer.h
fw_cfg.c fw_cfg: convert to qdev 2010-06-27 16:04:55 +00:00
fw_cfg.h
g364fb.c
grackle_pci.c
gt64xxx.c Fix hw/gt64xxx.c compilation with DEBUG defined 2010-05-28 22:08:54 +02:00
gumstix.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
gus.c
gusemu.h
gusemu_hal.c
gusemu_mixer.c
gustate.h
heathrow_pic.c
hpet.c Fix comparison which always returned false 2010-06-16 01:43:38 +04:00
hpet_emul.h pass info about hpets to seabios.] 2010-06-14 11:12:53 -05:00
hw.h Move stdbool.h 2010-06-13 19:00:50 +01:00
i2c.c
i2c.h
i8254.c
i8259.c i8259: improve debugging 2010-05-29 20:23:19 +00:00
ide.h pc: Fix CMOS info for drives defined with -device 2010-07-02 13:18:02 +02:00
integratorcp.c
ioapic.c ioapic: convert to qdev 2010-06-19 07:41:43 +00:00
irq.c
irq.h
isa-bus.c
isa.h Compile dma only once 2010-05-22 08:00:52 +00:00
isa_mmio.c
jazz_led.c
lan9118.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
lance.c
lm832x.c
loader.c
loader.h
lsi53c895a.c scsi: scsi_bus_legacy_handle_cmdline() can fail, fix callers 2010-07-02 13:18:01 +02:00
m48t59.c
mac_dbdma.c
mac_dbdma.h
mac_nvram.c
macio.c
mainstone.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
mainstone.h
marvell_88w8618_audio.c Remove useless device dependency of HAS_AUDIO 2010-06-27 16:04:31 +00:00
max111x.c
max7310.c
mc146818rtc.c hpet/rtc: Rework RTC IRQ replacement by HPET 2010-06-13 15:33:00 +03:00
mc146818rtc.h hpet/rtc: Rework RTC IRQ replacement by HPET 2010-06-13 15:33:00 +03:00
mcf.h
mcf5206.c
mcf5208.c
mcf_fec.c
mcf_intc.c
mcf_uart.c
microblaze_pic_cpu.c
mips-bios.h
mips.h MIPS: Initial support of bonito north bridge used by fulong mini pc 2010-06-29 23:07:51 +02:00
mips_addr.c
mips_cpudevs.h
mips_fulong2e.c MIPS: fix fulong bios loading 2010-06-30 19:39:45 +02:00
mips_int.c
mips_jazz.c Remove useless device dependency of HAS_AUDIO 2010-06-27 16:04:31 +00:00
mips_malta.c Remove useless device dependency of HAS_AUDIO 2010-06-27 16:04:31 +00:00
mips_mipssim.c hw: honor low bit in mipssim machine 2010-06-09 16:10:51 +02:00
mips_r4k.c hpet/rtc: Rework RTC IRQ replacement by HPET 2010-06-13 15:33:00 +03:00
mips_timer.c
mipsnet.c
mpcore.c
msix.c Remove unused DEBUG defines from hw/msix.c 2010-06-14 10:58:08 -05:00
msix.h
msmouse.c
msmouse.h
mst_fpga.c
multiboot.c multiboot: compilation fix with DEBUG_MULTIBOOT enabled. 2010-06-10 16:49:28 +00:00
multiboot.h
musicpal.c Remove useless device dependency of HAS_AUDIO 2010-06-27 16:04:31 +00:00
nand.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
ne2000-isa.c
ne2000.c
ne2000.h
nseries.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
nvram.h
omap.h hw/omap : make local function static and remove declaration from header 2010-06-30 20:41:38 +02:00
omap1.c hw/omap : make local function static and remove declaration from header 2010-06-30 20:41:38 +02:00
omap2.c hw/omap : make local function static and remove declaration from header 2010-06-30 20:41:38 +02:00
omap_clk.c
omap_dma.c
omap_dss.c
omap_gpio.c hw/omap2.c : separate gpio module 2010-06-30 20:41:36 +02:00
omap_gpmc.c hw/omap2.c : separate gpmc(general purpose memory controller) 2010-06-30 20:41:36 +02:00
omap_gptimer.c hw/omap2.c : separate gptimer module 2010-06-30 20:41:36 +02:00
omap_i2c.c
omap_intc.c hw/omap1.c : separate interrupt controller module 2010-06-30 20:41:37 +02:00
omap_l4.c hw/omwp2.c : separate l4 interconnect module 2010-06-30 20:41:37 +02:00
omap_lcd_template.h
omap_lcdc.c
omap_mmc.c
omap_sdrc.c hw/omap2.c : separate sdrc (sdram controller) 2010-06-30 20:41:36 +02:00
omap_spi.c hw/omap2.c : separate spi module 2010-06-30 20:41:37 +02:00
omap_sx1.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
omap_synctimer.c hw/omap2.c : separate synctimer module 2010-06-30 20:41:36 +02:00
omap_tap.c hw/omap2.c : separate tap module(Test-Chip-level) 2010-06-30 20:41:37 +02:00
omap_uart.c hw/omap1.c : separate uart module 2010-06-30 20:41:37 +02:00
onenand.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
openpic.c
openpic.h
palm.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
parallel.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
pc.c pc: Fix CMOS info for drives defined with -device 2010-07-02 13:18:02 +02:00
pc.h pc: Fix CMOS info for drives defined with -device 2010-07-02 13:18:02 +02:00
pc_piix.c pc: Fix CMOS info for drives defined with -device 2010-07-02 13:18:02 +02:00
pci-hotplug.c block: Catch attempt to attach multiple devices to a blockdev 2010-07-02 13:18:02 +02:00
pci.c qdev: Revert the hack to let -net nic and pci_add set qdev ID 2010-06-14 15:46:28 -05:00
pci.h pci-hotplug: make them aware of pci domain. 2010-05-31 16:39:55 +03:00
pci_host.c
pci_host.h
pci_ids.h Initial support of vt82686b south bridge used by fulong mini pc 2010-06-29 23:07:51 +02:00
pci_regs.h
pcie_host.c
pcie_host.h
pckbd.c pckbd: improve debugging 2010-05-22 07:59:06 +00:00
pcmcia.h blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
pcnet.c
pcnet.h
pcspk.c
petalogix_s3adsp1800_mmu.c petlogix-3adsp: Tweak displacement of cmdline and fdt blob. 2010-06-07 11:53:09 +02:00
pflash_cfi01.c pflash_cfi01: add device ID read command 2010-05-21 11:52:08 +02:00
pflash_cfi02.c
piix4.c
piix_pci.c Fix overflow in i440fx_init() 2010-05-28 21:33:59 +02:00
pixel_ops.h
pl011.c
pl022.c
pl031.c
pl050.c
pl061.c
pl080.c
pl110.c
pl110_template.h
pl181.c qdev: Move declaration of qdev_init_bdrv() into qdev.h 2010-06-04 11:43:40 +02:00
pl190.c
pm_smbus.c Update to a hopefully more future proof FSF address 2010-05-15 17:52:49 +00:00
pm_smbus.h acpi: split out piix4 smbus routines from acpi.c into pm_smbus.c 2010-05-15 15:25:31 +00:00
ppc.c target-ppc: remove dead code 2010-05-18 21:12:54 +02:00
ppc.h
ppc4xx.h
ppc4xx_devs.c
ppc4xx_pci.c
ppc405.h
ppc405_boards.c
ppc405_uc.c
ppc440.c
ppc440.h
ppc440_bamboo.c
ppc_mac.h
ppc_newworld.c
ppc_oldworld.c
ppc_prep.c hpet/rtc: Rework RTC IRQ replacement by HPET 2010-06-13 15:33:00 +03:00
ppce500.h
ppce500_mpc8544ds.c
ppce500_pci.c
prep_pci.c
prep_pci.h
primecell.h
ps2.c
ps2.h
ptimer.c
pxa.h
pxa2xx.c
pxa2xx_dma.c
pxa2xx_gpio.c
pxa2xx_keypad.c
pxa2xx_lcd.c
pxa2xx_mmci.c
pxa2xx_pcmcia.c
pxa2xx_pic.c
pxa2xx_template.h
pxa2xx_timer.c
qdev-addr.c
qdev-addr.h
qdev-properties.c block: Catch attempt to attach multiple devices to a blockdev 2010-07-02 13:18:02 +02:00
qdev.c Merge remote branch 'kwolf/for-anthony' into staging 2010-06-14 10:33:36 -05:00
qdev.h block: Catch attempt to attach multiple devices to a blockdev 2010-07-02 13:18:02 +02:00
r2d.c r2d: fix pflash mapping 2010-06-29 23:26:34 +02:00
rc4030.c
realview.c
realview_gic.c
rtl8139.c
s390-virtio-bus.c
s390-virtio-bus.h
s390-virtio.c block: Catch attempt to attach multiple devices to a blockdev 2010-07-02 13:18:02 +02:00
sb16.c
sbi.c
scsi-bus.c block: Catch attempt to attach multiple devices to a blockdev 2010-07-02 13:18:02 +02:00
scsi-defs.h scsi-bus: Add MAINTENANCE_IN and MAINTENANCE_OUT SCSIRequest xfer and mode assignments 2010-06-22 14:38:01 +02:00
scsi-disk.c block: Fix virtual media change for if=none 2010-07-02 13:18:02 +02:00
scsi-generic.c block: Fix virtual media change for if=none 2010-07-02 13:18:02 +02:00
scsi.h qdev: Decouple qdev_prop_drive from DriveInfo 2010-07-02 13:18:02 +02:00
sd.c
sd.h
serial.c blockdev: Collect block device code in new blockdev.c 2010-06-04 15:20:47 +02:00
sh.h
sh7750.c
sh7750_regnames.c
sh7750_regnames.h
sh7750_regs.h
sh_intc.c
sh_intc.h
sh_pci.c
sh_pci.h
sh_serial.c
sh_timer.c
sharpsl.h
shix.c
slavio_intctl.c mask all interrupts when MASTER_DISABLE is set 2010-06-27 19:06:44 +03:00
slavio_misc.c
slavio_timer.c
sm501.c sh: sm501: add 2D engine support 2010-05-15 13:57:22 +00:00
sm501_template.h
smbios.c
smbios.h
smbus.c
smbus.h
smbus_eeprom.c
smc91c111.c
soc_dma.c
soc_dma.h
sparc32_dma.c sparc32 protect read-only bits in DMA CSR registers 2010-05-22 09:07:46 +00:00
sparc32_dma.h
spitz.c Remove useless device dependency of HAS_AUDIO 2010-06-27 16:04:31 +00:00
ssd0303.c
ssd0323.c
ssi-sd.c qdev: Move declaration of qdev_init_bdrv() into qdev.h 2010-06-04 11:43:40 +02:00
ssi.c
ssi.h
stellaris.c
stellaris_enet.c
stellaris_input.c
sun4c_intctl.c
sun4m.c Pad iommu with an empty slot (necessary for SunOS 4.1.4) 2010-05-29 08:20:55 +00:00
sun4m.h
sun4m_iommu.c
sun4u.c sparc64: clean up pci bridge map 2010-05-26 19:14:21 +00:00
syborg.c
syborg.h
syborg_fb.c
syborg_interrupt.c
syborg_keyboard.c
syborg_pointer.c
syborg_rtc.c
syborg_serial.c
syborg_timer.c
syborg_virtio.c
sysbus.c
sysbus.h
tc6393xb.c
tc6393xb_template.h
tc58128.c
tcx.c
tmp105.c tmp105: update the register in post_load where it needs updating. 2010-05-15 14:31:27 +02:00
tosa.c arm: fix arm kernel boot for non zero start addr 2010-05-31 19:40:41 +02:00
tsc210x.c
tsc2005.c
tusb6010.c
twl92230.c
unin_pci.c
usb-bt.c
usb-bus.c
usb-hid.c un-register kbd driver in case of USB kbd unplug. 2010-06-14 15:46:28 -05:00
usb-hub.c
usb-msd.c block: Catch attempt to attach multiple devices to a blockdev 2010-07-02 13:18:02 +02:00
usb-musb.c
usb-net.c
usb-ohci.c OHCI address decoding fix 2010-06-13 23:37:31 +01:00
usb-ohci.h
usb-serial.c usb-serial: Fail instead of crash when chardev is missing 2010-06-30 20:35:46 +02:00
usb-uhci.c usb-uhci: fix commit 8e65b7c049 for vmstate 2010-06-30 20:43:54 +02:00
usb-uhci.h MIPS: Initial support of VIA USB controller used by fulong mini pc 2010-06-29 23:07:52 +02:00
usb-wacom.c
usb.c
usb.h
versatile_pci.c
versatilepb.c
vga-isa-mm.c vga-isa-mm: remove one #ifdef CONFIG_BOCHS_VBE. 2010-06-10 16:48:32 +00:00
vga-isa.c
vga-pci.c
vga.c Fix %lld or %llx printf format use 2010-05-22 08:02:12 +00:00
vga_int.h
vga_template.h
vhost.c
vhost.h
vhost_net.c vhost_net.c: v2 Fix build failure introduced by 0bfcd599e3 2010-05-27 18:57:31 +00:00
vhost_net.h
virtio-9p-debug.c Flush the debug message out to the log file. 2010-06-22 15:15:30 -05:00
virtio-9p-debug.h virtio-9p: pdu processing support. 2010-05-03 12:17:37 -05:00
virtio-9p-local.c virtio-9p: Implement Security model for mksock using mknod. 2010-06-22 15:15:51 -05:00
virtio-9p.c virtio-9p: Implement Security model for mksock using mknod. 2010-06-22 15:15:51 -05:00
virtio-9p.h virtio-9p: Rearrange fileop structures 2010-06-22 15:15:30 -05:00
virtio-balloon.c
virtio-balloon.h
virtio-blk.c block: Fix virtual media change for if=none 2010-07-02 13:18:02 +02:00
virtio-blk.h
virtio-console.c
virtio-net.c virtio-net: truncating packet 2010-06-07 17:23:04 +03:00
virtio-net.h Virtio-net: Replace the hardcode 6 with defined ETN_ALEN 2010-05-24 15:18:23 -05:00
virtio-pci.c qdev: Decouple qdev_prop_drive from DriveInfo 2010-07-02 13:18:02 +02:00
virtio-serial-bus.c virtio-serial: Simplify virtio_serial_load() 2010-06-30 20:38:58 +02:00
virtio-serial.h Move stdbool.h 2010-06-13 19:00:50 +01:00
virtio.c virtio: invoke set_features on load 2010-05-12 18:07:54 +03:00
virtio.h virtio-9p: Add a virtio 9p device to qemu 2010-05-03 12:17:37 -05:00
vmmouse.c Compile pckbd only once 2010-05-22 07:59:01 +00:00
vmport.c
vmware_vga.c use new cursor struct + functions for vmware vga and sdl. 2010-05-24 15:18:24 -05:00
vmware_vga.h
vt82c686.c Initial support of vt82686b south bridge used by fulong mini pc 2010-06-29 23:07:51 +02:00
vt82c686.h Initial support of vt82686b south bridge used by fulong mini pc 2010-06-29 23:07:51 +02:00
watchdog.c
watchdog.h
wdt_i6300esb.c
wdt_ib700.c
wm8750.c
xen.h
xen_backend.c
xen_backend.h xen: Fix build error due to missing include 2010-06-15 10:59:20 +02:00
xen_blkif.h
xen_common.h
xen_console.c
xen_devconfig.c
xen_disk.c
xen_domainbuild.c
xen_domainbuild.h
xen_machine_pv.c
xen_nic.c
xenfb.c Move stdbool.h 2010-06-13 19:00:50 +01:00
xilinx.h
xilinx_ethlite.c
xilinx_intc.c
xilinx_timer.c
xilinx_uartlite.c
zaurus.c