Statistics
| Branch: | Revision:

root / hw / char @ f53f81e0

# Date Author Comment
61e8a923 02/20/2014 03:05 pm Peter Maydell

Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging

QOM infrastructure fixes and device conversions

  • QTest cleanups and test cases for PCI NICs
  • NAND fix for "info qtree"
  • Cleanup and extension of QOM machine tests...
88c1ee73 02/15/2014 02:10 pm Peter Crosthwaite

char/serial: Fix emptyness check

This was guarding against a full fifo rather than an empty fifo when
popping. Fix.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Martin Kletzander <>
Reviewed-by: Dr. David Alan Gilbert <>...

c7bcc85d 02/14/2014 10:12 pm Paolo Bonzini

qdev: Remove hex8/32/64 property types

Replace them with uint8/32/64.

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

1f9c4cfd 02/14/2014 10:11 pm Andreas Färber

ipack: Move IndustryPack out of hw/char/

Move the header defining an IPackBus and IPackDevice base class into
a new include/ directory and move their implementation and a
PCI-IndustryPack bridge out of hw/char/ directory into a new hw/ipack/.

Acked-by: Alberto Garcia <>...

5c570902 02/14/2014 10:07 pm Andreas Färber

ipack: Convert to QOM realize

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

a21ac343 02/14/2014 10:07 pm Andreas Färber

ipack: QOM parent field cleanup for IPackBus

Clean up the only user of IPackBus::qbus field and rename it.

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

227d3272 02/14/2014 10:07 pm Andreas Färber

ipack: QOM parent field cleanup for IPackDevice

Rename the IPackDevice::qdev field to avoid accidental use.

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

08c9cacf 02/14/2014 10:07 pm Andreas Färber

ipoctal232: QOM parent field cleanup

Clean up accesses to IPOctalState::dev field and rename it.

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

02d3bf7f 02/04/2014 08:34 pm Michael Walle

lm32_uart/lm32_juart: use qemu_chr_fe_write_all()

qemu_chr_fe_write() may return EAGAIN. Therefore, use
qemu_chr_fe_write_all().

Signed-off-by: Michael Walle <>
Reviewed-by: Peter Maydell <>

b2c623a3 02/04/2014 08:34 pm Antony Pavlov

milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()

qemu_chr_fe_write() is capable of returning 0
to indicate EAGAIN (and friends) and we don't
handle this.

Just change it to qemu_chr_fe_write_all() to fix.

Reported-by: Peter Crosthwaite <>...

666eb032 01/09/2014 09:24 pm Anthony Liguori

Merge remote-tracking branch 'mjt/trivial-patches' into staging

  • mjt/trivial-patches:
    acpi unit-test: Remove temporary disk after test
    mainstone: Fix duplicate array values for key 'space'
    pxa27x: Add 'const' attribute to keyboard maps
    pxa27x: Reduce size of keyboard matrix mapping...
059ca2bf 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Mark struct fields as public/private

As per current QOM conventions.

Signed-off-by: Peter Crosthwaite <>
Message-id:
Signed-off-by: Peter Maydell <>

589bfb68 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Add missing uart_update_state

This should be rechecked on bus write accesses as such accesses may
change the underlying state that generates the interrupt. Particular
relevant for when the guest touches the interrupt status or mask.

Signed-off-by: Peter Crosthwaite <>...

823dd487 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Fix reset.

Don't reset the uart as an init step. Register the reset function as a
proper reset fn instead.

Signed-off-by: Peter Crosthwaite <>
Message-id: ...

1e77c91e 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: s/r_fifo/rx_fifo

Rename this field to match the many other uses of "rx". Xilinx
docmentation (UG585) also refers to this as "RxFIFO".

Signed-off-by: Peter Crosthwaite <>
Message-id: ...

676f4c09 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Simplify status generation

The status register bits are always pure functions of other device
state. Move the generation of these bits to the update_status()
function to simplify. Makes developing much easier as theres now no need
to recheck status bits on all the changes to rx/tx fifo state....

11a239a5 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Define Missing SR/ISR fields

