* [Qemu-trivial] [PATCH v2 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
@ 2019-05-21 15:15 ` Li Qiang
2019-05-22 15:24 ` Laurent Vivier
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription Li Qiang
` (5 subsequent siblings)
6 siblings, 1 reply; 12+ messages in thread
From: Li Qiang @ 2019-05-21 15:15 UTC (permalink / raw)
To: alex.williamson, lvivier
Cc: qemu-devel, qemu-trivial, liq3ea, philmd, Li Qiang
The QOMConventions recommends we should use TYPE_FOO
for a TypeInfo's name. Though "vfio-pci-nohotplug" is not
used in other parts, for consistency we should make this change.
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,
};
--
2.17.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Li Qiang
@ 2019-05-22 15:24 ` Laurent Vivier
0 siblings, 0 replies; 12+ messages in thread
From: Laurent Vivier @ 2019-05-22 15:24 UTC (permalink / raw)
To: Li Qiang, alex.williamson, lvivier
Cc: qemu-trivial, philmd, liq3ea, qemu-devel
On 21/05/2019 17:15, Li Qiang wrote:
> The QOMConventions recommends we should use TYPE_FOO
> for a TypeInfo's name. Though "vfio-pci-nohotplug" is not
> used in other parts, for consistency we should make this change.
>
> 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,
> };
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-trivial] [PATCH v2 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Li Qiang
@ 2019-05-21 15:15 ` Li Qiang
2019-05-22 15:26 ` Laurent Vivier
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 3/4] vfio: platform: fix a typo Li Qiang
` (4 subsequent siblings)
6 siblings, 1 reply; 12+ messages in thread
From: Li Qiang @ 2019-05-21 15:15 UTC (permalink / raw)
To: alex.williamson, lvivier
Cc: qemu-devel, qemu-trivial, liq3ea, philmd, Li Qiang
It's recommended that VMStateDescription names are decoupled from QOM
type names as the latter may freely change without consideration of
migration compatibility.
Link: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02175.html
CC: qemu-trivial@nongnu.org
Signed-off-by: Li Qiang <liq3ea@163.com>
---
hw/vfio/amd-xgbe.c | 2 +-
hw/vfio/ap.c | 2 +-
hw/vfio/calxeda-xgmac.c | 2 +-
hw/vfio/ccw.c | 2 +-
hw/vfio/platform.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/vfio/amd-xgbe.c b/hw/vfio/amd-xgbe.c
index ee64a3b4a2..1b06c0f3ea 100644
--- a/hw/vfio/amd-xgbe.c
+++ b/hw/vfio/amd-xgbe.c
@@ -26,7 +26,7 @@ static void amd_xgbe_realize(DeviceState *dev, Error **errp)
}
static const VMStateDescription vfio_platform_amd_xgbe_vmstate = {
- .name = TYPE_VFIO_AMD_XGBE,
+ .name = "vfio-amd-xgbe",
.unmigratable = 1,
};
diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
index d8b79ebe53..564751650f 100644
--- a/hw/vfio/ap.c
+++ b/hw/vfio/ap.c
@@ -155,7 +155,7 @@ static void vfio_ap_reset(DeviceState *dev)
}
static const VMStateDescription vfio_ap_vmstate = {
- .name = VFIO_AP_DEVICE_TYPE,
+ .name = "vfio-ap",
.unmigratable = 1,
};
diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c
index e7767c4b02..6cc608b6ca 100644
--- a/hw/vfio/calxeda-xgmac.c
+++ b/hw/vfio/calxeda-xgmac.c
@@ -26,7 +26,7 @@ static void calxeda_xgmac_realize(DeviceState *dev, Error **errp)
}
static const VMStateDescription vfio_platform_calxeda_xgmac_vmstate = {
- .name = TYPE_VFIO_CALXEDA_XGMAC,
+ .name = "vfio-calxeda-xgmac",
.unmigratable = 1,
};
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
index 31dd3a2a87..d9e39552e2 100644
--- a/hw/vfio/ccw.c
+++ b/hw/vfio/ccw.c
@@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] = {
};
static const VMStateDescription vfio_ccw_vmstate = {
- .name = TYPE_VFIO_CCW,
+ .name = "vfio-ccw",
.unmigratable = 1,
};
diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index 398db38f14..e59a0234dd 100644
--- a/hw/vfio/platform.c
+++ b/hw/vfio/platform.c
@@ -697,7 +697,7 @@ out:
}
static const VMStateDescription vfio_platform_vmstate = {
- .name = TYPE_VFIO_PLATFORM,
+ .name = "vfio-platform",
.unmigratable = 1,
};
--
2.17.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription Li Qiang
@ 2019-05-22 15:26 ` Laurent Vivier
0 siblings, 0 replies; 12+ messages in thread
From: Laurent Vivier @ 2019-05-22 15:26 UTC (permalink / raw)
To: Li Qiang, alex.williamson, lvivier
Cc: qemu-trivial, philmd, liq3ea, qemu-devel
On 21/05/2019 17:15, Li Qiang wrote:
> It's recommended that VMStateDescription names are decoupled from QOM
> type names as the latter may freely change without consideration of
> migration compatibility.
>
> Link: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02175.html
>
> CC: qemu-trivial@nongnu.org
> Signed-off-by: Li Qiang <liq3ea@163.com>
> ---
> hw/vfio/amd-xgbe.c | 2 +-
> hw/vfio/ap.c | 2 +-
> hw/vfio/calxeda-xgmac.c | 2 +-
> hw/vfio/ccw.c | 2 +-
> hw/vfio/platform.c | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/hw/vfio/amd-xgbe.c b/hw/vfio/amd-xgbe.c
> index ee64a3b4a2..1b06c0f3ea 100644
> --- a/hw/vfio/amd-xgbe.c
> +++ b/hw/vfio/amd-xgbe.c
> @@ -26,7 +26,7 @@ static void amd_xgbe_realize(DeviceState *dev, Error **errp)
> }
>
> static const VMStateDescription vfio_platform_amd_xgbe_vmstate = {
> - .name = TYPE_VFIO_AMD_XGBE,
> + .name = "vfio-amd-xgbe",
> .unmigratable = 1,
> };
>
> diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
> index d8b79ebe53..564751650f 100644
> --- a/hw/vfio/ap.c
> +++ b/hw/vfio/ap.c
> @@ -155,7 +155,7 @@ static void vfio_ap_reset(DeviceState *dev)
> }
>
> static const VMStateDescription vfio_ap_vmstate = {
> - .name = VFIO_AP_DEVICE_TYPE,
> + .name = "vfio-ap",
> .unmigratable = 1,
> };
>
> diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c
> index e7767c4b02..6cc608b6ca 100644
> --- a/hw/vfio/calxeda-xgmac.c
> +++ b/hw/vfio/calxeda-xgmac.c
> @@ -26,7 +26,7 @@ static void calxeda_xgmac_realize(DeviceState *dev, Error **errp)
> }
>
> static const VMStateDescription vfio_platform_calxeda_xgmac_vmstate = {
> - .name = TYPE_VFIO_CALXEDA_XGMAC,
> + .name = "vfio-calxeda-xgmac",
> .unmigratable = 1,
> };
>
> diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
> index 31dd3a2a87..d9e39552e2 100644
> --- a/hw/vfio/ccw.c
> +++ b/hw/vfio/ccw.c
> @@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] = {
> };
>
> static const VMStateDescription vfio_ccw_vmstate = {
> - .name = TYPE_VFIO_CCW,
> + .name = "vfio-ccw",
> .unmigratable = 1,
> };
>
> diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
> index 398db38f14..e59a0234dd 100644
> --- a/hw/vfio/platform.c
> +++ b/hw/vfio/platform.c
> @@ -697,7 +697,7 @@ out:
> }
>
> static const VMStateDescription vfio_platform_vmstate = {
> - .name = TYPE_VFIO_PLATFORM,
> + .name = "vfio-platform",
> .unmigratable = 1,
> };
>
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-trivial] [PATCH v2 3/4] vfio: platform: fix a typo
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Li Qiang
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription Li Qiang
@ 2019-05-21 15:15 ` Li Qiang
2019-05-22 15:27 ` Laurent Vivier
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file Li Qiang
` (3 subsequent siblings)
6 siblings, 1 reply; 12+ messages in thread
From: Li Qiang @ 2019-05-21 15:15 UTC (permalink / raw)
To: alex.williamson, lvivier
Cc: qemu-devel, qemu-trivial, liq3ea, philmd, Li Qiang
'eventd' should be 'eventfd'.
CC: qemu-trivial@nongnu.org
Signed-off-by: Li Qiang <liq3ea@163.com>
---
hw/vfio/platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index e59a0234dd..d52d6552e0 100644
--- a/hw/vfio/platform.c
+++ b/hw/vfio/platform.c
@@ -72,7 +72,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
g_free(intp->interrupt);
g_free(intp);
error_setg_errno(errp, -ret,
- "failed to initialize trigger eventd notifier");
+ "failed to initialize trigger eventfd notifier");
return NULL;
}
if (vfio_irq_is_automasked(intp)) {
@@ -84,7 +84,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
g_free(intp->unmask);
g_free(intp);
error_setg_errno(errp, -ret,
- "failed to initialize resample eventd notifier");
+ "failed to initialize resample eventfd notifier");
return NULL;
}
}
--
2.17.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 3/4] vfio: platform: fix a typo
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 3/4] vfio: platform: fix a typo Li Qiang
@ 2019-05-22 15:27 ` Laurent Vivier
0 siblings, 0 replies; 12+ messages in thread
From: Laurent Vivier @ 2019-05-22 15:27 UTC (permalink / raw)
To: Li Qiang, alex.williamson, lvivier
Cc: qemu-trivial, philmd, liq3ea, qemu-devel
On 21/05/2019 17:15, Li Qiang wrote:
> 'eventd' should be 'eventfd'.
>
> CC: qemu-trivial@nongnu.org
> Signed-off-by: Li Qiang <liq3ea@163.com>
> ---
> hw/vfio/platform.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
> index e59a0234dd..d52d6552e0 100644
> --- a/hw/vfio/platform.c
> +++ b/hw/vfio/platform.c
> @@ -72,7 +72,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
> g_free(intp->interrupt);
> g_free(intp);
> error_setg_errno(errp, -ret,
> - "failed to initialize trigger eventd notifier");
> + "failed to initialize trigger eventfd notifier");
> return NULL;
> }
> if (vfio_irq_is_automasked(intp)) {
> @@ -84,7 +84,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
> g_free(intp->unmask);
> g_free(intp);
> error_setg_errno(errp, -ret,
> - "failed to initialize resample eventd notifier");
> + "failed to initialize resample eventfd notifier");
> return NULL;
> }
> }
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-trivial] [PATCH v2 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
` (2 preceding siblings ...)
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 3/4] vfio: platform: fix a typo Li Qiang
@ 2019-05-21 15:15 ` Li Qiang
2019-05-22 15:28 ` Laurent Vivier
2019-05-21 15:37 ` [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Alex Williamson
` (2 subsequent siblings)
6 siblings, 1 reply; 12+ messages in thread
From: Li Qiang @ 2019-05-21 15:15 UTC (permalink / raw)
To: alex.williamson, lvivier
Cc: qemu-devel, qemu-trivial, liq3ea, philmd, Li Qiang
'MSIX_CAP_LENGTH' is defined in two .c file. Move it
to hw/pci/msix.h file to reduce duplicated code.
CC: qemu-trivial@nongnu.org
Signed-off-by: Li Qiang <liq3ea@163.com>
---
hw/pci/msix.c | 2 --
hw/vfio/pci.c | 2 --
include/hw/pci/msix.h | 2 ++
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/pci/msix.c b/hw/pci/msix.c
index 4e336416a7..d39dcf32e8 100644
--- a/hw/pci/msix.c
+++ b/hw/pci/msix.c
@@ -24,8 +24,6 @@
#include "qapi/error.h"
#include "trace.h"
-#define MSIX_CAP_LENGTH 12
-
/* MSI enable bit and maskall bit are in byte 1 in FLAGS register */
#define MSIX_CONTROL_OFFSET (PCI_MSIX_FLAGS + 1)
#define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 08729e5875..8e555db12e 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -35,8 +35,6 @@
#include "trace.h"
#include "qapi/error.h"
-#define MSIX_CAP_LENGTH 12
-
#define TYPE_VFIO_PCI "vfio-pci"
#define PCI_VFIO(obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h
index 1f27658d35..08acfa836e 100644
--- a/include/hw/pci/msix.h
+++ b/include/hw/pci/msix.h
@@ -4,6 +4,8 @@
#include "qemu-common.h"
#include "hw/pci/pci.h"
+#define MSIX_CAP_LENGTH 12
+
void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg);
MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector);
int msix_init(PCIDevice *dev, unsigned short nentries,
--
2.17.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file Li Qiang
@ 2019-05-22 15:28 ` Laurent Vivier
0 siblings, 0 replies; 12+ messages in thread
From: Laurent Vivier @ 2019-05-22 15:28 UTC (permalink / raw)
To: Li Qiang, alex.williamson, lvivier
Cc: qemu-trivial, philmd, liq3ea, qemu-devel
On 21/05/2019 17:15, Li Qiang wrote:
> 'MSIX_CAP_LENGTH' is defined in two .c file. Move it
> to hw/pci/msix.h file to reduce duplicated code.
>
> CC: qemu-trivial@nongnu.org
> Signed-off-by: Li Qiang <liq3ea@163.com>
> ---
> hw/pci/msix.c | 2 --
> hw/vfio/pci.c | 2 --
> include/hw/pci/msix.h | 2 ++
> 3 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/pci/msix.c b/hw/pci/msix.c
> index 4e336416a7..d39dcf32e8 100644
> --- a/hw/pci/msix.c
> +++ b/hw/pci/msix.c
> @@ -24,8 +24,6 @@
> #include "qapi/error.h"
> #include "trace.h"
>
> -#define MSIX_CAP_LENGTH 12
> -
> /* MSI enable bit and maskall bit are in byte 1 in FLAGS register */
> #define MSIX_CONTROL_OFFSET (PCI_MSIX_FLAGS + 1)
> #define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8)
> diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
> index 08729e5875..8e555db12e 100644
> --- a/hw/vfio/pci.c
> +++ b/hw/vfio/pci.c
> @@ -35,8 +35,6 @@
> #include "trace.h"
> #include "qapi/error.h"
>
> -#define MSIX_CAP_LENGTH 12
> -
> #define TYPE_VFIO_PCI "vfio-pci"
> #define PCI_VFIO(obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
>
> diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h
> index 1f27658d35..08acfa836e 100644
> --- a/include/hw/pci/msix.h
> +++ b/include/hw/pci/msix.h
> @@ -4,6 +4,8 @@
> #include "qemu-common.h"
> #include "hw/pci/pci.h"
>
> +#define MSIX_CAP_LENGTH 12
> +
> void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg);
> MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector);
> int msix_init(PCIDevice *dev, unsigned short nentries,
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
` (3 preceding siblings ...)
2019-05-21 15:15 ` [Qemu-trivial] [PATCH v2 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file Li Qiang
@ 2019-05-21 15:37 ` Alex Williamson
2019-05-21 15:39 ` Philippe Mathieu-Daudé
2019-05-21 15:50 ` [Qemu-trivial] [Qemu-devel] " Auger Eric
6 siblings, 0 replies; 12+ messages in thread
From: Alex Williamson @ 2019-05-21 15:37 UTC (permalink / raw)
To: Li Qiang; +Cc: lvivier, qemu-devel, qemu-trivial, liq3ea, philmd
On Tue, 21 May 2019 08:15:39 -0700
Li Qiang <liq3ea@163.com> wrote:
> These patchset fix some trivial issues,
> The first patch makes the code more QOMConventions.
> The second decouples VMStateDescription's name with
> QOM TypeInfo's name.
> The third fixes a typo.
> The fourth reduce duplicated code.
>
> Change since v1:
> Add more commit message.
Thank you for making this series 'trivial' by providing explanation and
justification for each change. If trivial wants to include this, for
series:
Acked-by: Alex Williamson <alex.williamson@redhat.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
` (4 preceding siblings ...)
2019-05-21 15:37 ` [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Alex Williamson
@ 2019-05-21 15:39 ` Philippe Mathieu-Daudé
2019-05-21 15:50 ` [Qemu-trivial] [Qemu-devel] " Auger Eric
6 siblings, 0 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-21 15:39 UTC (permalink / raw)
To: Li Qiang, alex.williamson, lvivier; +Cc: qemu-devel, qemu-trivial, liq3ea
On 5/21/19 5:15 PM, Li Qiang wrote:
> These patchset fix some trivial issues,
> The first patch makes the code more QOMConventions.
> The second decouples VMStateDescription's name with
> QOM TypeInfo's name.
> The third fixes a typo.
> The fourth reduce duplicated code.
>
> Change since v1:
> Add more commit message.
>
> Li Qiang (4):
> vfio: pci: make "vfio-pci-nohotplug" as MACRO
> hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
> vfio: platform: fix a typo
> pci: msix: move 'MSIX_CAP_LENGTH' to header file
Series:
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 0/4] hw: vfio: some trivial fix
2019-05-21 15:15 [Qemu-trivial] [PATCH v2 0/4] hw: vfio: some trivial fix Li Qiang
` (5 preceding siblings ...)
2019-05-21 15:39 ` Philippe Mathieu-Daudé
@ 2019-05-21 15:50 ` Auger Eric
6 siblings, 0 replies; 12+ messages in thread
From: Auger Eric @ 2019-05-21 15:50 UTC (permalink / raw)
To: Li Qiang, alex.williamson, lvivier
Cc: qemu-trivial, philmd, liq3ea, qemu-devel
Hi,
On 5/21/19 5:15 PM, Li Qiang wrote:
> These patchset fix some trivial issues,
> The first patch makes the code more QOMConventions.
> The second decouples VMStateDescription's name with
> QOM TypeInfo's name.
> The third fixes a typo.
> The fourth reduce duplicated code.
>
> Change since v1:
> Add more commit message.
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Thanks
Eric
>
> Li Qiang (4):
> vfio: pci: make "vfio-pci-nohotplug" as MACRO
> hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
> vfio: platform: fix a typo
> pci: msix: move 'MSIX_CAP_LENGTH' to header file
>
> hw/pci/msix.c | 2 --
> hw/vfio/amd-xgbe.c | 2 +-
> hw/vfio/ap.c | 2 +-
> hw/vfio/calxeda-xgmac.c | 2 +-
> hw/vfio/ccw.c | 2 +-
> hw/vfio/pci.c | 8 ++++----
> hw/vfio/platform.c | 6 +++---
> include/hw/pci/msix.h | 2 ++
> 8 files changed, 13 insertions(+), 13 deletions(-)
>
^ permalink raw reply [flat|nested] 12+ messages in thread