qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] f1b24e: virtio: make virtio device's structur


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] f1b24e: virtio: make virtio device's structures public.
Date: Mon, 18 Mar 2013 13:30:16 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: f1b24e840f9f85a2bb3912e4507d887e7858219d
      
https://github.com/qemu/qemu/commit/f1b24e840f9f85a2bb3912e4507d887e7858219d
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-balloon.c
    M hw/virtio-balloon.h
    M hw/virtio-blk.c
    M hw/virtio-blk.h
    M hw/virtio-net.c
    M hw/virtio-net.h
    M hw/virtio-rng.c
    M hw/virtio-rng.h
    M hw/virtio-scsi.c
    M hw/virtio-scsi.h
    M hw/virtio-serial-bus.c
    M hw/virtio-serial.h

  Log Message:
  -----------
  virtio: make virtio device's structures public.

These structures must be made public to avoid two memory allocations for
refactored virtio devices.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Message-id: address@hidden

Changes V4 <- V3:
   * Rebased on current git.

Changes V3 <- V2:
    * Style correction spotted by Andreas (virtio-scsi.h).
    * Style correction for virtio-net.h.

Changes V2 <- V1:
    * Move the dataplane include into the header (virtio-blk).
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: cbd19063e75c64ac5e4029f76198c7ba65a63b00
      
https://github.com/qemu/qemu/commit/cbd19063e75c64ac5e4029f76198c7ba65a63b00
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/s390x/s390-virtio-bus.c
    M hw/s390x/virtio-ccw.c
    M hw/virtio-pci.c

  Log Message:
  -----------
  virtio-x-bus: fix allow_hotplug assertion.

This set allow_hotplug for each existing virtio-x-bus, allowing the
refactored devices to be hot pluggable.

Signed-off-by: KONRAD Frederic <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 10479a80893fb2666026ce0fea2251be3070b6e2
      
https://github.com/qemu/qemu/commit/10479a80893fb2666026ce0fea2251be3070b6e2
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-pci.c

  Log Message:
  -----------
  virtio-pci: fix hot unplug.

Hot unplug failed because it tried to free the virtio device two times.

This fix the issue by removing the call to virtio_bus_destroy_device.

Signed-off-by: KONRAD Frederic <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: da3dcefa648f92bfef2f99351fb6ec6a86da4695
      
https://github.com/qemu/qemu/commit/da3dcefa648f92bfef2f99351fb6ec6a86da4695
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-blk.c
    M hw/virtio-blk.h

  Log Message:
  -----------
  virtio-blk: don't use pointer for configuration.

The configuration field must not be a pointer as it will be used for virtio-blk
properties. So *blk is replaced by blk in VirtIOBlock structure.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 1c028ddfb0c5004c8ec86c96ae09068026e77a38
      
https://github.com/qemu/qemu/commit/1c028ddfb0c5004c8ec86c96ae09068026e77a38
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-blk.c
    M hw/virtio-blk.h
    M hw/virtio-pci.c

  Log Message:
  -----------
  virtio-blk: add the virtio-blk device.

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

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 653ced071b061bbd9cc7d03374be93dcefb37910
      
https://github.com/qemu/qemu/commit/653ced071b061bbd9cc7d03374be93dcefb37910
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-pci.c
    M hw/virtio-pci.h

  Log Message:
  -----------
  virtio-blk-pci: switch to new API.

Here the virtio-blk-pci is modified for the new API. The device
virtio-blk-pci extends virtio-pci. It creates and connects a virtio-blk
during the init. The properties are not changed.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 55d11e01cca9b83b8cdccbd29d4f078cbe4a185c
      
https://github.com/qemu/qemu/commit/55d11e01cca9b83b8cdccbd29d4f078cbe4a185c
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/s390x/s390-virtio-bus.c
    M hw/s390x/s390-virtio-bus.h

  Log Message:
  -----------
  virtio-blk-s390: switch to the new API.

Here the virtio-blk-s390 is modified for the new API. The device
virtio-blk-s390 extends virtio-s390-device as before. It creates and
connects a virtio-blk during the init. The properties are not modified.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 3400c455048a8db26db1b537ea32fa21335ea301
      
https://github.com/qemu/qemu/commit/3400c455048a8db26db1b537ea32fa21335ea301
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/s390x/virtio-ccw.c
    M hw/s390x/virtio-ccw.h

  Log Message:
  -----------
  virtio-blk-ccw switch to new API.

Here the virtio-ccw-s390 is modified for the new API. The device
virtio-ccw-s390 extends virtio-ccw-device as before. It creates and
connects a virtio-ccw during the init. The properties are not modified.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 05ff686536f408ba6e8426b1b54d25bd3379fda2
      
https://github.com/qemu/qemu/commit/05ff686536f408ba6e8426b1b54d25bd3379fda2
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-blk.c
    M hw/virtio.h

  Log Message:
  -----------
  virtio-blk: cleanup: init and exit functions.

As all virtio-blk-* are switched to the new API, we can remove the separate
init/exit for the old API.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 1cc91b7df687289abc0ae09083ac564d01408be8
      
https://github.com/qemu/qemu/commit/1cc91b7df687289abc0ae09083ac564d01408be8
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-blk.c
    M hw/virtio-blk.h

  Log Message:
  -----------
  virtio-blk: cleanup: QOM cast

Use QOM casts inside virtio-blk.

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 2d62a95766025e6a0a333528278936e2cc8bf978
      
https://github.com/qemu/qemu/commit/2d62a95766025e6a0a333528278936e2cc8bf978
  Author: KONRAD Frederic <address@hidden>
  Date:   2013-03-18 (Mon, 18 Mar 2013)

  Changed paths:
    M hw/virtio-blk.c
    M hw/virtio-blk.h

  Log Message:
  -----------
  virtio-blk: cleanup: remove qdev field.

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

Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


Compare: https://github.com/qemu/qemu/compare/e531761d63b7...2d62a9576602

reply via email to

[Prev in Thread] Current Thread [Next in Thread]