Some (interrupt) status register bits relating to the TxFIFO path were
not defined. Define them. This prepares support for proper Tx data path
flow control.

Signed-off-by: Peter Crosthwaite <>...

2152e08a 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Remove TX timer & add TX FIFO state

This tx timer implementation is flawed. Despite the controller
attempting to time the guest visable assertion of the TX-empty status
bit (and corresponding interrupt) the controller is still transmitting...

d0ac820f 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Fix can_receive logic

The can_receive logic was only taking into account the RxFIFO
occupancy. RxFIFO population is only used for the echo and normal modes
however. Improve the logic to correctly return the true number of
receivable characters based on the current mode:...

86baecc3 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Use the TX fifo for transmission

Populate the TxFIFO with the Tx data before sending. Prepares
support for proper Tx flow control implementation.

Signed-off-by: Peter Crosthwaite <>
Message-id: ...

1e5d8cac 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Delete redundant rx rst logic

uart_rx_reset() called immediately above already does this. Remove.

Signed-off-by: Peter Crosthwaite <>
Message-id: ...

38acd64b 01/08/2014 09:07 pm Peter Crosthwaite

char/cadence_uart: Implement Tx flow control

If the UART back-end blocks, buffer in the Tx FIFO to try again later.
This stops the IO-thread busy waiting on char back-ends (which causes
all sorts of performance problems).

Signed-off-by: Peter Crosthwaite <>...

c46b07f0 12/23/2013 02:02 pm Stefan Weil

exynos4210: Use macro ARRAY_SIZE where possible

This improves readability and simplifies the code.

Cc: Dmitry Solodkiy <>
Cc: Evgeny Voevodin <>
Cc: Igor Mitsyanko <>
Cc: Maksim Kozlov <>...

142593c9 12/17/2013 10:12 pm Antony Pavlov

hw/arm/digic: add UART support

Signed-off-by: Antony Pavlov <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Peter Crosthwaite <>
Message-id: ...

e157b8fd 12/13/2013 09:10 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/virtio' into staging

  1. By Andreas Färber (18) and Paolo Bonzini (12)
  2. Via Paolo Bonzini
    • bonzini/virtio: (30 commits)
      virtio: Convert exit to unrealize
      virtio: Complete converting VirtioDevice to QOM realize
      virtio-scsi: Convert to QOM realize...
b1a20c3f 12/09/2013 10:46 pm Andreas Färber

virtio-serial: QOM realize preparations

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

86346244 12/09/2013 10:46 pm Andreas Färber

virtio-serial: Convert to QOM realize

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

306ec6c3 12/09/2013 10:46 pm Andreas Färber

virtio: Convert exit to unrealize

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

0e86c13f 12/09/2013 10:46 pm Paolo Bonzini

virtio-serial: switch exit callback to VirtioDeviceClass

This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.

Cc:
Acked-by: Andreas Faerber <>
Signed-off-by: Paolo Bonzini <>

1246b259 12/02/2013 07:03 pm Stefan Weil

misc: Replace 'struct QEMUTimer' by 'QEMUTimer'

Most code already used QEMUTimer without the redundant 'struct' keyword.

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

29fdedfe 11/08/2013 05:33 am Alexey Kardashevskiy

spapr: add vio-bus devices to categories

In order to get devices appear in output of
"./qemu-system-ppc64 -device ?",
they must be assigned to one of DEVICE_CATEGORY_XXXX.

This puts VIO devices classes to corresponding categories.

Signed-off-by: Alexey Kardashevskiy <>...

c77dd5f6 11/05/2013 06:47 pm Antony Pavlov

milkymist-uart: Use Device::realize instead of SysBusDevice::init

Use of SysBusDevice::init is deprecated. Use Device::realize instead.

Also introduce TypeInfo::instance_init milkymist_uart_init().

Reported-by: Peter Crosthwaite <>...

b0eb759f 10/31/2013 05:58 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pci, pc, acpi fixes, enhancements

This includes some pretty big changes:
- pci master abort support by Marcel
- pci IRQ API rework by Marcel
- acpi generation support by myself

