Statistics
| Branch: | Revision:

root / hw @ 313feaab

# Date Author Comment
313feaab 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: add CharDriverState property.

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

09c0848e 08/10/2009 09:05 pm Beth Kon

Add/Fix command-line checks for smbios options v2

- One type 4 table is required per cpu. Add a check for this.
- Fix check for smbios file.

Changes from v1:
- static designation of smbios_validate_table, and remove whitespace

Signed-off-by: Beth Kon <>...

93c8cfd9 08/10/2009 09:05 pm Gleb Natapov

make windows notice media change

Windows seems to be very stupid about cdrom media change. It polls
cdrom status and if status goes ready->media not present->ready
it assumes that media was changed. If "media not present" step doesn't
happen even if "medium may have changed" was seen it assumes media...

cf12b95b 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: macros for creating typechecked properties.

There are DEFINE_PROP_$TYPE macros for
each property type. These macros link the qdev_prop_$name struct to the
type used by that property. typeof(struct->field) is verifyed to be the...

0bd8246b 08/10/2009 09:05 pm Stefano Stabellini

vga: do not resize the screen on hw_invalidate

Hi all,
currently vga always resizes the screen when vga_hw_invalidate is called
while this is not required and all the other graphic emulators don't.
This patch fixes it, making vga invalidate behaviour consistent with the...

8baf73ad 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: convert fdc.

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

b3999638 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: make pc use qdev for i8042 setup.

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

d176c495 08/10/2009 09:05 pm Gerd Hoffmann

qdev-ify virtio-blk.

First user of the new drive property. With this patch applied host
and guest config can be specified separately, like this:

-drive if=none,id=disk1,file=/path/to/disk.img
-device virtio-blk-pci,drive=disk1

You can set any property for virtio-blk-pci now. You can set the pci...

f915a115 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: add isa bus support to qdev.

Pretty simple and straigt forward.
IRQs modeled simliar to sysbus.

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

da85ccfb 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: add qdev support to i8042 (aka ps/2 kbd+mouse).

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

f75247f1 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: make the piix isa bridge register an isa bus.

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

f31d07d1 08/10/2009 09:05 pm Gerd Hoffmann

QemuOpts: switch over -device.

Make -device switch use the QemuOpts framework.
Everything should continue to work like it did before.

New: "-set device.$id.$property=$value" works.

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

14b41872 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: add drive property.

Adds a (host) drive property, intended to be used by virtual disk
backend drivers.

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

bb87ece5 08/10/2009 09:05 pm Christoph Egger

tolower -> qemu_tolower

Use qemu_tolower() instead of tolower().
Fixes warning on NetBSD.

Signed-off-by: Christoph Egger <>
Signed-off-by: Anthony Liguori <>
Message-Id:

d9c32310 08/09/2009 11:42 am Blue Swirl

Use qemu_irq for system_powerdown

Signed-off-by: Blue Swirl <>

b2b6f6ec 08/09/2009 10:27 am Blue Swirl

Sparc32: use qemu_irq for system_powerdown

Signed-off-by: Blue Swirl <>

74ff8d90 08/09/2009 12:43 am Blue Swirl

Sparc32: move sparc32_dma init to sun4m.c

Also connect ESP and Lance reset signals to DMA.

Signed-off-by: Blue Swirl <>

d95d8f1c 08/09/2009 12:04 am Blue Swirl

Sparc32: remove VRAM and NVRAM sizes from hwdef

Signed-off-by: Blue Swirl <>

c533e0b3 08/08/2009 11:55 pm Blue Swirl

Sparc32: remove IRQ numbers from hwdef

Signed-off-by: Blue Swirl <>

68556e2e 08/08/2009 11:36 pm Blue Swirl

Sparc32: move intbit_to_level table back to slavio_intctl.c

Signed-off-by: Blue Swirl <>

4b48bf05 08/08/2009 11:24 pm Blue Swirl

Sparc32: move device instantiation to sun4m.c

Signed-off-by: Blue Swirl <>

