All of lore.kernel.org
 help / color / mirror / Atom feed
From: Evgeny Voevodin <e.voevodin@samsung.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	aliguori@us.ibm.com, i.mitsyanko@samsung.com,
	qemu-devel@nongnu.org, kyungmin.park@samsung.com,
	d.solodkiy@samsung.com, m.kozlov@samsung.com
Subject: Re: [Qemu-devel] [RFC 0/9] Virtio-mmio refactoring.
Date: Sat, 05 May 2012 07:06:40 +0400	[thread overview]
Message-ID: <4FA49940.2090603@samsung.com> (raw)
In-Reply-To: <4FA3D751.80806@codemonkey.ws>

On 04.05.2012 17:19, Anthony Liguori wrote:
> On 05/03/2012 07:14 AM, Peter Maydell wrote:
>> On 25 April 2012 06:54, Evgeny Voevodin<e.voevodin@samsung.com>  wrote:
>>> In this patchset refactoring of virtio-mmio layer is made.
>>> Instead of creating virtio-blk-mmio, virtio-net-mmio, etc on the 
>>> system bus
>>> we create virtio-blk, virtio-net, etc devices on the 
>>> virtio-transport bus.
>>> To create virtio-transport bus virtio-mmio-transport device provided.
>>> Transport device plugs into virtio-mmio bus.
>>> To create virtio-mmio bus virtio-mmio-bridge device provided.
>>
>> This seems to me to have one more layer than it needs. Why not just:
>>   create virtio-blk, virtio-net, etc on the virtio-transport bus
>>   To create virtio-transport bus, we create a virtio-mmio-transport
>>   device, and this device is a sysbus device.
>>
>> ie why do you have separate "virtio-mmio-transport" and
>> "virtio-mmio-bridge" devices, and two different new buses ("virtio-mmio"
>> and "virtio-transport") rather than just "virtio-transport"?
>
> I think using a bus won't work.   You need to create a VirtioDevice 
> that has a link<VirtioTransport>.  I would suggest making 
> VirtioTransport an interface.

Do you mean latest QOM series that qomyfies buses or some issue in pci 
(which I don't see)?
I was planning to refactor virtio-pci, make sure it works and then 
hoping that last QOM series lands in master
convert all the stuff to correspond it.
>
> Then you can have VirtioPCI inherit from PCIDevice and implement 
> VirtioTransport.

-- 
Kind regards,
Evgeny Voevodin,
Leading Software Engineer,
ASWG, Moscow R&D center, Samsung Electronics
e-mail: e.voevodin@samsung.com

      reply	other threads:[~2012-05-05  3:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1335333257-5128-1-git-send-email-e.voevodin@samsung.com>
2012-05-03 12:14 ` [Qemu-devel] [RFC 0/9] Virtio-mmio refactoring Peter Maydell
2012-05-04  3:41   ` Evgeny Voevodin
2012-05-04 11:58     ` Evgeny Voevodin
2012-05-04 13:19   ` Anthony Liguori
2012-05-05  3:06     ` Evgeny Voevodin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA49940.2090603@samsung.com \
    --to=e.voevodin@samsung.com \
    --cc=aliguori@us.ibm.com \
    --cc=anthony@codemonkey.ws \
    --cc=d.solodkiy@samsung.com \
    --cc=i.mitsyanko@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=m.kozlov@samsung.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.