Statistics
| Branch: | Revision:

root / hw @ eae6bcbf

# Date Author Comment
eae6bcbf 06/17/2009 08:36 pm Blue Swirl

Call piix4_reset() on system reset.

Also zero pci_irq_levels on reset to avoid stuck irq after reset.

Based on 15a1956af94e36105494f782a752698103addf63 by Gleb Natapov.

Signed-off-by: Blue Swirl <>

0d0a7e69 06/17/2009 08:20 pm Blue Swirl

Don't set IRQs on device reset and loadvm/savevm

Signed-off-by: Blue Swirl <>

15a1956a 06/17/2009 08:05 pm Gleb Natapov

Call piix3_reset() on system reset.

Also zero pci_irq_levels on reset to avoid stuck irq after reset.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Yaniv Kamay <>

c8075ac3 06/17/2009 08:05 pm Gleb Natapov

Register usb-uhci reset function.

The device is not reset on system reset currently.
Without this patch RHEL4.8 hangs after reboot if -usbdevice table
is in use.

Signed-off-by: Gleb Natapov <>

bc26e55a 06/17/2009 08:01 pm Blue Swirl

Revert "Update irqs on reset and device load"

This reverts commit 3dcd219f09d6c1817bf9a132899e6b925f7a0914.

It is incorrect to call qemu_irq functions (or any other functions that
access other device state) during savevm/loadvm.

Signed-off-by: Blue Swirl <>

727170b6 06/17/2009 06:49 pm Blue Swirl

Allow user to specify CPU model

Signed-off-by: Blue Swirl <>

77d4db01 06/16/2009 11:52 pm Eduardo Habkost

Fix vga_screen_dump_blank() PPM generation

vga_screen_dump_blank() was not generating a valid PPM file: the width of the
image made no sense (why it was multiplied by sizeof(uint32_t)?), and there was
only one sample per pixel, instead of three.

Signed-off-by: Eduardo Habkost <>...

aea2a33c 06/16/2009 11:52 pm Mark McLoughlin

Prevent CD-ROM media eject while device is locked

Section 10.8.25 ("START/STOP UNIT Command") of SFF-8020i states that
if the device is locked we should refuse to eject if the device is
locked.

ASC_MEDIA_REMOVAL_PREVENTED is the appropriate return in this case....

7d9aa9c0 06/16/2009 11:36 pm Amit Shah

pci: add define for communication class devices

Signed-off-by: Amit Shah <>
Signed-off-by: Anthony Liguori <>

49c47daa 06/16/2009 11:18 pm Sebastian Herbszt

lsi53c895a: Implement write access to DMA Byte Counter

Adds CASE_SET_REG24 and fixes the following errors:

lsi_scsi: error: Unhandled writeb 0x24 = 0x0
lsi_scsi: error: Unhandled writeb 0x25 = 0x0

Signed-off-by: Sebastian Herbszt <>
Signed-off-by: Anthony Liguori <>

5c5dafdc 06/16/2009 11:18 pm Gerd Hoffmann

virtio blk: fix warning.

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

28c2c264 06/16/2009 11:18 pm Avi Kivity

Rename pci_register_io_region() to pci_register_bar()

This function is used to manage a PCI BAR, so make the more generic
pci_register_io_region() available to other uses.

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

bd8ee11a 06/16/2009 11:18 pm Sebastian Herbszt

lsi53c895a: Implement Scratch Byte Register

Fixes the following errors:

lsi_scsi: error: Unhandled writeb 0x3a = 0x0
lsi_scsi: error: readb 0x3a

Signed-off-by: Sebastian Herbszt <>
Signed-off-by: Anthony Liguori <>

4b9a2d6d 06/16/2009 11:18 pm Sebastian Herbszt

lsi53c895a: Implement read and write access to DMA Next Address

Fixes the following errors:

