Statistics
| Branch: | Revision:

root / hw @ a46007a0

# Date Author Comment
e9b43ea3 09/09/2009 10:55 pm Juan Quintela

vga: change tabs to spaces

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

957c9db5 09/09/2009 10:55 pm Juan Quintela

cirrus_vga: make cirrus_read_hidden_dac() return its result

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a46007a0 09/09/2009 10:55 pm Juan Quintela

vga and cirrus_vga: substitute switch for equivalent assigntment

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

25a18cbd 09/09/2009 10:55 pm Juan Quintela

vga and cirrus_vga: create vga_ioport_invalid() and use it everywhere

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

b6343073 09/09/2009 10:55 pm Juan Quintela

cirrus_vga: Add a VGACommonState local var to cirrus_vga_ioport_{read, write}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

0d65ddc3 09/09/2009 10:55 pm Juan Quintela

vga: split vga_{load, save} into pci and common parts

Once there adjust VGAState <-> VGACommonState
Export vga_common_save/vga_common_load (nreeded by wmvare_vga
Remove vga.pci_dev field, it is not needed anymore

Signed-off-by: Juan Quintela <>...

47d37dd9 09/09/2009 10:55 pm Juan Quintela

vga: split pci bits into vga-pci.c

Adjust all the VGAState in VGACommonState
Compile vga-pci.o only for targets that use it.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

76323919 09/09/2009 10:55 pm Juan Quintela

vga: split isa bits inco vga-isa.c

Adjust all the VGAState in VGACommonState
Compile vga-isa.o in the targets that use it

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

f97e36b9 09/09/2009 10:55 pm Juan Quintela

vga: export vga_mem_{read,write}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

79b97bf2 09/09/2009 10:55 pm Juan Quintela

vga: split vga-isa-mm.o

It is only used in mips softmmu, compile only there.
it_shift field was only used for vga_isa_mm, move it from VGACommonState
to ISAVGAMMstate.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1a5ab757 09/09/2009 10:55 pm Juan Quintela

vga: remove useless cast from void *

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

0ceac75b 09/09/2009 10:55 pm Juan Quintela

cirrus_vga: prefix vga_ioport_{read, write} with cirrus

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

43bf782b 09/09/2009 10:55 pm Juan Quintela

vga: export vga_ioport_{read,write}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1e43a8e4 09/06/2009 07:34 pm Blue Swirl

Sparc64: use ISA bus for i8042

Signed-off-by: Blue Swirl <>

5bc89ef6 09/06/2009 07:32 pm Blue Swirl

Sparc64: remove unused variables

Signed-off-by: Blue Swirl <>

82663ee2 09/06/2009 07:31 pm Blue Swirl

Fix indentation

Signed-off-by: Blue Swirl <>

f2818f22 09/05/2009 09:24 am Artyom Tarasenko

esp: handle "select without attention"

Up to now "select without attention" was handled the same way as
"select with attention". According to

http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR53C9X.txt

select without ATN sends the CDB (Command Descriptor Block) directly,...

ae027ad3 09/04/2009 05:37 pm Stefan Weil

mips malta: Fix fdc regression and use qdev for i8042 setup

8baf73adf664e79eae201c3f618078a220a661d9 (qdev/isa: convert fdc)
breaks MIPS Malta:

Tried to create isa device isa-fdc with no isa bus present

Fix this by creating an isa bus for piix4.
This change also requires some more qdev related changes...

d54908a5 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_1 to use QDict

This commit ports command handlers that receive one argument to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f18c16de 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_2 to use QDict

This commit ports command handlers that receive two arguments to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

1d4daa91 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_3 to use QDict

This commit ports command handlers that receive three arguments to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

38183186 09/04/2009 05:37 pm Luiz Capitulino

Add wrappers to functions used by the Monitor

Some functions exported to be used by the Monitor as command
handlers are also called in other places as regular functions.

When those functions got ported to use the Monitor dictionary
to pass argments, the callers will have to setup a dictionary...

f455e98c 09/04/2009 05:37 pm Gerd Hoffmann

ide: pass down DriveInfo instead of BlockDriverState

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

9cdd03a7 09/04/2009 05:37 pm Gerd Hoffmann

ide: move cmd+irq from IDEState to IDEBus.

These variables are per bus, not per drive. Lets move them and
cleanup things a bit. And fix the cmd migration bug for real.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

d1f171bd 09/04/2009 05:37 pm Juan Quintela

piix3: use new vmstate infrastructure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

b84a5c6f 09/04/2009 05:37 pm Amit Shah

Remove typedef for bool from eepro100.c

eepro100.c shouldn't have the need to do this in its local header file.

And I recently started getting this:

$ make -j3
...
CC x86_64-softmmu/eepro100.o
/home/amit/src/qemu/hw/eepro100.c:112: error: two or more data types...

8372615d 09/04/2009 05:37 pm Juan Quintela

pci_irq_levels[] belong to PIIX3State

With previous cleanups, now it is possible to put it where it belongs

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

da64182c 09/04/2009 05:37 pm Juan Quintela

Update SaveVM versions

Now that we have all fields belonging to a PCIDevice, save each field
on the device that it belongs. This means moving pci_irq_levels
from PCII440FXState to PIIX3State.
Old formats are loaded, but we only save on the new saner format....

0c7d19e5 09/04/2009 05:37 pm Juan Quintela

i440fx: use new vmstate infrastructure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

fd37d881 09/04/2009 05:37 pm Juan Quintela

Create PIIX3State instead of using PCIDevice for PIIX3

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

bd7dce87 09/04/2009 05:37 pm Juan Quintela

Introduce PIIX3IrqState for piix3 irq's state

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

85a750ca 09/04/2009 05:37 pm Juan Quintela

Fold piix3_init() intto i440fx_init

i440fx_init will now work properly if we don't setup piix3

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

fd83e9b9 09/04/2009 05:37 pm Juan Quintela

We can add piix3_dev now to PIIX3IrqState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

867a0d7d 09/04/2009 05:37 pm Juan Quintela

Save irq_state into PCII440FXState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

0a3bacf3 09/04/2009 05:37 pm Juan Quintela

Use PCII440FXState instead of generic PCIDevice

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6c009fa4 09/04/2009 05:37 pm Juan Quintela

Move smm_enabled and isa_memory_mappings to PCII440FXState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

5d4e84c8 09/04/2009 05:37 pm Juan Quintela

We want the argument pass to set_irq to be opaque

piix_pci want to pass more things that the pic

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a4bf1f3e 09/04/2009 05:37 pm Juan Quintela

piix4 don't use pci_irq_levels at all

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

823e675a 09/04/2009 05:37 pm Juan Quintela

Split piix4 support from piix_pci.c

Now mips_malta uses piix4 and pc's use piix_pci definitions

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

15dc1128 09/04/2009 05:37 pm Juan Quintela

low_set_irq is not used anywhere

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

9902571d 08/31/2009 10:30 pm Blue Swirl

Sparc32: port sun4c interrupt controller to VMState design

Signed-off-by: Blue Swirl <>

f4b19cd0 08/31/2009 10:30 pm Blue Swirl

Sparc32: port timers to VMState design

Signed-off-by: Blue Swirl <>

9ebec28b 08/31/2009 10:30 pm Blue Swirl

Sparc32: timer field is never NULL

Signed-off-by: Blue Swirl <>

55a6e51f 08/31/2009 10:30 pm Blue Swirl

Add VMState support for ptimers

Signed-off-by: Blue Swirl <>

4e2a68c1 08/31/2009 08:12 pm Artyom Tarasenko

esp (sparc32) Extra scsi data.

ESP: Message Accepted (12)
ESP: Transfer status (sense=0)
ESP: read reg5: 0x20
ESP: read reg4: 0x07
ESP: read reg7: 0x02
Extra scsi data. Fatal error.

It looks like "Message Accepted" shouldn't write a response. At least...

757506d2 08/29/2009 04:37 pm Blue Swirl

Fix gcc 3 warning: comparison is always true due to limited range of data type

Signed-off-by: Blue Swirl <>

d37adb09 08/29/2009 04:37 pm Blue Swirl

Sparc32: port Slavio misc devices to VMState design

Signed-off-by: Blue Swirl <>

c21011a9 08/29/2009 04:36 pm Blue Swirl

Sparc32: port ECC memory controller to VMState design

Signed-off-by: Blue Swirl <>

db3c9e08 08/28/2009 11:46 pm Blue Swirl

Sparc32: port IOMMU to VMState design

Signed-off-by: Blue Swirl <>

75c497dc 08/28/2009 11:46 pm Blue Swirl

Sparc32: port DMA controller to VMState design

Signed-off-by: Blue Swirl <>

c0c41a4b 08/28/2009 11:43 pm Blue Swirl

Sparc32: port TCX to VMState design

Signed-off-by: Blue Swirl <>

c9e95029 08/28/2009 11:22 pm Blue Swirl

Sparc32: port interrupt controller to VMState design

Signed-off-by: Blue Swirl <>

73538c31 08/28/2009 10:12 pm Blue Swirl

Suppress kraxelisms

Signed-off-by: Blue Swirl <>

1387fe4a 08/28/2009 10:04 pm Blue Swirl

Fix Sparc64 breakage: add dummy ISA irqs

Signed-off-by: Blue Swirl <>

bdae2298 08/28/2009 09:30 pm Blue Swirl

Fix merge of 59f2a78793b6d17634f39646d604e84af51e0919

Signed-off-by: Blue Swirl <>

f8274971 08/28/2009 01:34 pm malc

Fix sb16 breakage due to unassigned s->irq

Signed-off-by: malc <>

660cfb6b 08/28/2009 01:34 pm malc

Fix formatting

Signed-off-by: malc <>

7d9e52bd 08/28/2009 04:47 am Juan Quintela

e1000 cleanup

Remove un needed casts from void *.
Use DO_UPCAST() instead of blind casts

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

2b7a050a 08/28/2009 04:47 am Juan Quintela

We need PCINE2000State for save/load functions

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a60380a5 08/28/2009 04:47 am Juan Quintela

Add pci_ne2000_{save/load} functions, then remove pci_dev NE2000State field

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

e05587e8 08/28/2009 04:47 am Juan Quintela

cirrus_vga: remove pointless cast from void *

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

f3566bf9 08/28/2009 04:47 am Juan Quintela

cirrus_vga: Change casts to DO_UPCAST() for PCICirrusVGAState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

4f335feb 08/28/2009 04:47 am Juan Quintela

Add pci_cirrus_vga_{save/load} functions, then remove vga.pci_dev use

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1f235a73 08/28/2009 04:47 am Juan Quintela

pcnet: Change casts to DO_UPCAST() for PCIPCNetState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

9fdab57b 08/28/2009 04:47 am Juan Quintela

pcnet: remove useless casts This are casts to the very type of the function

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

0abaa7c1 08/28/2009 04:47 am Juan Quintela

pcnet: Add pci_pcnet_{save/load} functions, then remove PCNetState pci_dev field

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

eb40f984 08/28/2009 04:46 am Juan Quintela

lsi53c895a: remove pointless cast from void *

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

dc5d0b9a 08/28/2009 04:46 am Juan Quintela

lsi53c895a: use DO_UPCAST to cast from PCIDevice

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

f305261f 08/28/2009 04:46 am Juan Quintela

lsi53c895a: rename PCIDevice field from pci_dev to dev (consistence)

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

63124a0d 08/28/2009 04:46 am Juan Quintela

lsi53c895a: LSIState is a DeviceHost

Go figure.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

03a3e7ba 08/28/2009 04:46 am Juan Quintela

Introduce vga_common_reset() to be able to typcheck vga_reset()

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

2191dffc 08/28/2009 04:46 am Juan Quintela

vga: Rename vga_state -> vga

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a4a2f59c 08/28/2009 04:46 am Juan Quintela

Everything outside of vga.c should use VGACommonState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

505da599 08/28/2009 04:46 am Juan Quintela

usb-ohci: Change casts to DO_UPCAST() for OHCIPCIState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a10fcec6 08/28/2009 04:46 am Juan Quintela

ne2000: remove casts from void *

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

94a943ef 08/28/2009 04:46 am Juan Quintela

ne2000: pci_dev has this very value with the right type

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

377a7f06 08/28/2009 04:46 am Juan Quintela

ne2000: Change casts to DO_UPCAST() for PCINE2000State

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

382f0743 08/28/2009 04:46 am Gerd Hoffmann

switch balloon initialization to -device.

With that patch applied "-balloon virtio,args" becomes a shortcut for
"-device virtio-balloon-pci,args".

Side effects:
- ballon device gains support for id=<tag>.
- ballon device is off by default now.
- initialization order changes, which may in different pci slot...

d986bd50 08/28/2009 04:46 am Juan Quintela

eepro100: convert casts to DO_UPCAST()

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

769cf7a5 08/28/2009 04:46 am Juan Quintela

eepro100: cast a void * makes no sense

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

273a2142 08/28/2009 04:46 am Juan Quintela

eepro100: Remove unused indirection of PCIDevice

Once there, there is no way that we don't have a PCI Device at save/load time. Remove the check

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

efd6dd45 08/28/2009 04:46 am Juan Quintela

rtl8139: Remove unneeded double indirection of PCIRTL8139State

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6597ebbb 08/28/2009 04:46 am Juan Quintela

rtl8139: remove pointless cast from void *

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

59f2a787 08/28/2009 04:46 am Gerd Hoffmann

ide: move code to hw/ide/

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

cebbe6d4 08/28/2009 04:43 am Gerd Hoffmann

ide: add save/restore support for isa

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

2bcbf7e4 08/28/2009 04:43 am Gerd Hoffmann

ide: add save/restore support for mmio

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

84fc5589 08/28/2009 04:43 am Gerd Hoffmann

virtio-pci error logging

Use the new qemu_error() function for virtio-blk-pci.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

286c2321 08/28/2009 04:43 am Gerd Hoffmann

qdev error logging

Use the new qemu_error() function in qdev.c

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

bcbdc4d3 08/28/2009 04:43 am Gerd Hoffmann

ide: add IDEBus struct, cleanups

The current IDE code uses an array of two IDEState structs to maintain
the IDE bus. This patch adds a IDEBus to be used instead and does a
bunch of cleanups:

  • move ide bus state from IDEState to IDEBus.
  • drop a bunch of ugly pointer arithmetics to figure the active...
356721ae 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-internal.h

move lots of IDE defines to the new file.
also make a bunch of functions non-static
and add declaration for them. Needed by
the following patches of this series.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

ec82026c 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-isa.c

create ide-isa.c and place isa bus support there.
only build ide-isa support for platforms using it.
also create ide.h header file.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

977e1244 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-pci.c

create ide-pci.c and place pci bus support there.
only build ide-pci support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

Fix build (merge with isa mmio split)

b8842209 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-macio.c

create ide-macio.c and place macio support there.
only build ide-macio support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

3d2bf4a1 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-mmio.c

create ide-mmio.c and place mmio support there.
only build ide-mmio support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

3f221c8d 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-microdrive.c

create ide-microdrive.c and place microdrive support there.
only build ide-microdrive support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

81a322d4 08/28/2009 04:43 am Gerd Hoffmann

qdev: add return value to init() callbacks.

Sorry folks, but it has to be. One more of these invasive qdev patches.

We have a serious design bug in the qdev interface: device init
callbacks can't signal failure because the init() callback has no
return value. This patch fixes it....

4c0960c0 08/28/2009 04:35 am Avi Kivity

kvm: Simplify cpu_synchronize_state()

cpu_synchronize_state() is a little unreadable since the 'modified'
argument isn't self-explanatory. Simplify it by making it always
synchronize the kernel state into qemu, and automatically flush the
registers back to the kernel if they've been synchronized on this...

d0e7605e 08/28/2009 04:35 am Vijay Kumar

Check block driver read error in pflash_cfi0x

If a flash file of size smaller than the flash size is specified in
the -pflash option, the block driver returns error. But the
pflash_cfi0x ignores the error. This results in a flash content of all
zeroes. And the simulation aborts while executing code....

24e6f355 08/28/2009 04:35 am Reimar Döffinger

fix stack buffer overflows in eepro100.c tx

Hello,
the real world issue is that the hardware allows sends up to 2600 bytes,
and for some reason FreeBSD sometimes sends frames larger than the
ethernet frame size (102+1460 is the maximum I have seen so far),...

09aaa160 08/28/2009 04:35 am Markus Armbruster

qdev: convert watchdogs

-watchdog NAME is now equivalent to -device NAME, except it treats
option argument '?' specially, and supports only one watchdog.

A side effect is that a device created with -watchdog may now receive
a different PCI address.

i6300esb is now available on any machine with a PCI bus, not just PCs....