7204ff9c 08/08/2009 11:08 pm Blue Swirl

Sparc32: Refactor slavio timer

Signed-off-by: Blue Swirl <>

10696b4f 08/08/2009 01:47 pm Blue Swirl

ppc_newworld: configure screen size from QEMU command line options

Use the FW_CFG interface to send user requested screen size and depth to
OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld.

Signed-off-by: Blue Swirl <>

7589690c 08/08/2009 01:44 pm Blue Swirl

Sparc64: configure screen size from QEMU command line options

Use the FW_CFG interface to send user requested screen size and depth to
OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld.

Signed-off-by: Blue Swirl <>

7f1aec5f 08/08/2009 01:19 pm Laurent Vivier

ppc_oldworld: configure screen size from qemu command line options

This patch uses the FW_CFG interface to send user requested screen size
and depth to openbios.

Signed-off-by: Laurent Vivier <>
Signed-off-by: Blue Swirl <>

660f11be 08/01/2009 12:16 am Blue Swirl

Fix Sparse warnings: "Using plain integer as NULL pointer"

Signed-off-by: Blue Swirl <>

2e29bd04 07/31/2009 11:23 pm Blue Swirl

PPC: convert Uni-north to qdev: also fixes Mac99 machine crash

Signed-off-by: Blue Swirl <>

426f17bb 07/31/2009 11:23 pm Blue Swirl

PPC: convert Grackle to qdev

Signed-off-by: Blue Swirl <>

2814df28 07/31/2009 10:26 am Blue Swirl

esp: fix interrupt register read

Read of interrupt register should clear it and also sequence step and status.

Signed-off-by: Blue Swirl <>

bfdb3629 07/31/2009 09:10 am Blue Swirl

Fix SDL zooming with pl110 (cf. d3ffcafe25b5966b351ea6100160c2156688f22f)

Signed-off-by: Blue Swirl <>

b1332393 07/30/2009 05:50 pm Bill Paul

e1000.c doesn't properly emulate EERD and ICS registers

Once again, the emulation of the EERD and ICS registers in e1000.c is
incorrect. Nobody has noticed this before because none of the Intel-written
e1000 drivers use these registers, and all of the independently written open...

85c2c735 07/30/2009 05:50 pm Mark McLoughlin

Remove the virtio-{blk, console}-pci-0-10 device types

These are now unused.

However, perhaps the idea is that when we add -device, they will be
useful? In that case, we should add virtio-net-pci-0-10 too.

Signed-off-by: Mark McLoughlin <>...

213189ab 07/30/2009 05:50 pm Markus Armbruster

Fix VM state change handlers running out of order

When a VM state change handler changes VM state, other VM state change
handlers can see the state transitions out of order.

bmdma_map(), scsi_disk_init() and virtio_blk_init() install VM state
change handlers to restart DMA. These handlers can vm_stop() by...

1b524b04 07/30/2009 05:50 pm Gerd Hoffmann

qdev: factor out qdev_print_devinfo.

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

9316d30f 07/30/2009 05:50 pm Gerd Hoffmann

qdev/core: add monitor command to list all drivers

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

a414c306 07/30/2009 05:50 pm Gerd Hoffmann

qdev: convert all vga devices.

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

caea79a9 07/30/2009 05:50 pm Mark McLoughlin

Remove the pc-0-10 machine type

We have the pc-0.10 machine type now which does exactly the same
thing.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

e2542fe2 07/27/2009 10:09 pm Juan Quintela

rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN

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

3f0855b1 07/27/2009 10:09 pm Juan Quintela

Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile

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

84f15818 07/27/2009 10:09 pm Juan Quintela

Refactor code to remove one #ifdef CONFIG_FDT

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

6be68d7e 07/27/2009 10:09 pm Jes Sorensen

Introduce -smp , maxcpus= flag to specify maximum number of CPUS.

Follow on patch will use it to determine the size of the MADT and
other BIOS tables.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

3174ecd1 07/27/2009 10:09 pm Michael S. Tsirkin

qemu: msix nit: clear msix_entries_nr on error