lsi_scsi: error: Unhandled writeb 0x28 = 0x0
lsi_scsi: error: Unhandled writeb 0x29 = 0x0
lsi_scsi: error: Unhandled writeb 0x2a = 0x0
lsi_scsi: error: Unhandled writeb 0x2b = 0x0...

1eed09cb 06/16/2009 11:18 pm Avi Kivity

Remove io_index argument from cpu_register_io_memory()

The parameter is always zero except when registering the three internal
io regions (ROM, unassigned, notdirty). Remove the parameter to reduce
the API's power, thus facilitating future change.

Signed-off-by: Avi Kivity <>...

d3fa1e0f 06/16/2009 11:18 pm Markus Armbruster

qdev: Fix regression in "pci_add ... storage if=virtio, ..."

qemu_pci_hot_add_storage() runs qdev_init() twice. Broken in commit
07e3af9a "Virtio-blk qdev conversion".

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

72716184 06/15/2009 10:35 pm Anthony Liguori

Incorporate changes from v2 of Gleb's RTC reset patch

Signed-off-by: Anthony Liguori <>

ba494313 06/15/2009 10:00 pm Edgar E. Iglesias

etrax: Don't pass CPUState to peripherals.

Signed-off-by: Edgar E. Iglesias <>

eeb7c03c 06/15/2009 05:50 am Gleb Natapov

Add rtc reset function.

On reset:
Periodic Interrupt Enable (PIE) bit is cleared to zero
Alarm Interrupt Enable (AIE) bit is cleared to zero
Update ended Interrupt Flag (UF) bit is cleared to zero
Interrupt Request status Flag (IRQF) bit is cleared to zero...

11be4b3e 06/14/2009 03:19 am Stefan Weil

Add static to local machine declaration.

Variable akitapda_machine is only used locally,
so the static attribute avoids a compiler warning.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

678e12cc 06/14/2009 03:19 am Gleb Natapov

Don't use cpu_index as apic_id.

(patch is on top of "Apic creation should not depend on pci" series)

Currently cpu_index is used as cpu apic id on x86. This is incorrect
since apic ids not have to be continuous (they can also encode cpu
hierarchy information). This patch uses cpuid_apic_id for initial apic id...

c4f31a0a 06/14/2009 03:18 am Gleb Natapov

Apic creation should not depend on pci

It should depend on whether cpu has APIC.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Anthony Liguori <>

df97b920 06/14/2009 03:17 am Eduardo Habkost

Add -no-virtio-balloon command-line option

This new option may be used to disable the virtio-balloon device.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Anthony Liguori <>

6693665a 06/14/2009 03:17 am Stefan Weil

Fix SDL include path.

SDL header files can be included in two different ways:

  • like this: #include <SDL/SDL.h>
  • like this: #include <SDL.h>

The 1st alternative is simple and works in many cases.

The 2nd alternative needs sdl-config to get the
correct compiler flags. It is the recommended way...

a8b7063b 06/13/2009 06:08 pm Blue Swirl

Avoid a gcc 3 format warning

Signed-off-by: Blue Swirl <>

c7085da7 06/13/2009 04:20 pm Blue Swirl

Avoid gcc 4.4 warning about uninitialized field

Signed-off-by: Blue Swirl <>

4f72c4dd 06/13/2009 04:19 pm Blue Swirl

Fix signedness problems

Signed-off-by: Blue Swirl <>

3e3cabcf 06/13/2009 04:18 pm Gerd Hoffmann

xen nic: check tx queue after connect.

Needed for savevm/loadvm + migration: In that case the queue might
already have packets on (re-)connect. The guest wouldn't notify us
because notifications are only sent when stuffing a packet into an
empty queue.
...

23327f75 06/13/2009 04:18 pm Gerd Hoffmann

include inttypes.h in xen.h

Signed-off-by: Gerd Hoffmann <>

a85d6887 06/13/2009 04:18 pm Gerd Hoffmann

xen: adapt to qemu_machine changes

Signed-off-by: Gerd Hoffmann <>

908c7b9f 06/13/2009 04:11 pm Gerd Hoffmann

