Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-21 Thread KONRAD Frédéric
On 21/11/2012 15:13, Andreas Färber wrote: Am 21.11.2012 15:05, schrieb KONRAD Frédéric: On 21/11/2012 14:04, Andreas Färber wrote: Am 16.11.2012 16:35, schrieb fred.kon...@greensocs.com: +#define DEBUG_VIRTIO_BUS + +#ifdef DEBUG_VIRTIO_BUS + +#define DPRINTF(fmt, ...) \ +do { printf("virtio_b

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-21 Thread Andreas Färber
Am 21.11.2012 15:05, schrieb KONRAD Frédéric: > On 21/11/2012 14:04, Andreas Färber wrote: >> Am 16.11.2012 16:35, schrieb fred.kon...@greensocs.com: >>> +#define DEBUG_VIRTIO_BUS >>> + >>> +#ifdef DEBUG_VIRTIO_BUS >>> + >>> +#define DPRINTF(fmt, ...) \ >>> +do { printf("virtio_bus: " fmt , ## __VA

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-21 Thread KONRAD Frédéric
On 21/11/2012 14:04, Andreas Färber wrote: Am 16.11.2012 16:35, schrieb fred.kon...@greensocs.com: From: KONRAD Frederic This patch create a new VirtioBus, which can be added to Virtio transports like virtio-pci, virtio-mmio,... One VirtIODevice can be connected to this device, like virtio-bl

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-21 Thread Andreas Färber
Am 16.11.2012 16:35, schrieb fred.kon...@greensocs.com: > From: KONRAD Frederic > > This patch create a new VirtioBus, which can be added to Virtio transports > like > virtio-pci, virtio-mmio,... > > One VirtIODevice can be connected to this device, like virtio-blk in the 3rd > patch. > > The

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-21 Thread KONRAD Frédéric
On 19/11/2012 18:33, Peter Maydell wrote: On 16 November 2012 15:35, wrote: From: KONRAD Frederic You forgot to CC enough people... This patch create a new VirtioBus, which can be added to Virtio transports like virtio-pci, virtio-mmio,... One VirtIODevice can be connected to this device,

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-20 Thread Cornelia Huck
On Tue, 20 Nov 2012 17:45:15 +0100 KONRAD Frédéric wrote: > eg for virtio-block-pci in virtio-pci.c : > static void virtio_blk_class_init(ObjectClass *klass, void *data) > { > k->device_id = PCI_DEVICE_ID_VIRTIO_BLOCK; > ... > k->class_id = PCI_CLASS_STORAGE_SCSI; > } > > I think

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-20 Thread KONRAD Frédéric
On 20/11/2012 17:15, Cornelia Huck wrote: On Tue, 20 Nov 2012 15:30:35 +0100 KONRAD Frédéric wrote: On 20/11/2012 15:12, Cornelia Huck wrote: On Mon, 19 Nov 2012 17:33:01 + Peter Maydell wrote: On 16 November 2012 15:35, wrote: From: KONRAD Frederic You forgot to CC enough people.

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-20 Thread Cornelia Huck
On Tue, 20 Nov 2012 15:30:35 +0100 KONRAD Frédéric wrote: > On 20/11/2012 15:12, Cornelia Huck wrote: > > On Mon, 19 Nov 2012 17:33:01 + > > Peter Maydell wrote: > > > >> On 16 November 2012 15:35, wrote: > >>> From: KONRAD Frederic > >> You forgot to CC enough people... > >> > >>> This p

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-20 Thread KONRAD Frédéric
On 20/11/2012 15:12, Cornelia Huck wrote: On Mon, 19 Nov 2012 17:33:01 + Peter Maydell wrote: On 16 November 2012 15:35, wrote: From: KONRAD Frederic You forgot to CC enough people... This patch create a new VirtioBus, which can be added to Virtio transports like virtio-pci, virtio-

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-20 Thread Cornelia Huck
On Mon, 19 Nov 2012 17:33:01 + Peter Maydell wrote: > On 16 November 2012 15:35, wrote: > > From: KONRAD Frederic > > You forgot to CC enough people... > > > This patch create a new VirtioBus, which can be added to Virtio transports > > like > > virtio-pci, virtio-mmio,... > > > > One V

Re: [Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-19 Thread Peter Maydell
On 16 November 2012 15:35, wrote: > From: KONRAD Frederic You forgot to CC enough people... > This patch create a new VirtioBus, which can be added to Virtio transports > like > virtio-pci, virtio-mmio,... > > One VirtIODevice can be connected to this device, like virtio-blk in the 3rd > patc

[Qemu-devel] [RFC PATCH 1/3] virtio-bus : Introduce VirtioBus.

2012-11-16 Thread fred . konrad
From: KONRAD Frederic This patch create a new VirtioBus, which can be added to Virtio transports like virtio-pci, virtio-mmio,... One VirtIODevice can be connected to this device, like virtio-blk in the 3rd patch. The VirtioBus shares through a VirtioBusInfo structure : * two callbacks wit