Everything has gone through several revisions, latest versions have been on...

9e64f8a3 10/14/2013 05:11 pm Marcel Apfelbaum

hw: set interrupts using pci irq wrappers

pci_set_irq and the other pci irq wrappers use
PCI_INTERRUPT_PIN config register to compute device
INTx pin to assert/deassert.

An irq is allocated using pci_allocate_irq wrapper
only if is needed by non pci devices....

84faf7c3 10/02/2013 09:55 pm Guenter Roeck

sh4: Fix serial line access for Linux kernels later than 3.2

With Linux kernel version 3.3 or later, qemu fails with the following message:

sh_serial: unsupported read from 0x18
Aborted

Reported-and-analyzed-by: Rob Landley <>
Signed-off-by: Guenter Roeck <>...

8b8b1138 09/20/2013 02:55 pm Christian Borntraeger

s390/eventfacility: remove unused event_type variable

The event_type variable is never used. Get rid of it.

Signed-off-by: Christian Borntraeger <>
Reviewed-by: Alexander Graf <>

c3d9f24a 09/20/2013 02:55 pm Christian Borntraeger

s390/eventfacility: allow childs to handle more than 1 event type

Currently all handlers (quiesce, console) only handle one event type.
Some drivers will handle multiple (compatible) event types. Rework the
code accordingly.

Signed-off-by: Christian Borntraeger <>...

6a444f85 09/20/2013 02:55 pm Heinz Graalfs

s390/sclplmconsole: Add support for SCLP line-mode console

Add simple support for SCLP line-mode also known as operating
system messages. This can be added in addition to or instead of
the SCLP full screen console with -device sclplmconsole.

Signed-off-by: Heinz Graalfs <>...

ea9ad3e9 09/20/2013 02:55 pm Heinz Graalfs

s390/sclpconsole: modify definition of input buffer

To use VMState for migration, we need to adapt some sclp code:
- allocate console buffer as part of the console
- change semantic of sclpconsole offset fields

Signed-off-by: Heinz Graalfs <>...

cb335beb 09/20/2013 02:55 pm Heinz Graalfs

s390/sclpconsole: Add code to support live migration for sclpconsole

This patch adds the necessary life migration pieces to the sclp code
by using vmstate_register.

Signed-off-by: Heinz Graalfs <>
Reviewed-by: Alexander Graf <>...

3af6de32 09/20/2013 02:55 pm Heinz Graalfs

s390/sclp: add reset() functions

Add reset() functions for event-facility, sclpconsole, and sclpquiesce.
The reset() functions perform variable initialization
at IPL and e.g. when monitor system_reset is called.

Signed-off-by: Heinz Graalfs <>...

5cff81f0 09/03/2013 08:30 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging

QOM device refactorings

  • Fix QOM and ISA documentation errors
  • Extend object_initialize() et al. to check the instance size
  1. gpg: Signature made Fri 30 Aug 2013 02:19:48 PM CDT using RSA key ID 3E7E013F...
7770b6f7 09/02/2013 11:06 am Anton Blanchard

pseries: Fix stalls on hypervisor virtual console

A number of users are reporting stalls when using the pseries
hypervisor virtual console.

A simple test case is to paste 15 or 17 characters at a time
into the console. Pasting 15 characters at a time works fine...

fb17dfe0 08/30/2013 10:15 pm Andreas Färber

qdev: Pass size to qbus_create_inplace()

To be passed to object_initialize().

Since commit 39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6 the argument is
void*, so drop some superfluous (BusState *) casts or direct parent
field usages.

Signed-off-by: Andreas Färber <>

77cbb28a 08/30/2013 09:14 pm Andreas Färber

ipack: Pass size to ipack_bus_new_inplace()

To be passed to qbus_create_inplace().

Simplify DEVICE cast to avoid parent field access.

Reviewed-by: Wenchao Xia <>
Signed-off-by: Andreas Färber <>