xen_disk: move sanity check to the correct place

Signed-off-by: Gerd Hoffmann <>

41107bcb 06/12/2009 04:41 pm Edgar E. Iglesias

ETRAX: DMA fixes for 64bit hosts.

Mainly to remove warnings.

Signed-off-by: Edgar E. Iglesias <>

562183de 06/11/2009 04:11 pm Edgar E. Iglesias

ETRAX: Correct PIC creation for the bare FS board.

Signed-off-by: Edgar E. Iglesias <>

074f2fff 06/11/2009 03:47 pm Gerd Hoffmann

qdev: move name+size into DeviceInfo (v2)

Rationale: move device information from code to data structures.

v2: Adapt the drivers missed in the first version.

Signed-off-by: Gerd Hoffmann <>

57b452a8 06/11/2009 03:22 pm Paul Brook

Fix stellaris ethernet

Revert bogus part of e3f5ec2b
(pass VLANClientState* as first arg to receive handlers)

Signed-off-by: Paul Brook <>

df12c1f5 06/11/2009 02:33 pm Jan Kiszka

Fix xilinx_ethlite breakage by 4f1c942b7f

Namely the new xilinx_ethlite used by mircoblaze.

Signed-off-by: Jan Kiszka <>

f8e76fbf 06/11/2009 02:08 am Anthony Liguori

Merge branch 'net-queue'

  • net-queue: (28 commits)
    virtio-net: Increase filter and control limits
    virtio-net: Add new RX filter controls
    virtio-net: MAC filter optimization
    virtio-net: Fix MAC filter overflow handling
    virtio-net: reorganize receive_filter()...
b9aaf7f8 06/09/2009 09:38 pm Blue Swirl

Fix Sparse warning

Signed-off-by: Blue Swirl <>

82384670 06/09/2009 08:25 pm Blue Swirl

Remove unused and misnamed field and variable

Signed-off-by: Blue Swirl <>

3dcd219f 06/09/2009 08:11 pm Blue Swirl

Update irqs on reset and device load

Signed-off-by: Blue Swirl <>

32c86e95 06/09/2009 06:02 pm Blue Swirl

Register reset functions for e1000 and rtl8139

Signed-off-by: Blue Swirl <>

8aeff62d 06/09/2009 01:38 pm Mark McLoughlin

virtio-net: implement rx packet queueing

If we don't have room to receive a packet, we return zero
from virtio_net_receive() and call qemu_flush_queued_packets()
as soon as space becomes available.

Signed-off-by: Mark McLoughlin <>

6c042c16 06/09/2009 01:38 pm Alex Williamson

virtio-net: Add version_id 7 placeholder for vnet header support

Signed-off-by: Alex Williamson <>
Signed-off-by: Mark McLoughlin <>

f10c592e 06/09/2009 01:38 pm Alex Williamson

virtio-net: Use a byte to store RX mode flags

There's no need to save 4 bytes for promisc and allmulti.
Use one byte each just to avoid the overhead of a bitmap.

Signed-off-by: Alex Williamson <>
Signed-off-by: Mark McLoughlin <>

bbe2f399 06/09/2009 01:38 pm Alex Williamson

virtio-net: reorganize receive_filter()

Reorganize receive_filter to better handle the split between
unicast and multicast filtering. This allows us to skip the
broadcast check on unicast packets and leads to more opportunities
for optimization.

Signed-off-by: Alex Williamson <>...

8fd2a2f1 06/09/2009 01:38 pm Alex Williamson

virtio-net: Fix MAC filter overflow handling

Overloading the promisc and allmulti flags for indicating filter
table overflow makes it difficult to track the actual requested
operating mode. Split these out into separate flags.

Signed-off-by: Alex Williamson <>...

2d9aba39 06/09/2009 01:38 pm Alex Williamson

virtio-net: MAC filter optimization

The MAC filter table is received from the guest as two separate
buffers, one with unicast entries, the other with multicast
entries. If we track the index dividing the two sets, we can
avoid searching the part of the table with the wrong type of...

