qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC PATCH v2 0/3] Virtio-refactoring.


From: fred . konrad
Subject: [Qemu-devel] [RFC PATCH v2 0/3] Virtio-refactoring.
Date: Thu, 22 Nov 2012 15:50:49 +0100

From: KONRAD Frederic <address@hidden>

Hi,

I made the changes you suggest in the last RFC. 

There are still two issues with the command line :

    * When I use ./qemu* -device virtio-blk -device virtio-pci
      It is said that no virtio-bus are present.
    * The virtio-blk is plugged in the last created virtio-bus if no "bus="
      option is present. It's an issue as we can only plug one virtio-device.

The first problem is a more general issue as it is the case for the SCSI bus and
can be fixed later.

Changes v1 -> v2:

    * All the little fix you suggest ( License, Debug printf, naming convention,
      ...)
    * Added get_virtio_device_id(), and remove the pci_id* from the VirtioBus
      structure.
    * Added virtio_bus_reset().
    * Added cast macros VIRTIO_BUS.
    * Added virtio_bus_plug_device.
    * Replaced the old-style "bus->qbus" by BUS() macro.

git available here :
    git://git.greensocs.com/qemu_virtio.git virtio_refactoring_2
or with http :
    http://git.greensocs.com/?p=qemu_virtio.git;a=shortlog; \
    h=refs/heads/virtio_refactoring_2

Fred

KONRAD Frederic (3):
  virtio-bus : Introduce VirtioBus.
  virtio-pci : add a virtio-bus interface
  virtio-blk : add the virtio-blk device.

 hw/Makefile.objs |   1 +
 hw/virtio-blk.c  |  82 ++++++++++++++++++++++++++++++
 hw/virtio-blk.h  |  10 ++++
 hw/virtio-bus.c  | 148 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/virtio-bus.h  |  58 +++++++++++++++++++++
 hw/virtio-pci.c  | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/virtio-pci.h  |   6 +++
 7 files changed, 457 insertions(+)
 create mode 100644 hw/virtio-bus.c
 create mode 100644 hw/virtio-bus.h

-- 
1.7.11.7




reply via email to

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