From: Juan Quintela <quintela@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 0/5] virtio: cleanup layout assumptions
Date: Thu, 18 Mar 2010 09:23:10 +0100 [thread overview]
Message-ID: <m3bpemnimp.fsf@trasno.mitica> (raw)
In-Reply-To: <cover.1268896694.git.mst@redhat.com> (Michael S. Tsirkin's message of "Thu, 18 Mar 2010 09:21:25 +0200")
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> This patchset helps remove the assumption that vdev must be the 1st
> member in any virtio device implementation. Other assumptions (made by
> qdev) can be removed in a similar way separately, this patchset does not
> do this yet.
> Juan, this is an alternative to your 'tell virtio about DO_UPCAST'
> patch, pls take a look.
Answered in the other series. I don't see what removing that assumption
brings us. qdev "requires" that 1st element is a qdev. And that
requeriment is not going out anytime soon.
I think that this series are "over" engineering, at least until somebody
cames with a good use for not being the 1st element.
Why do you want this? Notice that rest of qemu has this same assumption
for rest of devices. Principle of Least Surprise means use my
"cleanup".
Furthermore, your VIRTIO_COMMON_INIT() macro is ugly as hell, again to
gain us nothing.
Without a good reason why we don't want VirtIODevice to be the 1st
element, I think that my series are more coherent (but on the other
hand, what would you expect from me :)
Later, Juan.
next prev parent reply other threads:[~2010-03-18 8:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-18 7:21 [Qemu-devel] [PATCH 0/5] virtio: cleanup layout assumptions Michael S. Tsirkin
2010-03-18 7:21 ` [Qemu-devel] [PATCH 1/5] virtio: add type safe API Michael S. Tsirkin
2010-03-18 7:21 ` [Qemu-devel] [PATCH 2/5] virtio-net: remove layout assumptions Michael S. Tsirkin
2010-03-18 7:21 ` [Qemu-devel] [PATCH 3/5] virtio-serial: remove struct " Michael S. Tsirkin
2010-03-18 7:21 ` [Qemu-devel] [PATCH 4/5] virtio-balloon: remove " Michael S. Tsirkin
2010-03-18 7:21 ` [Qemu-devel] [PATCH 5/5] virtio-blk: remove layout assumption Michael S. Tsirkin
2010-03-18 8:23 ` Juan Quintela [this message]
2010-03-18 9:26 ` [Qemu-devel] Re: [PATCH 0/5] virtio: cleanup layout assumptions Michael S. Tsirkin
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=m3bpemnimp.fsf@trasno.mitica \
--to=quintela@redhat.com \
--cc=mst@redhat.com \
--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.