015cb166 06/09/2009 01:38 pm Alex Williamson

virtio-net: Add new RX filter controls

Add a few new RX modes to better control the receive_filter. These
are all fairly obvious features that hardware could provide.

Signed-off-by: Alex Williamson <>
Signed-off-by: Mark McLoughlin <>

4ffb17f5 06/09/2009 01:38 pm Alex Williamson

virtio-net: Increase filter and control limits

Increase the size of the perfect filter table and control queue depth.
This should give us more headroom in the MAC filter and is known to be
needed by at least one guest user. Increasing the control queue depth...

10ae5a7a 06/09/2009 01:38 pm Jan Kiszka

net: Improve parameter error reporting

As host network devices can also be instantiated via the monitor, errors
should then be reported to the related monitor instead of stderr. This
requires larger refactoring, so this patch starts small with introducing...

463af534 06/09/2009 01:38 pm Mark McLoughlin

net: add fd_readv() handler to qemu_new_vlan_client() args

This, apparently, is the style we prefer - all VLANClientState
should be an argument to qemu_new_vlan_client().

Signed-off-by: Mark McLoughlin <>

cda9046b 06/09/2009 01:38 pm Mark McLoughlin

net: re-name vc->fd_read() to vc->receive()

VLANClientState's fd_read() handler doesn't read from file
descriptors, it adds a buffer to the client's receive queue.

Re-name the handlers to make things a little less confusing.

Signed-off-by: Mark McLoughlin <>

e3f5ec2b 06/09/2009 01:38 pm Mark McLoughlin

net: pass VLANClientState* as first arg to receive handlers

Give static type checking a chance to catch errors.

Signed-off-by: Mark McLoughlin <>

4f1c942b 06/09/2009 01:38 pm Mark McLoughlin

net: add return value to packet receive handler

This allows us to handle queue full conditions rather than dropping
the packet on the floor.

Signed-off-by: Mark McLoughlin <>

98ba2632 06/08/2009 08:36 pm Gerd Hoffmann

qdev: c99 initilaizers for bus_type_names

Signed-off-by: Gerd Hoffmann <>

682aea0e 06/08/2009 08:02 pm Gerd Hoffmann

xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.

Signed-off-by: Gerd Hoffmann <>

7105b056 06/08/2009 08:01 pm Gerd Hoffmann

xen nic: use qemu_malloc

Signed-off-by: Gerd Hoffmann <>

6379840f 06/06/2009 06:48 pm Gerd Hoffmann

xen: net backend doesn't need linux headers.

Drop them to make qemu build on OpenSolaris.

Cc: Andreas Färber <>
Signed-off-by: Gerd Hoffmann <>

db241f40 06/06/2009 04:49 am Paul Brook

Fix typo

Signed-off-by: Paul Brook <>

cae4956e 06/05/2009 05:53 pm Gerd Hoffmann

qdev: add monitor command to dump the tree.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Paul Brook <>

1431b6a1 06/05/2009 05:52 pm Paul Brook

Record device property types

Record device property types, and provide a list of properties at device
registration time.

Add a "device" property type that holds a reference to annother device.

Signed-off-by: Paul Brook <>

bdb11366 06/04/2009 03:12 pm Paul Brook

Remove ARM NVIC initialization hack

The ARMv7-M NVIC device pokes itself into the CPU state. Now we have a
proper device model we can have the CPU/SoC code do this.

Signed-off-by: Paul Brook <>

aca312af 06/04/2009 01:24 pm Gerd Hoffmann

qdev: kill DeviceState->name

is redundant with DeviceState->type->name

Signed-off-by: Gerd Hoffmann <>

4b0c7aa3 06/03/2009 10:54 pm Edgar E. Iglesias

microblaze: Fix loading of petalogix s3adsp1800 dtb.

Provide a petalogix-s3adsp1800.dtb blob.
Correct loading of the petalogix dtb.

