qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Li Qiang <liq3ea@gmail.com>
To: alex.williamson@redhat.com
Cc: qemu-devel@nongnu.org, philmd@redhat.com, Li Qiang <liq3ea@gmail.com>
Subject: [Qemu-devel] [PATCH 1/7] vfio-pci: make "vfio-pci-nohotplug" as MACRO
Date: Thu, 18 Oct 2018 22:20:06 -0700	[thread overview]
Message-ID: <1539926412-21831-2-git-send-email-liq3ea@gmail.com> (raw)
In-Reply-To: <1539926412-21831-1-git-send-email-liq3ea@gmail.com>

Signed-off-by: Li Qiang <liq3ea@gmail.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 8b73582..1f05b57 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_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug"
+
 static void vfio_disable_interrupts(VFIOPCIDevice *vdev);
 static void vfio_mmap_set_enabled(VFIOPCIDevice *vdev, bool enabled);
 
@@ -3277,8 +3279,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_VFIO_PCI_NOHOTPLUG,
+    .parent = TYPE_VFIO_PCI,
     .instance_size = sizeof(VFIOPCIDevice),
     .class_init = vfio_pci_nohotplug_dev_class_init,
 };
-- 
1.8.3.1

  reply	other threads:[~2018-10-19  5:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19  5:20 [Qemu-devel] [PATCH 0/7] vfio: some trivial fixes Li Qiang
2018-10-19  5:20 ` Li Qiang [this message]
2018-10-19  5:20 ` [Qemu-devel] [PATCH 2/7] vfio: ap-device: make it more QOMConventional Li Qiang
2018-10-19  5:20 ` [Qemu-devel] [PATCH 3/7] vfio: drop TYPE_FOO MACRO in VMStateDescription Li Qiang
2018-10-19  5:20 ` [Qemu-devel] [PATCH 4/7] vfio: paltform: fix a typo Li Qiang
2018-10-19  5:23   ` Philippe Mathieu-Daudé
2018-10-19 16:41   ` Auger Eric
2018-10-19  5:20 ` [Qemu-devel] [PATCH 5/7] vfio: platform: cleanup the notifier in error path Li Qiang
2018-10-19  5:20 ` [Qemu-devel] [PATCH 6/7] vfio: platform: free timer " Li Qiang
2018-10-19  5:20 ` [Qemu-devel] [PATCH 7/7] vfio: platform: destory mutex " Li Qiang
2018-10-19 16:41   ` Auger Eric
2018-10-22  1:57     ` Li Qiang
2018-10-19  5:25 ` [Qemu-devel] [PATCH 0/7] vfio: some trivial fixes Philippe Mathieu-Daudé

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=1539926412-21831-2-git-send-email-liq3ea@gmail.com \
    --to=liq3ea@gmail.com \
    --cc=alex.williamson@redhat.com \
    --cc=philmd@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 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).