I don't think it's critical to do this, but it's
best to keep uninit and error recovery consistent.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

751c6a17 07/27/2009 10:08 pm Gerd Hoffmann

kill drives_table

First step cleaning up the drives handling. This one does nothing but
removing drives_table[], still it became seriously big.

drive_get_index() is gone and is replaced by drives_get() which hands
out DriveInfo pointers instead of a table index. This needs adaption in...

3b0ba927 07/27/2009 10:08 pm Gerd Hoffmann

kill drives_opt

cleanup pretty simliar to the drives_table removal patch:
- drop the table and make a linked list out of it.
- pass around struct pointers instead of table indices.

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

9dfd7c7a 07/27/2009 10:08 pm Gerd Hoffmann

switch -drive to QemuOpts.

Demo QemuOpts in action ;)

Implementing a alternative way to specify the filename should be
just a few lines of code now once we decided how the cmd line syntax
should look like.

Signed-off-by: Gerd Hoffmann <>...

ce536cfd 07/27/2009 10:08 pm Beth Kon

HPET fixes for reg writes

This patch addresses the problems found by Andriy Gapon:

- The code was incorrectly overwriting the high order 32
bits of the timer and hpet config registers. This didn't show up
in testing because linux and windows use hpet in legacy mode,...

8a14daa5 07/27/2009 10:08 pm Gerd Hoffmann

qdev/pci: hook up i440fx.

Hook i44fx pcihost into sysbus.
Convert Host bridge and ISA bridge pci devices to qdev.
Tag as no-user.

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

05cb5fe4 07/27/2009 04:39 pm Gerd Hoffmann

qdev/prop: add pci devfn property

So we can parse "$slot.$fn" strings into devfn numbers.

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

a6307b08 07/27/2009 04:39 pm Gerd Hoffmann

qdev/pci: use qdev_prop_pci_devfn

Put the new property into use.

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

d271de9f 07/27/2009 04:39 pm Gerd Hoffmann

qdev: create default bus names.

Create a default bus name if none is passed to qbus_create().

If the parent device has DeviceState->id set it will be used to create
the bus name,. i.e. -device lsi,id=foo will give you a scsi bus named
"foo.0".

If there is no id BusInfo->name (lowercased) will be used instead, i.e....

8ffb1bcf 07/27/2009 04:39 pm Gerd Hoffmann

qdev: bus walker + qdev_device_add()

This patch implements a parser and qdev tree walker for bus paths and
adds qdev_device_add on top of this.

A bus path can be:
(1) full path, i.e. /i440FX-pcihost/pci.0/lsi/scsi.0
(2) bus name, i.e. "scsi.0". Best used together with id= to make...

3f6599e6 07/27/2009 04:39 pm Mark McLoughlin

Add machine type aliases

Add an 'alias' field to QEMUMachine and display it in the output of
'qemu -M ?' with an '(aliased to foo)' suffix.

Aliases can change targets in newer versions of qemu, so management tools
may choose canonicalize machine types to ensure that if a user chooses an...

95747581 07/27/2009 04:39 pm Mark McLoughlin

Add a pc-0.11 machine type and make the pc type an alias

The pc-0.11 type allows users of qemu-0.11 to use a machine type which
they know will remain compatible when the upgrade to qemu-0.12.

Management tools may choose to canonicalize the 'pc' machine type to...

33b544ba 07/26/2009 09:31 am Alexander Graf

Give the kernel more room

My self-built PPC kernel doesn't fit in the region reserved for
the kernel, so I can't use -kernel with it.

Let's just extend the region.

Signed-off-by: Alexander Graf <>

a7b022e0 07/26/2009 09:31 am Alexander Graf

PPC: Round VGA BIOS size to page boundary

When giving KVM a slot of a size not on page boundary, it chokes. So let's
just round up the VGA BIOS size so nobody complains anymore and we don't need
to implement sub-page slots.

Required for booting a PPC guest in KVM....

a61d1f67 07/22/2009 06:58 pm Glauber Costa

