* [Qemu-devel] [PULL 0/6] Trivial patches patches
@ 2019-01-09 13:08 Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 1/6] typedefs: (Re-)sort entries alphabetically Laurent Vivier
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé
The following changes since commit 147923b1a901a0370f83a0f4c58ec1baffef22f0:
Merge remote-tracking branch 'remotes/kraxel/tags/usb-20190108-pull-request' into staging (2019-01-08 16:07:32 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/trivial-patches-pull-request
for you to fetch changes up to 34bec7a8d04f23d6258dcf338894956b945673a5:
ioapic: use TYPE_FOO MACRO than constant string (2019-01-09 11:33:47 +0100)
----------------------------------------------------------------
Trivial patches for 4.0 (2019-01-09)
----------------------------------------------------------------
Eric Blake (1):
typedefs: (Re-)sort entries alphabetically
Li Qiang (1):
ioapic: use TYPE_FOO MACRO than constant string
Priit Laes (1):
qom: Include qemu/fprintf-fn.h in cpu.h
Thomas Huth (2):
hw/audio/marvell: Don't include unnecessary i2c.h header file
trivial: Don't include isa.h if it is not really necessary
Wainer dos Santos Moschetta (1):
hw/core: fix whitespace in a sentence
hw/audio/marvell_88w8618.c | 1 -
hw/core/machine.c | 2 +-
hw/display/ramfb-standalone.c | 1 -
hw/i386/kvm/ioapic.c | 2 +-
hw/i386/pc.c | 4 ++--
hw/ide/pci.c | 1 -
hw/ide/piix.c | 1 -
hw/ide/via.c | 1 -
hw/intc/ioapic.c | 2 +-
hw/misc/macio/mac_dbdma.c | 1 -
hw/moxie/moxiesim.c | 1 -
hw/nvram/fw_cfg.c | 1 -
hw/sparc/sun4m.c | 1 -
hw/timer/i8254.c | 1 -
include/hw/i386/ioapic.h | 3 +++
include/qemu/typedefs.h | 10 +++++-----
include/qom/cpu.h | 1 +
17 files changed, 14 insertions(+), 20 deletions(-)
--
2.20.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [PULL 1/6] typedefs: (Re-)sort entries alphabetically
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
@ 2019-01-09 13:08 ` Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 2/6] hw/core: fix whitespace in a sentence Laurent Vivier
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé, Eric Blake,
Markus Armbruster
From: Eric Blake <eblake@redhat.com>
Since the last time we sorted things (2988cbeaf), we've had a
few relapses that were inserted out of order. Also, we had more
entries that were sorted case-insensitively than not, so let's
document that convention and stick to it.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181115211752.1295571-2-eblake@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
include/qemu/typedefs.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index d59df20c4d..741935fe36 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -4,7 +4,7 @@
/* A load of opaque types so that device init declarations don't have to
pull in all the real definitions. */
-/* Please keep this list in alphabetical order */
+/* Please keep this list in case-insensitive alphabetical order */
typedef struct AdapterInfo AdapterInfo;
typedef struct AddressSpace AddressSpace;
typedef struct AioContext AioContext;
@@ -40,6 +40,7 @@ typedef struct HCIInfo HCIInfo;
typedef struct HVFX86EmulatorState HVFX86EmulatorState;
typedef struct I2CBus I2CBus;
typedef struct I2SCodec I2SCodec;
+typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
typedef struct ISABus ISABus;
typedef struct ISADevice ISADevice;
typedef struct IsaDma IsaDma;
@@ -49,7 +50,6 @@ typedef struct MachineState MachineState;
typedef struct MemoryListener MemoryListener;
typedef struct MemoryMappingList MemoryMappingList;
typedef struct MemoryRegion MemoryRegion;
-typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
typedef struct MemoryRegionCache MemoryRegionCache;
typedef struct MemoryRegionSection MemoryRegionSection;
typedef struct MigrationIncomingState MigrationIncomingState;
@@ -84,6 +84,8 @@ typedef struct PostcopyDiscardState PostcopyDiscardState;
typedef struct Property Property;
typedef struct PropertyInfo PropertyInfo;
typedef struct PS2State PS2State;
+typedef struct QBool QBool;
+typedef struct QDict QDict;
typedef struct QEMUBH QEMUBH;
typedef struct QemuConsole QemuConsole;
typedef struct QemuDmaBuf QemuDmaBuf;
@@ -93,12 +95,10 @@ typedef struct QemuMutex QemuMutex;
typedef struct QemuOpt QemuOpt;
typedef struct QemuOpts QemuOpts;
typedef struct QemuOptsList QemuOptsList;
-typedef struct QemuSpin QemuSpin;
typedef struct QEMUSGList QEMUSGList;
+typedef struct QemuSpin QemuSpin;
typedef struct QEMUTimer QEMUTimer;
typedef struct QEMUTimerListGroup QEMUTimerListGroup;
-typedef struct QBool QBool;
-typedef struct QDict QDict;
typedef struct QJSON QJSON;
typedef struct QList QList;
typedef struct QNull QNull;
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PULL 2/6] hw/core: fix whitespace in a sentence
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 1/6] typedefs: (Re-)sort entries alphabetically Laurent Vivier
@ 2019-01-09 13:08 ` Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 3/6] qom: Include qemu/fprintf-fn.h in cpu.h Laurent Vivier
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé,
Wainer dos Santos Moschetta
From: Wainer dos Santos Moschetta <wainersm@redhat.com>
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181224154922.3338-1-wainersm@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/core/machine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/core/machine.c b/hw/core/machine.c
index f8563efb86..1a0a9ab111 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -919,7 +919,7 @@ static void machine_class_init(ObjectClass *oc, void *data)
object_class_property_add_bool(oc, "dump-guest-core",
machine_get_dump_guest_core, machine_set_dump_guest_core, &error_abort);
object_class_property_set_description(oc, "dump-guest-core",
- "Include guest memory in a core dump", &error_abort);
+ "Include guest memory in a core dump", &error_abort);
object_class_property_add_bool(oc, "mem-merge",
machine_get_mem_merge, machine_set_mem_merge, &error_abort);
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PULL 3/6] qom: Include qemu/fprintf-fn.h in cpu.h
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 1/6] typedefs: (Re-)sort entries alphabetically Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 2/6] hw/core: fix whitespace in a sentence Laurent Vivier
@ 2019-01-09 13:08 ` Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 4/6] hw/audio/marvell: Don't include unnecessary i2c.h header file Laurent Vivier
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé, Priit Laes
From: Priit Laes <plaes@plaes.org>
QOM cpu.h uses fprintf_function which requires Qemu's
qemu/fprintf-fn.h header. Include it.
Signed-off-by: Priit Laes <plaes@plaes.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181226003722.31257-1-plaes@plaes.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
include/qom/cpu.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 1396f53e5b..6d1ba53d72 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -26,6 +26,7 @@
#include "exec/memattrs.h"
#include "qapi/qapi-types-run-state.h"
#include "qemu/bitmap.h"
+#include "qemu/fprintf-fn.h"
#include "qemu/rcu_queue.h"
#include "qemu/queue.h"
#include "qemu/thread.h"
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PULL 4/6] hw/audio/marvell: Don't include unnecessary i2c.h header file
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
` (2 preceding siblings ...)
2019-01-09 13:08 ` [Qemu-devel] [PULL 3/6] qom: Include qemu/fprintf-fn.h in cpu.h Laurent Vivier
@ 2019-01-09 13:08 ` Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 5/6] trivial: Don't include isa.h if it is not really necessary Laurent Vivier
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé, Thomas Huth
From: Thomas Huth <thuth@redhat.com>
This device does not use I2C, so no need to include the header file here.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1546614146-10525-1-git-send-email-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/audio/marvell_88w8618.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c
index 6600ab4851..035dd76cbf 100644
--- a/hw/audio/marvell_88w8618.c
+++ b/hw/audio/marvell_88w8618.c
@@ -12,7 +12,6 @@
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/hw.h"
-#include "hw/i2c/i2c.h"
#include "hw/audio/wm8750.h"
#include "audio/audio.h"
#include "qapi/error.h"
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PULL 5/6] trivial: Don't include isa.h if it is not really necessary
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
` (3 preceding siblings ...)
2019-01-09 13:08 ` [Qemu-devel] [PULL 4/6] hw/audio/marvell: Don't include unnecessary i2c.h header file Laurent Vivier
@ 2019-01-09 13:08 ` Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 6/6] ioapic: use TYPE_FOO MACRO than constant string Laurent Vivier
2019-01-10 16:28 ` [Qemu-devel] [PULL 0/6] Trivial patches patches Peter Maydell
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé, Thomas Huth
From: Thomas Huth <thuth@redhat.com>
These files don't seem to do anything related to ISA directly, so
there is no need to include isa.h here.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1546615943-16274-1-git-send-email-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/display/ramfb-standalone.c | 1 -
hw/ide/pci.c | 1 -
hw/ide/piix.c | 1 -
hw/ide/via.c | 1 -
hw/misc/macio/mac_dbdma.c | 1 -
hw/moxie/moxiesim.c | 1 -
hw/nvram/fw_cfg.c | 1 -
hw/sparc/sun4m.c | 1 -
hw/timer/i8254.c | 1 -
9 files changed, 9 deletions(-)
diff --git a/hw/display/ramfb-standalone.c b/hw/display/ramfb-standalone.c
index c0d241ba01..da3229a1f6 100644
--- a/hw/display/ramfb-standalone.c
+++ b/hw/display/ramfb-standalone.c
@@ -1,7 +1,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "hw/loader.h"
-#include "hw/isa/isa.h"
#include "hw/display/ramfb.h"
#include "ui/console.h"
#include "sysemu/sysemu.h"
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
index fe1ceeb0cd..b75154f99f 100644
--- a/hw/ide/pci.c
+++ b/hw/ide/pci.c
@@ -25,7 +25,6 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"
-#include "hw/isa/isa.h"
#include "sysemu/dma.h"
#include "qemu/error-report.h"
#include "hw/ide/pci.h"
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index a3afe1fd29..885c16e938 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -26,7 +26,6 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"
-#include "hw/isa/isa.h"
#include "sysemu/block-backend.h"
#include "sysemu/sysemu.h"
#include "sysemu/blockdev.h"
diff --git a/hw/ide/via.c b/hw/ide/via.c
index 238f038d72..987d99c5ec 100644
--- a/hw/ide/via.c
+++ b/hw/ide/via.c
@@ -26,7 +26,6 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"
-#include "hw/isa/isa.h"
#include "sysemu/sysemu.h"
#include "sysemu/dma.h"
diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c
index 87ae246d37..e5917d8f2e 100644
--- a/hw/misc/macio/mac_dbdma.c
+++ b/hw/misc/macio/mac_dbdma.c
@@ -38,7 +38,6 @@
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
-#include "hw/isa/isa.h"
#include "hw/ppc/mac_dbdma.h"
#include "qemu/main-loop.h"
#include "qemu/log.h"
diff --git a/hw/moxie/moxiesim.c b/hw/moxie/moxiesim.c
index 4b0ce09c5e..c6b6f7262d 100644
--- a/hw/moxie/moxiesim.c
+++ b/hw/moxie/moxiesim.c
@@ -31,7 +31,6 @@
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/hw.h"
-#include "hw/isa/isa.h"
#include "net/net.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"
diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c
index de58c7be46..53e8e010a8 100644
--- a/hw/nvram/fw_cfg.c
+++ b/hw/nvram/fw_cfg.c
@@ -27,7 +27,6 @@
#include "sysemu/sysemu.h"
#include "sysemu/dma.h"
#include "hw/boards.h"
-#include "hw/isa/isa.h"
#include "hw/nvram/fw_cfg.h"
#include "hw/sysbus.h"
#include "trace.h"
diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c
index 639906cca3..709ee37e08 100644
--- a/hw/sparc/sun4m.c
+++ b/hw/sparc/sun4m.c
@@ -37,7 +37,6 @@
#include "net/net.h"
#include "hw/boards.h"
#include "hw/scsi/esp.h"
-#include "hw/isa/isa.h"
#include "hw/nvram/sun_nvram.h"
#include "hw/nvram/chrp_nvram.h"
#include "hw/nvram/fw_cfg.h"
diff --git a/hw/timer/i8254.c b/hw/timer/i8254.c
index 1057850808..20f834e7da 100644
--- a/hw/timer/i8254.c
+++ b/hw/timer/i8254.c
@@ -23,7 +23,6 @@
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
-#include "hw/isa/isa.h"
#include "qemu/timer.h"
#include "hw/timer/i8254.h"
#include "hw/timer/i8254_internal.h"
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PULL 6/6] ioapic: use TYPE_FOO MACRO than constant string
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
` (4 preceding siblings ...)
2019-01-09 13:08 ` [Qemu-devel] [PULL 5/6] trivial: Don't include isa.h if it is not really necessary Laurent Vivier
@ 2019-01-09 13:08 ` Laurent Vivier
2019-01-10 16:28 ` [Qemu-devel] [PULL 0/6] Trivial patches patches Peter Maydell
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-01-09 13:08 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Laurent Vivier, Richard Henderson, David Gibson,
Anthony Green, John Snow, Artyom Tarasenko, Mark Cave-Ayland,
Laszlo Ersek, Eduardo Habkost, qemu-block, Marcel Apfelbaum,
Michael S. Tsirkin, qemu-trivial, qemu-ppc, Michael Tokarev,
Gerd Hoffmann, Philippe Mathieu-Daudé, Li Qiang
From: Li Qiang <liq3ea@163.com>
Make them more QOMConventional.
Cc:qemu-trivial@nongnu.org
Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20190105023831.66910-1-liq3ea@163.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/i386/kvm/ioapic.c | 2 +-
hw/i386/pc.c | 4 ++--
hw/intc/ioapic.c | 2 +-
include/hw/i386/ioapic.h | 3 +++
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c
index 5b40d75439..e453692199 100644
--- a/hw/i386/kvm/ioapic.c
+++ b/hw/i386/kvm/ioapic.c
@@ -163,7 +163,7 @@ static void kvm_ioapic_class_init(ObjectClass *klass, void *data)
}
static const TypeInfo kvm_ioapic_info = {
- .name = "kvm-ioapic",
+ .name = TYPE_KVM_IOAPIC,
.parent = TYPE_IOAPIC_COMMON,
.instance_size = sizeof(KVMIOAPICState),
.class_init = kvm_ioapic_class_init,
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 4952feb476..3c9e20ad9c 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -2339,9 +2339,9 @@ void ioapic_init_gsi(GSIState *gsi_state, const char *parent_name)
unsigned int i;
if (kvm_ioapic_in_kernel()) {
- dev = qdev_create(NULL, "kvm-ioapic");
+ dev = qdev_create(NULL, TYPE_KVM_IOAPIC);
} else {
- dev = qdev_create(NULL, "ioapic");
+ dev = qdev_create(NULL, TYPE_IOAPIC);
}
if (parent_name) {
object_property_add_child(object_resolve_path(parent_name, NULL),
diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c
index 4e529729b4..9d75f84d3b 100644
--- a/hw/intc/ioapic.c
+++ b/hw/intc/ioapic.c
@@ -429,7 +429,7 @@ static void ioapic_class_init(ObjectClass *klass, void *data)
}
static const TypeInfo ioapic_info = {
- .name = "ioapic",
+ .name = TYPE_IOAPIC,
.parent = TYPE_IOAPIC_COMMON,
.instance_size = sizeof(IOAPICCommonState),
.class_init = ioapic_class_init,
diff --git a/include/hw/i386/ioapic.h b/include/hw/i386/ioapic.h
index 9c8816f11f..59fcb158a7 100644
--- a/include/hw/i386/ioapic.h
+++ b/include/hw/i386/ioapic.h
@@ -23,6 +23,9 @@
#define IOAPIC_NUM_PINS 24
#define IO_APIC_DEFAULT_ADDRESS 0xfec00000
+#define TYPE_KVM_IOAPIC "kvm-ioapic"
+#define TYPE_IOAPIC "ioapic"
+
void ioapic_eoi_broadcast(int vector);
#endif /* HW_IOAPIC_H */
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PULL 0/6] Trivial patches patches
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
` (5 preceding siblings ...)
2019-01-09 13:08 ` [Qemu-devel] [PULL 6/6] ioapic: use TYPE_FOO MACRO than constant string Laurent Vivier
@ 2019-01-10 16:28 ` Peter Maydell
6 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2019-01-10 16:28 UTC (permalink / raw)
To: Laurent Vivier
Cc: QEMU Developers, Eduardo Habkost, Qemu-block, Michael S. Tsirkin,
QEMU Trivial, Laszlo Ersek, Anthony Green, Mark Cave-Ayland,
Philippe Mathieu-Daudé, Michael Tokarev, qemu-ppc,
Gerd Hoffmann, Paolo Bonzini, Richard Henderson, John Snow,
Artyom Tarasenko, David Gibson
On Wed, 9 Jan 2019 at 13:23, Laurent Vivier <laurent@vivier.eu> wrote:
>
> The following changes since commit 147923b1a901a0370f83a0f4c58ec1baffef22f0:
>
> Merge remote-tracking branch 'remotes/kraxel/tags/usb-20190108-pull-request' into staging (2019-01-08 16:07:32 +0000)
>
> are available in the Git repository at:
>
> git://github.com/vivier/qemu.git tags/trivial-patches-pull-request
>
> for you to fetch changes up to 34bec7a8d04f23d6258dcf338894956b945673a5:
>
> ioapic: use TYPE_FOO MACRO than constant string (2019-01-09 11:33:47 +0100)
>
> ----------------------------------------------------------------
> Trivial patches for 4.0 (2019-01-09)
>
> ----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-01-10 16:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-09 13:08 [Qemu-devel] [PULL 0/6] Trivial patches patches Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 1/6] typedefs: (Re-)sort entries alphabetically Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 2/6] hw/core: fix whitespace in a sentence Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 3/6] qom: Include qemu/fprintf-fn.h in cpu.h Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 4/6] hw/audio/marvell: Don't include unnecessary i2c.h header file Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 5/6] trivial: Don't include isa.h if it is not really necessary Laurent Vivier
2019-01-09 13:08 ` [Qemu-devel] [PULL 6/6] ioapic: use TYPE_FOO MACRO than constant string Laurent Vivier
2019-01-10 16:28 ` [Qemu-devel] [PULL 0/6] Trivial patches patches Peter Maydell
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).