Signed-off-by: Edgar E. Iglesias <>

40905a6a 06/03/2009 05:16 pm Paul Brook

Stellaris qdev conversion

Signed-off-by: Paul Brook <>

2c6554bc 06/02/2009 05:30 pm Paul Brook

Implement multiple samplers on stellaris ADC

Signed-off-by: Paul Brook <>

5cea8590 05/30/2009 03:59 am Paul Brook

Use relative path for bios

Look for bios and other support files relative to qemu binary, rather than
a hardcoded prefix.

Signed-off-by: Paul Brook <>

8a43b1ea 05/27/2009 05:46 pm Chris Lalancette

Allow monitor interaction when using migrate -exec

All,
I've recently been playing around with migration via exec. Unfortunately,
when starting the incoming qemu process with "-incoming exec:cmd", it suffers
the same problem that -incoming tcp used to suffer; namely, that you can't...

cab3c825 05/27/2009 05:45 pm Kevin Wolf

e1000: Ignore reset command

When a reset is requested, the current e1000 emulation never clears the
reset bit which may cause a driver to hang. This patch masks the reset
bit out when setting the control registert, so the reset is immediately
completed.
...

7696d1ec 05/27/2009 11:49 am Edgar E. Iglesias

microblaze: Conditionalize FDT features.

If libfdt is not available, disable the fdt manipulation features.

Signed-off-by: Edgar E. Iglesias <>

6a8b1ae2 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add petalogix s3a1800dsp MMU linux ref-design.

This setup was designed by petalogix and is supported by upstream linux.
The design targets a xilinx spartan-3a-1800 dsp board with MMU.

Signed-off-by: Edgar E. Iglesias <>

b43848a1 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add ethlite emulation.

Signed-off-by: Edgar E. Iglesias <>

ee118d95 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add uartlite emulation.

Signed-off-by: Edgar E. Iglesias <>

388f60b1 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add OPB timer.

Signed-off-by: Edgar E. Iglesias <>

1f07fd1f 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add CPU interrupt wrapper logic.

Signed-off-by: Edgar E. Iglesias <>

17628bc6 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add interrupt controller.

Signed-off-by: Edgar E. Iglesias <>

067a3ddc 05/26/2009 04:56 pm Paul Brook

Remove qdev irq sink handling

We have both IRQ sinks and GPIO inputs. These are in principle exactly
the same thing, so remove the former.

Signed-off-by: Paul Brook <>

3cb5a223 05/23/2009 10:43 pm Stefan Weil

ETRAX: Removed unused struct entry and fixed Windows build.

"struct timeval last" caused a compilation error with mingw32
(missing header for struct timeval).

It is unused, so it was possible to remove it.

Acked-by: Edgar E. Iglesias <>...

02e2da45 05/23/2009 02:13 am Paul Brook

Add common BusState

Implement and use a common device bus state. The main side-effect is
that creating a bus and attaching it to a parent device are no longer
separate operations. For legacy code we allow a NULL parent, but that
should go away eventually....

4856fcff 05/22/2009 07:44 pm Paul Brook

Fix lance segfaults

Signed-off-by: Paul Brook <>

40ff1624 05/22/2009 06:50 pm Jason Wessel

serial: fix lost character after sysrq

After creating an automated regression test to test the sysrq
responses while running a linux image in qemu, I found that the
simulated uart was eating the character right after the sysrq about
75% of the time.

The problem is that the qemu sets the LSR_DR (data ready) bit on a...

8217606e 05/22/2009 06:50 pm Jan Kiszka

Introduce reset notifier order

Add the parameter 'order' to qemu_register_reset and sort callbacks on
registration. On system reset, callbacks with lower order will be
invoked before those with higher order. Update all existing users to the
standard order 0....

7e57f049 05/22/2009 06:50 pm Jason Wessel

usb-serial: implement break event.

Implement the serial break via usb serial.

