qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "agraf@suse.de" <agraf@suse.de>,
	"peter.crosthwaite@xilinx.com" <peter.crosthwaite@xilinx.com>,
	"Huangweidong (C)" <weidong.huang@huawei.com>,
	Luonengjun <luonengjun@huawei.com>,
	"Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"borntraeger@de.ibm.com" <borntraeger@de.ibm.com>,
	"stefanha@redhat.com" <stefanha@redhat.com>,
	"cornelia.huck@de.ibm.com" <cornelia.huck@de.ibm.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"afaerber@suse.de" <afaerber@suse.de>,
	"rth@twiddle.net" <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v2 1/9] virtio-net: use aliases instead of duplicate qdev properties
Date: Mon, 15 Sep 2014 12:59:01 +0300	[thread overview]
Message-ID: <20140915095901.GC31236@redhat.com> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF1902086DD4832@SZXEMA503-MBS.china.huawei.com>

On Mon, Sep 15, 2014 at 09:29:26AM +0000, Gonglei (Arei) wrote:
> > > Subject: RE: [PATCH v2 1/9] virtio-net: use aliases instead of duplicate qdev
> > > properties
> > >
> > > > > > >
> > > > > > > Sorry, I don't understand your meaning. :(
> > > > > >
> > > > > > I applied your patch, and looked at the property types.
> > > > > >
> > > > > Could you tell me your method looked at properties type?
> > > >
> > > > You can use an HMP command, or you can use
> > > > -device virtio-net-pci,?
> > >
> > > OK. Good method.
> > >
> > > > changes must not modify output except for adding
> > > > new commands, or fixing bugs (with care).
> > > >
> > > OK.
> > >
> > > > > > They should be netdev/vlan/macaddr.
> > > > > > Your patch makes them str/int32/str
> > > > > >
> > > > > Does those changes have any side-effects? Thanks!
> > > >
> > > > Yes.  If the types are just "int" and "str" then you
> > > > have no way to know they should have a specific format,
> > > > such as a name of a netdev, valid mac address, or a vlan.
> > > > In fact, vlan=int is a bug since vlan names aren't numbers.
> > > >
> > > Got it.
> > >
> > > > > The similar changes for virtio-blk had applied in qemu master.
> > > > >
> > > > > Best regards,
> > > > > -Gonglei
> > > >
> > > > Which commit? Did output change? If yes it's a bug.
> > >
> > > No, I checked it again, virtio-blk-pci's properties are 'int' type as
> > > the same as virtio-blk device, so it will have no problem on this point.
> > >
> > Sorry. There are two properties are different
> >  (commit caffdac363801cd2cf2bf01ad013a8c1e1e43800)
> > 
> > Before:
> > 
> > virtio-blk-pci.physical_block_size=blocksize
> > virtio-blk-pci.logical_block_size=blocksize
> > 
> > After commit caffdac363801cd2cf2bf01ad013a8c1e1e43800 :
> > 
> > virtio-blk-pci.physical_block_size=uint16
> > virtio-blk-pci.logical_block_size=uint16
> > 
> And
> 
> Before:
>   virtio-blk-pci.drive=drive
> 
> After:
>  virtio-blk-pci.drive=str

That's a bug. Need to fix that.

> > > I will rework this patch series. Thanks a lot for review! :)
> > >
> > > Best regards,
> > > -Gonglei

  reply	other threads:[~2014-09-15 10:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09  6:35 [Qemu-devel] [PATCH v2 0/9] virtio: fix virtio child recount in transports arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 1/9] virtio-net: use aliases instead of duplicate qdev properties arei.gonglei
2014-09-14 18:13   ` Michael S. Tsirkin
2014-09-15  1:03     ` Gonglei (Arei)
2014-09-15  5:36       ` Michael S. Tsirkin
2014-09-15  5:49         ` Gonglei (Arei)
2014-09-15  6:41           ` Michael S. Tsirkin
2014-09-15  7:12             ` Gonglei (Arei)
2014-09-15  8:37               ` Michael S. Tsirkin
2014-09-15  9:06                 ` Gonglei (Arei)
2014-09-15  9:23                 ` Gonglei (Arei)
2014-09-15  9:29                   ` Gonglei (Arei)
2014-09-15  9:59                     ` Michael S. Tsirkin [this message]
2014-09-15 14:11                       ` Gonglei (Arei)
2014-09-15  9:58                   ` Michael S. Tsirkin
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 2/9] virtio: fix virtio-net child refcount in transports arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 3/9] virtio/vhost scsi: use aliases instead of duplicate qdev properties arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 4/9] virtio/vhost-scsi: fix virtio-scsi/vhost-scsi child refcount in transports arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 5/9] virtio-serial: use aliases instead of duplicate qdev properties arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 6/9] virtio-serial: fix virtio-serial child refcount in transports arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 7/9] virtio-rng: use aliases instead of duplicate qdev properties arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 8/9] virtio-rng: fix virtio-rng child refcount in transports arei.gonglei
2014-09-09  6:35 ` [Qemu-devel] [PATCH v2 9/9] virtio-balloon: fix virtio-balloon " arei.gonglei
2014-09-12 11:55 ` [Qemu-devel] [PATCH v2 0/9] virtio: fix virtio child recount " Gonglei (Arei)
2014-09-19  9:52 ` Gonglei (Arei)

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=20140915095901.GC31236@redhat.com \
    --to=mst@redhat.com \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=arei.gonglei@huawei.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=luonengjun@huawei.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=stefanha@redhat.com \
    --cc=weidong.huang@huawei.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).