f7ad538e 08/26/2013 05:19 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/block' into staging

  1. By Alex Bligh (32) and others
  2. Via Stefan Hajnoczi
    • stefanha/block: (42 commits)
      win32-aio: drop win32_aio_flush_cb()
      aio-win32: replace incorrect AioHandler->opaque usage with ->e
      aio / timers: remove dummy_io_handler_flush from tests/test-aio.c...
bc72ad67 08/22/2013 08:14 pm Alex Bligh

aio / timers: Switch entire codebase to the new timer API

This is an autogenerated patch using scripts/switch-timer-api.

Switch the entire code base to using the new timer API.

Note this patch may introduce some line length issues.

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

4a44d85e 08/20/2013 06:51 pm Seiji Aguchi

Convert stderr message calling error_get_pretty() to error_report()

Convert stderr messages calling error_get_pretty()
to error_report().

Timestamp is prepended by -msg timstamp option with it.

Per Markus's comment below, A conversion from fprintf() to...

203439ce 08/01/2013 07:18 pm Andreas Färber

virtio-console: Use exitfn for virtserialport, too

virtconsole and virtserialport are identical in every other aspect
except for the distinguishing VirtIOSerialPortClass::is_console field.

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

2e142114 07/30/2013 05:10 pm Heinz Graalfs

s390/sclpconsole: handle char layer busy conditions

Handle busy conditions (errno=EAGAIN) in char layer by using
the new char layer in the sclp console.

Signed-off-by: Heinz Graalfs <>
Signed-off-by: Christian Borntraeger <>

a0b97927 07/29/2013 10:06 pm Andreas Färber

lm32_juart: QOM cast cleanup

Signed-off-by: Andreas Färber <>

85f3d302 07/29/2013 10:06 pm Andreas Färber

lm32_uart: QOM cast cleanup

Signed-off-by: Andreas Färber <>

79bbe8bf 07/29/2013 10:06 pm Andreas Färber

milkymist-uart: QOM cast cleanup

Signed-off-by: Andreas Färber <>

ab640bfc 07/29/2013 10:06 pm Andreas Färber

pl011: Rename pl011_state

Signed-off-by: Andreas Färber <>

71ffe1a0 07/29/2013 10:06 pm Andreas Färber

pl011: QOM'ify pl011 and pl011_luminary

Let the Luminary variant inherit from the ARM one, overwriting its ID on
instance_init. Introduce type constant and use QOM casts. Replace
triplicated SysBusDevice initfn with QOM realizefn and instance_init.

Signed-off-by: Andreas Färber <>

534f6ff9 07/29/2013 10:06 pm Andreas Färber

cadence_uart: QOM cast cleanup

Signed-off-by: Andreas Färber <>

81069b20 07/29/2013 10:06 pm Andreas Färber

escc: QOM cast cleanup

Signed-off-by: Andreas Färber <>

61149ff6 07/29/2013 10:06 pm Andreas Färber

exynos4210_uart: QOM cast cleanup

Signed-off-by: Andreas Färber <>

ae8e0490 07/29/2013 10:06 pm Andreas Färber

grlib_apbuart: QOM cast cleanup

Signed-off-by: Andreas Färber <>

8d8e3481 07/29/2013 10:06 pm Andreas Färber

imx_serial: QOM cast cleanup

Signed-off-by: Andreas Färber <>

0ee10242 07/29/2013 10:06 pm Andreas Färber

lm32_juart: Relocate and tidy header

Signed-off-by: Andreas Färber <>

24bf6c1f 07/29/2013 09:45 pm Andreas Färber

xilinx_uartlite: QOM cast cleanups

Introduce type constant and use QOM casts.

Acked-by: Edgar E. Iglesias <>
Signed-off-by: Andreas Färber <>

144712ca 07/29/2013 09:45 pm Andreas Färber

xilinx_uartlite: Rename xlx_uartlite to XilinxUARTLite

Acked-by: Edgar E. Iglesias <>
Signed-off-by: Andreas Färber <>

b85423fe 07/29/2013 09:45 pm Andreas Färber

etraxfs_ser: QOM cast cleanups

Rename etrax_serial to ETRAXSerial, introduce type constant and use QOM
casts.