notify io_thread at the end of rx handling

This is a backport from qemu-kvm. Just instead of using kvm's specific
notification mechanism, we use qemu_notify_event()

Signed-off-by: Glauber Costa <>
Signed-off-by: Anthony Liguori <>

777aec7a 07/22/2009 06:58 pm Nolan

Add save/restore support to the LSI logic SCSI device model.

This patch requires "Handle BH's queued by AIO completions in
qemu_aio_flush()" to work reliably. The combination of those two
patches survived 300+ migrations with heavy IO load running in the...

e32cba29 07/21/2009 10:57 pm Blue Swirl

Sparc32: convert Sun4c interrupt controller to qdev

Signed-off-by: Blue Swirl <>

7fc06735 07/21/2009 10:25 pm Blue Swirl

Sparc32: convert SBI to qdev

Signed-off-by: Blue Swirl <>

04843626 07/21/2009 02:20 pm Blue Swirl

Sparc32/64: use 64 bit type for memory size

Signed-off-by: Blue Swirl <>

5a053d1f 07/21/2009 02:10 pm Blue Swirl

qdev: add 64 bit type

Signed-off-by: Blue Swirl <>

636aa70a 07/21/2009 01:49 pm Blue Swirl

Sparc64: refactor kernel init

Signed-off-by: Blue Swirl <>

7b833f5b 07/21/2009 01:46 pm Blue Swirl

Sparc64: refactor CPU init

Signed-off-by: Blue Swirl <>

bda42033 07/21/2009 01:04 pm Blue Swirl

Sparc64: convert memory to qdev

Signed-off-by: Blue Swirl <>

1baffa46 07/21/2009 12:58 pm Blue Swirl

Sparc64: convert boot prom to qdev

Signed-off-by: Blue Swirl <>

daa65491 07/21/2009 11:53 am Blue Swirl

Sparc32: Fix lance

Signed-off-by: Blue Swirl <>

72f44c8c 07/21/2009 11:53 am Blue Swirl

Sparc64: convert APB to qdev

Thanks to Igor Kovalenko for a bugfix.

Signed-off-by: Blue Swirl <>

0bf9e31a 07/20/2009 08:19 pm Blue Swirl

Fix most warnings (errors with -Werror) when debugging is enabled

