qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: Li Qiang <liq3ea@gmail.com>
Cc: "Li Qiang" <liq3ea@163.com>,
	lvivier@redhat.com, "Qemu Developers" <qemu-devel@nongnu.org>,
	qemu-trivial@nongnu.org,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO
Date: Mon, 20 May 2019 14:02:21 -0600	[thread overview]
Message-ID: <20190520140221.17a12a0a@x1.home> (raw)
In-Reply-To: <CAKXe6SK=Uw7ZNPDvWHFoTHynFsOrEDcAK-+p2ft7YMpo86uC+A@mail.gmail.com>

On Mon, 20 May 2019 09:27:47 +0800
Li Qiang <liq3ea@gmail.com> wrote:

> Alex Williamson <alex.williamson@redhat.com> 于2019年5月18日周六 下午10:18写道:
> 
> > On Fri, 17 May 2019 20:28:08 -0700
> > Li Qiang <liq3ea@163.com> wrote:
> >
> > Why?  (No commit message, nor cover letter)
> >
> >  
> Once I think these are trivial so no cover letter and lack some commit
> message.
> I will add some commit message in the next revision.

There is no patch that is not improved by a commit message IMO.
 
> For this patch, this is more consistent with QOMConventions:
> -->https://wiki.qemu.org/Documentation/QOMConventions  

Ok, so you're effectively just updating your previous commit
2683ccd5be8f ("vfio-pci: make vfio-pci device more QOM conventional")
which crossed in flight with b290659fc3dd ("hw/vfio/display: add ramfb
support") which added this new TypeInfo.  The QOMConventions only
recommend a TYPE_FOO if used in other parts of the code, but for
consistency I think it's reasonable (with a commit log ;).  Thanks,

Alex

> > > CC: qemu-trivial@nongnu.org
> > > Signed-off-by: Li Qiang <liq3ea@163.com>
> > > ---
> > >  hw/vfio/pci.c | 6 ++++--
> > >  1 file changed, 4 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
> > > index 8cecb53d5c..08729e5875 100644
> > > --- a/hw/vfio/pci.c
> > > +++ b/hw/vfio/pci.c
> > > @@ -40,6 +40,8 @@
> > >  #define TYPE_VFIO_PCI "vfio-pci"
> > >  #define PCI_VFIO(obj)    OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
> > >
> > > +#define TYPE_VIFO_PCI_NOHOTPLUG "vfio-pci-nohotplug"
> > > +
> > >  static void vfio_disable_interrupts(VFIOPCIDevice *vdev);
> > >  static void vfio_mmap_set_enabled(VFIOPCIDevice *vdev, bool enabled);
> > >
> > > @@ -3304,8 +3306,8 @@ static void  
> > vfio_pci_nohotplug_dev_class_init(ObjectClass *klass, void *data)  
> > >  }
> > >
> > >  static const TypeInfo vfio_pci_nohotplug_dev_info = {
> > > -    .name = "vfio-pci-nohotplug",
> > > -    .parent = "vfio-pci",
> > > +    .name = TYPE_VIFO_PCI_NOHOTPLUG,
> > > +    .parent = TYPE_VFIO_PCI,
> > >      .instance_size = sizeof(VFIOPCIDevice),
> > >      .class_init = vfio_pci_nohotplug_dev_class_init,
> > >  };  
> >
> >  



      reply	other threads:[~2019-05-20 20:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-18  3:28 [Qemu-trivial] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Li Qiang
2019-05-18  3:28 ` [Qemu-trivial] [PATCH 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription Li Qiang
2019-05-18 14:20   ` Alex Williamson
2019-05-20  1:29     ` Li Qiang
2019-05-20 20:12       ` Alex Williamson
2019-05-18  3:28 ` [Qemu-trivial] [PATCH 3/4] vfio: platform: fix a typo Li Qiang
2019-05-18 14:20   ` Alex Williamson
2019-05-18  3:28 ` [Qemu-trivial] [PATCH 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file Li Qiang
2019-05-18 14:21   ` Alex Williamson
2019-05-18 14:18 ` [Qemu-trivial] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Alex Williamson
2019-05-20  1:27   ` Li Qiang
2019-05-20 20:02     ` Alex Williamson [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=20190520140221.17a12a0a@x1.home \
    --to=alex.williamson@redhat.com \
    --cc=liq3ea@163.com \
    --cc=liq3ea@gmail.com \
    --cc=lvivier@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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 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).