Trivial patches for 2017-12-18
Subsystems (5)
Here's a large pull request for trivial-patches queue. It's been quite a whie since the last request, and many changes has been accumulated.
Also there's a large patchset by Philippe Mathieu-Daudé named "remove i386/pc dependency from non-PC world (part 1)" consisting of 42 patches which makes good portion of this pull request.
Please consider applying.
Thanks,
/mjt
The following changes since commit 38d1b31e0501f938db39c5b2e508328530410246:
Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-201712151' into staging (2017-12-15 17:05:26 +0000)
are available in the git repository at:
git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
for you to fetch changes up to 709d44f79b86d03a12fa69d7a6da6901765a2989:
misc: drop old i386 dependency (2017-12-18 00:11:51 +0300)
----------------------------------------------------------------
trivial patches for 2017-12-18
----------------------------------------------------------------
Daniel Henrique Barboza (1):
configure: check $CC available before verifying host CPU
Emilio G. Cota (3):
disas/arm: fix 'instuction' typo in comment
translate-all: fix 'consisits' typo in comment
qht: fix kernel-doc markup in qht.h
Ladi Prosek (1):
Remove empty statements
Marc-André Lureau (2):
.gitignore: remove vscclient
memory: remove unused memory_region_set_global_locking()
Michael McConville (1):
mmap(2) returns MAP_FAILED, not NULL, on failure
Mike Frysinger (1):
build: fix typo in error message
Peter Maydell (1):
accel/tcg/cpu-exec-common.c: Remove unnecessary include of memory-internal.h
Philippe Mathieu-Daudé (49):
hw/alpha/typhoon: simplify using the "unimplemented" sysbus device
Makefile: use $(MAKE) variable
Makefile: add more targets to the UNCHECKED_GOALS rule
MAINTAINERS: add "hw/registerfields.h" in Register API entry hw/registerfields: fix a typo in the FIELD() documentation hw/registerfields: add 64-bit extract/deposit macros hw/registerfields: add missing include
MAINTAINERS: add entries for i2c/ppc4xx
MAINTAINERS: add an entry for the i82374 (southbridge)
MAINTAINERS: add an entry for the i8257 (DMA controller)
MAINTAINERS: add an entry for the i82378 (superio)
MAINTAINERS: add an entry for watchdog/wdt_ib700
MAINTAINERS: add an entry for input/pckbd.c
MAINTAINERS: add entries for timer/m48t59
MAINTAINERS: add missing entry for include/hw/net/
hw: use "qemu/osdep.h" as first #include in source files
hw: remove "qemu/osdep.h" from header files
block: remove "qemu/osdep.h" from header file
misc: remove headers implicitly included
misc: remove duplicated includes
ppc: remove duplicated includes
i386/hax: remove duplicated includes
i386/hax: remove duplicated include
nios2: remove duplicated includes (in code commented out)
misc: avoid "include/" in include path
numa: remove unused #include
hw/input/vmmouse: remove unused #include
hw/misc/pvpanic: remove unused #include
hw/ssi/aspeed_smc: remove unused #include
amd_iommu: avoid needless includes in header file
misc: remove old i386 dependency
hw/ide: remove old i386 dependency
hw/ipmi: remove old i386 dependency
hw/i2c: remove old i386 dependency
hw/tpm: remove old i386 dependency
hw/virtio-balloon: remove old i386 dependency
hw/unicore32: restrict hw addr defines to source file hw/timer/i8254: rename pit_init() -> i8254_pit_init() hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init() hw/acpi: ACPI_PM_* defines are not restricted to i386 arch hw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h" hw/display/vga: "vga_int.h" requires "ui/console.h" hw/display/vga: extract public API from i386/pc to "hw/display/vga.h" hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c hw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h" i386/pc: move vmport.c to hw/i386/
i386/pc: move vmmouse.c to hw/i386/
misc: drop old i386 dependency
Tao Wu (1):
hw/input/hid: Add support for several keys.
Vicente Jimenez Aguilar (1):
Document pretty parameter for mon option
.gitignore | 1 -
MAINTAINERS | 14 ++++++++++-
Makefile | 11 +++++----
accel/tcg/cpu-exec-common.c | 1 -
accel/tcg/translate-all.c | 3 +--
block/dmg.h | 1 -
bsd-user/main.c | 1 -
chardev/wctablet.c | 4 ----
configure | 25 ++++++++++---------
disas/arm.c | 2 +-
disas/nios2.c | 3 ---
exec.c | 3 ---
hw/acpi/core.c | 1 -
hw/acpi/ipmi-stub.c | 1 +
hw/alpha/alpha_sys.h | 1 -
hw/alpha/dp264.c | 4 ++--
hw/alpha/pci.c | 26 --------------------
hw/alpha/typhoon.c | 6 ++---
hw/arm/spitz.c | 1 -
hw/audio/fmopl.c | 1 -
hw/audio/fmopl.h | 1 -
hw/audio/pcspk.c | 1 -
hw/char/debugcon.c | 1 -
hw/char/xen_console.c | 1 -
hw/core/machine.c | 1 -
hw/cpu/core.c | 1 +
hw/display/cirrus_vga.c | 1 -
hw/display/qxl.h | 1 -
hw/display/vga-isa-mm.c | 4 +---
hw/display/vga-isa.c | 3 +--
hw/display/vga-pci.c | 1 -
hw/display/vga.c | 5 ++--
hw/display/vga_int.h | 3 ++-
hw/display/{vga.h => vga_regs.h} | 0
hw/display/virtio-vga.c | 1 -
hw/display/vmware_vga.c | 1 -
hw/i2c/pm_smbus.c | 1 -
hw/i2c/smbus_ich9.c | 1 -
hw/i386/Makefile.objs | 2 ++
hw/i386/acpi-build.c | 2 +-
hw/i386/amd_iommu.c | 5 +++-
hw/i386/amd_iommu.h | 5 ----
hw/i386/pc.c | 5 ++--
hw/{input => i386}/vmmouse.c | 1 -
hw/{misc => i386}/vmport.c | 17 ++++++-------
hw/i386/xen/xen-mapcache.c | 2 +-
hw/i386/xen/xen_platform.c | 1 -
hw/ide/ahci.c | 1 -
hw/ide/cmd646.c | 1 -
hw/ide/core.c | 3 +--
hw/ide/ich.c | 1 -
hw/ide/isa.c | 1 -
hw/ide/microdrive.c | 1 -
hw/ide/pci.c | 1 -
hw/ide/piix.c | 2 +-
hw/ide/via.c | 1 -
hw/input/Makefile.objs | 1 -
hw/input/adb.c | 2 +-
hw/input/hid.c | 8 +++----
hw/intc/lm32_pic.c | 1 -
hw/ipmi/isa_ipmi_bt.c | 1 -
hw/ipmi/isa_ipmi_kcs.c | 1 -
hw/isa/i82378.c | 5 ++--
hw/isa/vt82c686.c | 1 -
hw/mips/mips_fulong2e.c | 4 ++--
hw/mips/mips_jazz.c | 5 ++--
hw/mips/mips_malta.c | 4 ++--
hw/mips/mips_r4k.c | 5 ++--
hw/misc/Makefile.objs | 2 --
hw/misc/imx6_ccm.c | 2 +-
hw/misc/ivshmem.c | 1 -
hw/misc/pvpanic.c | 12 ++++------
hw/misc/sga.c | 1 -
hw/moxie/moxiesim.c | 1 -
hw/net/ne2000-isa.c | 6 ++---
hw/net/ne2000.c | 2 --
hw/net/ne2000.h | 3 +++
hw/nios2/boot.c | 1 -
hw/pci-bridge/pci_expander_bridge.c | 1 -
hw/ppc/pnv.c | 2 +-
hw/ppc/prep.c | 1 +
hw/ppc/spapr_cpu_core.c | 1 +
hw/ppc/spapr_hcall.c | 1 -
hw/s390x/css.c | 1 -
hw/s390x/virtio-ccw.c | 2 +-
hw/scsi/vhost-user-scsi.c | 1 -
hw/smbios/smbios_type_38-stub.c | 1 +
hw/sparc/sun4m.c | 1 -
hw/ssi/aspeed_smc.c | 3 +--
hw/timer/i8254.c | 1 -
hw/timer/i8254_common.c | 1 -
hw/timer/mc146818rtc.c | 2 +-
hw/tpm/tpm_passthrough.c | 1 -
hw/tpm/tpm_tis.c | 1 -
hw/unicore32/puv3.c | 15 ++++++++----
hw/vfio/ccw.c | 2 +-
hw/virtio/vhost-vsock.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/watchdog/wdt_ib700.c | 1 -
include/exec/memory.h | 12 ----------
include/hw/acpi/acpi.h | 11 +++++++++
include/hw/acpi/ich9.h | 2 ++
include/hw/acpi/ipmi.h | 1 -
include/hw/cpu/core.h | 1 -
include/hw/display/vga.h | 25 +++++++++++++++++++
include/hw/i2c/ppc4xx_i2c.h | 1 -
include/hw/i386/pc.h | 48 -------------------------------------
include/hw/misc/pvpanic.h | 21 ++++++++++++++++
include/hw/net/ne2000-isa.h | 33 +++++++++++++++++++++++++
include/hw/registerfields.h | 15 +++++++++++-
include/hw/timer/i8254.h | 5 ++--
include/hw/timer/i8254_internal.h | 2 +-
include/hw/timer/mc146818rtc.h | 3 ++-
include/hw/unicore32/puv3.h | 10 --------
include/qemu/qht.h | 6 ++---
include/sysemu/hax.h | 1 -
linux-user/main.c | 1 -
linux-user/signal.c | 2 +-
memory.c | 5 ----
migration/block.c | 2 +-
monitor.c | 1 -
net/colo-compare.c | 1 -
numa.c | 1 -
qemu-options.hx | 7 +++---
scripts/git-submodule.sh | 2 +-
target/i386/cpu.c | 2 +-
target/i386/hax-darwin.c | 6 +----
target/i386/hax-darwin.h | 3 ---
target/i386/hax-windows.h | 3 ---
target/i386/kvm.c | 2 +-
target/nios2/cpu.h | 1 -
target/nios2/helper.c | 5 +---
target/nios2/op_helper.c | 1 +
target/nios2/translate.c | 1 +
target/openrisc/exception_helper.c | 1 -
target/ppc/kvm.c | 3 ---
target/sh4/translate.c | 2 +-
tests/Makefile.include | 20 ++++++++--------
tests/test-aio-multithread.c | 1 -
tests/test-clone-visitor.c | 1 -
tests/vhost-user-test.c | 1 -
tests/vmgenid-test.c | 3 ---
util/qemu-sockets.c | 1 -
vl.c | 3 +--
144 files changed, 258 insertions(+), 323 deletions(-)
rename hw/display/{vga.h => vga_regs.h} (100%)
rename hw/{input => i386}/vmmouse.c (99%)
rename hw/{misc => i386}/vmport.c (95%)
create mode 100644 include/hw/display/vga.h
create mode 100644 include/hw/misc/pvpanic.h
create mode 100644 include/hw/net/ne2000-isa.h[Qemu-devel] [PULL 05/61] qht: fix kernel-doc markup in qht.h
From: "Emilio G. Cota" <[email protected]>
While at it, s/stuct/struct/.
--- include/qemu/qht.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/qemu/qht.h +3 -3
@@ -166,7 +166,7 @@ void qht_iter(struct qht *ht, qht_iter_func_t func, void *userp);/** * qht_statistics_init - Gather statistics from a QHT * @ht: QHT to gather statistics from -* @stats: pointer to a struct qht_stats to be filled in +* @stats: pointer to a &struct qht_stats to be filled in * * Does NOT need to be called under an RCU read-critical section, * since it does not dereference any pointers stored in the hash table.
@@ -177,8 +177,8 @@ void qht_iter(struct qht *ht, qht_iter_func_t func, void *userp);void qht_statistics_init (struct qht *ht,struct qht_stats *stats);/** -* qht_statistics_destroy - Destroy a struct qht_stats -* @stats: stuct qht_stats to be destroyed +* qht_statistics_destroy - Destroy a &struct qht_stats +* @stats: &struct qht_stats to be destroyed * * See also: qht_statistics_init(). */
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 52/61] hw/acpi: ACPI_PM_* defines are not restricted to i386 arch
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
this allows to remove the old i386/pc dependency on acpi/core.
--- hw/acpi/core.c | 1 - include/hw/acpi/acpi.h | 11 +++++++++++ include/hw/i386/pc.h | 11 ----------- 3 files changed, 11 insertions(+), 12 deletions(-)
hw/acpi/core.c +0 -1
@@ -21,7 +21,6 @@#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/acpi/acpi.h" #include "hw/nvram/fw_cfg.h" #include "qemu/config-file.h"
include/hw/acpi/acpi.h +11 -0
@@ -39,6 +39,17 @@#define ACPI_PM2_REGISTER_WIDTH 8#define ACPI_PM_TIMER_WIDTH 32 +/* PC-style peripherals (also used by other machines). */ +#define ACPI_PM_PROP_S3_DISABLED "disable_s3" +#define ACPI_PM_PROP_S4_DISABLED "disable_s4" +#define ACPI_PM_PROP_S4_VAL "s4_val" +#define ACPI_PM_PROP_SCI_INT "sci_int" +#define ACPI_PM_PROP_ACPI_ENABLE_CMD "acpi_enable_cmd" +#define ACPI_PM_PROP_ACPI_DISABLE_CMD "acpi_disable_cmd" +#define ACPI_PM_PROP_PM_IO_BASE "pm_io_base" +#define ACPI_PM_PROP_GPE0_BLK "gpe0_blk" +#define ACPI_PM_PROP_GPE0_BLK_LEN "gpe0_blk_len" +/* PM Timer ticks per second (HZ) */ #define PM_TIMER_FREQUENCY 3579545
include/hw/i386/pc.h +0 -11
@@ -151,17 +151,6 @@ struct PCMachineClass {#define PC_MACHINE_CLASS (klass) \ OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE) -/* PC-style peripherals (also used by other machines). */ - -#define ACPI_PM_PROP_S3_DISABLED "disable_s3" -#define ACPI_PM_PROP_S4_DISABLED "disable_s4" -#define ACPI_PM_PROP_S4_VAL "s4_val" -#define ACPI_PM_PROP_SCI_INT "sci_int" -#define ACPI_PM_PROP_ACPI_ENABLE_CMD "acpi_enable_cmd" -#define ACPI_PM_PROP_ACPI_DISABLE_CMD "acpi_disable_cmd" -#define ACPI_PM_PROP_PM_IO_BASE "pm_io_base" -#define ACPI_PM_PROP_GPE0_BLK "gpe0_blk" -#define ACPI_PM_PROP_GPE0_BLK_LEN "gpe0_blk_len"#define ACPI_PM_PROP_TCO_ENABLED "enable_tco"/* parallel.c */
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 30/61] block: remove "qemu/osdep.h" from header file
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
--- block/dmg.h | 1 - 1 file changed, 1 deletion(-)
block/dmg.h +0 -1
@@ -26,7 +26,6 @@#ifndef BLOCK_DMG_H #define BLOCK_DMG_H -#include "qemu/osdep.h" #include "qemu-common.h" #include "block/block_int.h" #include <zlib.h>
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 15/61] MAINTAINERS: add "hw/registerfields.h" in Register API entry
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
Orphan since afb3141c660
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -1538,6 +1538,7 @@ M: Alistair Francis <[email protected]> S: Maintained F: hw/core/register.c F: include/hw/register.h +F: include/hw/registerfields.h SLIRP M: Samuel Thibault <[email protected]>
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 39/61] hw/input/vmmouse: remove unused #include
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/input/vmmouse.c | 1 - 1 file changed, 1 deletion(-)
hw/input/vmmouse.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" -#include "hw/input/ps2.h" #include "hw/i386/pc.h" #include "hw/qdev.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 59/61] i386/pc: move vmport.c to hw/i386/
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
It's a x86-only device, so it does not make sense to keep it in the shared misc folder.
---
hw/i386/Makefile.objs | 1 +
hw/{misc => i386}/vmport.c | 17 +++++++++--------
hw/misc/Makefile.objs | 2 --
3 files changed, 10 insertions(+), 10 deletions(-)
rename hw/{misc => i386}/vmport.c (95%)hw/i386/Makefile.objs +1 -0
@@ -5,6 +5,7 @@ obj-y += pc_sysfw.o obj-y += x86-iommu.o intel_iommu.o obj-y += amd_iommu.o obj-$(CONFIG_XEN) += ../xenpv/ xen/ +obj-$(CONFIG_VMPORT) += vmport.o obj-y += kvmvapic.o obj-y += acpi-build.o
hw/i386/vmport.c renamed from hw/misc/vmport.c +9 -8
@@ -28,7 +28,7 @@#include "sysemu/hw_accel.h" #include "hw/qdev.h" -//#define VMPORT_DEBUG +/* #define VMPORT_DEBUG */ #define VMPORT_CMD_GETVERSION 0x0a#define VMPORT_CMD_GETRAMSIZE 0x14
@@ -38,8 +38,7 @@#define VMPORT (obj) OBJECT_CHECK(VMPortState, (obj), TYPE_VMPORT) -typedef struct VMPortState -{ +typedef struct VMPortState { ISADevice parent_obj; MemoryRegion io;
@@ -51,8 +50,9 @@ static VMPortState *port_state;void vmport_register (unsigned char command,VMPortReadFunc *func,void *opaque) { -if (command >=VMPORT_ENTRIES ) +if (command >=VMPORT_ENTRIES ) {return ; + } port_state->func[command] = func; port_state->opaque[command] = opaque;
@@ -71,14 +71,15 @@ static uint64_t vmport_ioport_read(void *opaque, hwaddr addr,cpu_synchronize_state (cs); eax = env->regs[R_EAX ]; -if (eax !=VMPORT_MAGIC ) +if (eax !=VMPORT_MAGIC ) {return eax; + } command = env->regs[R_ECX ]; -if (command >=VMPORT_ENTRIES ) +if (command >=VMPORT_ENTRIES ) {return eax; -if (!s->func[command]) - { + } +if (!s->func[command]) {#ifdef VMPORT_DEBUG fprintf (stderr,"vmport: unknown command %x\n" , command);#endif
hw/misc/Makefile.objs +0 -2
@@ -11,8 +11,6 @@ common-obj-$(CONFIG_EDU) += edu.o common-obj-y += unimp.o common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o -obj-$(CONFIG_VMPORT) += vmport.o - # ARM devices common-obj-$(CONFIG_PL310) += arm_l2x0.o common-obj-$(CONFIG_INTEGRATOR_DEBUG) += arm_integrator_debug.o
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 55/61] hw/display/vga: "vga_int.h" requires "ui/console.h"
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
since The VGACommonState struct has a GraphicHwOps *hw_ops member, then remove the now unnecessary includes.
--- hw/display/cirrus_vga.c | 1 - hw/display/qxl.h | 1 - hw/display/vga-isa-mm.c | 1 - hw/display/vga-isa.c | 1 - hw/display/vga-pci.c | 1 - hw/display/vga.c | 1 - hw/display/vga_int.h | 3 ++- hw/display/virtio-vga.c | 1 - hw/display/vmware_vga.c | 1 - 9 files changed, 2 insertions(+), 9 deletions(-)
hw/display/cirrus_vga.c +0 -1
@@ -31,7 +31,6 @@#include "trace.h" #include "hw/hw.h" #include "hw/pci/pci.h" -#include "ui/console.h" #include "ui/pixel_ops.h" #include "vga_int.h" #include "hw/loader.h"
hw/display/qxl.h +0 -1
@@ -3,7 +3,6 @@#include "qemu-common.h" -#include "ui/console.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "vga_int.h"
hw/display/vga-isa-mm.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "ui/console.h" #include "hw/i386/pc.h" #include "vga_int.h" #include "ui/pixel_ops.h"
hw/display/vga-isa.c +0 -1
@@ -25,7 +25,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "ui/console.h" #include "hw/i386/pc.h" #include "vga_int.h" #include "ui/pixel_ops.h"
hw/display/vga-pci.c +0 -1
@@ -25,7 +25,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "ui/console.h" #include "hw/pci/pci.h" #include "vga_int.h" #include "ui/pixel_ops.h"
hw/display/vga.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "hw/hw.h" -#include "ui/console.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "vga_int.h"
hw/display/vga_int.h +2 -1
@@ -25,8 +25,9 @@#ifndef HW_VGA_INT_H #define HW_VGA_INT_H -#include "hw/hw.h" +#include "exec/ioport.h" #include "exec/memory.h" +#include "ui/console.h" #define ST01_V_RETRACE 0x08#define ST01_DISP_ENABLE 0x01
hw/display/virtio-vga.c +0 -1
@@ -1,7 +1,6 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" -#include "ui/console.h" #include "vga_int.h" #include "hw/virtio/virtio-pci.h" #include "qapi/error.h"
hw/display/vmware_vga.c +0 -1
@@ -26,7 +26,6 @@#include "hw/hw.h" #include "hw/loader.h" #include "trace.h" -#include "ui/console.h" #include "ui/vnc.h" #include "hw/pci/pci.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 13/61] accel/tcg/cpu-exec-common.c: Remove unnecessary include of memory-internal.h
In reply to Michael TokarevFrom: Peter Maydell <[email protected]>
The cpu-exec-common.c file includes memory-internal.h, but it doesn't actually use anything from that header. Remove the unnecessary include.
--- accel/tcg/cpu-exec-common.c | 1 - 1 file changed, 1 deletion(-)
accel/tcg/cpu-exec-common.c +0 -1
@@ -21,7 +21,6 @@#include "cpu.h" #include "sysemu/cpus.h" #include "exec/exec-all.h" -#include "exec/memory-internal.h" bool tcg_allowed;
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 07/61] mmap(2) returns MAP_FAILED, not NULL, on failure
In reply to Michael TokarevFrom: Michael McConville <[email protected]>
--- hw/i386/xen/xen-mapcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/xen/xen-mapcache.c +1 -1
@@ -199,7 +199,7 @@ static void xen_remap_bucket(MapCacheEntry *entry,*/ vaddr_base =mmap (vaddr, size,PROT_READ |PROT_WRITE ,MAP_ANON |MAP_SHARED ,-1 ,0 ); -if (vaddr_base ==NULL ) { +if (vaddr_base ==MAP_FAILED ) {perror ("mmap" );exit (-1 ); }
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 01/61] Remove empty statements
In reply to Michael TokarevFrom: Ladi Prosek <[email protected]>
Thanks to Laszlo Ersek for spotting the double semicolon in target/i386/kvm.c
I have trivially grepped the tree for ';;' in C files.
--- hw/misc/imx6_ccm.c | 2 +- hw/s390x/virtio-ccw.c | 2 +- linux-user/signal.c | 2 +- migration/block.c | 2 +- target/i386/cpu.c | 2 +- target/i386/kvm.c | 2 +- target/sh4/translate.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
hw/misc/imx6_ccm.c +1 -1
@@ -335,7 +335,7 @@ static uint64_t imx6_ccm_get_ipg_clk(IMX6CCMState *dev)uint64_t freq =0 ; freq =imx6_ccm_get_ahb_clk (dev) - / (1 +EXTRACT (dev->ccm[CCM_CBCDR ],IPG_PODF ));; + / (1 +EXTRACT (dev->ccm[CCM_CBCDR ],IPG_PODF ));DPRINTF ("freq = %d\n" , (uint32_t )freq);
hw/s390x/virtio-ccw.c +1 -1
@@ -486,7 +486,7 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) }else {address_space_stb (&address_space_memory, ccw.cda, vdev->status,MEMTXATTRS_UNSPECIFIED ,NULL ); - sch->curr_status.scsw.count = ccw.count -sizeof (vdev->status);; + sch->curr_status.scsw.count = ccw.count -sizeof (vdev->status); ret =0 ; }break ;
linux-user/signal.c +1 -1
@@ -6530,7 +6530,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka, haddr = dest; } env->iaoq_f = haddr; - env->iaoq_b = haddr +4 ;; + env->iaoq_b = haddr +4 ;return ; give_sigsegv:
migration/block.c +1 -1
@@ -897,7 +897,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id)int len, flags;char device_name[256 ];int64_t addr; -BlockBackend *blk, *blk_prev =NULL ;; +BlockBackend *blk, *blk_prev =NULL ;Error *local_err =NULL ;uint8_t *buf;int64_t total_sectors =0 ;
target/i386/cpu.c +1 -1
@@ -2220,7 +2220,7 @@ static void x86_cpu_class_check_missing_features(X86CPUClass *xcc,if (xcc->kvm_required && !kvm_enabled ()) {strList *new =g_new0 (strList,1 ); - new->value =g_strdup ("kvm" );; + new->value =g_strdup ("kvm" ); *missing_feats = new;return ; }
target/i386/kvm.c +1 -1
@@ -1122,7 +1122,7 @@ static int kvm_get_supported_msrs(KVMState *s)break ;case MSR_IA32_XSS : has_msr_xss = true; -break ;; +break ;case HV_X64_MSR_CRASH_CTL : has_msr_hv_crash = true;break ;
target/sh4/translate.c +1 -1
@@ -668,7 +668,7 @@ static void _decode_opc(DisasContext * ctx)return ;case 0x6008 :/* swap.b Rm,Rn */ { -TCGv low =tcg_temp_new ();; +TCGv low =tcg_temp_new ();tcg_gen_ext16u_i32 (low,REG (B7_4 ));tcg_gen_bswap16_i32 (low, low);tcg_gen_deposit_i32 (REG (B11_8 ),REG (B7_4 ), low,0 ,16 );
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 02/61] hw/alpha/typhoon: simplify using the "unimplemented" sysbus device
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/alpha/alpha_sys.h | 1 - hw/alpha/pci.c | 26 -------------------------- hw/alpha/typhoon.c | 6 ++---- 3 files changed, 2 insertions(+), 31 deletions(-)
hw/alpha/alpha_sys.h +0 -1
@@ -15,7 +15,6 @@ PCIBus *typhoon_init(ram_addr_t, ISABus **, qemu_irq *, AlphaCPU *[4], pci_map_irq_fn);/* alpha_pci.c. */ -extern const MemoryRegionOps alpha_pci_ignore_ops;extern const MemoryRegionOps alpha_pci_conf1_ops;extern const MemoryRegionOps alpha_pci_iack_ops;
hw/alpha/pci.c +0 -26
@@ -14,32 +14,6 @@#include "trace.h" -/* Fallback for unassigned PCI I/O operations. Avoids MCHK. */ - -static uint64_t ignore_read (void *opaque,hwaddr addr,unsigned size) -{ -return 0 ; -} - -static void ignore_write (void *opaque,hwaddr addr,uint64_t v,unsigned size) -{ -} - -const MemoryRegionOps alpha_pci_ignore_ops = { - .read = ignore_read, - .write = ignore_write, - .endianness =DEVICE_LITTLE_ENDIAN , - .valid = { - .min_access_size =1 , - .max_access_size =8 , - }, - .impl = { - .min_access_size =1 , - .max_access_size =8 , - }, -}; - -/* PCI config space reads/writes, to byte-word addressable memory. */ static uint64_t bw_conf1_read (void *opaque,hwaddr addr,unsigned size)
hw/alpha/typhoon.c +2 -4
@@ -11,6 +11,7 @@#include "cpu.h" #include "hw/hw.h" #include "hw/devices.h" +#include "hw/misc/unimp.h" #include "sysemu/sysemu.h" #include "alpha_sys.h" #include "exec/address-spaces.h"
@@ -876,10 +877,7 @@ PCIBus *typhoon_init(ram_addr_t ram_size, ISABus **isa_bus, &s->pchip.reg_mem);/* Pchip0 PCI I/O, 0x801.FC00.0000, 32MB. */ -memory_region_init_io (&s->pchip.reg_io,OBJECT (s), &alpha_pci_ignore_ops, -NULL ,"pci0-io" ,32 *MB ); -memory_region_add_subregion (addr_space,0x801fc000000ULL , - &s->pchip.reg_io); +create_unimplemented_device ("pci0-io" ,0x801fc000000ULL ,32 *MB ); b = pci_register_bus(dev, "pci", typhoon_set_irq, sys_map_irq, s,
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 04/61] translate-all: fix 'consisits' typo in comment
In reply to Michael TokarevFrom: "Emilio G. Cota" <[email protected]>
--- accel/tcg/translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
accel/tcg/translate-all.c +1 -1
@@ -257,7 +257,7 @@ static target_long decode_sleb128(uint8_t **pp)/* Encode the data collected about the instructions while compiling TB. Place the data at BLOCK, and return the number of bytes consumed. -The logical table consisits of TARGET_INSN_START_WORDS target_ulong's, +The logical table consists of TARGET_INSN_START_WORDS target_ulong's, which come from the target's insn_start data, followed by a uintptr_t which comes from the host pc of the end of the code implementing the insn.
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 08/61] .gitignore: remove vscclient
In reply to Michael TokarevFrom: Marc-André Lureau <[email protected]>
It was removed with libcacard, since:
commit 7b02f5447c64d1854468f758398c9f6fe9e5721f
Author: Marc-André Lureau <[email protected]> Date: Sun Aug 30 11:48:40 2015 +0200
libcacard: use the standalone project
--- .gitignore | 1 - 1 file changed, 1 deletion(-)
.gitignore +0 -1
@@ -53,7 +53,6 @@ /qemu-version.h.tmp /module_block.h /scsi/qemu-pr-helper -/vscclient /vhost-user-scsi /fsdev/virtfs-proxy-helper *.tmp
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 36/61] nios2: remove duplicated includes (in code commented out)
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
--- disas/nios2.c | 3 --- hw/nios2/boot.c | 1 - target/nios2/cpu.h | 1 - target/nios2/helper.c | 5 +---- target/nios2/op_helper.c | 1 + target/nios2/translate.c | 1 + 6 files changed, 3 insertions(+), 9 deletions(-)
disas/nios2.c +0 -3
@@ -1756,7 +1756,6 @@ extern const int nios2_num_r2_reg_range_mappings;#endif /* _NIOS2_H */ /*#include "sysdep.h" -#include <stdio.h> #include "opcode/nios2.h" */ /* Register string table */
@@ -2521,8 +2520,6 @@ const int nios2_num_r2_reg_range_mappings = 8;#include "dis-asm.h" #include "opcode/nios2.h" #include "libiberty.h" -#include <string.h> -#include <assert.h> */ /* No symbol table is available when this code runs out in an embedded system as when it is used for disassembler support in a monitor. */
hw/nios2/boot.c +0 -1
@@ -34,7 +34,6 @@#include "qemu/option.h" #include "qemu/config-file.h" #include "qemu/error-report.h" -#include "qemu-common.h" #include "sysemu/device_tree.h" #include "sysemu/sysemu.h" #include "hw/loader.h"
target/nios2/cpu.h +0 -1
@@ -20,7 +20,6 @@#ifndef CPU_NIOS2_H #define CPU_NIOS2_H -#include "qemu/osdep.h" #include "qemu-common.h" #define TARGET_LONG_BITS 32
target/nios2/helper.c +1 -4
@@ -18,12 +18,9 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ -#include <stdio.h> -#include <string.h> -#include <assert.h> +#include "qemu/osdep.h" #include "cpu.h" -#include "qemu/osdep.h" #include "qemu/host-utils.h" #include "qapi/error.h" #include "exec/exec-all.h"
target/nios2/op_helper.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target/nios2/translate.c +1 -0
@@ -21,6 +21,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "tcg-op.h" #include "exec/exec-all.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 34/61] i386/hax: remove duplicated includes
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
--- include/sysemu/hax.h | 1 - target/i386/hax-darwin.c | 6 +----- target/i386/hax-darwin.h | 3 --- target/i386/hax-windows.h | 2 -- 4 files changed, 1 insertion(+), 11 deletions(-)
include/sysemu/hax.h +0 -1
@@ -22,7 +22,6 @@#ifndef QEMU_HAX_H #define QEMU_HAX_H -#include "config-host.h" #include "qemu-common.h" int hax_sync_vcpus (void );
target/i386/hax-darwin.c +1 -5
@@ -11,13 +11,9 @@*/ /* HAX module interface - darwin version */ -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <errno.h> +#include "qemu/osdep.h" #include <sys/ioctl.h> -#include "qemu/osdep.h" #include "target/i386/hax-i386.h" hax_fd hax_mod_open (void )
target/i386/hax-darwin.h +0 -3
@@ -15,10 +15,7 @@#ifndef TARGET_I386_HAX_DARWIN_H #define TARGET_I386_HAX_DARWIN_H -#include <sys/types.h> #include <sys/ioctl.h> -#include <sys/mman.h> -#include <stdarg.h> #define HAX_INVALID_FD (-1)static inline int hax_invalid_fd (hax_fd fd)
target/i386/hax-windows.h +0 -2
@@ -24,8 +24,6 @@#include <memory.h> #include <malloc.h> #include <winioctl.h> -#include <string.h> -#include <stdio.h> #include <windef.h> #define HAX_INVALID_FD INVALID_HANDLE_VALUE
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 47/61] hw/tpm: remove old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/tpm/tpm_passthrough.c | 1 - hw/tpm/tpm_tis.c | 1 - 2 files changed, 2 deletions(-)
hw/tpm/tpm_passthrough.c +0 -1
@@ -29,7 +29,6 @@#include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "qapi/clone-visitor.h" #include "tpm_util.h"
hw/tpm/tpm_tis.c +0 -1
@@ -29,7 +29,6 @@#include "sysemu/block-backend.h" #include "exec/address-spaces.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci_ids.h" #include "qapi/error.h" #include "qemu-common.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 40/61] hw/misc/pvpanic: remove unused #include
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/misc/pvpanic.c | 3 --- 1 file changed, 3 deletions(-)
hw/misc/pvpanic.c +0 -3
@@ -13,14 +13,11 @@*/ #include "qemu/osdep.h" -#include "qapi/qmp/qobject.h" -#include "qapi/qmp/qjson.h" #include "sysemu/sysemu.h" #include "qemu/log.h" #include "hw/nvram/fw_cfg.h" #include "hw/i386/pc.h" -#include "qapi-event.h" /* The bit of supported pv event */ #define PVPANIC_F_PANICKED 0
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 33/61] ppc: remove duplicated includes
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
not needed since 7ebaf795560
--- hw/ppc/spapr_hcall.c | 1 - target/ppc/kvm.c | 3 --- 2 files changed, 4 deletions(-)
hw/ppc/spapr_hcall.c +0 -1
@@ -13,7 +13,6 @@#include "trace.h" #include "kvm_ppc.h" #include "hw/ppc/spapr_ovec.h" -#include "qemu/error-report.h" #include "mmu-book3s-v3.h" struct SPRSyncState {
target/ppc/kvm.c +0 -3
@@ -47,9 +47,6 @@#include "sysemu/hostmem.h" #include "qemu/cutils.h" #include "qemu/mmap-alloc.h" -#if defined(TARGET_PPC64 ) -#include "hw/ppc/spapr_cpu_core.h" -#endif #include "elf.h" #include "sysemu/kvm_int.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 10/61] Document pretty parameter for mon option
In reply to Michael TokarevFrom: Vicente Jimenez Aguilar <[email protected]>
Documentation: document pretty parameter for mon option that turns on JSON pretty printing
--- qemu-options.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
qemu-options.hx +4 -3
@@ -3487,11 +3487,12 @@ Like -qmp but uses pretty JSON formatting. ETEXI DEF("mon", HAS_ARG, QEMU_OPTION_mon, \ - "-mon [chardev=]name[,mode=readline|control]\n", QEMU_ARCH_ALL) + "-mon [chardev=]name[,mode=readline|control][,pretty[=on|off]]\n", QEMU_ARCH_ALL) STEXI -@item -mon [chardev=]name[,mode=readline|control] +@item -mon [chardev=]name[,mode=readline|control][,pretty[=on|off]] @findex -mon -Setup monitor on chardev @var{name}. +Setup monitor on chardev @var{name}. @code{pretty} turns on JSON pretty printing +easing human reading and debugging. ETEXI DEF("debugcon", HAS_ARG, QEMU_OPTION_debugcon, \
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 23/61] MAINTAINERS: add an entry for the i82378 (superio)
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -732,6 +732,7 @@ F: hw/ppc/prep.c F: hw/ppc/prep_systemio.c F: hw/ppc/rs6000_mc.c F: hw/pci-host/prep.[hc] +F: hw/isa/i82378.c F: hw/isa/pc87312.[hc] F: hw/dma/i82374.c F: pc-bios/ppc_rom.bin
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 35/61] i386/hax: remove duplicated include
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
this file in include in "target/i386/hax-i386.h":
#ifdef CONFIG_WIN32
#include "target/i386/hax-windows.h"
#endifwhich guaranties that sysemu/os-win32.h is previously included (CONFIG_WIN32)
--- target/i386/hax-windows.h | 1 - 1 file changed, 1 deletion(-)
target/i386/hax-windows.h +0 -1
@@ -20,7 +20,6 @@#ifndef TARGET_I386_HAX_WINDOWS_H #define TARGET_I386_HAX_WINDOWS_H -#include <windows.h> #include <memory.h> #include <malloc.h> #include <winioctl.h>
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 41/61] hw/ssi/aspeed_smc: remove unused #include
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/ssi/aspeed_smc.c | 1 - 1 file changed, 1 deletion(-)
hw/ssi/aspeed_smc.c +0 -1
@@ -27,7 +27,6 @@#include "sysemu/sysemu.h" #include "qemu/log.h" #include "qemu/error-report.h" -#include "exec/address-spaces.h" #include "hw/ssi/aspeed_smc.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 06/61] configure: check $CC available before verifying host CPU
In reply to Michael TokarevFrom: Daniel Henrique Barboza <[email protected]>
When executing 'configure' in a fresh QEMU clone, in a fresh OS install running in a ppc64le host, this is the error shown:
-----
../configure --enable-trace-backend=simple --enable-debug
--target-list=ppc64-softmmu
ERROR: Unsupported CPU = ppc64le, try --enable-tcg-interpreter
-----
This isn't true, ppc64le host CPU is supported. This happens because, in a fresh install, we don't have a C compiler to autodetect the $cpu variable to "ppc64".
This patch moves the CC available check up a bit, just before verifying the host CPU. This ensures that we bail out with a $CC not available error instead of unsupported CPU (the host CPU detection without the compiler wouldn't work properly anyway). It also allows --help to keep working without a C compiler. With this patch, in the same ppc64le host without gcc:
$ ../configure --enable-trace-backend=simple --enable-debug
--target-list=ppc64-softmmuERROR: "cc" either does not exist or does not work
$ ../configure --help
Usage: configure [options]
Options: [defaults in brackets after descriptions]
Standard options:
--help print this message --prefix=PREFIX install in PREFIX [/usr/local] --interp-prefix=PREFIX where to find shared libraries, etc.
(...)
--- configure | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-)
configure +14 -11
@@ -1582,6 +1582,20 @@ fi # Suppress writing compiled files python="$python -B" +# Check that the C compiler works. Doing this here before testing +# the host CPU ensures that we had a valid CC to autodetect the +# $cpu var (and we should bail right here if that's not the case). +# It also allows the help message to be printed without a CC. +write_c_skeleton; +if compile_object ; then + : C compiler works ok +else + error_exit "\"$cc\" either does not exist or does not work" +fi +if ! compile_prog ; then + error_exit "\"$cc\" cannot build an executable (is your linker broken?)" +fi + # Now we have handled --enable-tcg-interpreter and know we're not just # printing the help message, bail out if the host CPU isn't supported. if test "$ARCH" = "unknown"; then
@@ -1603,17 +1617,6 @@ if test -z "$werror" ; then fi fi -# check that the C compiler works. -write_c_skeleton; -if compile_object ; then - : C compiler works ok -else - error_exit "\"$cc\" either does not exist or does not work" -fi -if ! compile_prog ; then - error_exit "\"$cc\" cannot build an executable (is your linker broken?)" -fi - if test "$bogus_os" = "yes"; then # Now that we know that we're not printing the help and that # the compiler works (so the results of the check_defines we used
Signature · 1 line
2.11.0
Quoted 8 lines
Here's a large pull request for trivial-patches queue. It's been quite a whie since the last request, and many changes has been accumulated.
Also there's a large patchset by Philippe Mathieu-Daudé named "remove i386/pc dependency from non-PC world (part 1)" consisting of 42 patches which makes good portion of this pull request.
I forgot to add my S-o-b lines to the large series by Philippe Mathieu-Daudé. So here's a re-send of just the cover letter (not all the other patches). The only difference is the addition of 42 of my "S-o-b" line.
Thanks,
/mjt
The following changes since commit 38d1b31e0501f938db39c5b2e508328530410246:
Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-201712151' into staging (2017-12-15 17:05:26 +0000)
are available in the git repository at:
git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
for you to fetch changes up to f4c56de4342e50b9c5a96b579a0cc44a48836536:
misc: drop old i386 dependency (2017-12-18 01:01:55 +0300)
----------------------------------------------------------------
trivial patches for 2017-12-18
----------------------------------------------------------------
Daniel Henrique Barboza (1):
configure: check $CC available before verifying host CPU
Emilio G. Cota (3):
disas/arm: fix 'instuction' typo in comment
translate-all: fix 'consisits' typo in comment
qht: fix kernel-doc markup in qht.h
Ladi Prosek (1):
Remove empty statements
Marc-André Lureau (2):
.gitignore: remove vscclient
memory: remove unused memory_region_set_global_locking()
Michael McConville (1):
mmap(2) returns MAP_FAILED, not NULL, on failure
Mike Frysinger (1):
build: fix typo in error message
Peter Maydell (1):
accel/tcg/cpu-exec-common.c: Remove unnecessary include of memory-internal.h
Philippe Mathieu-Daudé (49):
hw/alpha/typhoon: simplify using the "unimplemented" sysbus device
Makefile: use $(MAKE) variable
Makefile: add more targets to the UNCHECKED_GOALS rule
MAINTAINERS: add "hw/registerfields.h" in Register API entry hw/registerfields: fix a typo in the FIELD() documentation hw/registerfields: add 64-bit extract/deposit macros hw/registerfields: add missing include
MAINTAINERS: add entries for i2c/ppc4xx
MAINTAINERS: add an entry for the i82374 (southbridge)
MAINTAINERS: add an entry for the i8257 (DMA controller)
MAINTAINERS: add an entry for the i82378 (superio)
MAINTAINERS: add an entry for watchdog/wdt_ib700
MAINTAINERS: add an entry for input/pckbd.c
MAINTAINERS: add entries for timer/m48t59
MAINTAINERS: add missing entry for include/hw/net/
hw: use "qemu/osdep.h" as first #include in source files
hw: remove "qemu/osdep.h" from header files
block: remove "qemu/osdep.h" from header file
misc: remove headers implicitly included
misc: remove duplicated includes
ppc: remove duplicated includes
i386/hax: remove duplicated includes
i386/hax: remove duplicated include
nios2: remove duplicated includes (in code commented out)
misc: avoid "include/" in include path
numa: remove unused #include
hw/input/vmmouse: remove unused #include
hw/misc/pvpanic: remove unused #include
hw/ssi/aspeed_smc: remove unused #include
amd_iommu: avoid needless includes in header file
misc: remove old i386 dependency
hw/ide: remove old i386 dependency
hw/ipmi: remove old i386 dependency
hw/i2c: remove old i386 dependency
hw/tpm: remove old i386 dependency
hw/virtio-balloon: remove old i386 dependency
hw/unicore32: restrict hw addr defines to source file hw/timer/i8254: rename pit_init() -> i8254_pit_init() hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init() hw/acpi: ACPI_PM_* defines are not restricted to i386 arch hw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h" hw/display/vga: "vga_int.h" requires "ui/console.h" hw/display/vga: extract public API from i386/pc to "hw/display/vga.h" hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c hw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h" i386/pc: move vmport.c to hw/i386/
i386/pc: move vmmouse.c to hw/i386/
misc: drop old i386 dependency
Tao Wu (1):
hw/input/hid: Add support for several keys.
Vicente Jimenez Aguilar (1):
Document pretty parameter for mon option
.gitignore | 1 -
MAINTAINERS | 14 ++++++++++-
Makefile | 11 +++++----
accel/tcg/cpu-exec-common.c | 1 -
accel/tcg/translate-all.c | 3 +--
block/dmg.h | 1 -
bsd-user/main.c | 1 -
chardev/wctablet.c | 4 ----
configure | 25 ++++++++++---------
disas/arm.c | 2 +-
disas/nios2.c | 3 ---
exec.c | 3 ---
hw/acpi/core.c | 1 -
hw/acpi/ipmi-stub.c | 1 +
hw/alpha/alpha_sys.h | 1 -
hw/alpha/dp264.c | 4 ++--
hw/alpha/pci.c | 26 --------------------
hw/alpha/typhoon.c | 6 ++---
hw/arm/spitz.c | 1 -
hw/audio/fmopl.c | 1 -
hw/audio/fmopl.h | 1 -
hw/audio/pcspk.c | 1 -
hw/char/debugcon.c | 1 -
hw/char/xen_console.c | 1 -
hw/core/machine.c | 1 -
hw/cpu/core.c | 1 +
hw/display/cirrus_vga.c | 1 -
hw/display/qxl.h | 1 -
hw/display/vga-isa-mm.c | 4 +---
hw/display/vga-isa.c | 3 +--
hw/display/vga-pci.c | 1 -
hw/display/vga.c | 5 ++--
hw/display/vga_int.h | 3 ++-
hw/display/{vga.h => vga_regs.h} | 0
hw/display/virtio-vga.c | 1 -
hw/display/vmware_vga.c | 1 -
hw/i2c/pm_smbus.c | 1 -
hw/i2c/smbus_ich9.c | 1 -
hw/i386/Makefile.objs | 2 ++
hw/i386/acpi-build.c | 2 +-
hw/i386/amd_iommu.c | 5 +++-
hw/i386/amd_iommu.h | 5 ----
hw/i386/pc.c | 5 ++--
hw/{input => i386}/vmmouse.c | 1 -
hw/{misc => i386}/vmport.c | 17 ++++++-------
hw/i386/xen/xen-mapcache.c | 2 +-
hw/i386/xen/xen_platform.c | 1 -
hw/ide/ahci.c | 1 -
hw/ide/cmd646.c | 1 -
hw/ide/core.c | 3 +--
hw/ide/ich.c | 1 -
hw/ide/isa.c | 1 -
hw/ide/microdrive.c | 1 -
hw/ide/pci.c | 1 -
hw/ide/piix.c | 2 +-
hw/ide/via.c | 1 -
hw/input/Makefile.objs | 1 -
hw/input/adb.c | 2 +-
hw/input/hid.c | 8 +++----
hw/intc/lm32_pic.c | 1 -
hw/ipmi/isa_ipmi_bt.c | 1 -
hw/ipmi/isa_ipmi_kcs.c | 1 -
hw/isa/i82378.c | 5 ++--
hw/isa/vt82c686.c | 1 -
hw/mips/mips_fulong2e.c | 4 ++--
hw/mips/mips_jazz.c | 5 ++--
hw/mips/mips_malta.c | 4 ++--
hw/mips/mips_r4k.c | 5 ++--
hw/misc/Makefile.objs | 2 --
hw/misc/imx6_ccm.c | 2 +-
hw/misc/ivshmem.c | 1 -
hw/misc/pvpanic.c | 12 ++++------
hw/misc/sga.c | 1 -
hw/moxie/moxiesim.c | 1 -
hw/net/ne2000-isa.c | 6 ++---
hw/net/ne2000.c | 2 --
hw/net/ne2000.h | 3 +++
hw/nios2/boot.c | 1 -
hw/pci-bridge/pci_expander_bridge.c | 1 -
hw/ppc/pnv.c | 2 +-
hw/ppc/prep.c | 1 +
hw/ppc/spapr_cpu_core.c | 1 +
hw/ppc/spapr_hcall.c | 1 -
hw/s390x/css.c | 1 -
hw/s390x/virtio-ccw.c | 2 +-
hw/scsi/vhost-user-scsi.c | 1 -
hw/smbios/smbios_type_38-stub.c | 1 +
hw/sparc/sun4m.c | 1 -
hw/ssi/aspeed_smc.c | 3 +--
hw/timer/i8254.c | 1 -
hw/timer/i8254_common.c | 1 -
hw/timer/mc146818rtc.c | 2 +-
hw/tpm/tpm_passthrough.c | 1 -
hw/tpm/tpm_tis.c | 1 -
hw/unicore32/puv3.c | 15 ++++++++----
hw/vfio/ccw.c | 2 +-
hw/virtio/vhost-vsock.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/watchdog/wdt_ib700.c | 1 -
include/exec/memory.h | 12 ----------
include/hw/acpi/acpi.h | 11 +++++++++
include/hw/acpi/ich9.h | 2 ++
include/hw/acpi/ipmi.h | 1 -
include/hw/cpu/core.h | 1 -
include/hw/display/vga.h | 25 +++++++++++++++++++
include/hw/i2c/ppc4xx_i2c.h | 1 -
include/hw/i386/pc.h | 48 -------------------------------------
include/hw/misc/pvpanic.h | 21 ++++++++++++++++
include/hw/net/ne2000-isa.h | 33 +++++++++++++++++++++++++
include/hw/registerfields.h | 15 +++++++++++-
include/hw/timer/i8254.h | 5 ++--
include/hw/timer/i8254_internal.h | 2 +-
include/hw/timer/mc146818rtc.h | 3 ++-
include/hw/unicore32/puv3.h | 10 --------
include/qemu/qht.h | 6 ++---
include/sysemu/hax.h | 1 -
linux-user/main.c | 1 -
linux-user/signal.c | 2 +-
memory.c | 5 ----
migration/block.c | 2 +-
monitor.c | 1 -
net/colo-compare.c | 1 -
numa.c | 1 -
qemu-options.hx | 7 +++---
scripts/git-submodule.sh | 2 +-
target/i386/cpu.c | 2 +-
target/i386/hax-darwin.c | 6 +----
target/i386/hax-darwin.h | 3 ---
target/i386/hax-windows.h | 3 ---
target/i386/kvm.c | 2 +-
target/nios2/cpu.h | 1 -
target/nios2/helper.c | 5 +---
target/nios2/op_helper.c | 1 +
target/nios2/translate.c | 1 +
target/openrisc/exception_helper.c | 1 -
target/ppc/kvm.c | 3 ---
target/sh4/translate.c | 2 +-
tests/Makefile.include | 20 ++++++++--------
tests/test-aio-multithread.c | 1 -
tests/test-clone-visitor.c | 1 -
tests/vhost-user-test.c | 1 -
tests/vmgenid-test.c | 3 ---
util/qemu-sockets.c | 1 -
vl.c | 3 +--
144 files changed, 258 insertions(+), 323 deletions(-)
rename hw/display/{vga.h => vga_regs.h} (100%)
rename hw/{input => i386}/vmmouse.c (99%)
rename hw/{misc => i386}/vmport.c (95%)
create mode 100644 include/hw/display/vga.h
create mode 100644 include/hw/misc/pvpanic.h
create mode 100644 include/hw/net/ne2000-isa.hQuoted 9 lines · Michael Tokarev
Quoted 8 lines
Here's a large pull request for trivial-patches queue. It's been quite a whie since the last request, and many changes has been accumulated.
Also there's a large patchset by Philippe Mathieu-Daudé named "remove i386/pc dependency from non-PC world (part 1)" consisting of 42 patches which makes good portion of this pull request.
Quoted 4 lines
I forgot to add my S-o-b lines to the large series by Philippe Mathieu-Daudé. So here's a re-send of just the cover letter (not all the other patches). The only difference is the addition of 42 of my "S-o-b" line.
I'm afraid this fails 'make check'. (I only tested the first pullreq but if you only changed signoffs then it'll still be the same):
TEST: tests/qom-test... (pid=12208)
/alpha/qom/clipper:
Broken pipe
FAIL
GTester: last random seed: R02S26a31a16d967b2664ad714c1c7f8e7f1 (pid=12214)
/alpha/qom/none: OK
FAIL: tests/qom-test
TEST: tests/test-hmp... (pid=12219)
/alpha/hmp/clipper:
Broken pipe
FAIL
GTester: last random seed: R02S0c5a0f7de3fc6e9885b740c77c86eef2 (pid=12225)
/alpha/hmp/none: OK
/alpha/hmp/none+2MB: OK
FAIL: tests/test-hmp
This is because qemu-system-alpha segfaults on startup:
Thread 1 "qemu-system-alp" received signal SIGSEGV, Segmentation fault. 0x00005555557db414 in memory_region_update_container_subregions (subregion=0x555556ad6330)
at /home/petmay01/linaro/qemu-for-merges/memory.c:2290
2290 QTAILQ_INSERT_TAIL(&mr->subregions, subregion, subregions_link);
(gdb) bt
#0 0x00005555557db414 in memory_region_update_container_subregions (subregion=0x555556ad6330)
at /home/petmay01/linaro/qemu-for-merges/memory.c:2290
#1 0x00005555557db4da in memory_region_add_subregion_common
(mr=0x5555569e2140, offset=32, subregion=0x555556ad6330)
at /home/petmay01/linaro/qemu-for-merges/memory.c:2303
#2 0x00005555557db516 in memory_region_add_subregion
(mr=0x5555569e2140, offset=32, subregion=0x555556ad6330)
at /home/petmay01/linaro/qemu-for-merges/memory.c:2311
#3 0x000055555594e8bd in isa_register_ioport (dev=0x555556ad6270,
io=0x555556ad6330, start=32)
at /home/petmay01/linaro/qemu-for-merges/hw/isa/isa-bus.c:130
#4 0x000055555594b844 in pic_common_realize (dev=0x555556ad6270,
errp=0x7fffffffdaf0)
at /home/petmay01/linaro/qemu-for-merges/hw/intc/i8259_common.c:77
#5 0x000055555594c744 in pic_realize (dev=0x555556ad6270, errp=0x7fffffffdaf0)
at /home/petmay01/linaro/qemu-for-merges/hw/intc/i8259.c:461
#6 0x00005555558f3d60 in device_set_realized (obj=0x555556ad6270,
value=true, errp=0x7fffffffdc90)
at /home/petmay01/linaro/qemu-for-merges/hw/core/qdev.c:914
#7 0x0000555555ac188c in property_set_bool (obj=0x555556ad6270, v=
0x555556ad6f20, name=0x555555d2271b "realized",
opaque=0x555556ad66a0, errp=0x7fffffffdc90)
at /home/petmay01/linaro/qemu-for-merges/qom/object.c:1906
#8 0x0000555555abfc01 in object_property_set (obj=0x555556ad6270, v=
0x555556ad6f20, name=0x555555d2271b "realized",errp=0x7fffffffdc90) at /home/petmay01/linaro/qemu-for-merges/qom/object.c:1102 #9 0x0000555555ac2bc9 in object_property_set_qobject (obj=0x555556ad6270, value=0x555556ad6520, name=0x555555d2271b "realized", errp=0x7fffffffdc90) at /home/petmay01/linaro/qemu-for-merges/qom/qom-qobject.c:27 #10 0x0000555555abfe96 in object_property_set_bool (obj=0x555556ad6270, value=true, name=0x555555d2271b "realized", errp=0x7fffffffdc90) at /home/petmay01/linaro/qemu-for-merges/qom/object.c:1171 #11 0x00005555558f27a9 in qdev_init_nofail (dev=0x555556ad6270) at /home/petmay01/linaro/qemu-for-merges/hw/core/qdev.c:338 #12 0x000055555594b984 in i8259_init_chip (name=0x555555d2c08c "isa-i8259", bus=0x555556ad5550, master=true)
at /home/petmay01/linaro/qemu-for-merges/hw/intc/i8259_common.c:96
#13 0x000055555594c783 in i8259_init (bus=0x555556ad5550,
parent_irq=0x555556ad6050)
at /home/petmay01/linaro/qemu-for-merges/hw/intc/i8259.c:473#14 0x0000555555851873 in typhoon_init (ram_size=134217728, isa_bus=0x7fffffffde08, p_rtc_irq=0x7fffffffde10, cpus=0x7fffffffdea0, sys_map_irq=0x55555584f22a <clipper_pci_map_irq>) at /home/petmay01/linaro/qemu-for-merges/hw/alpha/typhoon.c:925 #15 0x000055555584f3dd in clipper_init (machine=0x55555697b390) at /home/petmay01/linaro/qemu-for-merges/hw/alpha/dp264.c:77
#16 0x00005555558fba0a in machine_run_board_init (machine=0x55555697b390)
at /home/petmay01/linaro/qemu-for-merges/hw/core/machine.c:792
#17 0x000055555587ac3d in main (argc=1, argv=0x7fffffffe338, envp=0x7fffffffe348) at /home/petmay01/linaro/qemu-for-merges/vl.c:4708
There was also a minor merge conflict with the tpm pullreq (both pulls change the #includes in hw/tpm/tpm_tis.c) which you might fix when you respin.
thanks
-- PMM
Hi Peter,
Quoted 19 lines · Peter Maydell
Quoted 9 lines · Michael Tokarev
Quoted 8 lines
Here's a large pull request for trivial-patches queue. It's been quite a whie since the last request, and many changes has been accumulated.
Also there's a large patchset by Philippe Mathieu-Daudé named "remove i386/pc dependency from non-PC world (part 1)" consisting of 42 patches which makes good portion of this pull request.
Quoted 4 lines
I forgot to add my S-o-b lines to the large series by Philippe Mathieu-Daudé. So here's a re-send of just the cover letter (not all the other patches). The only difference is the addition of 42 of my "S-o-b" line.
I'm afraid this fails 'make check'. (I only tested the first pullreq but if you only changed signoffs then it'll still be the same):
Quoted 6 lines
TEST: tests/qom-test... (pid=12208)
/alpha/qom/clipper:
Broken pipe
FAIL
GTester: last random seed: R02S26a31a16d967b2664ad714c1c7f8e7f1 (pid=12214)
Oops
Quoted 12 lines
/alpha/qom/none: OK
FAIL: tests/qom-test
TEST: tests/test-hmp... (pid=12219)
/alpha/hmp/clipper:
Broken pipe
FAIL
GTester: last random seed: R02S0c5a0f7de3fc6e9885b740c77c86eef2 (pid=12225)
/alpha/hmp/none: OK
/alpha/hmp/none+2MB: OK
FAIL: tests/test-hmp
Quoted 1 line
This is because qemu-system-alpha segfaults on startup:
My bad...
eede06dd70f72da489b8f968abbb7cb5445ef834 is the first bad commit
Author: Philippe Mathieu-Daudé <[email protected]>
hw/alpha/typhoon: simplify using the "unimplemented" sysbus device
I'm pretty sure I run the qtests, but this was 2 months ago... I'll have a look.
[...]
Quoted 3 lines
There was also a minor merge conflict with the tpm pullreq (both pulls change the #includes in
hw/tpm/tpm_tis.c) which you might fix when you respin.
Yes, I rebased the 42 patches on /master yesterday but I see you merged the TPM tree in your /staging, so I'll rebase there and resend the offending patches fixed to Michael.
Regards,
Phil.
Quoted 29 lines
Quoted 10 lines
I'm afraid this fails 'make check'. (I only tested the first pullreq but if you only changed signoffs then it'll still be the same):
TEST: tests/qom-test... (pid=12208)
/alpha/qom/clipper:
Broken pipe
FAIL
GTester: last random seed: R02S26a31a16d967b2664ad714c1c7f8e7f1 (pid=12214)Oops
Quoted 12 lines
/alpha/qom/none: OK
FAIL: tests/qom-test
TEST: tests/test-hmp... (pid=12219)
/alpha/hmp/clipper:
Broken pipe
FAIL
GTester: last random seed: R02S0c5a0f7de3fc6e9885b740c77c86eef2 (pid=12225)
/alpha/hmp/none: OK
/alpha/hmp/none+2MB: OK
FAIL: tests/test-hmpQuoted 1 line
This is because qemu-system-alpha segfaults on startup:
My bad...
Quoted 7 lines
eede06dd70f72da489b8f968abbb7cb5445ef834is the first bad commit
Author: Philippe Mathieu-Daudé <[email protected]>hw/alpha/typhoon: simplify using the "unimplemented" sysbus device
I'm pretty sure I run the qtests, but this was 2 months ago... I'll have a look.
This patch is not _trivial_ :| Let's drop it from this tree, I'll have to rework it.
Quoted 8 lines
[...]
Quoted 3 lines
There was also a minor merge conflict with the tpm pullreq (both pulls change the #includes in
hw/tpm/tpm_tis.c) which you might fix when you respin.Yes, I rebased the 42 patches on /master yesterday but I see you merged the TPM tree in your /staging, so I'll rebase there and resend the offending patches fixed to Michael.
Michael, I removed the "hw/alpha/typhoon" patch, and updated the "hw/tpm: remove old i386 dependency" one: no need to modify hw/tpm/tpm_tis.c, Marc-André Lureau already cleaned it, I did however clean the newly added hw/tpm/tpm_emulator.c file.
The fixed tree is now available signed in the Git repository at:
github.com:philmd/qemu.git tags/trivial-patches-2017-12-18
If this is OK to you I'll only resend the "hw/tpm: remove old i386 dependency" on the list, but if you/Peter prefer I can still resend the whole enchilada (which is unchanged except this unique patch).
Regards,
Phil.
[Qemu-devel] [PULL 14/61] Makefile: add more targets to the UNCHECKED_GOALS rule
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
These targets don't need a full build of git submodules. (See b8e535ae8af and eaa2ddbb767).
--- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Makefile +4 -1
@@ -6,7 +6,10 @@ BUILD_DIR=$(CURDIR) # Before including a proper config-host.mak, assume we are in the source tree SRC_PATH=. -UNCHECKED_GOALS := %clean TAGS cscope ctags docker docker-% help +UNCHECKED_GOALS := %clean TAGS cscope ctags dist \ + html info pdf txt \ + help check-help \ + docker docker-% vm-test vm-build-% # All following code might depend on configuration variables ifneq ($(wildcard config-host.mak),)
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 51/61] hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init()
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/alpha/dp264.c | 2 +- hw/i386/pc.c | 2 +- hw/isa/i82378.c | 3 ++- hw/mips/mips_fulong2e.c | 2 +- hw/mips/mips_jazz.c | 2 +- hw/mips/mips_malta.c | 2 +- hw/mips/mips_r4k.c | 2 +- hw/ppc/pnv.c | 2 +- hw/timer/mc146818rtc.c | 2 +- include/hw/timer/mc146818rtc.h | 3 ++- 10 files changed, 12 insertions(+), 10 deletions(-)
hw/alpha/dp264.c +1 -1
@@ -78,7 +78,7 @@ static void clipper_init(MachineState *machine) clipper_pci_map_irq);/* Since we have an SRM-compatible PALcode, use the SRM epoch. */ -rtc_init (isa_bus,1900 , rtc_irq); +mc146818_rtc_init (isa_bus,1900 , rtc_irq);i8254_pit_init (isa_bus,0x40 ,0 ,NULL );isa_create_simple (isa_bus,"i8042" );
hw/i386/pc.c +1 -1
@@ -1565,7 +1565,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi, rtc_irq =qdev_get_gpio_in (hpet,HPET_LEGACY_RTC_INT ); } } - *rtc_state =rtc_init (isa_bus,2000 , rtc_irq); + *rtc_state =mc146818_rtc_init (isa_bus,2000 , rtc_irq);qemu_register_boot_set (pc_boot_set, *rtc_state);
hw/isa/i82378.c +2 -1
@@ -21,6 +21,7 @@#include "hw/pci/pci.h" #include "hw/i386/pc.h" #include "hw/timer/i8254.h" +#include "hw/timer/mc146818rtc.h" #include "hw/audio/pcspk.h" #define TYPE_I82378 "i82378"
@@ -106,7 +107,7 @@ static void i82378_realize(PCIDevice *pci, Error **errp) isa =isa_create_simple (isabus,"i82374" );/* timer */ -isa_create_simple (isabus,"mc146818rtc" ); +isa_create_simple (isabus,TYPE_MC146818_RTC ); }static void i82378_init (Object *obj)
hw/mips/mips_fulong2e.c +1 -1
@@ -365,7 +365,7 @@ static void mips_fulong2e_init(MachineState *machine)/* Super I/O */ isa_create_simple (isa_bus,"i8042" ); -rtc_init (isa_bus,2000 ,NULL ); +mc146818_rtc_init (isa_bus,2000 ,NULL );serial_hds_isa_init (isa_bus,0 ,MAX_SERIAL_PORTS );parallel_hds_isa_init (isa_bus,1 );
hw/mips/mips_jazz.c +1 -1
@@ -288,7 +288,7 @@ static void mips_jazz_init(MachineState *machine,fdctrl_init_sysbus (qdev_get_gpio_in (rc4030,1 ),-1 ,0x80003000 , fds);/* Real time clock */ -rtc_init (isa_bus,1980 ,NULL ); +mc146818_rtc_init (isa_bus,1980 ,NULL );memory_region_init_io (rtc,NULL , &rtc_ops,NULL ,"rtc" ,0x1000 );memory_region_add_subregion (address_space,0x80004000 , rtc);
hw/mips/mips_malta.c +1 -1
@@ -1214,7 +1214,7 @@ void mips_malta_init(MachineState *machine)/* Super I/O */ isa_create_simple (isa_bus,"i8042" ); -rtc_init (isa_bus,2000 ,NULL ); +mc146818_rtc_init (isa_bus,2000 ,NULL );serial_hds_isa_init (isa_bus,0 ,2 );parallel_hds_isa_init (isa_bus,1 );
hw/mips/mips_r4k.c +1 -1
@@ -270,7 +270,7 @@ void mips_r4k_init(MachineState *machine) i8259 =i8259_init (isa_bus, env->irq[2 ]);isa_bus_irqs (isa_bus, i8259); -rtc_init (isa_bus,2000 ,NULL ); +mc146818_rtc_init (isa_bus,2000 ,NULL ); pit =i8254_pit_init (isa_bus,0x40 ,0 ,NULL );
hw/ppc/pnv.c +1 -1
@@ -655,7 +655,7 @@ static void ppc_powernv_init(MachineState *machine)serial_hds_isa_init (pnv->isa_bus,0 ,MAX_SERIAL_PORTS );/* Create an RTC ISA device too */ -rtc_init (pnv->isa_bus,2000 ,NULL ); +mc146818_rtc_init (pnv->isa_bus,2000 ,NULL );/* OpenPOWER systems use a IPMI SEL Event message to notify the * host to powerdown */
hw/timer/mc146818rtc.c +1 -1
@@ -999,7 +999,7 @@ static void rtc_realizefn(DeviceState *dev, Error **errp)qdev_init_gpio_out (dev, &s->irq,1 ); } -ISADevice *rtc_init (ISABus *bus,int base_year,qemu_irq intercept_irq) +ISADevice *mc146818_rtc_init (ISABus *bus,int base_year,qemu_irq intercept_irq) {DeviceState *dev;ISADevice *isadev;
include/hw/timer/mc146818rtc.h +2 -1
@@ -6,7 +6,8 @@#define TYPE_MC146818_RTC "mc146818rtc" -ISADevice *rtc_init (ISABus *bus,int base_year,qemu_irq intercept_irq); +ISADevice *mc146818_rtc_init (ISABus *bus,int base_year, +qemu_irq intercept_irq);void rtc_set_memory (ISADevice *dev,int addr,int val);int rtc_get_memory (ISADevice *dev,int addr);
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 17/61] hw/registerfields: add 64-bit extract/deposit macros
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- include/hw/registerfields.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
include/hw/registerfields.h +11 -0
@@ -35,6 +35,9 @@#define FIELD_EX32 (storage, reg, field) \ extract32((storage), R_ ## reg ## _ ## field ## _SHIFT, \ R_ ## reg ## _ ## field ## _LENGTH) +#define FIELD_EX64 (storage, reg, field) \ + extract64((storage), R_ ## reg ## _ ## field ## _SHIFT, \ + R_ ## reg ## _ ## field ## _LENGTH)/* Extract a field from an array of registers */ #define ARRAY_FIELD_EX32 (regs, reg, field) \
@@ -52,6 +55,14 @@ d = deposit32((storage), R_ ## reg ## _ ## field ## _SHIFT, \ R_ ## reg ## _ ## field ## _LENGTH, v.v); \ d; }) +#define FIELD_DP64 (storage, reg, field, val) ({ \ + struct { \ + unsigned int v:R_ ## reg ## _ ## field ## _LENGTH; \ + } v = { .v = val }; \ + uint64_t d; \ + d = deposit64((storage), R_ ## reg ## _ ## field ## _SHIFT, \ + R_ ## reg ## _ ## field ## _LENGTH, v.v); \ + d; })/* Deposit a field to array of registers. */ #define ARRAY_FIELD_DP32 (regs, reg, field, val) \
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 48/61] hw/virtio-balloon: remove old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/virtio/virtio-balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/virtio-balloon.c +1 -1
@@ -18,7 +18,7 @@#include "qemu/timer.h" #include "qemu-common.h" #include "hw/virtio/virtio.h" -#include "hw/i386/pc.h" +#include "hw/mem/pc-dimm.h" #include "sysemu/balloon.h" #include "hw/virtio/virtio-balloon.h" #include "sysemu/kvm.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 49/61] hw/unicore32: restrict hw addr defines to source file
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
and drop unused #includes
--- hw/unicore32/puv3.c | 15 ++++++++++----- include/hw/unicore32/puv3.h | 10 ---------- 2 files changed, 10 insertions(+), 15 deletions(-)
hw/unicore32/puv3.c +10 -5
@@ -11,16 +11,11 @@#include "qemu/osdep.h" #include "qapi/error.h" -#include "qemu-common.h" #include "cpu.h" #include "ui/console.h" -#include "elf.h" -#include "exec/address-spaces.h" -#include "hw/sysbus.h" #include "hw/boards.h" #include "hw/loader.h" #include "hw/i386/pc.h" -#include "qemu/error-report.h" #include "sysemu/qtest.h" #undef DEBUG_PUV3
@@ -29,6 +24,16 @@#define KERNEL_LOAD_ADDR 0x03000000#define KERNEL_MAX_SIZE 0x00800000/* Just a guess */ +/* PKUnity System bus (AHB): 0xc0000000 - 0xedffffff (640MB) */ +#define PUV3_DMA_BASE (0xc0200000)/* AHB-4 */ + +/* PKUnity Peripheral bus (APB): 0xee000000 - 0xefffffff (128MB) */ +#define PUV3_GPIO_BASE (0xee500000)/* APB-5 */ +#define PUV3_INTC_BASE (0xee600000)/* APB-6 */ +#define PUV3_OST_BASE (0xee800000)/* APB-8 */ +#define PUV3_PM_BASE (0xeea00000)/* APB-10 */ +#define PUV3_PS2_BASE (0xeeb00000)/* APB-11 */ +static void puv3_intc_cpu_handler (void *opaque,int irq,int level) {UniCore32CPU *cpu = opaque;
include/hw/unicore32/puv3.h +0 -10
@@ -14,16 +14,6 @@#define PUV3_REGS_OFFSET (0x1000)/* 4K is reasonable */ -/* PKUnity System bus (AHB): 0xc0000000 - 0xedffffff (640MB) */ -#define PUV3_DMA_BASE (0xc0200000)/* AHB-4 */ - -/* PKUnity Peripheral bus (APB): 0xee000000 - 0xefffffff (128MB) */ -#define PUV3_GPIO_BASE (0xee500000)/* APB-5 */ -#define PUV3_INTC_BASE (0xee600000)/* APB-6 */ -#define PUV3_OST_BASE (0xee800000)/* APB-8 */ -#define PUV3_PM_BASE (0xeea00000)/* APB-10 */ -#define PUV3_PS2_BASE (0xeeb00000)/* APB-11 */ -/* Hardware interrupts */ #define PUV3_IRQS_NR (32)
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 38/61] numa: remove unused #include
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- numa.c | 1 - 1 file changed, 1 deletion(-)
numa.c +0 -1
@@ -29,7 +29,6 @@#include "qemu/bitmap.h" #include "qom/cpu.h" #include "qemu/error-report.h" -#include "include/exec/cpu-common.h" /* for RAM_ADDR_FMT */ #include "qapi-visit.h" #include "qapi/opts-visitor.h" #include "hw/boards.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 12/61] build: fix typo in error message
In reply to Michael TokarevFrom: Mike Frysinger <[email protected]>
--- scripts/git-submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/git-submodule.sh +1 -1
@@ -24,7 +24,7 @@ error() { echo "Alternatively you may disable automatic GIT submodule checkout" echo "with:" echo - echo " $ ./configure --disable-git-update'" + echo " $ ./configure --disable-git-update" echo echo "and then manually update submodules prior to running make, with:" echo
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 46/61] hw/i2c: remove old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/i2c/pm_smbus.c | 1 - hw/i2c/smbus_ich9.c | 1 - 2 files changed, 2 deletions(-)
hw/i2c/pm_smbus.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/i2c/pm_smbus.h" #include "hw/i2c/smbus.h"
hw/i2c/smbus_ich9.c +0 -1
@@ -26,7 +26,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/i2c/pm_smbus.h" #include "hw/pci/pci.h" #include "sysemu/sysemu.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 37/61] misc: avoid "include/" in include path
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/input/adb.c | 2 +- hw/ssi/aspeed_smc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/input/adb.c +1 -1
@@ -24,8 +24,8 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/input/adb.h" +#include "hw/input/adb-keys.h" #include "ui/console.h" -#include "include/hw/input/adb-keys.h" #include "ui/input.h" #include "sysemu/sysemu.h"
hw/ssi/aspeed_smc.c +1 -1
@@ -26,7 +26,7 @@#include "hw/sysbus.h" #include "sysemu/sysemu.h" #include "qemu/log.h" -#include "include/qemu/error-report.h" +#include "qemu/error-report.h" #include "exec/address-spaces.h" #include "hw/ssi/aspeed_smc.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 19/61] hw/input/hid: Add support for several keys.
In reply to Michael TokarevFrom: Tao Wu <[email protected]>
Add support for these keys: audiomute volumedown volumeup power. Tested with "sendkey" command in monitor and verify the behavior in guest OS.
--- hw/input/hid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hw/input/hid.c +4 -4
@@ -57,14 +57,14 @@ static const uint8_t hid_usage_keys[0x100] = {0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x58 ,0xe4 ,0x00 ,0x00 , -0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , -0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , -0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x54 ,0x00 ,0x46 , +0x7f ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x81 ,0x00 , +0x80 ,0x00 ,0x00 ,0x00 ,0x00 ,0x54 ,0x00 ,0x46 ,0xe6 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x48 ,0x48 ,0x4a ,0x52 ,0x4b ,0x00 ,0x50 ,0x00 ,0x4f ,0x00 ,0x4d ,0x51 ,0x4e ,0x49 ,0x4c ,0x00 ,0x00 ,0x00 ,0x00 , -0x00 ,0x00 ,0x00 ,0xe3 ,0xe7 ,0x65 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0xe3 ,0xe7 ,0x65 ,0x66 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 31/61] misc: remove headers implicitly included
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
--- bsd-user/main.c | 1 - chardev/wctablet.c | 4 ---- hw/audio/fmopl.h | 1 - hw/scsi/vhost-user-scsi.c | 1 - linux-user/main.c | 1 - net/colo-compare.c | 1 - tests/test-aio-multithread.c | 1 - tests/test-clone-visitor.c | 1 - tests/vmgenid-test.c | 3 --- 9 files changed, 14 deletions(-)
bsd-user/main.c +0 -1
@@ -32,7 +32,6 @@#include "qemu/envlist.h" #include "exec/log.h" #include "trace/control.h" -#include "glib-compat.h" int singlestep;unsigned long mmap_min_addr;
chardev/wctablet.c +0 -4
@@ -25,10 +25,6 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include <stdlib.h> -#include <string.h> -#include <sys/time.h> -#include <time.h> #include "qemu/osdep.h" #include "qemu-common.h"
hw/audio/fmopl.h +0 -1
@@ -1,7 +1,6 @@#ifndef FMOPL_H #define FMOPL_H -#include <stdint.h> typedef void (*OPL_TIMERHANDLER )(void *param,int channel,double interval_Sec);
hw/scsi/vhost-user-scsi.c +0 -1
@@ -18,7 +18,6 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/error-report.h" -#include "qemu/typedefs.h" #include "qom/object.h" #include "hw/fw-path-provider.h" #include "hw/qdev-core.h"
linux-user/main.c +0 -1
@@ -35,7 +35,6 @@#include "elf.h" #include "exec/log.h" #include "trace/control.h" -#include "glib-compat.h" char *exec_path;
net/colo-compare.c +0 -1
@@ -23,7 +23,6 @@#include "qom/object_interfaces.h" #include "qemu/iov.h" #include "qom/object.h" -#include "qemu/typedefs.h" #include "net/queue.h" #include "chardev/char-fe.h" #include "qemu/sockets.h"
tests/test-aio-multithread.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "block/aio.h" #include "qapi/error.h" #include "qemu/coroutine.h"
tests/test-clone-visitor.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/clone-visitor.h"
tests/vmgenid-test.c +0 -3
@@ -8,9 +8,6 @@* See the COPYING file in the top-level directory. */ -#include <glib.h> -#include <string.h> -#include <unistd.h> #include "qemu/osdep.h" #include "qemu/bitmap.h" #include "qemu/uuid.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 18/61] hw/registerfields: add missing include
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
This allows to use this header in qtests.
This fixes:
CC tests/test.o
include/hw/registerfields.h:32:41: error: implicit declaration of function ‘MAKE_64BIT_MASK’ [-Werror=implicit-function-declaration]
MAKE_64BIT_MASK(shift, length)};
^
include/hw/registerfields.h:39:5: error: implicit declaration of function ‘extract64’; [-Werror=implicit-function-declaration]
extract64((storage), R_ ## reg ## _ ## field ## _SHIFT,
^--- include/hw/registerfields.h | 2 ++ 1 file changed, 2 insertions(+)
include/hw/registerfields.h +2 -0
@@ -11,6 +11,8 @@#ifndef REGISTERFIELDS_H #define REGISTERFIELDS_H +#include <qemu/bitops.h> +/* Define constants for a 32 bit register */ /* This macro will define A_FOO, for the byte address of a register
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 16/61] hw/registerfields: fix a typo in the FIELD() documentation
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- include/hw/registerfields.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/registerfields.h +1 -1
@@ -22,7 +22,7 @@/* Define SHIFT, LENGTH and MASK constants for a field within a register */ -/* This macro will define FOO_BAR_MASK, FOO_BAR_SHIFT and FOO_BAR_LENGTH +/* This macro will define R_FOO_BAR_MASK, R_FOO_BAR_SHIFT and R_FOO_BAR_LENGTH * constants for field BAR in register FOO. */ #define FIELD (reg, field, shift, length) \
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 20/61] MAINTAINERS: add entries for i2c/ppc4xx
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
@@ -976,7 +976,9 @@ M: Alexander Graf <[email protected]> L: [email protected] S: Odd Fixes F: hw/ppc/ppc4*.c +F: hw/i2c/ppc4xx_i2c.c F: include/hw/ppc/ppc4xx.h +F: include/hw/i2c/ppc4xx_i2c.h ppce500 M: Alexander Graf <[email protected]>
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 60/61] i386/pc: move vmmouse.c to hw/i386/
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
It's a x86-only device, so it does not make sense to keep it in the shared misc folder.
---
hw/i386/Makefile.objs | 1 +
hw/{input => i386}/vmmouse.c | 0
hw/input/Makefile.objs | 1 -
3 files changed, 1 insertion(+), 1 deletion(-)
rename hw/{input => i386}/vmmouse.c (100%)hw/i386/Makefile.objs +1 -0
@@ -6,6 +6,7 @@ obj-y += x86-iommu.o intel_iommu.o obj-y += amd_iommu.o obj-$(CONFIG_XEN) += ../xenpv/ xen/ obj-$(CONFIG_VMPORT) += vmport.o +obj-$(CONFIG_VMMOUSE) += vmmouse.o obj-y += kvmvapic.o obj-y += acpi-build.o
hw/i386/vmmouse.c renamed from hw/input/vmmouse.c +0 -0
hw/input/Makefile.objs +0 -1
@@ -6,7 +6,6 @@ common-obj-$(CONFIG_PL050) += pl050.o common-obj-y += ps2.o common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o common-obj-$(CONFIG_TSC2005) += tsc2005.o -common-obj-$(CONFIG_VMMOUSE) += vmmouse.o common-obj-$(CONFIG_VIRTIO) += virtio-input.o common-obj-$(CONFIG_VIRTIO) += virtio-input-hid.o
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 50/61] hw/timer/i8254: rename pit_init() -> i8254_pit_init()
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
and remove the old i386/pc dependency
--- hw/alpha/dp264.c | 2 +- hw/i386/pc.c | 2 +- hw/isa/i82378.c | 2 +- hw/mips/mips_fulong2e.c | 2 +- hw/mips/mips_jazz.c | 2 +- hw/mips/mips_malta.c | 2 +- hw/mips/mips_r4k.c | 2 +- hw/timer/i8254.c | 1 - hw/timer/i8254_common.c | 1 - include/hw/timer/i8254.h | 5 +++-- include/hw/timer/i8254_internal.h | 2 +- 11 files changed, 11 insertions(+), 12 deletions(-)
hw/alpha/dp264.c +1 -1
@@ -80,7 +80,7 @@ static void clipper_init(MachineState *machine)/* Since we have an SRM-compatible PALcode, use the SRM epoch. */ rtc_init (isa_bus,1900 , rtc_irq); -pit_init (isa_bus,0x40 ,0 ,NULL ); +i8254_pit_init (isa_bus,0x40 ,0 ,NULL );isa_create_simple (isa_bus,"i8042" );/* VGA setup. Don't bother loading the bios. */
hw/i386/pc.c +1 -1
@@ -1573,7 +1573,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,if (kvm_pit_in_kernel ()) { pit =kvm_pit_init (isa_bus,0x40 ); }else { - pit =pit_init (isa_bus,0x40 , pit_isa_irq, pit_alt_irq); + pit =i8254_pit_init (isa_bus,0x40 , pit_isa_irq, pit_alt_irq); }if (hpet) {/* connect PIT to output control line of the HPET */
hw/isa/i82378.c +1 -1
@@ -97,7 +97,7 @@ static void i82378_realize(PCIDevice *pci, Error **errp)isa_bus_irqs (isabus, s->i8259);/* 1 82C54 (pit) */ - isa =pit_init (isabus,0x40 ,0 ,NULL ); + isa =i8254_pit_init (isabus,0x40 ,0 ,NULL );/* speaker */ pcspk_init (isabus, isa);
hw/mips/mips_fulong2e.c +1 -1
@@ -359,7 +359,7 @@ static void mips_fulong2e_init(MachineState *machine)smbus_eeprom_init (smbus,1 , eeprom_spd,sizeof (eeprom_spd));/* init other devices */ - pit =pit_init (isa_bus,0x40 ,0 ,NULL ); + pit =i8254_pit_init (isa_bus,0x40 ,0 ,NULL );DMA_init (isa_bus,0 );/* Super I/O */
hw/mips/mips_jazz.c +1 -1
@@ -218,7 +218,7 @@ static void mips_jazz_init(MachineState *machine, i8259 =i8259_init (isa_bus, env->irq[4 ]);isa_bus_irqs (isa_bus, i8259);DMA_init (isa_bus,0 ); - pit =pit_init (isa_bus,0x40 ,0 ,NULL ); + pit =i8254_pit_init (isa_bus,0x40 ,0 ,NULL );pcspk_init (isa_bus, pit);/* Video card */
hw/mips/mips_malta.c +1 -1
@@ -1208,7 +1208,7 @@ void mips_malta_init(MachineState *machine) isa_get_irq(NULL, 9), NULL, 0, NULL);smbus_eeprom_init (smbus,8 , smbus_eeprom_buf, smbus_eeprom_size);g_free (smbus_eeprom_buf); - pit =pit_init (isa_bus,0x40 ,0 ,NULL ); + pit =i8254_pit_init (isa_bus,0x40 ,0 ,NULL );DMA_init (isa_bus,0 );/* Super I/O */
hw/mips/mips_r4k.c +1 -1
@@ -272,7 +272,7 @@ void mips_r4k_init(MachineState *machine)rtc_init (isa_bus,2000 ,NULL ); - pit =pit_init (isa_bus,0x40 ,0 ,NULL ); + pit =i8254_pit_init (isa_bus,0x40 ,0 ,NULL );serial_hds_isa_init (isa_bus,0 ,MAX_SERIAL_PORTS );
hw/timer/i8254.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "qemu/timer.h" #include "hw/timer/i8254.h"
hw/timer/i8254_common.c +0 -1
@@ -24,7 +24,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "qemu/timer.h" #include "hw/timer/i8254.h"
include/hw/timer/i8254.h +3 -2
@@ -26,6 +26,7 @@#define HW_I8254_H #include "hw/hw.h" +#include "hw/qdev.h" #include "hw/isa/isa.h" #define PIT_FREQ 1193182
@@ -48,8 +49,8 @@ typedef struct PITChannelInfo {#define TYPE_I8254 "isa-pit"#define TYPE_KVM_I8254 "kvm-pit" -static inline ISADevice *pit_init (ISABus *bus,int base,int isa_irq, -qemu_irq alt_irq) +static inline ISADevice *i8254_pit_init (ISABus *bus,int base,int isa_irq, +qemu_irq alt_irq) {DeviceState *dev;ISADevice *d;
include/hw/timer/i8254_internal.h +1 -1
@@ -26,8 +26,8 @@#define QEMU_I8254_INTERNAL_H #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" +#include "qemu/timer.h" typedef struct PITChannelState { int count; /* can be 65536 */
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 22/61] MAINTAINERS: add an entry for the i8257 (DMA controller)
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -877,6 +877,7 @@ F: hw/timer/hpet* F: hw/timer/i8254* F: hw/timer/mc146818rtc* F: include/hw/i2c/pm_smbus.h +F: include/hw/isa/i8257.h F: include/hw/timer/hpet.h F: include/hw/timer/i8254* F: include/hw/timer/mc146818rtc*
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 24/61] MAINTAINERS: add an entry for watchdog/wdt_ib700
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -877,6 +877,7 @@ F: hw/misc/pc-testdev.c F: hw/timer/hpet* F: hw/timer/i8254* F: hw/timer/mc146818rtc* +F: hw/watchdog/wdt_ib700.c F: include/hw/i2c/pm_smbus.h F: include/hw/isa/i8257.h F: include/hw/timer/hpet.h
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 53/61] hw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
enable_tco is specific to i386/pc.
--- include/hw/acpi/ich9.h | 2 ++ include/hw/i386/pc.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/acpi/ich9.h +2 -0
@@ -63,6 +63,8 @@ typedef struct ICH9LPCPMRegs {TCOIORegs tco_regs; } ICH9LPCPMRegs; +#define ACPI_PM_PROP_TCO_ENABLED "enable_tco" +void ich9_pm_init (PCIDevice *lpc_pci,ICH9LPCPMRegs *pm,bool smm_enabled,qemu_irq sci_irq);
include/hw/i386/pc.h +0 -2
@@ -151,8 +151,6 @@ struct PCMachineClass {#define PC_MACHINE_CLASS (klass) \ OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE) -#define ACPI_PM_PROP_TCO_ENABLED "enable_tco" -/* parallel.c */ void parallel_hds_isa_init (ISABus *bus,int n);
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 27/61] MAINTAINERS: add missing entry for include/hw/net/
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -1004,6 +1004,7 @@ Network devices M: Jason Wang <[email protected]> S: Odd Fixes F: hw/net/ +F: include/hw/net/ F: tests/virtio-net-test.c T: git git://github.com/jasowang/qemu.git net
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 45/61] hw/ipmi: remove old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/ipmi/isa_ipmi_bt.c | 1 - hw/ipmi/isa_ipmi_kcs.c | 1 - 2 files changed, 2 deletions(-)
hw/ipmi/isa_ipmi_bt.c +0 -1
@@ -26,7 +26,6 @@#include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "hw/isa/isa.h" -#include "hw/i386/pc.h" /* Control register */ #define IPMI_BT_CLR_WR_BIT 0
hw/ipmi/isa_ipmi_kcs.c +0 -1
@@ -26,7 +26,6 @@#include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "hw/isa/isa.h" -#include "hw/i386/pc.h" #define IPMI_KCS_OBF_BIT 0#define IPMI_KCS_IBF_BIT 1
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 42/61] amd_iommu: avoid needless includes in header file
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
instead move them to the source file
--- hw/i386/amd_iommu.c | 5 ++++- hw/i386/amd_iommu.h | 5 ----- 2 files changed, 4 insertions(+), 6 deletions(-)
hw/i386/amd_iommu.c +4 -1
@@ -20,7 +20,10 @@* Cache implementation inspired by hw/i386/intel_iommu.c */ #include "qemu/osdep.h" -#include "hw/i386/amd_iommu.h" +#include "hw/i386/pc.h" +#include "hw/pci/msi.h" +#include "hw/pci/pci_bus.h" +#include "amd_iommu.h" #include "qapi/error.h" #include "qemu/error-report.h" #include "trace.h"
hw/i386/amd_iommu.h +0 -5
@@ -23,11 +23,6 @@#include "hw/hw.h" #include "hw/pci/pci.h" -#include "hw/pci/msi.h" -#include "hw/sysbus.h" -#include "sysemu/dma.h" -#include "hw/i386/pc.h" -#include "hw/pci/pci_bus.h" #include "hw/i386/x86-iommu.h" /* Capability registers */
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 29/61] hw: remove "qemu/osdep.h" from header files
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
--- include/hw/acpi/ipmi.h | 1 - include/hw/cpu/core.h | 1 - include/hw/i2c/ppc4xx_i2c.h | 1 - 3 files changed, 3 deletions(-)
include/hw/acpi/ipmi.h +0 -1
@@ -9,7 +9,6 @@#ifndef HW_ACPI_IPMI_H #define HW_ACPI_IPMI_H -#include "qemu/osdep.h" #include "hw/acpi/aml-build.h" /*
include/hw/cpu/core.h +0 -1
@@ -9,7 +9,6 @@#ifndef HW_CPU_CORE_H #define HW_CPU_CORE_H -#include "qemu/osdep.h" #include "hw/qdev.h" #define TYPE_CPU_CORE "cpu-core"
include/hw/i2c/ppc4xx_i2c.h +0 -1
@@ -25,7 +25,6 @@#ifndef PPC4XX_I2C_H #define PPC4XX_I2C_H -#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/sysbus.h" #include "hw/i2c/i2c.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 09/61] memory: remove unused memory_region_set_global_locking()
In reply to Michael TokarevFrom: Marc-André Lureau <[email protected]>
This was never used since its introduction in commit 196ea13104f8 ("memory: Add global-locking property to memory regions").
--- include/exec/memory.h | 12 ------------ memory.c | 5 ----- 2 files changed, 17 deletions(-)
include/exec/memory.h +0 -12
@@ -1241,18 +1241,6 @@ void memory_region_set_flush_coalesced(MemoryRegion *mr);void memory_region_clear_flush_coalesced (MemoryRegion *mr);/** -* memory_region_set_global_locking: Declares the access processing requires -* QEMU's global lock. -* -* When this is invoked, accesses to the memory region will be processed while -* holding the global lock of QEMU. This is the default behavior of memory -* regions. -* -* @mr: the memory region to be updated. -*/ -void memory_region_set_global_locking (MemoryRegion *mr); - -/** * memory_region_clear_global_locking: Declares that access processing does * not depend on the QEMU global lock. *
memory.c +0 -5
@@ -2189,11 +2189,6 @@ void memory_region_clear_flush_coalesced(MemoryRegion *mr) } } -void memory_region_set_global_locking (MemoryRegion *mr) -{ - mr->global_locking = true; -} -void memory_region_clear_global_locking (MemoryRegion *mr) { mr->global_locking = false;
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 43/61] misc: remove old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/audio/pcspk.c | 1 - hw/i386/xen/xen_platform.c | 1 - hw/isa/vt82c686.c | 1 - hw/misc/ivshmem.c | 1 - hw/misc/sga.c | 1 - hw/pci-bridge/pci_expander_bridge.c | 1 - monitor.c | 1 - 7 files changed, 7 deletions(-)
hw/audio/pcspk.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "hw/audio/soundhw.h" #include "audio/audio.h"
hw/i386/xen/xen_platform.c +0 -1
@@ -26,7 +26,6 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/ide.h" #include "hw/pci/pci.h" #include "hw/irq.h"
hw/isa/vt82c686.c +0 -1
@@ -12,7 +12,6 @@#include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/vt82c686.h" #include "hw/i2c/i2c.h" #include "hw/i2c/smbus.h"
hw/misc/ivshmem.c +0 -1
@@ -20,7 +20,6 @@#include "qapi/error.h" #include "qemu/cutils.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h"
hw/misc/sga.c +0 -1
@@ -26,7 +26,6 @@*/ #include "qemu/osdep.h" #include "hw/pci/pci.h" -#include "hw/i386/pc.h" #include "hw/loader.h" #include "sysemu/sysemu.h"
hw/pci-bridge/pci_expander_bridge.c +0 -1
@@ -16,7 +16,6 @@#include "hw/pci/pci_bus.h" #include "hw/pci/pci_host.h" #include "hw/pci/pci_bridge.h" -#include "hw/i386/pc.h" #include "qemu/range.h" #include "qemu/error-report.h" #include "sysemu/numa.h"
monitor.c +0 -1
@@ -28,7 +28,6 @@#include "hw/hw.h" #include "monitor/qdev.h" #include "hw/usb.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "sysemu/watchdog.h" #include "hw/loader.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 61/61] misc: drop old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- hw/char/debugcon.c | 1 - hw/intc/lm32_pic.c | 1 - hw/moxie/moxiesim.c | 1 - hw/sparc/sun4m.c | 1 - hw/watchdog/wdt_ib700.c | 1 - 5 files changed, 5 deletions(-)
hw/char/debugcon.c +0 -1
@@ -29,7 +29,6 @@#include "hw/hw.h" #include "chardev/char-fe.h" #include "hw/isa/isa.h" -#include "hw/i386/pc.h" #define TYPE_ISA_DEBUGCON_DEVICE "isa-debugcon"#define ISA_DEBUGCON_DEVICE (obj) \
hw/intc/lm32_pic.c +0 -1
@@ -20,7 +20,6 @@#include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "monitor/monitor.h" #include "hw/sysbus.h" #include "trace.h"
hw/moxie/moxiesim.c +0 -1
@@ -30,7 +30,6 @@#include "cpu.h" #include "hw/sysbus.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "net/net.h" #include "sysemu/sysemu.h"
hw/sparc/sun4m.c +0 -1
@@ -36,7 +36,6 @@#include "net/net.h" #include "hw/boards.h" #include "hw/scsi/esp.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "hw/nvram/sun_nvram.h" #include "hw/nvram/chrp_nvram.h"
hw/watchdog/wdt_ib700.c +0 -1
@@ -25,7 +25,6 @@#include "sysemu/watchdog.h" #include "hw/hw.h" #include "hw/isa/isa.h" -#include "hw/i386/pc.h" /*#define IB700_DEBUG 1*/
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 32/61] misc: remove duplicated includes
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
exec: housekeeping (funny since 02d0e095031)
applied using ./scripts/clean-includes
--- accel/tcg/translate-all.c | 1 - exec.c | 3 --- hw/arm/spitz.c | 1 - hw/char/xen_console.c | 1 - hw/core/machine.c | 1 - hw/s390x/css.c | 1 - target/openrisc/exception_helper.c | 1 - tests/vhost-user-test.c | 1 - util/qemu-sockets.c | 1 - vl.c | 1 - 10 files changed, 12 deletions(-)
accel/tcg/translate-all.c +0 -1
@@ -31,7 +31,6 @@#include "tcg.h" #if defined(CONFIG_USER_ONLY )#include "qemu.h" -#include "exec/exec-all.h" #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)#include <sys/param.h> #if __FreeBSD_version >=700104
exec.c +0 -3
@@ -18,8 +18,6 @@*/ #include "qemu/osdep.h" #include "qapi/error.h" -#ifndef _WIN32 -#endif #include "qemu/cutils.h" #include "cpu.h"
@@ -51,7 +49,6 @@#include "trace-root.h" #ifdef CONFIG_FALLOCATE_PUNCH_HOLE -#include <fcntl.h> #include <linux/falloc.h> #endif
hw/arm/spitz.c +0 -1
@@ -29,7 +29,6 @@#include "sysemu/block-backend.h" #include "hw/sysbus.h" #include "exec/address-spaces.h" -#include "sysemu/sysemu.h" #include "cpu.h" #undef REG_FMT
hw/char/xen_console.c +0 -1
@@ -27,7 +27,6 @@#include "hw/hw.h" #include "chardev/char-fe.h" #include "hw/xen/xen_backend.h" -#include "qapi/error.h" #include <xen/io/console.h>
hw/core/machine.c +0 -1
@@ -20,7 +20,6 @@#include "sysemu/numa.h" #include "qemu/error-report.h" #include "qemu/cutils.h" -#include "sysemu/numa.h" #include "sysemu/qtest.h" static char *machine_get_accel (Object *obj,Error **errp)
hw/s390x/css.c +0 -1
@@ -13,7 +13,6 @@#include "qapi/error.h" #include "qapi/visitor.h" #include "hw/qdev.h" -#include "qemu/error-report.h" #include "qemu/bitops.h" #include "qemu/error-report.h" #include "exec/address-spaces.h"
target/openrisc/exception_helper.c +0 -1
@@ -21,7 +21,6 @@#include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" #include "exception.h" void HELPER (exception )(CPUOpenRISCState *env,uint32_t excp)
tests/vhost-user-test.c +0 -1
@@ -21,7 +21,6 @@#include "libqos/libqos.h" #include "libqos/pci-pc.h" #include "libqos/virtio-pci.h" -#include "qapi/error.h" #include "libqos/malloc-pc.h" #include "hw/virtio/virtio-net.h"
util/qemu-sockets.c +0 -1
@@ -26,7 +26,6 @@#include "qapi/error.h" #include "qemu/sockets.h" #include "qemu/main-loop.h" -#include "qapi/clone-visitor.h" #include "qapi/qobject-input-visitor.h" #include "qapi/qobject-output-visitor.h" #include "qapi-visit.h"
vl.c +0 -1
@@ -95,7 +95,6 @@ int main(int argc, char **argv)#include "sysemu/kvm.h" #include "sysemu/hax.h" #include "qapi/qobject-input-visitor.h" -#include "qapi/qobject-input-visitor.h" #include "qapi-visit.h" #include "qapi/qmp/qjson.h" #include "qemu/option.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 11/61] Makefile: use $(MAKE) variable
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
For some systems (i.e. FreeBSD) the default 'make' is not compatible with the GNU extensions used by QEMU makefiles.
Calling the GNU make (gmake) works, however the help displayed refers to the host 'make' and copy/paste leads to lot of unobvious errors:
$ gmake check-help [...] make check Run all tests
$ make check make: "Makefile" line 28: Missing dependency operator make: "Makefile" line 37: Need an operator make: "Makefile" line 41: warning: duplicate script for target "git-submodule-update" ignored make: "rules.mak" line 70: warning: duplicate script for target "%.o" ignored make: Unknown modifier ' ' make: Unclosed substitution for eval modules (= missing) make: "tests/Makefile.include" line 24: Variable/Value missing from "export" make: "tests/" line 1: warning: Zero byte read from file, skipping rest of line. make: "tests/" line 1: Need an operator make: "Makefile" line 660: warning: duplicate script for target "ifneq" ignored make: "Makefile" line 78: warning: using previous script for "ifneq" defined here make: Fatal errors encountered -- cannot continue
Using the $(MAKE) variable, the help displayed is consistent with the 'make' program used.
--- Makefile | 6 +++--- tests/Makefile.include | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-)
Makefile +3 -3
@@ -50,7 +50,7 @@ ifneq ($(realpath $(SRC_PATH)),$(realpath .)) ifneq ($(wildcard $(SRC_PATH)/config-host.mak),) $(error This is an out of tree build but your source tree ($(SRC_PATH)) \ seems to have been used for an in-tree build. You can fix this by running \ -"make distclean && rm -rf *-linux-user *-softmmu" in your source tree) +"$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree) endif endif
@@ -304,7 +304,7 @@ endif else \ echo "WARNING: $@ out of date.";\ fi; \ - echo "Run \"make defconfig\" to regenerate."; \ + echo "Run \"$(MAKE) defconfig\" to regenerate."; \ rm [email protected]; \ fi; \ else \
@@ -934,4 +934,4 @@ ifdef QEMU_GA_MSI_ENABLED endif @echo '' endif - @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build' + @echo ' $(MAKE) V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
tests/Makefile.include +10 -10
@@ -3,21 +3,21 @@ check-help: @echo "Regression testing targets:" @echo - @echo " make check Run all tests" - @echo " make check-qtest-TARGET Run qtest tests for given target" - @echo " make check-qtest Run qtest tests" - @echo " make check-unit Run qobject tests" - @echo " make check-speed Run qobject speed tests" - @echo " make check-qapi-schema Run QAPI schema tests" - @echo " make check-block Run block tests" - @echo " make check-report.html Generates an HTML test report" - @echo " make check-clean Clean the tests" + @echo " $(MAKE) check Run all tests" + @echo " $(MAKE) check-qtest-TARGET Run qtest tests for given target" + @echo " $(MAKE) check-qtest Run qtest tests" + @echo " $(MAKE) check-unit Run qobject tests" + @echo " $(MAKE) check-speed Run qobject speed tests" + @echo " $(MAKE) check-qapi-schema Run QAPI schema tests" + @echo " $(MAKE) check-block Run block tests" + @echo " $(MAKE) check-report.html Generates an HTML test report" + @echo " $(MAKE) check-clean Clean the tests" @echo @echo "Please note that HTML reports do not regenerate if the unit tests" @echo "has not changed." @echo @echo "The variable SPEED can be set to control the gtester speed setting." - @echo "Default options are -k and (for make V=1) --verbose; they can be" + @echo "Default options are -k and (for $(MAKE) V=1) --verbose; they can be" @echo "changed with variable GTESTER_OPTIONS." ifneq ($(wildcard config-host.mak),)
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 58/61] hw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h"
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
and remove the old i386/pc dependency.
--- hw/i386/acpi-build.c | 2 +- hw/misc/pvpanic.c | 9 ++++----- include/hw/i386/pc.h | 3 --- include/hw/misc/pvpanic.h | 21 +++++++++++++++++++++ 4 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 include/hw/misc/pvpanic.h
hw/i386/acpi-build.c +1 -1
@@ -28,8 +28,8 @@#include "qemu/error-report.h" #include "hw/pci/pci.h" #include "qom/cpu.h" -#include "hw/i386/pc.h" #include "target/i386/cpu.h" +#include "hw/misc/pvpanic.h" #include "hw/timer/hpet.h" #include "hw/acpi/acpi-defs.h" #include "hw/acpi/acpi.h"
hw/misc/pvpanic.c +4 -5
@@ -17,7 +17,7 @@#include "qemu/log.h" #include "hw/nvram/fw_cfg.h" -#include "hw/i386/pc.h" +#include "hw/misc/pvpanic.h" /* The bit of supported pv event */ #define PVPANIC_F_PANICKED 0
@@ -25,9 +25,8 @@/* The pv event value */ #define PVPANIC_PANICKED (1 << PVPANIC_F_PANICKED) -#define TYPE_ISA_PVPANIC_DEVICE "pvpanic"#define ISA_PVPANIC_DEVICE (obj) \ - OBJECT_CHECK(PVPanicState, (obj), TYPE_ISA_PVPANIC_DEVICE) + OBJECT_CHECK(PVPanicState, (obj), TYPE_PVPANIC)static void handle_event (int event) {
@@ -104,7 +103,7 @@ static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)uint16_t pvpanic_port (void ) { -Object *o =object_resolve_path_type ("" ,TYPE_ISA_PVPANIC_DEVICE ,NULL ); +Object *o =object_resolve_path_type ("" ,TYPE_PVPANIC ,NULL );if (!o) {return 0 ; }
@@ -126,7 +125,7 @@ static void pvpanic_isa_class_init(ObjectClass *klass, void *data) }static TypeInfo pvpanic_isa_info = { - .name =TYPE_ISA_PVPANIC_DEVICE , + .name =TYPE_PVPANIC , .parent =TYPE_ISA_DEVICE , .instance_size =sizeof (PVPanicState), .instance_init = pvpanic_isa_initfn,
include/hw/i386/pc.h +0 -3
@@ -306,9 +306,6 @@ int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn);void pc_system_firmware_init (MemoryRegion *rom_memory,bool isapc_ram_fw); -/* pvpanic.c */ -uint16_t pvpanic_port (void ); -/* acpi-build.c */ void pc_madt_cpu_entry (AcpiDeviceIf *adev,int uid,const CPUArchIdList *apic_ids,GArray *entry);
include/hw/misc/pvpanic.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* QEMU simulated pvpanic device. +* +* Copyright Fujitsu, Corp. 2013 +* +* Authors: +* Wen Congyang <[email protected]> +* Hu Tao <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2 or later. +* See the COPYING file in the top-level directory. +* +*/ +#ifndef HW_MISC_PVPANIC_H +#define HW_MISC_PVPANIC_H + +#define TYPE_PVPANIC "pvpanic" + +uint16_t pvpanic_port (void ); + +#endif
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 54/61] hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h"
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
---
hw/display/vga.c | 2 +-
hw/display/{vga.h => vga_regs.h} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename hw/display/{vga.h => vga_regs.h} (100%)hw/display/vga.c +1 -1
@@ -24,11 +24,11 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "hw/hw.h" -#include "vga.h" #include "ui/console.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "vga_int.h" +#include "vga_regs.h" #include "ui/pixel_ops.h" #include "qemu/timer.h" #include "hw/xen/xen.h"
hw/display/vga_regs.h renamed from hw/display/vga.h +0 -0
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 03/61] disas/arm: fix 'instuction' typo in comment
In reply to Michael TokarevFrom: "Emilio G. Cota" <[email protected]>
--- disas/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
disas/arm.c +1 -1
@@ -1662,7 +1662,7 @@ print_insn_coprocessor (bfd_vma pc, struct disassemble_info *info, long given, }else { -/* Only match unconditional instuctions against unconditional +/* Only match unconditional instructions against unconditional patterns. */ if ((given &0xf0000000 ) ==0xf0000000 ) {
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 57/61] hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
- add "hw/net/ne2000-isa.h"
- remove the old i386 dependency
--- hw/i386/pc.c | 1 + hw/mips/mips_r4k.c | 1 + hw/net/ne2000-isa.c | 6 ++---- hw/net/ne2000.c | 2 -- hw/net/ne2000.h | 3 +++ hw/ppc/prep.c | 1 + include/hw/i386/pc.h | 20 -------------------- include/hw/net/ne2000-isa.h | 33 +++++++++++++++++++++++++++++++++ 8 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 include/hw/net/ne2000-isa.h
hw/i386/pc.c +1 -0
@@ -69,6 +69,7 @@#include "qom/cpu.h" #include "hw/nmi.h" #include "hw/i386/intel_iommu.h" +#include "hw/net/ne2000-isa.h" /* debug PC/ISA interrupts */ //#define DEBUG_IRQ
hw/mips/mips_r4k.c +1 -0
@@ -18,6 +18,7 @@#include "hw/char/serial.h" #include "hw/isa/isa.h" #include "net/net.h" +#include "hw/net/ne2000-isa.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/block/flash.h"
hw/net/ne2000-isa.c +2 -4
@@ -22,17 +22,15 @@* THE SOFTWARE. */ #include "qemu/osdep.h" -#include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" +#include "hw/net/ne2000-isa.h" #include "hw/qdev.h" -#include "net/net.h" #include "ne2000.h" +#include "sysemu/sysemu.h" #include "exec/address-spaces.h" #include "qapi/error.h" #include "qapi/visitor.h" -#define TYPE_ISA_NE2000 "ne2k_isa"#define ISA_NE2000 (obj) OBJECT_CHECK(ISANE2000State, (obj), TYPE_ISA_NE2000) typedef struct ISANE2000State {
hw/net/ne2000.c +0 -2
@@ -22,9 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/pci/pci.h" -#include "net/net.h" #include "ne2000.h" #include "hw/loader.h" #include "sysemu/sysemu.h"
hw/net/ne2000.h +3 -0
@@ -1,6 +1,9 @@#ifndef HW_NE2000_H #define HW_NE2000_H +#include "hw/hw.h" +#include "net/net.h" +#define NE2000_PMEM_SIZE (32*1024)#define NE2000_PMEM_START (16*1024)#define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START)
hw/ppc/prep.c +1 -0
@@ -42,6 +42,7 @@#include "hw/loader.h" #include "hw/timer/mc146818rtc.h" #include "hw/isa/pc87312.h" +#include "hw/net/ne2000-isa.h" #include "sysemu/block-backend.h" #include "sysemu/arch_init.h" #include "sysemu/kvm.h"
include/hw/i386/pc.h +0 -20
@@ -302,26 +302,6 @@ PCIBus *find_i440fx(void);extern PCIDevice *piix4_dev;int piix4_init (PCIBus *bus,ISABus **isa_bus,int devfn); -/* ne2000.c */ -static inline bool isa_ne2000_init (ISABus *bus,int base,int irq,NICInfo *nd) -{ -DeviceState *dev; -ISADevice *isadev; - -qemu_check_nic_model (nd,"ne2k_isa" ); - - isadev =isa_try_create (bus,"ne2k_isa" ); -if (!isadev) { -return false; - } - dev =DEVICE (isadev); -qdev_prop_set_uint32 (dev,"iobase" , base); -qdev_prop_set_uint32 (dev,"irq" , irq); -qdev_set_nic_properties (dev, nd); -qdev_init_nofail (dev); -return true; -} -/* pc_sysfw.c */ void pc_system_firmware_init (MemoryRegion *rom_memory,bool isapc_ram_fw);
include/hw/net/ne2000-isa.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* QEMU NE2000 emulation -- isa bus windup +* +* Copyright (c) 2003-2004 Fabrice Bellard +* +* This work is licensed under the terms of the GNU GPL, version 2 or later. +* See the COPYING file in the top-level directory. +*/ +#include "hw/hw.h" +#include "hw/qdev.h" +#include "hw/isa/isa.h" +#include "net/net.h" + +#define TYPE_ISA_NE2000 "ne2k_isa" + +static inline ISADevice *isa_ne2000_init (ISABus *bus,int base,int irq, +NICInfo *nd) +{ +ISADevice *d; + +qemu_check_nic_model (nd,"ne2k_isa" ); + + d =isa_try_create (bus,TYPE_ISA_NE2000 ); +if (d) { +DeviceState *dev =DEVICE (d); + +qdev_prop_set_uint32 (dev,"iobase" , base); +qdev_prop_set_uint32 (dev,"irq" , irq); +qdev_set_nic_properties (dev, nd); +qdev_init_nofail (dev); + } +return d; +}
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 25/61] MAINTAINERS: add an entry for input/pckbd.c
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
and fix a typo in the "PC Chipset" section
--- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
MAINTAINERS +2 -1
@@ -863,12 +863,13 @@ F: hw/misc/sga.c PC Chipset M: Michael S. Tsirkin <[email protected]> M: Paolo Bonzini <[email protected]> -S: Support +S: Supported F: hw/char/debugcon.c F: hw/char/parallel.c F: hw/char/serial* F: hw/dma/i8257* F: hw/i2c/pm_smbus.c +F: hw/input/pckbd.c F: hw/intc/apic* F: hw/intc/ioapic* F: hw/intc/i8259*
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 21/61] MAINTAINERS: add an entry for the i82374 (southbridge)
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -733,6 +733,7 @@ F: hw/ppc/prep_systemio.c F: hw/ppc/rs6000_mc.c F: hw/pci-host/prep.[hc] F: hw/isa/pc87312.[hc] +F: hw/dma/i82374.c F: pc-bios/ppc_rom.bin sPAPR
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 26/61] MAINTAINERS: add entries for timer/m48t59
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
@@ -735,6 +735,8 @@ F: hw/pci-host/prep.[hc] F: hw/isa/i82378.c F: hw/isa/pc87312.[hc] F: hw/dma/i82374.c +F: hw/timer/m48t59-isa.c +F: include/hw/timer/m48t59.h F: pc-bios/ppc_rom.bin sPAPR
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 44/61] hw/ide: remove old i386 dependency
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
and remove a duplicated include
--- hw/ide/ahci.c | 1 - hw/ide/cmd646.c | 1 - hw/ide/core.c | 3 +-- hw/ide/ich.c | 1 - hw/ide/isa.c | 1 - hw/ide/microdrive.c | 1 - hw/ide/pci.c | 1 - hw/ide/piix.c | 2 +- hw/ide/via.c | 1 - 9 files changed, 2 insertions(+), 10 deletions(-)
hw/ide/ahci.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/msi.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "qemu/error-report.h"
hw/ide/cmd646.c +0 -1
@@ -24,7 +24,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" #include "sysemu/block-backend.h"
hw/ide/core.c +1 -2
@@ -24,17 +24,16 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" #include "qemu/error-report.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" +#include "sysemu/blockdev.h" #include "sysemu/dma.h" #include "hw/block/block.h" #include "sysemu/block-backend.h" #include "qemu/cutils.h" -#include "qemu/error-report.h" #include "hw/ide/internal.h" #include "trace.h"
hw/ide/ich.c +0 -1
@@ -63,7 +63,6 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/msi.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" #include "sysemu/block-backend.h"
hw/ide/isa.c +0 -1
@@ -24,7 +24,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "sysemu/block-backend.h" #include "sysemu/dma.h"
hw/ide/microdrive.c +0 -1
@@ -24,7 +24,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pcmcia.h" #include "sysemu/block-backend.h" #include "sysemu/dma.h"
hw/ide/pci.c +0 -1
@@ -24,7 +24,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" #include "sysemu/block-backend.h"
hw/ide/piix.c +1 -1
@@ -25,11 +25,11 @@#include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" #include "sysemu/block-backend.h" #include "sysemu/sysemu.h" +#include "sysemu/blockdev.h" #include "sysemu/dma.h" #include "hw/ide/pci.h"
hw/ide/via.c +0 -1
@@ -25,7 +25,6 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" #include "sysemu/block-backend.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 28/61] hw: use "qemu/osdep.h" as first #include in source files
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
applied using ./scripts/clean-includes
--- hw/acpi/ipmi-stub.c | 1 + hw/audio/fmopl.c | 1 - hw/cpu/core.c | 1 + hw/ppc/spapr_cpu_core.c | 1 + hw/smbios/smbios_type_38-stub.c | 1 + hw/vfio/ccw.c | 2 +- hw/virtio/vhost-vsock.c | 2 +- 7 files changed, 6 insertions(+), 3 deletions(-)
hw/acpi/ipmi-stub.c +1 -0
@@ -7,6 +7,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/acpi/ipmi.h" void build_acpi_ipmi_devices (Aml *table,BusState *bus)
hw/audio/fmopl.c +0 -1
@@ -34,7 +34,6 @@#include <math.h> //#include "driver.h" /* use M.A.M.E. */ #include "fmopl.h" -#include "qemu/osdep.h" #ifndef PI #define PI 3.14159265358979323846#endif
hw/cpu/core.c +1 -0
@@ -6,6 +6,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/cpu/core.h" #include "qapi/visitor.h" #include "qapi/error.h"
hw/ppc/spapr_cpu_core.c +1 -0
@@ -6,6 +6,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/cpu/core.h" #include "hw/ppc/spapr_cpu_core.h" #include "target/ppc/cpu.h"
hw/smbios/smbios_type_38-stub.c +1 -0
@@ -7,6 +7,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/smbios/ipmi.h" void smbios_build_type_38_table (void )
hw/vfio/ccw.c +1 -1
@@ -11,11 +11,11 @@* directory. */ +#include "qemu/osdep.h" #include <linux/vfio.h> #include <linux/vfio_ccw.h> #include <sys/ioctl.h> -#include "qemu/osdep.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/vfio/vfio.h"
hw/virtio/vhost-vsock.c +1 -1
@@ -11,8 +11,8 @@* top-level directory. */ -#include <sys/ioctl.h> #include "qemu/osdep.h" +#include <sys/ioctl.h> #include "standard-headers/linux/virtio_vsock.h" #include "qapi/error.h" #include "hw/virtio/virtio-bus.h"
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 56/61] hw/display/vga: extract public API from i386/pc to "hw/display/vga.h"
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
and remove the old i386/pc dependency.
--- MAINTAINERS | 1 + hw/display/vga-isa-mm.c | 3 +-- hw/display/vga-isa.c | 2 +- hw/display/vga.c | 2 +- hw/mips/mips_jazz.c | 1 + include/hw/display/vga.h | 25 +++++++++++++++++++++++++ include/hw/i386/pc.h | 12 ------------ vl.c | 2 +- 8 files changed, 31 insertions(+), 17 deletions(-) create mode 100644 include/hw/display/vga.h
MAINTAINERS +1 -0
@@ -881,6 +881,7 @@ F: hw/timer/hpet* F: hw/timer/i8254* F: hw/timer/mc146818rtc* F: hw/watchdog/wdt_ib700.c +F: include/hw/display/vga.h F: include/hw/i2c/pm_smbus.h F: include/hw/isa/i8257.h F: include/hw/timer/hpet.h
hw/display/vga-isa-mm.c +1 -2
@@ -23,10 +23,9 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" +#include "hw/display/vga.h" #include "vga_int.h" #include "ui/pixel_ops.h" -#include "qemu/timer.h" #define VGA_RAM_SIZE (8192 * 1024)
hw/display/vga-isa.c +1 -1
@@ -25,7 +25,7 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" -#include "hw/i386/pc.h" +#include "hw/isa/isa.h" #include "vga_int.h" #include "ui/pixel_ops.h" #include "qemu/timer.h"
hw/display/vga.c +1 -1
@@ -24,7 +24,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "hw/hw.h" -#include "hw/i386/pc.h" +#include "hw/display/vga.h" #include "hw/pci/pci.h" #include "vga_int.h" #include "vga_regs.h"
hw/mips/mips_jazz.c +1 -0
@@ -39,6 +39,7 @@#include "hw/loader.h" #include "hw/timer/mc146818rtc.h" #include "hw/timer/i8254.h" +#include "hw/display/vga.h" #include "hw/audio/pcspk.h" #include "sysemu/block-backend.h" #include "hw/sysbus.h"
include/hw/display/vga.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* QEMU VGA Emulator. +* +* Copyright (c) 2003 Fabrice Bellard +* +* This work is licensed under the terms of the GNU GPL, version 2 or later. +* See the COPYING file in the top-level directory. +*/ +#ifndef QEMU_HW_DISPLAY_VGA_H +#define QEMU_HW_DISPLAY_VGA_H + +#include "exec/memory.h" + +enum vga_retrace_method { +VGA_RETRACE_DUMB , +VGA_RETRACE_PRECISE +}; + +extern enum vga_retrace_method vga_retrace_method; + +int isa_vga_mm_init (hwaddr vram_base, +hwaddr ctrl_base,int it_shift, +MemoryRegion *address_space); + +#endif
include/hw/i386/pc.h +0 -12
@@ -302,18 +302,6 @@ PCIBus *find_i440fx(void);extern PCIDevice *piix4_dev;int piix4_init (PCIBus *bus,ISABus **isa_bus,int devfn); -/* vga.c */ -enum vga_retrace_method { -VGA_RETRACE_DUMB , -VGA_RETRACE_PRECISE -}; - -extern enum vga_retrace_method vga_retrace_method; - -int isa_vga_mm_init (hwaddr vram_base, -hwaddr ctrl_base,int it_shift, -MemoryRegion *address_space); -/* ne2000.c */ static inline bool isa_ne2000_init (ISABus *bus,int base,int irq,NICInfo *nd) {
vl.c +1 -1
@@ -57,9 +57,9 @@ int main(int argc, char **argv)#include "hw/boards.h" #include "sysemu/accel.h" #include "hw/usb.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "hw/scsi/scsi.h" +#include "hw/display/vga.h" #include "hw/bt.h" #include "sysemu/watchdog.h" #include "hw/smbios/smbios.h"
Signature · 1 line
2.11.0
Here's another, 3rd, attempt for a pull request for the trivial-patches tree. Not resending whole thing once again.
I've removed the patch that caused previous failure, which was «hw/alpha/typhoon: simplify using the "unimplemented" sysbus device», and updated another patch, «hw/tpm: remove old i386 dependency» to resolve slight resolve conflicts, also rebased on top of current master.
Please consider pulling.
Thanks,
/mjt
The following changes since commit 411ad78115ebeb3411cf4b7622784b93dfabe259:
Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-15-1' into staging (2017-12-17 15:27:41 +0000)
are available in the git repository at:
git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
for you to fetch changes up to c0578de60fcc3a07a881e9c4b7b8262faf6abbc7:
misc: drop old i386 dependency (2017-12-18 17:07:03 +0300)
----------------------------------------------------------------
trivial patches for 2017-12-18
----------------------------------------------------------------
Daniel Henrique Barboza (1):
configure: check $CC available before verifying host CPU
Emilio G. Cota (3):
disas/arm: fix 'instuction' typo in comment
translate-all: fix 'consisits' typo in comment
qht: fix kernel-doc markup in qht.h
Ladi Prosek (1):
Remove empty statements
Marc-André Lureau (2):
.gitignore: remove vscclient
memory: remove unused memory_region_set_global_locking()
Michael McConville (1):
mmap(2) returns MAP_FAILED, not NULL, on failure
Mike Frysinger (1):
build: fix typo in error message
Peter Maydell (1):
accel/tcg/cpu-exec-common.c: Remove unnecessary include of memory-internal.h
Philippe Mathieu-Daudé (48):
Makefile: use $(MAKE) variable
Makefile: add more targets to the UNCHECKED_GOALS rule
MAINTAINERS: add "hw/registerfields.h" in Register API entry hw/registerfields: fix a typo in the FIELD() documentation hw/registerfields: add 64-bit extract/deposit macros hw/registerfields: add missing include
MAINTAINERS: add entries for i2c/ppc4xx
MAINTAINERS: add an entry for the i82374 (southbridge)
MAINTAINERS: add an entry for the i8257 (DMA controller)
MAINTAINERS: add an entry for the i82378 (superio)
MAINTAINERS: add an entry for watchdog/wdt_ib700
MAINTAINERS: add an entry for input/pckbd.c
MAINTAINERS: add entries for timer/m48t59
MAINTAINERS: add missing entry for include/hw/net/
hw: use "qemu/osdep.h" as first #include in source files
hw: remove "qemu/osdep.h" from header files
block: remove "qemu/osdep.h" from header file
misc: remove headers implicitly included
misc: remove duplicated includes
ppc: remove duplicated includes
i386/hax: remove duplicated includes
i386/hax: remove duplicated include
nios2: remove duplicated includes (in code commented out)
misc: avoid "include/" in include path
numa: remove unused #include
hw/input/vmmouse: remove unused #include
hw/misc/pvpanic: remove unused #include
hw/ssi/aspeed_smc: remove unused #include
amd_iommu: avoid needless includes in header file
misc: remove old i386 dependency
hw/ide: remove old i386 dependency
hw/ipmi: remove old i386 dependency
hw/i2c: remove old i386 dependency
hw/tpm: remove old i386 dependency
hw/virtio-balloon: remove old i386 dependency
hw/unicore32: restrict hw addr defines to source file hw/timer/i8254: rename pit_init() -> i8254_pit_init() hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init() hw/acpi: ACPI_PM_* defines are not restricted to i386 arch hw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h" hw/display/vga: "vga_int.h" requires "ui/console.h" hw/display/vga: extract public API from i386/pc to "hw/display/vga.h" hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c hw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h" i386/pc: move vmport.c to hw/i386/
i386/pc: move vmmouse.c to hw/i386/
misc: drop old i386 dependency
Tao Wu (1):
hw/input/hid: Add support for several keys.
Vicente Jimenez Aguilar (1):
Document pretty parameter for mon option
.gitignore | 1 -
MAINTAINERS | 14 ++++++++++-
Makefile | 11 +++++----
accel/tcg/cpu-exec-common.c | 1 -
accel/tcg/translate-all.c | 3 +--
block/dmg.h | 1 -
bsd-user/main.c | 1 -
chardev/wctablet.c | 4 ----
configure | 25 ++++++++++---------
disas/arm.c | 2 +-
disas/nios2.c | 3 ---
exec.c | 3 ---
hw/acpi/core.c | 1 -
hw/acpi/ipmi-stub.c | 1 +
hw/alpha/dp264.c | 4 ++--
hw/arm/spitz.c | 1 -
hw/audio/fmopl.c | 1 -
hw/audio/fmopl.h | 1 -
hw/audio/pcspk.c | 1 -
hw/char/debugcon.c | 1 -
hw/char/xen_console.c | 1 -
hw/core/machine.c | 1 -
hw/cpu/core.c | 1 +
hw/display/cirrus_vga.c | 1 -
hw/display/qxl.h | 1 -
hw/display/vga-isa-mm.c | 4 +---
hw/display/vga-isa.c | 3 +--
hw/display/vga-pci.c | 1 -
hw/display/vga.c | 5 ++--
hw/display/vga_int.h | 3 ++-
hw/display/{vga.h => vga_regs.h} | 0
hw/display/virtio-vga.c | 1 -
hw/display/vmware_vga.c | 1 -
hw/i2c/pm_smbus.c | 1 -
hw/i2c/smbus_ich9.c | 1 -
hw/i386/Makefile.objs | 2 ++
hw/i386/acpi-build.c | 2 +-
hw/i386/amd_iommu.c | 5 +++-
hw/i386/amd_iommu.h | 5 ----
hw/i386/pc.c | 5 ++--
hw/{input => i386}/vmmouse.c | 1 -
hw/{misc => i386}/vmport.c | 17 ++++++-------
hw/i386/xen/xen-mapcache.c | 2 +-
hw/i386/xen/xen_platform.c | 1 -
hw/ide/ahci.c | 1 -
hw/ide/cmd646.c | 1 -
hw/ide/core.c | 3 +--
hw/ide/ich.c | 1 -
hw/ide/isa.c | 1 -
hw/ide/microdrive.c | 1 -
hw/ide/pci.c | 1 -
hw/ide/piix.c | 2 +-
hw/ide/via.c | 1 -
hw/input/Makefile.objs | 1 -
hw/input/adb.c | 2 +-
hw/input/hid.c | 8 +++----
hw/intc/lm32_pic.c | 1 -
hw/ipmi/isa_ipmi_bt.c | 1 -
hw/ipmi/isa_ipmi_kcs.c | 1 -
hw/isa/i82378.c | 5 ++--
hw/isa/vt82c686.c | 1 -
hw/mips/mips_fulong2e.c | 4 ++--
hw/mips/mips_jazz.c | 5 ++--
hw/mips/mips_malta.c | 4 ++--
hw/mips/mips_r4k.c | 5 ++--
hw/misc/Makefile.objs | 2 --
hw/misc/imx6_ccm.c | 2 +-
hw/misc/ivshmem.c | 1 -
hw/misc/pvpanic.c | 12 ++++------
hw/misc/sga.c | 1 -
hw/moxie/moxiesim.c | 1 -
hw/net/ne2000-isa.c | 6 ++---
hw/net/ne2000.c | 2 --
hw/net/ne2000.h | 3 +++
hw/nios2/boot.c | 1 -
hw/pci-bridge/pci_expander_bridge.c | 1 -
hw/ppc/pnv.c | 2 +-
hw/ppc/prep.c | 1 +
hw/ppc/spapr_cpu_core.c | 1 +
hw/ppc/spapr_hcall.c | 1 -
hw/s390x/css.c | 1 -
hw/s390x/virtio-ccw.c | 2 +-
hw/scsi/vhost-user-scsi.c | 1 -
hw/smbios/smbios_type_38-stub.c | 1 +
hw/sparc/sun4m.c | 1 -
hw/ssi/aspeed_smc.c | 3 +--
hw/timer/i8254.c | 1 -
hw/timer/i8254_common.c | 1 -
hw/timer/mc146818rtc.c | 2 +-
hw/tpm/tpm_emulator.c | 1 -
hw/tpm/tpm_passthrough.c | 1 -
hw/unicore32/puv3.c | 15 ++++++++----
hw/vfio/ccw.c | 2 +-
hw/virtio/vhost-vsock.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/watchdog/wdt_ib700.c | 1 -
include/exec/memory.h | 12 ----------
include/hw/acpi/acpi.h | 11 +++++++++
include/hw/acpi/ich9.h | 2 ++
include/hw/acpi/ipmi.h | 1 -
include/hw/cpu/core.h | 1 -
include/hw/display/vga.h | 25 +++++++++++++++++++
include/hw/i2c/ppc4xx_i2c.h | 1 -
include/hw/i386/pc.h | 48 -------------------------------------
include/hw/misc/pvpanic.h | 21 ++++++++++++++++
include/hw/net/ne2000-isa.h | 33 +++++++++++++++++++++++++
include/hw/registerfields.h | 15 +++++++++++-
include/hw/timer/i8254.h | 5 ++--
include/hw/timer/i8254_internal.h | 2 +-
include/hw/timer/mc146818rtc.h | 3 ++-
include/hw/unicore32/puv3.h | 10 --------
include/qemu/qht.h | 6 ++---
include/sysemu/hax.h | 1 -
linux-user/main.c | 1 -
linux-user/signal.c | 2 +-
memory.c | 5 ----
migration/block.c | 2 +-
monitor.c | 1 -
net/colo-compare.c | 1 -
numa.c | 1 -
qemu-options.hx | 7 +++---
scripts/git-submodule.sh | 2 +-
target/i386/cpu.c | 2 +-
target/i386/hax-darwin.c | 6 +----
target/i386/hax-darwin.h | 3 ---
target/i386/hax-windows.h | 3 ---
target/i386/kvm.c | 2 +-
target/nios2/cpu.h | 1 -
target/nios2/helper.c | 5 +---
target/nios2/op_helper.c | 1 +
target/nios2/translate.c | 1 +
target/openrisc/exception_helper.c | 1 -
target/ppc/kvm.c | 3 ---
target/sh4/translate.c | 2 +-
tests/Makefile.include | 20 ++++++++--------
tests/test-aio-multithread.c | 1 -
tests/test-clone-visitor.c | 1 -
tests/vhost-user-test.c | 1 -
tests/vmgenid-test.c | 3 ---
util/qemu-sockets.c | 1 -
vl.c | 3 +--
141 files changed, 256 insertions(+), 292 deletions(-)
rename hw/display/{vga.h => vga_regs.h} (100%)
rename hw/{input => i386}/vmmouse.c (99%)
rename hw/{misc => i386}/vmport.c (95%)
create mode 100644 include/hw/display/vga.h
create mode 100644 include/hw/misc/pvpanic.h
create mode 100644 include/hw/net/ne2000-isa.h[Qemu-devel] [PULL 46/60] hw/tpm: remove old i386 dependency
From: Philippe Mathieu-Daudé <[email protected]>
--- hw/tpm/tpm_emulator.c | 1 - hw/tpm/tpm_passthrough.c | 1 - 2 files changed, 2 deletions(-)
hw/tpm/tpm_emulator.c +0 -1
@@ -33,7 +33,6 @@#include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "tpm_util.h" #include "tpm_ioctl.h" #include "migration/blocker.h"
hw/tpm/tpm_passthrough.c +0 -1
@@ -29,7 +29,6 @@#include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "qapi/clone-visitor.h" #include "tpm_util.h"
Signature · 1 line
2.11.0
Peter Maydell
AppliedQuoted 20 lines · Michael Tokarev
Here's another, 3rd, attempt for a pull request for the trivial-patches tree. Not resending whole thing once again.
I've removed the patch that caused previous failure, which was «hw/alpha/typhoon: simplify using the "unimplemented" sysbus device», and updated another patch, «hw/tpm: remove old i386 dependency» to resolve slight resolve conflicts, also rebased on top of current master.
Please consider pulling.
Thanks,
/mjt
The following changes since commit
411ad78115ebeb3411cf4b7622784b93dfabe259:Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-15-1' into staging (2017-12-17 15:27:41 +0000)
are available in the git repository at:
Quoted 8 lines
git://git.corpit.ru/qemu.gittags/trivial-patches-fetchfor you to fetch changes up to
c0578de60fcc3a07a881e9c4b7b8262faf6abbc7:misc: drop old i386 dependency (2017-12-18 17:07:03 +0300)
----------------------------------------------------------------
trivial patches for 2017-12-18
Applied, thanks.
-- PMM