I used the following command to enable debugging:
perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * /* *//*

Signed-off-by: Blue Swirl <>

c0a2a096 07/20/2009 01:37 pm Blue Swirl

Fix build with DEBUG_PCI in pci_host.h enabled

Signed-off-by: Blue Swirl <>

12a71a02 07/20/2009 09:56 am Blue Swirl

Clean up fdc qdev conversion

Signed-off-by: Blue Swirl <>

88e150a5 07/17/2009 08:48 pm Christoph Egger

isxdigit -> qemu_isxdigit

Hi!

Attached patch uses qemu_isxdigit() instead of isxdigit().
Fixes build warning on NetBSD.

Signed-off-by: Christoph Egger <>

--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH...

a9ff9df1 07/17/2009 02:18 pm Blue Swirl

Suppress a Sparse warning

Move the export to a file used by both qdev.c and sysbus.c.

Signed-off-by: Blue Swirl <>

109819e0 07/17/2009 02:01 pm Blue Swirl

Sparc32: use hex for version numbers

0x10000000 looks better than 268435456.

Signed-off-by: Blue Swirl <>

e2106fe6 07/17/2009 02:01 pm Blue Swirl

Sparc32: fix escc devices broken by ee6847d19be16c789b8bd4e553b7cd6701ba1245

The logic of Zilog makes channel B the first device and channel A the
second one.

Signed-off-by: Blue Swirl <>

e8133762 07/17/2009 02:01 pm Blue Swirl

Sparc32: fix fdc io_base

On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is not
appropriate type for io_base.

Signed-off-by: Blue Swirl <>

f6e097e7 07/17/2009 02:01 pm Blue Swirl

Fix sparc-softmmu breakage by ee6847d19be16c789b8bd4e553b7cd6701ba1245

Move the qdev_init(dev); call after the setting of d->size.
Thanks to Filip Navara.

Signed-off-by: Blue Swirl <>

356c7ff4 07/17/2009 01:28 am Naphtali Sprei

fix for bad macaddr of e1000 in Windows 2003 server with original MS driver

The sequence of reading from eeprom is "offset by one" moved because of a false
detection of a clock cycle after an eeprom reset. Keeping the last clock value
after a reset keeps it in sync....

ccb63de3 07/17/2009 01:28 am Gerd Hoffmann

qdev: add user-specified identifier to devices.

Add id field to DeviceState. Make "info qtree" print it.

This helps users and management apps identifying devices in monitor
output, which is especially useful with otherwise identical devices
such as two virtio disks....

ab73ff29 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-blk-pci 0.10 compatibility.

Add class property to virtio-blk-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

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

eb54b6dc 07/17/2009 01:28 am Gerd Hoffmann

qdev: add id= support for pci nics.

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

d6beee99 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-console-pci 0.10 compatibility.

Add class property to virtio-console-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

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

8ad12514 07/17/2009 01:28 am Gerd Hoffmann

qdev: print device id in "info pci".

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

a1e0fea5 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-net-pci 0.10 compatibility.

Add vectors property, allowing to turn off msi by setting vectors=0.
Add compat property to pc-0.10 disabling msi.

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

f3519986 07/17/2009 01:28 am Gerd Hoffmann

qdev: es1370+ac97 description

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

81ebb98b 07/17/2009 01:28 am Gerd Hoffmann

qdev: factor out driver search to qdev_find_info()

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

b6b61144 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: compat property infrastructure.

This add support for switching devices into a compatibility mode
using device properties. Machine types can have a list of properties
for specific devices attached to allow the easy creation of machine
types compatible to older qemu versions....

3320e56e 07/17/2009 01:28 am Gerd Hoffmann

qdev: add no_user, alias and desc

no_user: prevent users from adding certain devices.
desc: description of the device.
alias: to allow user friendly shortcuts on the command line, i.e.
-device usbmouse instead of -device "QEMU USB Mouse" or
-device lsi instead of -device lsi53c895a...

96cc1810 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: add pc-0.10 machine type.

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

ef74679a 07/17/2009 01:28 am Dinesh Subhraveti

Initialize PS2 keyboard / mouse state on reset

Currently only common PS2 state is initialized, leaving keyboard and
mouse specific state to contain stale values.

Signed-off-by: Dinesh Subhraveti <>
Signed-off-by: Anthony Liguori <>

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

15239b2e 07/17/2009 01:28 am Gerd Hoffmann

cleanup: drop unused struct elements from VirtIOPCIProxy.

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

bf4e5d92 07/17/2009 01:28 am Pascal Terjan

Handle vga= in -append

Here is a patch I had sent twice to the list 2 years ago.
Hopefuly this time someone will be interested

It adds support for passing vga mode to linux kernel through
vga= option in -append

Signed-off-by: Pascal Terjan <>...

7d93b1fa 07/17/2009 01:28 am Beth Kon

Reset HPET config register on hpet_reset

Without this, after system reset, hpet does not detect transition from
non-legacy to legacy mode.

Signed-off-by: Beth Kon <>
Signed-off-by: Anthony Liguori <>

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

a1961a4b 07/16/2009 05:15 pm Blue Swirl

Sparc32: convert slavio interrupt controller to qdev

Also increase QDEV_MAX_IRQ.

Signed-off-by: Blue Swirl <>

666713c0 07/16/2009 04:48 pm Blue Swirl

Sparc32: refactor CPU init

Signed-off-by: Blue Swirl <>

a350db85 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert memory to qdev

Signed-off-by: Blue Swirl <>

f48f6569 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert boot prom to qdev

Signed-off-by: Blue Swirl <>

5f750b2e 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert iommu to qdev

Signed-off-by: Blue Swirl <>

fa28ec52 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert cs4231 to qdev

Signed-off-by: Blue Swirl <>