Acked-by: Edgar E. Iglesias <>
Signed-off-by: Andreas Färber <>

125ee0ed 07/29/2013 06:37 pm Marcel Apfelbaum

devices: Associate devices to their logical category

The category will be used to sort the devices displayed in
the command line help.

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

db1b58e9 07/29/2013 06:37 pm David Gibson

pseries: savevm support for PAPR VIO logical tty

This patch adds the necessary VMStateDescription information to support
savevm/loadvm for the spapr_tty (PAPR logical serial) device.

Signed-off-by: David Gibson <>
Reviewed-by: Anthony Liguori <>...

9121d02c 07/15/2013 02:28 pm Peter Crosthwaite

char/cadence_uart: Fix reset for unattached instances

commit 1db8b5efe0c2b5000e50691eea61264a615f43de introduced an issue
where QEMU would segfault if you have an unattached Cadence UART.

Fix by guarding the flush-on-reset logic on there being a qemu_chr...

300b1fc6 07/04/2013 06:42 pm Paolo Bonzini

hw/c*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

3cf63ff2 07/04/2013 06:42 pm Paolo Bonzini

escc: rename struct to ESCCState

We are using the same struct name for two devices. 8250 is widespread
enough that this causes some confusion, rename the other instance.

Reviewed-by: Andreas Faerber <>
Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

b52df465 06/24/2013 05:26 pm Edgar E. Iglesias

cadence_uart: Handle backend tx errors

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

b165b0d8 06/17/2013 11:57 am Vladimir Senkov

char/serial: fix copy&paste error (fifo8_is_full vs empty)

Copy&paste error in serial.c causes a crash when attempting
to read from UART (if there is no data to be read)

Signed-off-by: Vladimir Senkov <>
Reviewed-by: Peter Crosthwaite <>...

371a775d 06/15/2013 01:53 pm Blue Swirl

Merge branch 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu

  • 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu:
    qdev: Drop FROM_QBUS() macro
    isa: QOM'ify ISADevice
    isa: QOM'ify ISABus
    i8259: Convert PICCommonState to use QOM realizefn...
7f4f0a22 06/11/2013 10:45 pm Peter Crosthwaite

char/serial: cosmetic fixes.

Some cosmetic fixes to char/serial fixing some checkpatch errors.

Cc:

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

8e8638fa 06/11/2013 10:45 pm Peter Crosthwaite

char/serial: Use generic Fifo8

Use the generic Fifo8 helper provided by QEMU, rather than re-implement
privately.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Michael Tokarev <>

b5601df7 06/11/2013 10:45 pm Peter Crosthwaite

char/serial: serial_ioport_write: Factor out common code

These three lines are common to both FIFO and regular mode. Just factor
them out to outside the if rather than replicate the same lines inside
both if and else.

Cc:

Signed-off-by: Peter Crosthwaite <>...

4a17cc4f 06/07/2013 03:55 pm Andreas Färber

isa: QOM'ify ISADevice

Rename its parent field and use DEVICE where necessary.

Signed-off-by: Andreas Färber <>

db895a1e 06/07/2013 01:14 pm Andreas Färber

isa: Use realizefn for ISADevice

Drop ISADeviceClass::init and the resulting no-op initfn and let
children implement their own realizefn. Adapt error handling.
Split off an instance_init where sensible.

Signed-off-by: Andreas Färber <>

8c1f72da 06/01/2013 01:25 pm liguang

debugcon: fix always print "addr=0x0, val=0x0" bug when use DEBUG_DEBUGCON

when use DEBUG_DEBUGCON, screen spits:
debugcon: write addr=0x0000 val=0x00
Rdebugcon: write addr=0x0000 val=0x00
udebugcon: write addr=0x0000 val=0x00
ndebugcon: write addr=0x0000 val=0x00...

e6ee2846 06/01/2013 01:25 pm liguang

debugcon: make debug message more readable

before change:
Bdebugcon: write addr=0x0000 val=0x6f
odebugcon: write addr=0x0000 val=0x6f
odebugcon: write addr=0x0000 val=0x74
tdebugcon: write addr=0x0000 val=0x69
idebugcon: write addr=0x0000 val=0x6e
ndebugcon: write addr=0x0000 val=0x67...