The second data byte in ftdi status packet contains the break status.
The values were already defined in usb-serial.c so it was a matter of
making use of the event_trigger to form a urb to send over to the host...

93102fd6 05/22/2009 06:50 pm Jan Kiszka

kvm: Fix framebuffer dirty log sync

kvm_physical_sync_dirty_bitmap() takes the end address as second
argument, not the region size. Moverover, the kvm API should not be used
directly here, but cpu_physical_sync_dirty_bitmap().

Signed-off-by: Jan Kiszka <>...

19629537 05/22/2009 06:50 pm Glauber Costa

introduce set_rate_limit function for QEMUFile

This patch converts the current callers of qemu_fopen_ops().

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

993fbfdb 05/22/2009 04:54 am Anthony Liguori

Refactor how display drivers are selected

My previous commit, f92f8afebe, broke -vnc (spotted by Glauber Costa). This
is because it's necessary to tell when the no special display parameters have
been passed and default to SDL or VNC appropriately.

This refactors the display selection logic to be less complicated which has...

0c257437 05/22/2009 04:54 am Anthony Liguori

Introduce is_default field for QEMUMachine

f80f9ec changed the order that machines are registered which had the effect of
changing the default machine. This changeset introduces a new is_default field
so that machine types can declare that they are the default for an architecture....

2567f579 05/21/2009 06:54 pm Blue Swirl

Compile most Xen files only once

Signed-off-by: Blue Swirl <>

e20a8dff 05/21/2009 06:54 pm Blue Swirl

Compile fdc, escc and SCSI controllers only once

Signed-off-by: Blue Swirl <>

368b90db 05/21/2009 06:54 pm Blue Swirl

Let the venomous poison spread to more identifiers

Signed-off-by: Blue Swirl <>

f80f9ec9 05/21/2009 04:47 pm Anthony Liguori

Convert machine registration to use module init functions

This cleans up quite a lot of #ifdefs, extern variables, and other ugliness.

Signed-off-by: Anthony Liguori <>

42fa1c2e 05/20/2009 05:24 pm Richard W.M. Jones

Remove initrd warning message

Signed-off-by: Richard W.M. Jones <>

e6ade764 05/20/2009 05:12 pm Glauber Costa

keep initrd in below 4g area.

initrd must be kept on the memory area below 4g. By not doing this,
we're seeing guests break while using -initrd and values of -mem
superior to 4096.

Signed-off-by: Glauber Costa <>

3a8bae3e 05/20/2009 02:27 am malc

Remove dead code

Signed-off-by: malc <>

1ad2134f 05/19/2009 06:17 pm Paul Brook

Hardware convenience library

The only target dependency for most hardware is sizeof(target_phys_addr_t).
Build these files into a convenience library, and use that instead of
building for every target.

Remove and poison various target specific macros to avoid bogus target...

8a637d44 05/19/2009 06:05 pm Paul Brook

Disable >4G ram support on 32-bit targets

If the target only has a 32-bit physical address space then
the code to map >4G ram breaks horribly, and causes compiler warnings.

Signed-off-by: Paul Brook <>

bba831e8 05/19/2009 04:52 pm Paul Brook

Remove obsolete BIOS_SIZE from sysemu.h

BIOS_SIZE is no longer needed by vl.c, so there's no point having it in
sysemu.h.

Signed-off-by: Paul Brook <>

fd6dc90b 05/18/2009 11:24 pm Edgar E. Iglesias

cris: First shot at qdev for CRIS interrupts.

Signed-off-by: Edgar E. Iglesias <>

96d7ddde 05/18/2009 10:44 pm Edgar E. Iglesias

etrax: Don't keep the passed irq pointer.

Copy passed irq object at channel connect.

Signed-off-by: Edgar E. Iglesias <>

678fdca8 05/18/2009 10:34 pm Edgar E. Iglesias

etrax: Remove unused eth irq line.

The ethernet blocks irq line to report errors is unimplemented in QEMU.
Remove it for now.

Signed-off-by: Edgar E. Iglesias <>