668fca91 06/01/2013 01:25 pm liguang

debugcon: fix compiler warning when open DEBUG_DEBUGCON

compiler warnings:
CC hw/char/debugcon.o
hw/char/debugcon.c: In function ‘debugcon_ioport_write’:
hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, but argument 3 has type ‘uint64_t’...

80270a19 05/03/2013 08:05 pm KONRAD Frederic

virtio-serial: fix command line compatibility.

The bus name is wrong since the refactoring.

This keeps the behaviour of the command line.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

eeceb084 04/29/2013 04:27 pm Andreas Färber

serial: QOM'ify ISA serial

Introduce type constant and cast macro to obsolete DO_UPCAST().

Prepares for ISA realizefn.

Signed-off-by: Andreas Färber <>
Signed-off-by: Andreas Färber <>
Message-id: ...

b0dc5ee6 04/29/2013 04:27 pm Andreas Färber

parallel: QOM'ify

Introduce type constant and cast macro to obsolete DO_UPCAST().

Prepares for ISA realizefn.

Signed-off-by: Andreas Färber <>
Signed-off-by: Andreas Färber <>
Message-id: ...

fd506b4f 04/27/2013 12:02 am David Gibson

pseries: Convert VIO code to QOM style type safe(ish) casts

Curerntly the pseries VIO device code contains quite a few explicit
uses of DO_UPCAST and plain C casts. This is (obviously) type unsafe,
and not the conventional way of doing things in the QOM model. This...

6a1a8cc7 04/24/2013 07:50 pm KONRAD Frederic

virtio: cleanup: init and exit function.

This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

181103cd 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove the function pointer.

This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

f9fb0532 04/16/2013 12:52 pm Hans de Goede

virtio-console: Also throttle when less was written then requested

This is necessary so that we get properly woken up to write the rest.

This patch also changes the len argument to the have_data callback, to
avoid doing an unsigned signed comparison.

Signed-off-by: Hans de Goede <>...

c3d6b96e 04/16/2013 12:52 pm Hans de Goede

virtio-console: Remove any pending watches on close

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

4ceb193d 04/16/2013 01:06 am Anthony Liguori

Merge remote-tracking branch 'bonzini/hw-dirs' into staging

  • bonzini/hw-dirs:
    exec: remove useless declarations from memory-internal.h
    memory: move core typedefs to qemu/typedefs.h
    include: avoid useless includes of exec/ headers
    sysemu: avoid proliferation of include/ subdirectories...
dccfcd0e 04/15/2013 07:19 pm Paolo Bonzini

sysemu: avoid proliferation of include/ subdirectories

Signed-off-by: Paolo Bonzini <>

34b95b2c 04/15/2013 06:22 pm KONRAD Frederic

virtio-serial: cleanup: init and exit functions.

This remove old init and exit function as they are no longer needed.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

76017fd2 04/15/2013 06:22 pm KONRAD Frederic

virtio-serial: cleanup: use QOM casts.

As the virtio-serial-pci and virtio-serial-s390 are switched to the new
API, we can use QOM casts.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

d5990ff4 04/15/2013 06:22 pm KONRAD Frederic

virtio-serial: cleanup: remove qdev field.

The qdev field is no longer needed, just drop it.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

2cd2b016 04/15/2013 06:22 pm KONRAD Frederic

virtio-serial: add the virtio-serial device.

Create virtio-serial which extends virtio-device, so it can be connected
on virtio-bus.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

47b43a1f 04/08/2013 07:13 pm Paolo Bonzini

hw: move private headers to hw/ subdirectories.

Many headers are used only in a single directory. These can be
kept in hw/.

Signed-off-by: Paolo Bonzini <>

9944d320 04/08/2013 07:13 pm Paolo Bonzini

hw: move char devices to hw/char/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>

6e790746 04/08/2013 07:13 pm Paolo Bonzini

hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <>

1fd6bb44 04/08/2013 07:13 pm Paolo Bonzini

hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <>