directory reorganization, final part
Subsystems (7)
cover directory reorganization, final part
This removes a few directories from include/, and removes references to include/exec/ from device model (from now on, most will only have to care about include/sysemu and include/hw).
Hans de Goede (1):
virtio-9p: Fix virtio-9p no longer building after hw-dirs branch merge
Hu Tao (1):
Fix failure to create q35 machine
Jan Kiszka (1):
Add linux-headers to QEMU_INCLUDES
Paolo Bonzini (8):
configure: fix TPM logic
tpm: reorganize headers and split hardware part
sysemu: avoid proliferation of include/ subdirectories
include: avoid useless includes of exec/ headers
memory: move core typedefs to qemu/typedefs.h
exec: remove useless declarations from memory-internal.h
hw: move memory API headers to hw/
hw: move memory API to hw/core
Peter Maydell (1):
arm: fix location of some include files
Makefile.objs | 2 +-
Makefile.target | 4 +-
arch_init.c | 3 +-
backends/baum.c | 2 +-
backends/msmouse.c | 2 +-
backends/rng-egd.c | 4 +-
backends/rng-random.c | 4 +-
backends/rng.c | 2 +-
backends/tpm.c | 40 ++++++++++++++-
bt-host.c | 2 +-
bt-vhci.c | 2 +-
configure | 29 +++++++----
cputlb.c | 4 +-
default-configs/i386-softmmu.mak | 5 +-
default-configs/x86_64-softmmu.mak | 5 +-
dump.c | 6 ++-
exec.c | 4 +-
gdbstub.c | 2 +-
hmp.c | 2 +-
hw/9pfs/virtio-9p-device.c | 2 +-
hw/Makefile.objs | 1 +
hw/acpi/ich9.c | 2 +-
hw/acpi/piix4.c | 4 +-
hw/alpha/typhoon.c | 5 +-
hw/arm/armv7m.c | 2 +-
hw/arm/boot.c | 2 +-
hw/arm/collie.c | 6 +--
hw/arm/exynos4210.c | 2 +-
hw/arm/exynos4_boards.c | 4 +-
hw/arm/gumstix.c | 4 +-
hw/arm/highbank.c | 6 +--
hw/arm/integratorcp.c | 6 +--
hw/arm/kzm.c | 6 +--
hw/arm/mainstone.c | 6 +--
hw/arm/musicpal.c | 6 +--
hw/arm/nseries.c | 6 +--
hw/arm/omap1.c | 2 +-
hw/arm/omap2.c | 4 +-
hw/arm/omap_sx1.c | 4 +-
hw/arm/palm.c | 6 +--
hw/arm/pic_cpu.c | 2 +-
hw/arm/pxa2xx.c | 2 +-
hw/arm/realview.c | 6 +--
hw/arm/spitz.c | 6 +--
hw/arm/stellaris.c | 6 +--
hw/arm/strongarm.c | 4 +-
hw/arm/strongarm.h | 2 +-
hw/arm/tosa.c | 6 +--
hw/arm/versatilepb.c | 6 +--
hw/arm/vexpress.c | 6 +--
hw/arm/xilinx_zynq.c | 4 +-
hw/arm/z2.c | 6 +--
hw/block/m25p80.c | 2 +-
hw/block/onenand.c | 4 +-
hw/block/pflash_cfi01.c | 2 +-
hw/block/pflash_cfi02.c | 2 +-
hw/bt/core.c | 2 +-
hw/bt/hci-csr.c | 4 +-
hw/bt/hci.c | 2 +-
hw/char/cadence_uart.c | 2 +-
hw/char/debugcon.c | 2 +-
hw/char/escc.c | 2 +-
hw/char/etraxfs_ser.c | 2 +-
hw/char/exynos4210_uart.c | 2 +-
hw/char/grlib_apbuart.c | 2 +-
hw/char/imx_serial.c | 2 +-
hw/char/ipoctal232.c | 2 +-
hw/char/lm32_juart.c | 2 +-
hw/char/lm32_uart.c | 2 +-
hw/char/mcf_uart.c | 4 +-
hw/char/milkymist-uart.c | 2 +-
hw/char/omap_uart.c | 4 +-
hw/char/parallel.c | 2 +-
hw/char/pl011.c | 2 +-
hw/char/sclpconsole.c | 2 +-
hw/char/serial.c | 4 +-
hw/char/sh_serial.c | 4 +-
hw/char/spapr_vty.c | 2 +-
hw/char/virtio-console.c | 2 +-
hw/char/xen_console.c | 2 +-
hw/char/xilinx_uartlite.c | 2 +-
hw/core/Makefile.objs | 3 ++
ioport.c => hw/core/ioport.c | 4 +-
hw/core/loader.c | 4 +-
memory.c => hw/core/memory.c | 6 +--
hw/core/qdev-properties-system.c | 2 +-
hw/core/qdev-properties.c | 2 +-
hw/core/sysbus.c | 2 +-
hw/cris/axis_dev88.c | 2 +-
hw/display/blizzard.c | 2 +-
hw/display/framebuffer.h | 2 +-
hw/display/sm501.c | 2 +-
hw/display/tc6393xb.c | 2 +-
hw/display/vga_int.h | 2 +-
hw/display/xenfb.c | 2 +-
hw/dma/etraxfs_dma.c | 2 +-
hw/i386/pc.c | 4 +-
hw/i386/pc_piix.c | 4 +-
hw/i386/pc_q35.c | 2 +-
hw/ide/ahci.c | 1 -
hw/ide/internal.h | 1 -
hw/input/stellaris_input.c | 2 +-
hw/input/tsc2005.c | 2 +-
hw/input/tsc210x.c | 2 +-
hw/intc/armv7m_nvic.c | 4 +-
hw/isa/isa-bus.c | 2 +-
hw/isa/isa_mmio.c | 2 +-
hw/isa/lpc_ich9.c | 2 +-
hw/isa/pc87312.c | 2 +-
hw/isa/vt82c686.c | 2 +-
hw/lm32/lm32_boards.c | 4 +-
hw/lm32/milkymist.c | 4 +-
hw/m68k/an5206.c | 2 +-
hw/m68k/dummy_m68k.c | 2 +-
hw/m68k/mcf5206.c | 2 +-
hw/m68k/mcf5208.c | 2 +-
hw/m68k/mcf_intc.c | 2 +-
hw/microblaze/petalogix_ml605_mmu.c | 4 +-
hw/microblaze/petalogix_s3adsp1800_mmu.c | 4 +-
hw/mips/gt64xxx_pci.c | 2 +-
hw/mips/mips_fulong2e.c | 4 +-
hw/mips/mips_jazz.c | 2 +-
hw/mips/mips_malta.c | 4 +-
hw/mips/mips_mipssim.c | 2 +-
hw/mips/mips_r4k.c | 2 +-
hw/misc/cbus.c | 2 +-
hw/misc/ivshmem.c | 2 +-
hw/misc/omap_gpmc.c | 4 +-
hw/misc/vfio.c | 4 +-
hw/moxie/moxiesim.c | 2 +-
hw/net/lan9118.c | 2 +-
hw/net/mcf_fec.c | 2 +-
hw/net/ne2000-isa.c | 2 +-
hw/net/pcnet.h | 2 +-
hw/net/smc91c111.c | 2 +-
hw/net/vmxnet_tx_pkt.c | 2 +-
hw/net/xgmac.c | 2 +-
hw/openrisc/openrisc_sim.c | 2 +-
hw/pci-bridge/pci_bridge_dev.c | 2 +-
hw/pci-host/apb.c | 2 +-
hw/pci-host/bonito.c | 2 +-
hw/pci-host/ppce500.c | 2 +-
hw/pci-host/prep.c | 2 +-
hw/pci-host/versatile.c | 2 +-
hw/pci/pci.c | 2 +-
hw/pci/pcie_host.c | 2 +-
hw/ppc/e500.c | 2 +-
hw/ppc/mac.h | 2 +-
hw/ppc/mac_newworld.c | 2 +-
hw/ppc/mac_oldworld.c | 2 +-
hw/ppc/ppc405_boards.c | 2 +-
hw/ppc/ppc405_uc.c | 2 +-
hw/ppc/ppc440_bamboo.c | 2 +-
hw/ppc/ppc4xx_devs.c | 2 +-
hw/ppc/ppc4xx_pci.c | 2 +-
hw/ppc/prep.c | 2 +-
hw/ppc/spapr.c | 2 +-
hw/ppc/spapr_events.c | 2 +-
hw/ppc/spapr_iommu.c | 2 +-
hw/ppc/spapr_pci.c | 2 +-
hw/ppc/spapr_rtas.c | 2 +-
hw/ppc/virtex_ml507.c | 4 +-
hw/s390x/s390-virtio-ccw.c | 2 +-
hw/s390x/s390-virtio.c | 2 +-
hw/s390x/sclp.c | 2 +-
hw/sh4/r2d.c | 4 +-
hw/sh4/sh7750.c | 2 +-
hw/sh4/sh_pci.c | 2 +-
hw/sh4/shix.c | 2 +-
hw/sparc/leon3.c | 4 +-
hw/sparc64/sun4u.c | 2 +-
hw/timer/m48t59.c | 2 +-
hw/timer/sh_timer.c | 2 +-
hw/timer/tusb6010.c | 2 +-
{tpm => hw/tpm}/Makefile.objs | 4 --
{tpm => hw/tpm}/tpm_int.h | 39 +--------------
{tpm => hw/tpm}/tpm_passthrough.c | 22 ++++++--
{tpm => hw/tpm}/tpm_tis.c | 6 +--
{tpm => hw/tpm}/tpm_tis.h | 5 --
hw/unicore32/puv3.c | 2 +-
hw/usb/ccid-card-emulated.c | 2 +-
hw/usb/ccid-card-passthru.c | 2 +-
hw/usb/dev-bluetooth.c | 2 +-
hw/usb/dev-serial.c | 2 +-
hw/usb/libhw.c | 2 +-
hw/usb/redirect.c | 2 +-
hw/virtio/dataplane/hostmem.c | 2 +-
hw/virtio/vhost.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/virtio/virtio-rng.c | 2 +-
hw/xen/xen_backend.c | 2 +-
hw/xen/xen_platform.c | 2 +-
hw/xen/xen_pt.c | 2 +-
hw/xtensa/xtensa_lx60.c | 6 +--
hw/xtensa/xtensa_sim.c | 4 +-
include/exec/memory-internal.h | 6 ---
include/exec/softmmu_template.h | 2 +-
include/{exec => hw}/address-spaces.h | 2 +-
include/hw/{ => arm}/arm.h | 2 +-
include/hw/arm/exynos4210.h | 2 +-
include/hw/arm/omap.h | 2 +-
include/hw/arm/pxa.h | 2 +-
include/hw/arm/soc_dma.h | 2 +-
include/hw/block/flash.h | 2 +-
include/hw/char/serial.h | 2 +-
include/hw/{arm => }/devices.h | 0
include/hw/hw.h | 2 +-
include/hw/i386/apic_internal.h | 2 +-
include/hw/i386/ioapic_internal.h | 2 +-
include/hw/i386/pc.h | 6 +--
include/hw/ide.h | 2 +-
include/{exec => hw}/ioport.h | 2 +-
include/{exec => hw}/iorange.h | 0
include/hw/isa/apm.h | 2 +-
include/hw/isa/isa.h | 4 +-
include/{exec => hw}/memory.h | 9 +---
include/hw/mips/mips.h | 2 +-
include/hw/pci-host/pam.h | 2 +-
include/hw/pci/pci.h | 2 +-
include/hw/pci/pcie_host.h | 2 +-
include/hw/pci/shpc.h | 2 +-
include/hw/ppc/mac_dbdma.h | 2 +-
include/hw/sh4/sh_intc.h | 2 +-
include/hw/sysbus.h | 2 +-
include/hw/virtio/dataplane/hostmem.h | 2 +-
include/hw/virtio/vhost.h | 2 +-
include/hw/virtio/virtio-rng.h | 4 +-
include/qemu/typedefs.h | 4 ++
include/{bt => sysemu}/bt.h | 0
include/{char => sysemu}/char.h | 0
include/sysemu/dma.h | 2 +-
include/{qemu => sysemu}/rng-random.h | 0
include/{qemu => sysemu}/rng.h | 0
include/{tpm => sysemu}/tpm.h | 2 -
include/{backends/tpm.h => sysemu/tpm_backend.h} | 42 +++++++++++++++-
.../sysemu/tpm_backend_int.h | 0
kvm-all.c | 4 +-
kvm-stub.c | 1 -
monitor.c | 6 +--
net/slirp.c | 2 +-
qemu-char.c | 2 +-
qmp.c | 2 +-
qtest.c | 6 +--
savevm.c | 2 +-
slirp/slirp.c | 2 +-
spice-qemu-char.c | 2 +-
target-arm/arm-semi.c | 2 +-
target-arm/kvm.c | 2 +-
target-arm/kvm_arm.h | 2 +-
target-i386/ioport-user.c | 2 +-
target-i386/kvm.c | 2 +-
target-i386/misc_helper.c | 2 +-
target-ppc/kvm_ppc.h | 2 -
target-s390x/misc_helper.c | 2 +-
target-sparc/mmu_helper.c | 2 +-
tpm/tpm.c => tpm.c | 21 ++------
tpm/tpm_backend.c | 58 ----------------------
translate-all.c | 5 +-
ui/console.c | 2 +-
ui/gtk.c | 2 +-
util/event_notifier-posix.c | 2 +-
vl.c | 6 +--
xen-all.c | 4 +-
xen-stub.c | 2 +-
264 files changed, 461 insertions(+), 488 deletions(-)
rename ioport.c => hw/core/ioport.c (99%)
rename memory.c => hw/core/memory.c (99%)
rename {tpm => hw/tpm}/Makefile.objs (55%)
rename {tpm => hw/tpm}/tpm_int.h (49%)
rename {tpm => hw/tpm}/tpm_passthrough.c (96%)
rename {tpm => hw/tpm}/tpm_tis.c (99%)
rename {tpm => hw/tpm}/tpm_tis.h (96%)
rename include/{exec => hw}/address-spaces.h (97%)
rename include/hw/{ => arm}/arm.h (98%)
rename include/hw/{arm => }/devices.h (100%)
rename include/{exec => hw}/ioport.h (99%)
rename include/{exec => hw}/iorange.h (100%)
rename include/{exec => hw}/memory.h (99%)
rename include/{bt => sysemu}/bt.h (100%)
rename include/{char => sysemu}/char.h (100%)
rename include/{qemu => sysemu}/rng-random.h (100%)
rename include/{qemu => sysemu}/rng.h (100%)
rename include/{tpm => sysemu}/tpm.h (82%)
rename include/{backends/tpm.h => sysemu/tpm_backend.h} (77%)
rename tpm/tpm_backend.h => include/sysemu/tpm_backend_int.h (100%)
rename tpm/tpm.c => tpm.c (93%)
delete mode 100644 tpm/tpm_backend.cSignature · 1 line
1.8.1.4
PATCH 1/12 arm: fix location of some include files
From: Peter Maydell <[email protected]>
The recent rearrangement of include files had some minor errors:
devices.h is not ARM specific and should not be in arm/ arm.h should be in arm/
Move these two headers to correct this.
---
hw/alpha/typhoon.c | 2 +-
hw/arm/armv7m.c | 2 +-
hw/arm/boot.c | 2 +-
hw/arm/collie.c | 4 ++--
hw/arm/exynos4210.c | 2 +-
hw/arm/exynos4_boards.c | 2 +-
hw/arm/gumstix.c | 2 +-
hw/arm/highbank.c | 4 ++--
hw/arm/integratorcp.c | 4 ++--
hw/arm/kzm.c | 4 ++--
hw/arm/mainstone.c | 4 ++--
hw/arm/musicpal.c | 4 ++--
hw/arm/nseries.c | 4 ++--
hw/arm/omap1.c | 2 +-
hw/arm/omap2.c | 2 +-
hw/arm/omap_sx1.c | 2 +-
hw/arm/palm.c | 4 ++--
hw/arm/pic_cpu.c | 2 +-
hw/arm/realview.c | 4 ++--
hw/arm/spitz.c | 4 ++--
hw/arm/stellaris.c | 4 ++--
hw/arm/strongarm.c | 2 +-
hw/arm/tosa.c | 4 ++--
hw/arm/versatilepb.c | 4 ++--
hw/arm/vexpress.c | 4 ++--
hw/arm/xilinx_zynq.c | 2 +-
hw/arm/z2.c | 4 ++--
hw/block/m25p80.c | 2 +-
hw/display/blizzard.c | 2 +-
hw/display/sm501.c | 2 +-
hw/display/tc6393xb.c | 2 +-
hw/input/stellaris_input.c | 2 +-
hw/input/tsc2005.c | 2 +-
hw/input/tsc210x.c | 2 +-
hw/intc/armv7m_nvic.c | 2 +-
hw/lm32/lm32_boards.c | 2 +-
hw/lm32/milkymist.c | 2 +-
hw/microblaze/petalogix_ml605_mmu.c | 2 +-
hw/microblaze/petalogix_s3adsp1800_mmu.c | 2 +-
hw/misc/cbus.c | 2 +-
hw/net/lan9118.c | 2 +-
hw/net/smc91c111.c | 2 +-
hw/ppc/virtex_ml507.c | 2 +-
hw/sh4/r2d.c | 2 +-
hw/timer/tusb6010.c | 2 +-
include/hw/{ => arm}/arm.h | 0
include/hw/{arm => }/devices.h | 0
target-arm/arm-semi.c | 2 +-
target-arm/kvm.c | 2 +-
49 files changed, 62 insertions(+), 62 deletions(-)
rename include/hw/{ => arm}/arm.h (100%)
rename include/hw/{arm => }/devices.h (100%)hw/alpha/typhoon.c +1 -1
@@ -9,7 +9,7 @@#include "cpu.h" #include "exec/exec-all.h" #include "hw/hw.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" #include "alpha_sys.h" #include "exec/address-spaces.h"
hw/arm/armv7m.c +1 -1
@@ -8,7 +8,7 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/loader.h" #include "elf.h"
hw/arm/boot.c +1 -1
@@ -9,7 +9,7 @@#include "config.h" #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
hw/arm/collie.c +2 -2
@@ -11,9 +11,9 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "hw/boards.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "strongarm.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/arm/exynos4210.c +1 -1
@@ -24,7 +24,7 @@#include "hw/boards.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/loader.h" #include "hw/arm/exynos4210.h" #include "hw/usb/hcd-ehci.h"
hw/arm/exynos4_boards.c +1 -1
@@ -24,7 +24,7 @@#include "sysemu/sysemu.h" #include "hw/sysbus.h" #include "net/net.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "exec/address-spaces.h" #include "hw/arm/exynos4210.h" #include "hw/boards.h"
hw/arm/gumstix.c +1 -1
@@ -38,7 +38,7 @@#include "hw/arm/pxa.h" #include "net/net.h" #include "hw/block/flash.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/arm/highbank.c +2 -2
@@ -18,8 +18,8 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/loader.h" #include "net/net.h" #include "sysemu/sysemu.h"
hw/arm/integratorcp.c +2 -2
@@ -8,9 +8,9 @@*/ #include "hw/sysbus.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "net/net.h" #include "exec/address-spaces.h" #include "sysemu/sysemu.h"
hw/arm/kzm.c +2 -2
@@ -16,8 +16,8 @@#include "hw/sysbus.h" #include "exec/address-spaces.h" #include "hw/hw.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/arm/mainstone.c +2 -2
@@ -13,9 +13,9 @@*/ #include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "net/net.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h"
hw/arm/musicpal.c +2 -2
@@ -10,8 +10,8 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/arm/nseries.c +2 -2
@@ -21,12 +21,12 @@#include "qemu-common.h" #include "sysemu/sysemu.h" #include "hw/arm/omap.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/irq.h" #include "ui/console.h" #include "hw/boards.h" #include "hw/i2c/i2c.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/block/flash.h" #include "hw/hw.h" #include "hw/bt.h"
hw/arm/omap1.c +1 -1
@@ -17,7 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/omap.h" #include "sysemu/sysemu.h" #include "hw/arm/soc_dma.h"
hw/arm/omap2.c +1 -1
@@ -20,7 +20,7 @@#include "sysemu/blockdev.h" #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/omap.h" #include "sysemu/sysemu.h" #include "qemu/timer.h"
hw/arm/omap_sx1.c +1 -1
@@ -29,7 +29,7 @@#include "ui/console.h" #include "hw/arm/omap.h" #include "hw/boards.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/arm/palm.c +2 -2
@@ -22,8 +22,8 @@#include "ui/console.h" #include "hw/arm/omap.h" #include "hw/boards.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/loader.h" #include "exec/address-spaces.h"
hw/arm/pic_cpu.c +1 -1
@@ -8,7 +8,7 @@*/ #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "sysemu/kvm.h" /* Input 0 is IRQ and input 1 is FIQ. */
hw/arm/realview.c +2 -2
@@ -8,9 +8,9 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/primecell.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/pci/pci.h" #include "net/net.h" #include "sysemu/sysemu.h"
hw/arm/spitz.c +2 -2
@@ -12,14 +12,14 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "sysemu/sysemu.h" #include "hw/pcmcia.h" #include "hw/i2c/i2c.h" #include "hw/ssi.h" #include "hw/block/flash.h" #include "qemu/timer.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/arm/sharpsl.h" #include "ui/console.h" #include "block/block.h"
hw/arm/stellaris.c +2 -2
@@ -9,8 +9,8 @@#include "hw/sysbus.h" #include "hw/ssi.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "qemu/timer.h" #include "hw/i2c/i2c.h" #include "net/net.h"
hw/arm/strongarm.c +1 -1
@@ -29,7 +29,7 @@#include "hw/sysbus.h" #include "strongarm.h" #include "qemu/error-report.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "char/char.h" #include "sysemu/sysemu.h" #include "hw/ssi.h"
hw/arm/tosa.c +2 -2
@@ -13,8 +13,8 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/arm/sharpsl.h" #include "hw/pcmcia.h" #include "block/block.h"
hw/arm/versatilepb.c +2 -2
@@ -8,8 +8,8 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/pci/pci.h"
hw/arm/vexpress.c +2 -2
@@ -22,9 +22,9 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/primecell.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/arm/xilinx_zynq.c +1 -1
@@ -16,7 +16,7 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "net/net.h" #include "exec/address-spaces.h" #include "sysemu/sysemu.h"
hw/arm/z2.c +2 -2
@@ -13,8 +13,8 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/i2c/i2c.h" #include "hw/ssi.h" #include "hw/boards.h"
hw/block/m25p80.c +1 -1
@@ -24,7 +24,7 @@#include "hw/hw.h" #include "sysemu/blockdev.h" #include "hw/ssi.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #ifdef M25P80_ERR_DEBUG #define DB_PRINT (...) do { \
hw/display/blizzard.c +1 -1
@@ -20,7 +20,7 @@#include "qemu-common.h" #include "ui/console.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "vga_int.h" #include "ui/pixel_ops.h"
hw/display/sm501.c +1 -1
@@ -26,7 +26,7 @@#include "hw/hw.h" #include "hw/char/serial.h" #include "ui/console.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/sysbus.h" #include "hw/qdev-addr.h" #include "qemu/range.h"
hw/display/tc6393xb.c +1 -1
@@ -11,7 +11,7 @@* GNU GPL, version 2 or (at your option) any later version. */ #include "hw/hw.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/block/flash.h" #include "ui/console.h" #include "ui/pixel_ops.h"
hw/input/stellaris_input.c +1 -1
@@ -7,7 +7,7 @@* This code is licensed under the GPL. */ #include "hw/hw.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "ui/console.h" typedef struct {
hw/input/tsc2005.c +1 -1
@@ -21,7 +21,7 @@#include "hw/hw.h" #include "qemu/timer.h" #include "ui/console.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #define TSC_CUT_RESOLUTION (value, p) ((value) >> (16 - (p ? 12 : 10)))
hw/input/tsc210x.c +1 -1
@@ -24,7 +24,7 @@#include "qemu/timer.h" #include "ui/console.h" #include "hw/arm/omap.h" /* For I2SCodec and uWireSlave */ -#include "hw/arm/devices.h" +#include "hw/devices.h" #define TSC_DATA_REGISTERS_PAGE 0x0#define TSC_CONTROL_REGISTERS_PAGE 0x1
hw/intc/armv7m_nvic.c +1 -1
@@ -12,7 +12,7 @@#include "hw/sysbus.h" #include "qemu/timer.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "exec/address-spaces.h" #include "gic_internal.h"
hw/lm32/lm32_boards.c +1 -1
@@ -20,7 +20,7 @@#include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/loader.h" #include "sysemu/blockdev.h"
hw/lm32/milkymist.c +1 -1
@@ -21,7 +21,7 @@#include "hw/hw.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/loader.h" #include "elf.h"
hw/microblaze/petalogix_ml605_mmu.c +1 -1
@@ -30,7 +30,7 @@#include "net/net.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/xilinx.h" #include "sysemu/blockdev.h"
hw/microblaze/petalogix_s3adsp1800_mmu.c +1 -1
@@ -28,7 +28,7 @@#include "net/net.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/xilinx.h" #include "sysemu/blockdev.h"
hw/misc/cbus.c +1 -1
@@ -22,7 +22,7 @@#include "qemu-common.h" #include "hw/irq.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" //#define DEBUG
hw/net/lan9118.c +1 -1
@@ -12,7 +12,7 @@#include "hw/sysbus.h" #include "net/net.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" #include "hw/ptimer.h" /* For crc32 */
hw/net/smc91c111.c +1 -1
@@ -9,7 +9,7 @@#include "hw/sysbus.h" #include "net/net.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" /* For crc32 */ #include <zlib.h>
hw/ppc/virtex_ml507.c +1 -1
@@ -27,7 +27,7 @@#include "hw/char/serial.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "sysemu/device_tree.h" #include "hw/loader.h"
hw/sh4/r2d.c +1 -1
@@ -26,7 +26,7 @@#include "hw/sysbus.h" #include "hw/hw.h" #include "hw/sh4/sh.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/pci/pci.h"
hw/timer/tusb6010.c +1 -1
@@ -23,7 +23,7 @@#include "hw/usb.h" #include "hw/arm/omap.h" #include "hw/irq.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/sysbus.h" typedef struct TUSBState {
include/hw/arm/arm.h renamed from include/hw/arm.h +0 -0
include/hw/devices.h renamed from include/hw/arm/devices.h +0 -0
target-arm/arm-semi.c +1 -1
@@ -34,7 +34,7 @@#else #include "qemu-common.h" #include "exec/gdbstub.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #endif #define TARGET_SYS_OPEN 0x01
target-arm/kvm.c +1 -1
@@ -21,7 +21,7 @@#include "sysemu/kvm.h" #include "kvm_arm.h" #include "cpu.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" const KVMCapabilityInfo kvm_arch_required_capabilities[] = {KVM_CAP_LAST_INFO
Signature · 1 line
1.8.1.4
PATCH 2/12 virtio-9p: Fix virtio-9p no longer building after hw-dirs branch merge
In reply to Paolo BonziniFrom: Hans de Goede <[email protected]>
--- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/virtio-9p-device.c +1 -1
@@ -12,11 +12,11 @@*/ #include "hw/virtio/virtio.h" +#include "hw/virtio/virtio-9p.h" #include "hw/i386/pc.h" #include "qemu/sockets.h" #include "virtio-9p.h" #include "fsdev/qemu-fsdev.h" -#include "virtio-9p-device.h" #include "virtio-9p-xattr.h" #include "virtio-9p-coth.h"
Signature · 1 line
1.8.1.4
PATCH 3/12 Add linux-headers to QEMU_INCLUDES
In reply to Paolo BonziniFrom: Jan Kiszka <[email protected]>
virtio/dataplane/vring.c requires the Linux headers and is built for all targets. So we need to add the corresponding include to QEMU_INCLUDES to avoid that outdated distribution headers are used.
--- configure | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
configure +1 -4
@@ -544,6 +544,7 @@ Haiku) if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then audio_possible_drivers="$audio_possible_drivers fmod" fi + QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers $QEMU_INCLUDES" ;; esac
@@ -4230,10 +4231,6 @@ else fi includes="-I\$(SRC_PATH)/tcg $includes" -if test "$linux" = "yes" ; then - includes="-I\$(SRC_PATH)/linux-headers $includes" -fi - for i in $ARCH $TARGET_BASE_ARCH ; do case "$i" in alpha)
Signature · 1 line
1.8.1.4
PATCH 4/12 Fix failure to create q35 machine
In reply to Paolo BonziniFrom: Hu Tao <[email protected]>
This is a regression introduced by c0907c9e6417c. How to reproduce:
$ qemu-system-x86_64 -nodefaults -vnc :0 -M q35 qemu-system-x86_64: Unknown device 'q35-pcihost' for default sysbus Aborted (core dumped)
--- default-configs/i386-softmmu.mak | 2 +- default-configs/x86_64-softmmu.mak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
default-configs/i386-softmmu.mak +1 -1
@@ -42,6 +42,6 @@ CONFIG_ISA_TESTDEV=y CONFIG_VMPORT=y CONFIG_SGA=y CONFIG_LPC_ICH9=y -CONFIG_Q35=y +CONFIG_PCI_Q35=y CONFIG_APIC=y CONFIG_IOAPIC=y
default-configs/x86_64-softmmu.mak +1 -1
@@ -42,6 +42,6 @@ CONFIG_ISA_TESTDEV=y CONFIG_VMPORT=y CONFIG_SGA=y CONFIG_LPC_ICH9=y -CONFIG_Q35=y +CONFIG_PCI_Q35=y CONFIG_APIC=y CONFIG_IOAPIC=y
Signature · 1 line
1.8.1.4
PATCH 5/12 configure: fix TPM logic
In reply to Paolo BonziniA non-native i386 or x86_64 emulator should not have TPM passthrough support, since the TPM is only present for those hosts.
--- configure | 24 ++++++++++++++++++------ default-configs/i386-softmmu.mak | 3 +-- default-configs/x86_64-softmmu.mak | 3 +-- tpm/Makefile.objs | 4 +--- 4 files changed, 21 insertions(+), 13 deletions(-)
configure +18 -6
@@ -2337,6 +2337,15 @@ EOF fi ########################################## +# TPM passthrough is only on x86 Linux + +if test "$targetos" = Linux && test "$cpu" = i386 -o "$cpu" = x86_64; then + tpm_passthrough=$tpm +else + tpm_passthrough=no +fi + +########################################## # adjust virtio-blk-data-plane based on linux-aio if test "$virtio_blk_data_plane" = "yes" -a \
@@ -3436,6 +3445,7 @@ echo "virtio-blk-data-plane $virtio_blk_data_plane" echo "gcov $gcov_tool" echo "gcov enabled $gcov" echo "TPM support $tpm" +echo "TPM passthrough $tpm_passthrough" if test "$sdl_too_old" = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -3814,6 +3824,14 @@ bsd) ;; esac +# TPM passthrough support? +if test "$tpm" = "yes"; then + echo 'CONFIG_TPM=$(CONFIG_SOFTMMU)' >> $config_host_mak + if test "$tpm_passthrough" = "yes"; then + echo "CONFIG_TPM_PASSTHROUGH=y" >> $config_host_mak + fi +fi + # use default implementation for tracing backend-specific routines trace_default=yes echo "TRACE_BACKEND=$trace_backend" >> $config_host_mak
@@ -4341,12 +4359,6 @@ if test "$gprof" = "yes" ; then fi fi -if test "$tpm" = "yes"; then - if test "$target_softmmu" = "yes" ; then - echo "CONFIG_TPM=y" >> $config_host_mak - fi -fi - if test "$ARCH" = "tci"; then linker_script="" else
default-configs/i386-softmmu.mak +1 -2
@@ -27,8 +27,7 @@ CONFIG_HPET=y CONFIG_APPLESMC=y CONFIG_I8259=y CONFIG_PFLASH_CFI01=y -CONFIG_TPM_TIS=y -CONFIG_TPM_PASSTHROUGH=y +CONFIG_TPM_TIS=$(CONFIG_TPM) CONFIG_PCI_HOTPLUG=y CONFIG_MC146818RTC=y CONFIG_PAM=y
default-configs/x86_64-softmmu.mak +1 -2
@@ -27,8 +27,7 @@ CONFIG_HPET=y CONFIG_APPLESMC=y CONFIG_I8259=y CONFIG_PFLASH_CFI01=y -CONFIG_TPM_TIS=y -CONFIG_TPM_PASSTHROUGH=y +CONFIG_TPM_TIS=$(CONFIG_TPM) CONFIG_PCI_HOTPLUG=y CONFIG_MC146818RTC=y CONFIG_PAM=y
tpm/Makefile.objs +1 -3
@@ -1,6 +1,4 @@ common-obj-y = tpm.o -ifeq ($(CONFIG_TPM),y) -common-obj-y += tpm_backend.o +common-obj-$(CONFIG_TPM) += tpm_backend.o common-obj-$(CONFIG_TPM_TIS) += tpm_tis.o common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o -endif
Signature · 1 line
1.8.1.4
PATCH 6/12 tpm: reorganize headers and split hardware part
In reply to Paolo BonziniThe TPM subsystem does not have a full front-end/back-end separation. The sole available backend, tpm_passthrough, depends on the data structures of the sole available frontend, tpm_tis.
However, we can at least try to split the user interface (tpm.c) from the implementation (hw/tpm). The patches makes tpm.c not include tpm_int.h, which is shared between tpm_tis.c and tpm_passthrough.c; instead it moves more stuff to tpm_backend.h.
---
Makefile.objs | 2 +-
backends/tpm.c | 38 +++++++++++++-
hw/Makefile.objs | 1 +
{tpm => hw/tpm}/Makefile.objs | 2 -
{tpm => hw/tpm}/tpm_int.h | 37 +-------------
{tpm => hw/tpm}/tpm_passthrough.c | 20 +++++++-
{tpm => hw/tpm}/tpm_tis.c | 2 +-
{tpm => hw/tpm}/tpm_tis.h | 5 --
include/backends/tpm.h | 42 +++++++++++++++-
include/{tpm => sysemu}/tpm.h | 2 -
.../sysemu/tpm_backend_int.h | 0
monitor.c | 2 +-
tpm/tpm.c => tpm.c | 19 +------
tpm/tpm_backend.c | 58 ----------------------
vl.c | 2 +-
15 files changed, 104 insertions(+), 128 deletions(-)
rename {tpm => hw/tpm}/Makefile.objs (61%)
rename {tpm => hw/tpm}/tpm_int.h (50%)
rename {tpm => hw/tpm}/tpm_passthrough.c (96%)
rename {tpm => hw/tpm}/tpm_tis.c (99%)
rename {tpm => hw/tpm}/tpm_tis.h (96%)
rename include/{tpm => sysemu}/tpm.h (82%)
rename tpm/tpm_backend.h => include/sysemu/tpm_backend_int.h (100%)
rename tpm/tpm.c => tpm.c (93%)
delete mode 100644 tpm/tpm_backend.cMakefile.objs +1 -1
@@ -65,7 +65,7 @@ common-obj-y += bt-host.o bt-vhci.o common-obj-y += dma-helpers.o common-obj-y += vl.o -common-obj-y += tpm/ +common-obj-y += tpm.o common-obj-$(CONFIG_SLIRP) += slirp/
backends/tpm.c +37 -1
@@ -13,8 +13,10 @@*/ #include "backends/tpm.h" -#include "tpm/tpm_int.h" #include "qapi/qmp/qerror.h" +#include "sysemu/tpm.h" +#include "qemu/thread.h" +#include "sysemu/tpm_backend_int.h" enum TpmType tpm_backend_get_type (TPMBackend *s) {
@@ -137,6 +139,40 @@ static void tpm_backend_instance_init(Object *obj) NULL); } +void tpm_backend_thread_deliver_request (TPMBackendThread *tbt) +{ +g_thread_pool_push (tbt->pool, (gpointer )TPM_BACKEND_CMD_PROCESS_CMD ,NULL ); +} + +void tpm_backend_thread_create (TPMBackendThread *tbt, +GFunc func,gpointer user_data) +{ +if (!tbt->pool) { + tbt->pool =g_thread_pool_new (func, user_data,1 , TRUE,NULL ); +g_thread_pool_push (tbt->pool, (gpointer )TPM_BACKEND_CMD_INIT ,NULL ); + } +} + +void tpm_backend_thread_end (TPMBackendThread *tbt) +{ +if (tbt->pool) { +g_thread_pool_push (tbt->pool, (gpointer )TPM_BACKEND_CMD_END ,NULL ); +g_thread_pool_free (tbt->pool, FALSE, TRUE); + tbt->pool =NULL ; + } +} + +void tpm_backend_thread_tpm_reset (TPMBackendThread *tbt, +GFunc func,gpointer user_data) +{ +if (!tbt->pool) { +tpm_backend_thread_create (tbt, func, user_data); + }else { +g_thread_pool_push (tbt->pool, (gpointer )TPM_BACKEND_CMD_TPM_RESET , +NULL ); + } +} +static const TypeInfo tpm_backend_info = { .name =TYPE_TPM_BACKEND , .parent =TYPE_OBJECT ,
hw/Makefile.objs +1 -0
@@ -22,6 +22,7 @@ devices-dirs-$(CONFIG_SOFTMMU) += scsi/ devices-dirs-$(CONFIG_SOFTMMU) += sd/ devices-dirs-$(CONFIG_SOFTMMU) += ssi/ devices-dirs-$(CONFIG_SOFTMMU) += timer/ +devices-dirs-$(CONFIG_TPM) += tpm/ devices-dirs-$(CONFIG_SOFTMMU) += usb/ devices-dirs-$(CONFIG_SOFTMMU) += virtio/ devices-dirs-$(CONFIG_SOFTMMU) += watchdog/
hw/tpm/Makefile.objs renamed from tpm/Makefile.objs +0 -2
@@ -1,4 +1,2 @@ -common-obj-y = tpm.o -common-obj-$(CONFIG_TPM) += tpm_backend.o common-obj-$(CONFIG_TPM_TIS) += tpm_tis.o common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o
hw/tpm/tpm_int.h renamed from tpm/tpm_int.h +1 -36
@@ -13,7 +13,7 @@#define TPM_TPM_INT_H #include "exec/memory.h" -#include "tpm/tpm_tis.h" +#include "tpm_tis.h" /* overall state of the TPM interface */ struct TPMState {
@@ -33,32 +33,6 @@ struct TPMState {#define TPM (obj) OBJECT_CHECK(TPMState, (obj), TYPE_TPM_TIS) -struct TPMDriverOps { -enum TpmType type; -/* get a descriptive text of the backend to display to the user */ -const char *(*desc)(void ); - -TPMBackend *(*create)(QemuOpts *opts,const char *id); -void (*destroy)(TPMBackend *t); - -/* initialize the backend */ -int (*init)(TPMBackend *t,TPMState *s,TPMRecvDataCB *datacb); -/* start up the TPM on the backend */ -int (*startup_tpm)(TPMBackend *t); -/* returns true if nothing will ever answer TPM requests */ -bool (*had_startup_error)(TPMBackend *t); - -size_t (*realloc_buffer)(TPMSizedBuffer *sb); - -void (*deliver_request)(TPMBackend *t); - -void (*reset)(TPMBackend *t); - -void (*cancel_cmd)(TPMBackend *t); - -bool (*get_tpm_established_flag)(TPMBackend *t); -}; -struct tpm_req_hdr {uint16_t tag;uint32_t len;
@@ -83,13 +57,4 @@ struct tpm_resp_hdr {#define TPM_ORD_GetTicks 0xf1 -TPMBackend *qemu_find_tpm (const char *id); -int tpm_register_model (enum TpmModel model); -int tpm_register_driver (const TPMDriverOps *tdo); -void tpm_display_backend_drivers (void ); -const TPMDriverOps *tpm_get_backend_driver (const char *type); -void tpm_write_fatal_error_response (uint8_t *out,uint32_t out_len); - -extern const TPMDriverOps tpm_passthrough_driver; -#endif /* TPM_TPM_INT_H */
hw/tpm/tpm_passthrough.c renamed from tpm/tpm_passthrough.c +18 -2
@@ -31,8 +31,8 @@#include "tpm_int.h" #include "hw/hw.h" #include "hw/i386/pc.h" +#include "sysemu/tpm_backend_int.h" #include "tpm_tis.h" -#include "tpm_backend.h" /* #define DEBUG_TPM */
@@ -48,6 +48,8 @@#define TPM_PASSTHROUGH (obj) \ OBJECT_CHECK(TPMPassthruState, (obj), TYPE_TPM_PASSTHROUGH) +static const TPMDriverOps tpm_passthrough_driver; +/* data structures */ typedef struct TPMPassthruThreadParams { TPMState *tpm_state;
@@ -96,6 +98,20 @@ static uint32_t tpm_passthrough_get_size_from_buffer(const uint8_t *buf)return be32_to_cpu (resp->len); } +/* +* Write an error message in the given output buffer. +*/ +static void tpm_write_fatal_error_response (uint8_t *out,uint32_t out_len) +{ +if (out_len >=sizeof (struct tpm_resp_hdr )) { +struct tpm_resp_hdr *resp = (struct tpm_resp_hdr *)out; + + resp->tag =cpu_to_be16 (TPM_TAG_RSP_COMMAND ); + resp->len =cpu_to_be32 (sizeof (struct tpm_resp_hdr )); + resp->errcode =cpu_to_be32 (TPM_FAIL ); + } +} +static int tpm_passthrough_unix_tx_bufs (TPMPassthruState *tpm_pt,const uint8_t *in,uint32_t in_len,uint8_t *out,uint32_t out_len)
@@ -512,7 +528,7 @@ static void tpm_passthrough_destroy(TPMBackend *tb)g_free (tpm_pt->tpm_dev); } -const TPMDriverOps tpm_passthrough_driver = { +static const TPMDriverOps tpm_passthrough_driver = { .type =TPM_TYPE_PASSTHROUGH , .desc = tpm_passthrough_create_desc, .create = tpm_passthrough_create,
hw/tpm/tpm_tis.c renamed from tpm/tpm_tis.c +1 -1
@@ -26,7 +26,7 @@#include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/pci/pci_ids.h" -#include "tpm/tpm_tis.h" +#include "tpm_tis.h" #include "qemu-common.h" /*#define DEBUG_TIS */
hw/tpm/tpm_tis.h renamed from tpm/tpm_tis.h +0 -5
@@ -35,11 +35,6 @@#define TYPE_TPM_TIS "tpm-tis" -struct TPMSizedBuffer { -uint32_t size; -uint8_t *buffer; -}; - typedef enum { TPM_TIS_STATE_IDLE = 0, TPM_TIS_STATE_READY,
include/backends/tpm.h +41 -1
64 lines not on this page · raw message
include/sysemu/tpm.h renamed from include/tpm/tpm.h +0 -2
@@ -15,8 +15,6 @@#include "qemu/option.h" typedef struct TPMState TPMState ; -typedef struct TPMSizedBuffer TPMSizedBuffer ; -typedef void (TPMRecvDataCB )(TPMState *,uint8_t locty);int tpm_config_parse (QemuOptsList *opts_list,const char *optarg);int tpm_init (void );
include/sysemu/tpm_backend_int.h renamed from tpm/tpm_backend.h +0 -0
monitor.c +1 -1
@@ -47,7 +47,7 @@#include "migration/migration.h" #include "sysemu/kvm.h" #include "qemu/acl.h" -#include "tpm/tpm.h" +#include "sysemu/tpm.h" #include "qapi/qmp/qint.h" #include "qapi/qmp/qfloat.h" #include "qapi/qmp/qlist.h"
tpm.c renamed from tpm/tpm.c +2 -17
@@ -16,8 +16,7 @@#include "monitor/monitor.h" #include "qapi/qmp/qerror.h" #include "backends/tpm.h" -#include "tpm_int.h" -#include "tpm/tpm.h" +#include "sysemu/tpm.h" #include "qemu/config-file.h" #include "qmp-commands.h"
@@ -62,20 +61,6 @@ static bool tpm_model_is_registered(enum TpmModel model)return false; } -/* -* Write an error message in the given output buffer. -*/ -void tpm_write_fatal_error_response (uint8_t *out,uint32_t out_len) -{ -if (out_len >=sizeof (struct tpm_resp_hdr )) { -struct tpm_resp_hdr *resp = (struct tpm_resp_hdr *)out; - - resp->tag =cpu_to_be16 (TPM_TAG_RSP_COMMAND ); - resp->len =cpu_to_be32 (sizeof (struct tpm_resp_hdr )); - resp->errcode =cpu_to_be32 (TPM_FAIL ); - } -} -const TPMDriverOps *tpm_get_backend_driver (const char *type) {int i;
@@ -109,7 +94,7 @@ int tpm_register_driver(const TPMDriverOps *tdo)* Walk the list of available TPM backend drivers and display them on the * screen. */ -void tpm_display_backend_drivers (void ) +static void tpm_display_backend_drivers (void ) {int i;
tpm/tpm_backend.c deleted +0 -58
58 lines not on this page · raw message
vl.c +1 -1
@@ -139,7 +139,7 @@ int main(int argc, char **argv)#include "sysemu/blockdev.h" #include "hw/block/block.h" #include "migration/block.h" -#include "tpm/tpm.h" +#include "sysemu/tpm.h" #include "sysemu/dma.h" #include "audio/audio.h" #include "migration/migration.h"
Signature · 1 line
1.8.1.4
PATCH 7/12 sysemu: avoid proliferation of include/ subdirectories
In reply to Paolo BonziniMove all "simple" header files to include/sysemu. There is no need for separate directories. Plus, some were in include/qemu and some in include/backends.
---
backends/baum.c | 2 +-
backends/msmouse.c | 2 +-
backends/rng-egd.c | 4 ++--
backends/rng-random.c | 4 ++--
backends/rng.c | 2 +-
backends/tpm.c | 2 +-
bt-host.c | 2 +-
bt-vhci.c | 2 +-
gdbstub.c | 2 +-
hmp.c | 2 +-
hw/arm/omap2.c | 2 +-
hw/arm/pxa2xx.c | 2 +-
hw/arm/strongarm.c | 2 +-
hw/bt/core.c | 2 +-
hw/bt/hci-csr.c | 4 ++--
hw/bt/hci.c | 2 +-
hw/char/cadence_uart.c | 2 +-
hw/char/debugcon.c | 2 +-
hw/char/escc.c | 2 +-
hw/char/etraxfs_ser.c | 2 +-
hw/char/exynos4210_uart.c | 2 +-
hw/char/grlib_apbuart.c | 2 +-
hw/char/imx_serial.c | 2 +-
hw/char/ipoctal232.c | 2 +-
hw/char/lm32_juart.c | 2 +-
hw/char/lm32_uart.c | 2 +-
hw/char/mcf_uart.c | 2 +-
hw/char/milkymist-uart.c | 2 +-
hw/char/omap_uart.c | 2 +-
hw/char/parallel.c | 2 +-
hw/char/pl011.c | 2 +-
hw/char/sclpconsole.c | 2 +-
hw/char/serial.c | 2 +-
hw/char/sh_serial.c | 2 +-
hw/char/spapr_vty.c | 2 +-
hw/char/virtio-console.c | 2 +-
hw/char/xen_console.c | 2 +-
hw/char/xilinx_uartlite.c | 2 +-
hw/core/qdev-properties-system.c | 2 +-
hw/core/qdev-properties.c | 2 +-
hw/display/xenfb.c | 2 +-
hw/isa/pc87312.c | 2 +-
hw/mips/mips_fulong2e.c | 2 +-
hw/mips/mips_malta.c | 2 +-
hw/misc/ivshmem.c | 2 +-
hw/net/xgmac.c | 2 +-
hw/ppc/spapr_events.c | 2 +-
hw/ppc/spapr_rtas.c | 2 +-
hw/sparc/leon3.c | 2 +-
hw/tpm/tpm_passthrough.c | 2 +-
hw/tpm/tpm_tis.c | 2 +-
hw/usb/ccid-card-emulated.c | 2 +-
hw/usb/ccid-card-passthru.c | 2 +-
hw/usb/dev-bluetooth.c | 2 +-
hw/usb/dev-serial.c | 2 +-
hw/usb/redirect.c | 2 +-
hw/virtio/virtio-rng.c | 2 +-
hw/xen/xen_backend.c | 2 +-
hw/xtensa/xtensa_lx60.c | 2 +-
include/hw/virtio/virtio-rng.h | 4 ++--
include/{bt => sysemu}/bt.h | 0
include/{char => sysemu}/char.h | 0
include/{qemu => sysemu}/rng-random.h | 0
include/{qemu => sysemu}/rng.h | 0
include/{backends/tpm.h => sysemu/tpm_backend.h} | 0
monitor.c | 2 +-
net/slirp.c | 2 +-
qemu-char.c | 2 +-
qmp.c | 2 +-
qtest.c | 2 +-
slirp/slirp.c | 2 +-
spice-qemu-char.c | 2 +-
tpm.c | 2 +-
ui/console.c | 2 +-
ui/gtk.c | 2 +-
util/event_notifier-posix.c | 2 +-
vl.c | 4 ++--
xen-all.c | 2 +-
78 files changed, 78 insertions(+), 78 deletions(-)
rename include/{bt => sysemu}/bt.h (100%)
rename include/{char => sysemu}/char.h (100%)
rename include/{qemu => sysemu}/rng-random.h (100%)
rename include/{qemu => sysemu}/rng.h (100%)
rename include/{backends/tpm.h => sysemu/tpm_backend.h} (100%)backends/baum.c +1 -1
@@ -22,7 +22,7 @@* THE SOFTWARE. */ #include "qemu-common.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/timer.h" #include "hw/usb.h" #include <brlapi.h>
backends/msmouse.c +1 -1
@@ -23,7 +23,7 @@*/ #include <stdlib.h> #include "qemu-common.h" -#include "char/char.h" +#include "sysemu/char.h" #include "ui/console.h" #define MSMOUSE_LO6 (n) ((n) & 0x3f)
backends/rng-egd.c +2 -2
@@ -10,8 +10,8 @@* See the COPYING file in the top-level directory. */ -#include "qemu/rng.h" -#include "char/char.h" +#include "sysemu/rng.h" +#include "sysemu/char.h" #include "qapi/qmp/qerror.h" #include "hw/qdev.h" /* just for DEFINE_PROP_CHR */
backends/rng-random.c +2 -2
@@ -10,8 +10,8 @@* See the COPYING file in the top-level directory. */ -#include "qemu/rng-random.h" -#include "qemu/rng.h" +#include "sysemu/rng-random.h" +#include "sysemu/rng.h" #include "qapi/qmp/qerror.h" #include "qemu/main-loop.h"
backends/rng.c +1 -1
@@ -10,7 +10,7 @@* See the COPYING file in the top-level directory. */ -#include "qemu/rng.h" +#include "sysemu/rng.h" #include "qapi/qmp/qerror.h" void rng_backend_request_entropy(RngBackend *s, size_t size,
backends/tpm.c +1 -1
@@ -12,7 +12,7 @@* Based on backends/rng.c by Anthony Liguori */ -#include "backends/tpm.h" +#include "sysemu/tpm_backend.h" #include "qapi/qmp/qerror.h" #include "sysemu/tpm.h" #include "qemu/thread.h"
bt-host.c +1 -1
@@ -18,7 +18,7 @@*/ #include "qemu-common.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "qemu/main-loop.h" #ifndef _WIN32
bt-vhci.c +1 -1
@@ -18,7 +18,7 @@*/ #include "qemu-common.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "hw/bt.h" #include "qemu/main-loop.h"
gdbstub.c +1 -1
@@ -30,7 +30,7 @@#include "qemu.h" #else #include "monitor/monitor.h" -#include "char/char.h" +#include "sysemu/char.h" #include "sysemu/sysemu.h" #include "exec/gdbstub.h" #endif
hmp.c +1 -1
@@ -15,7 +15,7 @@#include "hmp.h" #include "net/net.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/option.h" #include "qemu/timer.h" #include "qmp-commands.h"
hw/arm/omap2.c +1 -1
@@ -24,7 +24,7 @@#include "hw/arm/omap.h" #include "sysemu/sysemu.h" #include "qemu/timer.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/block/flash.h" #include "hw/arm/soc_dma.h" #include "hw/sysbus.h"
hw/arm/pxa2xx.c +1 -1
@@ -13,7 +13,7 @@#include "hw/char/serial.h" #include "hw/i2c/i2c.h" #include "hw/ssi.h" -#include "char/char.h" +#include "sysemu/char.h" #include "sysemu/blockdev.h" static struct {
hw/arm/strongarm.c +1 -1
@@ -30,7 +30,7 @@#include "strongarm.h" #include "qemu/error-report.h" #include "hw/arm/arm.h" -#include "char/char.h" +#include "sysemu/char.h" #include "sysemu/sysemu.h" #include "hw/ssi.h"
hw/bt/core.c +1 -1
@@ -18,7 +18,7 @@*/ #include "qemu-common.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "hw/bt.h" /* Slave implementations can ignore this */
hw/bt/hci-csr.c +2 -2
@@ -19,10 +19,10 @@*/ #include "qemu-common.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/timer.h" #include "hw/irq.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "hw/bt.h" struct csrhci_s {
hw/bt/hci.c +1 -1
@@ -21,7 +21,7 @@#include "qemu-common.h" #include "qemu/timer.h" #include "hw/usb.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "hw/bt.h" struct bt_hci_s {
hw/char/cadence_uart.c +1 -1
@@ -17,7 +17,7 @@*/ #include "hw/sysbus.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/timer.h" #ifdef CADENCE_UART_ERR_DEBUG
hw/char/debugcon.c +1 -1
@@ -25,7 +25,7 @@*/ #include "hw/hw.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h"
hw/char/escc.c +1 -1
@@ -25,7 +25,7 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "hw/char/escc.h" -#include "char/char.h" +#include "sysemu/char.h" #include "ui/console.h" #include "trace.h"
hw/char/etraxfs_ser.c +1 -1
@@ -23,7 +23,7 @@*/ #include "hw/sysbus.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/log.h" #define D (x)
hw/char/exynos4210_uart.c +1 -1
@@ -21,7 +21,7 @@#include "hw/sysbus.h" #include "sysemu/sysemu.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/arm/exynos4210.h"
hw/char/grlib_apbuart.c +1 -1
@@ -23,7 +23,7 @@*/ #include "hw/sysbus.h" -#include "char/char.h" +#include "sysemu/char.h" #include "trace.h"
hw/char/imx_serial.c +1 -1
@@ -20,7 +20,7 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/arm/imx.h" //#define DEBUG_SERIAL 1
hw/char/ipoctal232.c +1 -1
@@ -10,7 +10,7 @@#include "ipack.h" #include "qemu/bitops.h" -#include "char/char.h" +#include "sysemu/char.h" /* #define DEBUG_IPOCTAL */
hw/char/lm32_juart.c +1 -1
@@ -20,7 +20,7 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/lm32/lm32_juart.h"
hw/char/lm32_uart.c +1 -1
@@ -25,7 +25,7 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/error-report.h" enum {
hw/char/mcf_uart.c +1 -1
@@ -7,7 +7,7 @@*/ #include "hw/hw.h" #include "hw/m68k/mcf.h" -#include "char/char.h" +#include "sysemu/char.h" #include "exec/address-spaces.h" typedef struct {
hw/char/milkymist-uart.c +1 -1
@@ -24,7 +24,7 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/error-report.h" enum {
hw/char/omap_uart.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include "char/char.h" +#include "sysemu/char.h" #include "hw/hw.h" #include "hw/arm/omap.h" #include "hw/char/serial.h"
hw/char/parallel.c +1 -1
@@ -23,7 +23,7 @@* THE SOFTWARE. */ #include "hw/hw.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h" #include "sysemu/sysemu.h"
hw/char/pl011.c +1 -1
@@ -8,7 +8,7 @@*/ #include "hw/sysbus.h" -#include "char/char.h" +#include "sysemu/char.h" typedef struct { SysBusDevice busdev;
hw/char/sclpconsole.c +1 -1
@@ -18,7 +18,7 @@#include "hw/s390x/sclp.h" #include "hw/s390x/event-facility.h" -#include "char/char.h" +#include "sysemu/char.h" typedef struct ASCIIConsoleData { EventBufferHeader ebh;
hw/char/serial.c +1 -1
@@ -24,7 +24,7 @@*/ #include "hw/char/serial.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/timer.h" #include "exec/address-spaces.h"
hw/char/sh_serial.c +1 -1
@@ -26,7 +26,7 @@*/ #include "hw/hw.h" #include "hw/sh4/sh.h" -#include "char/char.h" +#include "sysemu/char.h" #include "exec/address-spaces.h" //#define DEBUG_SERIAL
hw/char/spapr_vty.c +1 -1
@@ -1,5 +1,5 @@#include "hw/qdev.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/ppc/spapr.h" #include "hw/ppc/spapr_vio.h"
hw/char/virtio-console.c +1 -1
@@ -10,7 +10,7 @@* the COPYING file in the top-level directory. */ -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/error-report.h" #include "trace.h" #include "hw/virtio/virtio-serial.h"
hw/char/xen_console.c +1 -1
@@ -30,7 +30,7 @@#include <sys/mman.h> #include "hw/hw.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/xen/xen_backend.h" #include <xen/io/console.h>
hw/char/xilinx_uartlite.c +1 -1
@@ -23,7 +23,7 @@*/ #include "hw/sysbus.h" -#include "char/char.h" +#include "sysemu/char.h" #define DUART (x)
hw/core/qdev-properties-system.c +1 -1
@@ -17,7 +17,7 @@#include "hw/block/block.h" #include "net/hub.h" #include "qapi/visitor.h" -#include "char/char.h" +#include "sysemu/char.h" static void get_pointer(Object *obj, Visitor *v, Property *prop, const char *(*print)(void *ptr),
hw/core/qdev-properties.c +1 -1
@@ -5,7 +5,7 @@#include "hw/block/block.h" #include "net/hub.h" #include "qapi/visitor.h" -#include "char/char.h" +#include "sysemu/char.h" void qdev_prop_set_after_realize (DeviceState *dev,const char *name,Error **errp)
hw/display/xenfb.c +1 -1
@@ -37,7 +37,7 @@#include "hw/hw.h" #include "ui/console.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/xen/xen_backend.h" #include <xen/event_channel.h>
hw/isa/pc87312.c +1 -1
@@ -27,7 +27,7 @@#include "qemu/error-report.h" #include "sysemu/blockdev.h" #include "sysemu/sysemu.h" -#include "char/char.h" +#include "sysemu/char.h" #include "trace.h"
hw/mips/mips_fulong2e.c +1 -1
@@ -30,7 +30,7 @@#include "hw/mips/mips.h" #include "hw/mips/cpudevs.h" #include "hw/pci/pci.h" -#include "char/char.h" +#include "sysemu/char.h" #include "sysemu/sysemu.h" #include "audio/audio.h" #include "qemu/log.h"
hw/mips/mips_malta.c +1 -1
@@ -34,7 +34,7 @@#include "hw/mips/mips.h" #include "hw/mips/cpudevs.h" #include "hw/pci/pci.h" -#include "char/char.h" +#include "sysemu/char.h" #include "sysemu/sysemu.h" #include "sysemu/arch_init.h" #include "hw/boards.h"
hw/misc/ivshmem.c +1 -1
@@ -24,7 +24,7 @@#include "migration/migration.h" #include "qapi/qmp/qerror.h" #include "qemu/event_notifier.h" -#include "char/char.h" +#include "sysemu/char.h" #include <sys/mman.h> #include <sys/types.h>
hw/net/xgmac.c +1 -1
@@ -25,7 +25,7 @@*/ #include "hw/sysbus.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/log.h" #include "net/net.h" #include "net/checksum.h"
hw/ppc/spapr_events.c +1 -1
@@ -26,7 +26,7 @@*/ #include "cpu.h" #include "sysemu/sysemu.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/qdev.h" #include "sysemu/device_tree.h"
hw/ppc/spapr_rtas.c +1 -1
@@ -26,7 +26,7 @@*/ #include "cpu.h" #include "sysemu/sysemu.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/qdev.h" #include "sysemu/device_tree.h"
hw/sparc/leon3.c +1 -1
@@ -24,7 +24,7 @@#include "hw/hw.h" #include "qemu/timer.h" #include "hw/ptimer.h" -#include "char/char.h" +#include "sysemu/char.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
hw/tpm/tpm_passthrough.c +1 -1
@@ -27,7 +27,7 @@#include "qemu-common.h" #include "qapi/error.h" #include "qemu/sockets.h" -#include "backends/tpm.h" +#include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/tpm/tpm_tis.c +1 -1
@@ -19,7 +19,7 @@* specification. */ -#include "backends/tpm.h" +#include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "block/block.h" #include "exec/address-spaces.h"
hw/usb/ccid-card-emulated.c +1 -1
@@ -32,7 +32,7 @@#include <vcard_emul.h> #include "qemu/thread.h" -#include "char/char.h" +#include "sysemu/char.h" #include "monitor/monitor.h" #include "ccid.h"
hw/usb/ccid-card-passthru.c +1 -1
@@ -8,7 +8,7 @@* See the COPYING file in the top-level directory. */ -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/sockets.h" #include "monitor/monitor.h" #include "ccid.h"
hw/usb/dev-bluetooth.c +1 -1
@@ -21,7 +21,7 @@#include "qemu-common.h" #include "hw/usb.h" #include "hw/usb/desc.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "hw/bt.h" struct USBBtState {
hw/usb/dev-serial.c +1 -1
@@ -12,7 +12,7 @@#include "qemu/error-report.h" #include "hw/usb.h" #include "hw/usb/desc.h" -#include "char/char.h" +#include "sysemu/char.h" //#define DEBUG_Serial
hw/usb/redirect.c +1 -1
@@ -30,7 +30,7 @@#include "monitor/monitor.h" #include "sysemu/sysemu.h" #include "qemu/iov.h" -#include "char/char.h" +#include "sysemu/char.h" #include <dirent.h> #include <sys/ioctl.h>
hw/virtio/virtio-rng.c +1 -1
@@ -14,7 +14,7 @@#include "qapi/qmp/qerror.h" #include "hw/virtio/virtio.h" #include "hw/virtio/virtio-rng.h" -#include "qemu/rng.h" +#include "sysemu/rng.h" static bool is_guest_ready (VirtIORNG *vrng) {
hw/xen/xen_backend.c +1 -1
@@ -35,7 +35,7 @@#include <sys/signal.h> #include "hw/hw.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/log.h" #include "hw/xen/xen_backend.h"
hw/xtensa/xtensa_lx60.c +1 -1
@@ -36,7 +36,7 @@#include "hw/sysbus.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" -#include "char/char.h" +#include "sysemu/char.h" #include "xtensa_bootparam.h" typedef struct LxBoardDesc {
include/hw/virtio/virtio-rng.h +2 -2
@@ -12,8 +12,8 @@#ifndef _QEMU_VIRTIO_RNG_H#define _QEMU_VIRTIO_RNG_H -#include "qemu/rng.h" -#include "qemu/rng-random.h" +#include "sysemu/rng.h" +#include "sysemu/rng-random.h" /* The Virtio ID for the virtio rng device */ #define VIRTIO_ID_RNG 4
include/sysemu/bt.h renamed from include/bt/bt.h +0 -0
include/sysemu/char.h renamed from include/char/char.h +0 -0
include/sysemu/rng-random.h renamed from include/qemu/rng-random.h +0 -0
include/sysemu/rng.h renamed from include/qemu/rng.h +0 -0
include/sysemu/tpm_backend.h renamed from include/backends/tpm.h +0 -0
monitor.c +1 -1
@@ -33,7 +33,7 @@#include "exec/gdbstub.h" #include "net/net.h" #include "net/slirp.h" -#include "char/char.h" +#include "sysemu/char.h" #include "ui/qemu-spice.h" #include "sysemu/sysemu.h" #include "monitor/monitor.h"
net/slirp.c +1 -1
@@ -35,7 +35,7 @@#include "monitor/monitor.h" #include "qemu/sockets.h" #include "slirp/libslirp.h" -#include "char/char.h" +#include "sysemu/char.h" static int get_str_sep (char *buf,int buf_size,const char **pp,int sep) {
qemu-char.c +1 -1
@@ -26,7 +26,7 @@#include "ui/console.h" #include "sysemu/sysemu.h" #include "qemu/timer.h" -#include "char/char.h" +#include "sysemu/char.h" #include "hw/usb.h" #include "qmp-commands.h"
qmp.c +1 -1
@@ -16,7 +16,7 @@#include "qemu-common.h" #include "sysemu/sysemu.h" #include "qmp-commands.h" -#include "char/char.h" +#include "sysemu/char.h" #include "ui/qemu-spice.h" #include "ui/vnc.h" #include "sysemu/kvm.h"
qtest.c +1 -1
@@ -13,7 +13,7 @@#include "sysemu/qtest.h" #include "hw/qdev.h" -#include "char/char.h" +#include "sysemu/char.h" #include "exec/ioport.h" #include "exec/memory.h" #include "hw/irq.h"
slirp/slirp.c +1 -1
@@ -23,7 +23,7 @@*/ #include "qemu-common.h" #include "qemu/timer.h" -#include "char/char.h" +#include "sysemu/char.h" #include "slirp.h" #include "hw/hw.h"
spice-qemu-char.c +1 -1
@@ -1,7 +1,7 @@#include "config-host.h" #include "trace.h" #include "ui/qemu-spice.h" -#include "char/char.h" +#include "sysemu/char.h" #include <spice.h> #include <spice-experimental.h> #include <spice/protocol.h>
tpm.c +1 -1
@@ -15,7 +15,7 @@#include "monitor/monitor.h" #include "qapi/qmp/qerror.h" -#include "backends/tpm.h" +#include "sysemu/tpm_backend.h" #include "sysemu/tpm.h" #include "qemu/config-file.h" #include "qmp-commands.h"
ui/console.c +1 -1
@@ -25,7 +25,7 @@#include "ui/console.h" #include "qemu/timer.h" #include "qmp-commands.h" -#include "char/char.h" +#include "sysemu/char.h" //#define DEBUG_CONSOLE #define DEFAULT_BACKSCROLL 512
ui/gtk.c +1 -1
@@ -62,7 +62,7 @@#include "qmp-commands.h" #include "x_keymap.h" #include "keymaps.h" -#include "char/char.h" +#include "sysemu/char.h" //#define DEBUG_GTK
util/event_notifier-posix.c +1 -1
@@ -12,7 +12,7 @@#include "qemu-common.h" #include "qemu/event_notifier.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/main-loop.h" #ifdef CONFIG_EVENTFD
vl.c +2 -2
@@ -126,7 +126,7 @@ int main(int argc, char **argv)#include "hw/qdev.h" #include "hw/loader.h" #include "monitor/qdev.h" -#include "bt/bt.h" +#include "sysemu/bt.h" #include "net/net.h" #include "net/slirp.h" #include "monitor/monitor.h"
@@ -134,7 +134,7 @@ int main(int argc, char **argv)#include "sysemu/sysemu.h" #include "exec/gdbstub.h" #include "qemu/timer.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/cache-utils.h" #include "sysemu/blockdev.h" #include "hw/block/block.h"
xen-all.c +1 -1
@@ -16,7 +16,7 @@#include "hw/xen/xen_backend.h" #include "qmp-commands.h" -#include "char/char.h" +#include "sysemu/char.h" #include "qemu/range.h" #include "sysemu/xen-mapcache.h" #include "trace.h"
Signature · 1 line
1.8.1.4
PATCH 8/12 include: avoid useless includes of exec/ headers
In reply to Paolo BonziniHeaders in include/exec/ are for the deepest innards of QEMU, they should almost never be included directly.
--- arch_init.c | 1 - dump.c | 6 +++++- hw/alpha/typhoon.c | 1 - hw/ide/ahci.c | 1 - hw/ide/internal.h | 1 - hw/net/vmxnet_tx_pkt.c | 2 +- hw/usb/libhw.c | 2 +- kvm-stub.c | 1 - translate-all.c | 5 ++--- 9 files changed, 9 insertions(+), 11 deletions(-)
arch_init.c +0 -1
@@ -40,7 +40,6 @@#include "hw/audio/audio.h" #include "sysemu/kvm.h" #include "migration/migration.h" -#include "exec/gdbstub.h" #include "hw/i386/smbios.h" #include "exec/address-spaces.h" #include "hw/audio/pcspk.h"
dump.c +5 -1
@@ -23,7 +23,6 @@#include "sysemu/memory_mapping.h" #include "qapi/error.h" #include "qmp-commands.h" -#include "exec/gdbstub.h" static uint16_t cpu_convert_to_target16 (uint16_t val,int endian) {
@@ -268,6 +267,11 @@ static int write_elf64_note(DumpState *s)return 0 ; } +static inline int cpu_index (CPUState *cpu) +{ +return cpu->cpu_index +1 ; +} +static int write_elf64_notes (DumpState *s) {CPUArchState *env;
hw/alpha/typhoon.c +0 -1
@@ -7,7 +7,6 @@*/ #include "cpu.h" -#include "exec/exec-all.h" #include "hw/hw.h" #include "hw/devices.h" #include "sysemu/sysemu.h"
hw/ide/ahci.c +0 -1
@@ -29,7 +29,6 @@#include "monitor/monitor.h" #include "sysemu/dma.h" -#include "exec/cpu-common.h" #include "internal.h" #include <hw/ide/pci.h> #include <hw/ide/ahci.h>
hw/ide/internal.h +0 -1
@@ -8,7 +8,6 @@*/ #include <hw/ide.h> #include <hw/isa/isa.h> -#include "exec/iorange.h" #include "sysemu/dma.h" #include "sysemu/sysemu.h" #include "hw/block/block.h"
hw/net/vmxnet_tx_pkt.c +1 -1
@@ -15,6 +15,7 @@* */ +#include "hw/hw.h" #include "vmxnet_tx_pkt.h" #include "net/eth.h" #include "qemu-common.h"
@@ -22,7 +23,6 @@#include "net/checksum.h" #include "net/tap.h" #include "net/net.h" -#include "exec/cpu-common.h" enum {VMXNET_TX_PKT_VHDR_FRAG =0 ,
hw/usb/libhw.c +1 -1
@@ -20,7 +20,7 @@* THE SOFTWARE. */ #include "qemu-common.h" -#include "exec/cpu-common.h" +#include "hw/hw.h" #include "hw/usb.h" #include "sysemu/dma.h"
kvm-stub.c +0 -1
@@ -14,7 +14,6 @@#include "hw/hw.h" #include "hw/pci/msi.h" #include "cpu.h" -#include "exec/gdbstub.h" #include "sysemu/kvm.h" KVMState *kvm_state;
translate-all.c +2 -3
@@ -35,9 +35,6 @@#include "cpu.h" #include "disas/disas.h" #include "tcg.h" -#include "qemu/timer.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" #if defined(CONFIG_USER_ONLY )#include "qemu.h" #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
@@ -55,6 +52,8 @@#include <libutil.h> #endif #endif +#else +#include "exec/address-spaces.h" #endif #include "exec/cputlb.h"
Signature · 1 line
1.8.1.4
PATCH 9/12 memory: move core typedefs to qemu/typedefs.h
In reply to Paolo Bonzini--- include/exec/memory.h | 5 ----- include/qemu/typedefs.h | 4 ++++ target-ppc/kvm_ppc.h | 2 -- 3 files changed, 4 insertions(+), 7 deletions(-)
include/exec/memory.h +0 -5
@@ -27,7 +27,6 @@#include "qemu/int128.h" typedef struct MemoryRegionOps MemoryRegionOps ; -typedef struct MemoryRegion MemoryRegion ;typedef struct MemoryRegionPortio MemoryRegionPortio ;typedef struct MemoryRegionMmio MemoryRegionMmio ;
@@ -157,8 +156,6 @@ struct MemoryRegionPortio {#define PORTIO_END_OF_LIST () { } -typedef struct AddressSpace AddressSpace ; -/** * AddressSpace: describes a mapping of addresses to #MemoryRegion objects */
@@ -173,8 +170,6 @@ struct AddressSpace {QTAILQ_ENTRY (AddressSpace) address_spaces_link; }; -typedef struct MemoryRegionSection MemoryRegionSection ; -/** * MemoryRegionSection: describes a fragment of a #MemoryRegion *
include/qemu/typedefs.h +4 -0
@@ -18,6 +18,10 @@ typedef struct DeviceState DeviceState;typedef struct BusState BusState ;typedef struct BusClass BusClass ; +typedef struct AddressSpace AddressSpace ; +typedef struct MemoryRegion MemoryRegion ; +typedef struct MemoryRegionSection MemoryRegionSection ; +typedef struct NICInfo NICInfo ;typedef struct HCIInfo HCIInfo ;typedef struct AudioState AudioState ;
target-ppc/kvm_ppc.h +0 -2
@@ -9,8 +9,6 @@#ifndef __KVM_PPC_H__#define __KVM_PPC_H__ -#include "exec/memory.h" -#define TYPE_HOST_POWERPC_CPU "host-" TYPE_POWERPC_CPUvoid kvmppc_init (void );
Signature · 1 line
1.8.1.4
PATCH 10/12 exec: remove useless declarations from memory-internal.h
In reply to Paolo Bonzini--- include/exec/memory-internal.h | 6 ------ 1 file changed, 6 deletions(-)
include/exec/memory-internal.h +0 -6
@@ -49,12 +49,6 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr);void qemu_ram_free (ram_addr_t addr);void qemu_ram_free_from_ptr (ram_addr_t addr); -struct MemoryRegion ; -struct MemoryRegionSection ; - -void qemu_register_coalesced_mmio (hwaddr addr,ram_addr_t size); -void qemu_unregister_coalesced_mmio (hwaddr addr,ram_addr_t size); -#define VGA_DIRTY_FLAG 0x01#define CODE_DIRTY_FLAG 0x02#define MIGRATION_DIRTY_FLAG 0x08
Signature · 1 line
1.8.1.4
PATCH 11/12 hw: move memory API headers to hw/
In reply to Paolo BonziniThese are the only parts of include/exec/ that is used in hardware models.
---
arch_init.c | 2 +-
cputlb.c | 4 ++--
exec.c | 4 ++--
hw/acpi/ich9.c | 2 +-
hw/acpi/piix4.c | 4 ++--
hw/alpha/typhoon.c | 2 +-
hw/arm/collie.c | 2 +-
hw/arm/exynos4_boards.c | 2 +-
hw/arm/gumstix.c | 2 +-
hw/arm/highbank.c | 2 +-
hw/arm/integratorcp.c | 2 +-
hw/arm/kzm.c | 2 +-
hw/arm/mainstone.c | 2 +-
hw/arm/musicpal.c | 2 +-
hw/arm/nseries.c | 2 +-
hw/arm/omap_sx1.c | 2 +-
hw/arm/palm.c | 2 +-
hw/arm/realview.c | 2 +-
hw/arm/spitz.c | 2 +-
hw/arm/stellaris.c | 2 +-
hw/arm/strongarm.h | 2 +-
hw/arm/tosa.c | 2 +-
hw/arm/versatilepb.c | 2 +-
hw/arm/vexpress.c | 2 +-
hw/arm/xilinx_zynq.c | 2 +-
hw/arm/z2.c | 2 +-
hw/block/onenand.c | 4 ++--
hw/block/pflash_cfi01.c | 2 +-
hw/block/pflash_cfi02.c | 2 +-
hw/char/mcf_uart.c | 2 +-
hw/char/omap_uart.c | 2 +-
hw/char/serial.c | 2 +-
hw/char/sh_serial.c | 2 +-
hw/core/loader.c | 4 ++--
hw/core/sysbus.c | 2 +-
hw/cris/axis_dev88.c | 2 +-
hw/display/framebuffer.h | 2 +-
hw/display/vga_int.h | 2 +-
hw/dma/etraxfs_dma.c | 2 +-
hw/i386/pc.c | 4 ++--
hw/i386/pc_piix.c | 4 ++--
hw/i386/pc_q35.c | 2 +-
hw/intc/armv7m_nvic.c | 2 +-
hw/isa/isa-bus.c | 2 +-
hw/isa/isa_mmio.c | 2 +-
hw/isa/lpc_ich9.c | 2 +-
hw/isa/vt82c686.c | 2 +-
hw/lm32/lm32_boards.c | 2 +-
hw/lm32/milkymist.c | 2 +-
hw/m68k/an5206.c | 2 +-
hw/m68k/dummy_m68k.c | 2 +-
hw/m68k/mcf5206.c | 2 +-
hw/m68k/mcf5208.c | 2 +-
hw/m68k/mcf_intc.c | 2 +-
hw/microblaze/petalogix_ml605_mmu.c | 2 +-
hw/microblaze/petalogix_s3adsp1800_mmu.c | 2 +-
hw/mips/gt64xxx_pci.c | 2 +-
hw/mips/mips_fulong2e.c | 2 +-
hw/mips/mips_jazz.c | 2 +-
hw/mips/mips_malta.c | 2 +-
hw/mips/mips_mipssim.c | 2 +-
hw/mips/mips_r4k.c | 2 +-
hw/misc/omap_gpmc.c | 4 ++--
hw/misc/vfio.c | 4 ++--
hw/moxie/moxiesim.c | 2 +-
hw/net/mcf_fec.c | 2 +-
hw/net/ne2000-isa.c | 2 +-
hw/net/pcnet.h | 2 +-
hw/openrisc/openrisc_sim.c | 2 +-
hw/pci-bridge/pci_bridge_dev.c | 2 +-
hw/pci-host/apb.c | 2 +-
hw/pci-host/bonito.c | 2 +-
hw/pci-host/ppce500.c | 2 +-
hw/pci-host/prep.c | 2 +-
hw/pci-host/versatile.c | 2 +-
hw/pci/pci.c | 2 +-
hw/pci/pcie_host.c | 2 +-
hw/ppc/e500.c | 2 +-
hw/ppc/mac.h | 2 +-
hw/ppc/mac_newworld.c | 2 +-
hw/ppc/mac_oldworld.c | 2 +-
hw/ppc/ppc405_boards.c | 2 +-
hw/ppc/ppc405_uc.c | 2 +-
hw/ppc/ppc440_bamboo.c | 2 +-
hw/ppc/ppc4xx_devs.c | 2 +-
hw/ppc/ppc4xx_pci.c | 2 +-
hw/ppc/prep.c | 2 +-
hw/ppc/spapr.c | 2 +-
hw/ppc/spapr_iommu.c | 2 +-
hw/ppc/spapr_pci.c | 2 +-
hw/ppc/virtex_ml507.c | 2 +-
hw/s390x/s390-virtio-ccw.c | 2 +-
hw/s390x/s390-virtio.c | 2 +-
hw/s390x/sclp.c | 2 +-
hw/sh4/r2d.c | 2 +-
hw/sh4/sh7750.c | 2 +-
hw/sh4/sh_pci.c | 2 +-
hw/sh4/shix.c | 2 +-
hw/sparc/leon3.c | 2 +-
hw/sparc64/sun4u.c | 2 +-
hw/timer/m48t59.c | 2 +-
hw/timer/sh_timer.c | 2 +-
hw/tpm/tpm_int.h | 2 +-
hw/tpm/tpm_tis.c | 2 +-
hw/unicore32/puv3.c | 2 +-
hw/virtio/dataplane/hostmem.c | 2 +-
hw/virtio/vhost.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/xen/xen_platform.c | 2 +-
hw/xen/xen_pt.c | 2 +-
hw/xtensa/xtensa_lx60.c | 4 ++--
hw/xtensa/xtensa_sim.c | 4 ++--
include/exec/softmmu_template.h | 2 +-
include/{exec => hw}/address-spaces.h | 2 +-
include/hw/arm/arm.h | 2 +-
include/hw/arm/exynos4210.h | 2 +-
include/hw/arm/omap.h | 2 +-
include/hw/arm/pxa.h | 2 +-
include/hw/arm/soc_dma.h | 2 +-
include/hw/block/flash.h | 2 +-
include/hw/char/serial.h | 2 +-
include/hw/hw.h | 2 +-
include/hw/i386/apic_internal.h | 2 +-
include/hw/i386/ioapic_internal.h | 2 +-
include/hw/i386/pc.h | 6 +++---
include/hw/ide.h | 2 +-
include/{exec => hw}/ioport.h | 2 +-
include/{exec => hw}/iorange.h | 0
include/hw/isa/apm.h | 2 +-
include/hw/isa/isa.h | 4 ++--
include/{exec => hw}/memory.h | 4 ++--
include/hw/mips/mips.h | 2 +-
include/hw/pci-host/pam.h | 2 +-
include/hw/pci/pci.h | 2 +-
include/hw/pci/pcie_host.h | 2 +-
include/hw/pci/shpc.h | 2 +-
include/hw/ppc/mac_dbdma.h | 2 +-
include/hw/sh4/sh_intc.h | 2 +-
include/hw/sysbus.h | 2 +-
include/hw/virtio/dataplane/hostmem.h | 2 +-
include/hw/virtio/vhost.h | 2 +-
include/sysemu/dma.h | 2 +-
ioport.c | 4 ++--
kvm-all.c | 4 ++--
memory.c | 6 +++---
monitor.c | 2 +-
qtest.c | 4 ++--
savevm.c | 2 +-
target-arm/kvm_arm.h | 2 +-
target-i386/ioport-user.c | 2 +-
target-i386/kvm.c | 2 +-
target-i386/misc_helper.c | 2 +-
target-s390x/misc_helper.c | 2 +-
target-sparc/mmu_helper.c | 2 +-
translate-all.c | 2 +-
xen-all.c | 2 +-
xen-stub.c | 2 +-
157 files changed, 176 insertions(+), 176 deletions(-)
rename include/{exec => hw}/address-spaces.h (97%)
rename include/{exec => hw}/ioport.h (99%)
rename include/{exec => hw}/iorange.h (100%)
rename include/{exec => hw}/memory.h (99%)arch_init.c +1 -1
@@ -41,7 +41,7 @@#include "sysemu/kvm.h" #include "migration/migration.h" #include "hw/i386/smbios.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/audio/pcspk.h" #include "migration/page_cache.h" #include "qemu/config-file.h"
cputlb.c +2 -2
@@ -20,8 +20,8 @@#include "config.h" #include "cpu.h" #include "exec/exec-all.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include "exec/cputlb.h"
exec.c +2 -2
@@ -34,9 +34,9 @@#include "hw/xen/xen.h" #include "qemu/timer.h" #include "qemu/config-file.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "sysemu/dma.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #if defined(CONFIG_USER_ONLY )#include <qemu.h> #else /* !CONFIG_USER_ONLY */
hw/acpi/ich9.c +1 -1
@@ -30,7 +30,7 @@#include "sysemu/sysemu.h" #include "hw/acpi/acpi.h" #include "sysemu/kvm.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/i386/ich9.h"
hw/acpi/piix4.c +2 -2
@@ -26,9 +26,9 @@#include "hw/acpi/acpi.h" #include "sysemu/sysemu.h" #include "qemu/range.h" -#include "exec/ioport.h" +#include "hw/ioport.h" #include "hw/nvram/fw_cfg.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG
hw/alpha/typhoon.c +1 -1
@@ -11,7 +11,7 @@#include "hw/devices.h" #include "sysemu/sysemu.h" #include "alpha_sys.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define TYPE_TYPHOON_PCI_HOST_BRIDGE "typhoon-pcihost"
hw/arm/collie.c +1 -1
@@ -16,7 +16,7 @@#include "hw/arm/arm.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static struct arm_boot_info collie_binfo = { .loader_start =SA_SDCS0 ,
hw/arm/exynos4_boards.c +1 -1
@@ -25,7 +25,7 @@#include "hw/sysbus.h" #include "net/net.h" #include "hw/arm/arm.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/arm/exynos4210.h" #include "hw/boards.h"
hw/arm/gumstix.c +1 -1
@@ -41,7 +41,7 @@#include "hw/devices.h" #include "hw/boards.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static const int sector_len =128 *1024 ;
hw/arm/highbank.c +1 -1
@@ -26,7 +26,7 @@#include "hw/boards.h" #include "hw/sysbus.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define SMP_BOOT_ADDR 0x100#define SMP_BOOT_REG 0x40
hw/arm/integratorcp.c +1 -1
@@ -12,7 +12,7 @@#include "hw/boards.h" #include "hw/arm/arm.h" #include "net/net.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "sysemu/sysemu.h" typedef struct {
hw/arm/kzm.c +1 -1
@@ -14,7 +14,7 @@*/ #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/hw.h" #include "hw/arm/arm.h" #include "hw/devices.h"
hw/arm/mainstone.c +1 -1
@@ -20,7 +20,7 @@#include "hw/block/flash.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* Device addresses */ #define MST_FPGA_PHYS 0x08000000
hw/arm/musicpal.c +1 -1
@@ -23,7 +23,7 @@#include "ui/console.h" #include "hw/i2c/i2c.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "ui/pixel_ops.h" #define MP_MISC_BASE 0x80002000
hw/arm/nseries.c +1 -1
@@ -33,7 +33,7 @@#include "hw/loader.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* Nokia N8x0 support */ struct n800_s {
hw/arm/omap_sx1.c +1 -1
@@ -32,7 +32,7 @@#include "hw/arm/arm.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /*****************************************************************************/ /* Siemens SX1 Cellphone V1 */
hw/arm/palm.c +1 -1
@@ -25,7 +25,7 @@#include "hw/arm/arm.h" #include "hw/devices.h" #include "hw/loader.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static uint32_t static_readb (void *opaque,hwaddr offset) {
hw/arm/realview.c +1 -1
@@ -17,7 +17,7 @@#include "hw/boards.h" #include "hw/i2c/i2c.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define SMP_BOOT_ADDR 0xe0000000#define SMP_BOOTREG_ADDR 0x10000030
hw/arm/spitz.c +1 -1
@@ -27,7 +27,7 @@#include "hw/boards.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #undef REG_FMT#define REG_FMT "0x%02lx"
hw/arm/stellaris.c +1 -1
@@ -15,7 +15,7 @@#include "hw/i2c/i2c.h" #include "net/net.h" #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define GPIO_A 0#define GPIO_B 1
hw/arm/strongarm.h +1 -1
@@ -1,7 +1,7 @@#ifndef _STRONGARM_H#define _STRONGARM_H -#include "exec/memory.h" +#include "hw/memory.h" #define SA_CS0 0x00000000#define SA_CS1 0x08000000
hw/arm/tosa.c +1 -1
@@ -23,7 +23,7 @@#include "hw/ssi.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define TOSA_RAM 0x04000000#define TOSA_ROM 0x00800000
hw/arm/versatilepb.c +1 -1
@@ -16,7 +16,7 @@#include "hw/i2c/i2c.h" #include "hw/boards.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/block/flash.h" #define VERSATILE_FLASH_ADDR 0x34000000
hw/arm/vexpress.c +1 -1
@@ -28,7 +28,7 @@#include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "sysemu/blockdev.h" #include "hw/block/flash.h"
hw/arm/xilinx_zynq.c +1 -1
@@ -18,7 +18,7 @@#include "hw/sysbus.h" #include "hw/arm/arm.h" #include "net/net.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/block/flash.h"
hw/arm/z2.c +1 -1
@@ -23,7 +23,7 @@#include "sysemu/blockdev.h" #include "ui/console.h" #include "audio/audio.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #ifdef DEBUG_Z2 #define DPRINTF (fmt, ...) \
hw/block/onenand.c +2 -2
@@ -23,8 +23,8 @@#include "hw/block/flash.h" #include "hw/irq.h" #include "sysemu/blockdev.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include "hw/sysbus.h" #include "qemu/error-report.h"
hw/block/pflash_cfi01.c +1 -1
@@ -40,7 +40,7 @@#include "hw/block/flash.h" #include "block/block.h" #include "qemu/timer.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "qemu/host-utils.h" #include "hw/sysbus.h"
hw/block/pflash_cfi02.c +1 -1
@@ -39,7 +39,7 @@#include "hw/block/flash.h" #include "qemu/timer.h" #include "block/block.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "qemu/host-utils.h" #include "hw/sysbus.h"
hw/char/mcf_uart.c +1 -1
@@ -8,7 +8,7 @@#include "hw/hw.h" #include "hw/m68k/mcf.h" #include "sysemu/char.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef struct { MemoryRegion iomem;
hw/char/omap_uart.c +1 -1
@@ -21,7 +21,7 @@#include "hw/hw.h" #include "hw/arm/omap.h" #include "hw/char/serial.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* UARTs */ struct omap_uart_s {
hw/char/serial.c +1 -1
@@ -26,7 +26,7 @@#include "hw/char/serial.h" #include "sysemu/char.h" #include "qemu/timer.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_SERIAL
hw/char/sh_serial.c +1 -1
@@ -27,7 +27,7 @@#include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/char.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_SERIAL
hw/core/loader.c +2 -2
@@ -49,8 +49,8 @@#include "uboot_image.h" #include "hw/loader.h" #include "hw/nvram/fw_cfg.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include <zlib.h>
hw/core/sysbus.c +1 -1
@@ -19,7 +19,7 @@#include "hw/sysbus.h" #include "monitor/monitor.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static void sysbus_dev_print (Monitor *mon,DeviceState *dev,int indent);static char *sysbus_get_fw_dev_path (DeviceState *dev);
hw/cris/axis_dev88.c +1 -1
@@ -31,7 +31,7 @@#include "elf.h" #include "boot.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define D (x)#define DNAND (x)
hw/display/framebuffer.h +1 -1
@@ -1,7 +1,7 @@#ifndef QEMU_FRAMEBUFFER_H #define QEMU_FRAMEBUFFER_H -#include "exec/memory.h" +#include "hw/memory.h" /* Framebuffer device helper routines. */
hw/display/vga_int.h +1 -1
@@ -26,7 +26,7 @@#include <hw/hw.h> #include "qapi/error.h" -#include "exec/memory.h" +#include "hw/memory.h" #define ST01_V_RETRACE 0x08#define ST01_DISP_ENABLE 0x01
hw/dma/etraxfs_dma.c +1 -1
@@ -24,7 +24,7 @@#include <stdio.h> #include <sys/time.h> #include "hw/hw.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "qemu-common.h" #include "sysemu/sysemu.h"
hw/i386/pc.c +2 -2
@@ -47,8 +47,8 @@#include "sysemu/blockdev.h" #include "hw/block/block.h" #include "ui/qemu-spice.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include "sysemu/arch_init.h" #include "qemu/bitmap.h" #include "qemu/config-file.h"
hw/i386/pc_piix.c +2 -2
@@ -41,8 +41,8 @@#include "sysemu/blockdev.h" #include "hw/i2c/smbus.h" #include "hw/xen/xen.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include "cpu.h" #ifdef CONFIG_XEN # include <xen/hvm/hvm_info_table.h>
hw/i386/pc_q35.c +1 -1
@@ -36,7 +36,7 @@#include "sysemu/kvm.h" #include "hw/kvm/clock.h" #include "hw/pci-host/q35.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/i386/ich9.h" #include "hw/ide/pci.h" #include "hw/ide/ahci.h"
hw/intc/armv7m_nvic.c +1 -1
@@ -13,7 +13,7 @@#include "hw/sysbus.h" #include "qemu/timer.h" #include "hw/arm/arm.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "gic_internal.h" typedef struct {
hw/isa/isa-bus.c +1 -1
@@ -21,7 +21,7 @@#include "hw/sysbus.h" #include "sysemu/sysemu.h" #include "hw/isa/isa.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static ISABus *isabus;hwaddr isa_mem_base =0 ;
hw/isa/isa_mmio.c +1 -1
@@ -24,7 +24,7 @@#include "hw/hw.h" #include "hw/isa/isa.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static void isa_mmio_writeb (void *opaque,hwaddr addr,uint32_t val)
hw/isa/lpc_ich9.c +1 -1
@@ -42,7 +42,7 @@#include "hw/acpi/acpi.h" #include "hw/acpi/ich9.h" #include "hw/pci/pci_bus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "sysemu/sysemu.h" static int ich9_lpc_sci_irq (ICH9LPCState *lpc);
hw/isa/vt82c686.c +1 -1
@@ -24,7 +24,7 @@#include "hw/i2c/pm_smbus.h" #include "sysemu/sysemu.h" #include "qemu/timer.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_VT82C686B
hw/lm32/lm32_boards.c +1 -1
@@ -27,7 +27,7 @@#include "elf.h" #include "lm32_hwsetup.h" #include "lm32.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef struct { LM32CPU *cpu;
hw/lm32/milkymist.c +1 -1
@@ -28,7 +28,7 @@#include "sysemu/blockdev.h" #include "milkymist-hw.h" #include "lm32.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define BIOS_FILENAME "mmone-bios.bin"#define BIOS_OFFSET 0x00860000
hw/m68k/an5206.c +1 -1
@@ -11,7 +11,7 @@#include "hw/boards.h" #include "hw/loader.h" #include "elf.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define KERNEL_LOAD_ADDR 0x10000#define AN5206_MBAR_ADDR 0x10000000
hw/m68k/dummy_m68k.c +1 -1
@@ -10,7 +10,7 @@#include "hw/boards.h" #include "hw/loader.h" #include "elf.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define KERNEL_LOAD_ADDR 0x10000
hw/m68k/mcf5206.c +1 -1
@@ -10,7 +10,7 @@#include "qemu/timer.h" #include "hw/ptimer.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* General purpose timer module. */ typedef struct {
hw/m68k/mcf5208.c +1 -1
@@ -14,7 +14,7 @@#include "hw/boards.h" #include "hw/loader.h" #include "elf.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define SYS_FREQ 66000000
hw/m68k/mcf_intc.c +1 -1
@@ -7,7 +7,7 @@*/ #include "hw/hw.h" #include "hw/m68k/mcf.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef struct { MemoryRegion iomem;
hw/microblaze/petalogix_ml605_mmu.c +1 -1
@@ -35,7 +35,7 @@#include "hw/xilinx.h" #include "sysemu/blockdev.h" #include "hw/char/serial.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/ssi.h" #include "boot.h"
hw/microblaze/petalogix_s3adsp1800_mmu.c +1 -1
@@ -32,7 +32,7 @@#include "hw/boards.h" #include "hw/xilinx.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "boot.h" #include "pic_cpu.h"
hw/mips/gt64xxx_pci.c +1 -1
@@ -27,7 +27,7 @@#include "hw/pci/pci.h" #include "hw/pci/pci_host.h" #include "hw/i386/pc.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG
hw/mips/mips_fulong2e.c +1 -1
@@ -42,7 +42,7 @@#include "hw/timer/mc146818rtc.h" #include "hw/timer/i8254.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define DEBUG_FULONG2E_INIT
hw/mips/mips_jazz.c +1 -1
@@ -41,7 +41,7 @@#include "hw/audio/pcspk.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" enum jazz_model_e {
hw/mips/mips_malta.c +1 -1
@@ -46,7 +46,7 @@#include "hw/timer/mc146818rtc.h" #include "hw/timer/i8254.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/sysbus.h" /* SysBusDevice */ //#define DEBUG_BOARD_INIT
hw/mips/mips_mipssim.c +1 -1
@@ -36,7 +36,7 @@#include "hw/loader.h" #include "elf.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static struct _loaderparams { int ram_size;
hw/mips/mips_r4k.c +1 -1
@@ -25,7 +25,7 @@#include "hw/timer/mc146818rtc.h" #include "hw/timer/i8254.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define MAX_IDE_BUS 2
hw/misc/omap_gpmc.c +2 -2
@@ -21,8 +21,8 @@#include "hw/hw.h" #include "hw/block/flash.h" #include "hw/arm/omap.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" /* General-Purpose Memory Controller */ struct omap_gpmc_s {
hw/misc/vfio.c +2 -2
@@ -27,8 +27,8 @@#include <unistd.h> #include "config.h" -#include "exec/address-spaces.h" -#include "exec/memory.h" +#include "hw/address-spaces.h" +#include "hw/memory.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" #include "hw/pci/pci.h"
hw/moxie/moxiesim.c +1 -1
@@ -33,7 +33,7 @@#include "hw/boards.h" #include "hw/loader.h" #include "hw/char/serial.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define PHYS_MEM_BASE 0x80000000
hw/net/mcf_fec.c +1 -1
@@ -10,7 +10,7 @@#include "hw/m68k/mcf.h" /* For crc32 */ #include <zlib.h> -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_FEC 1
hw/net/ne2000-isa.c +1 -1
@@ -27,7 +27,7 @@#include "hw/qdev.h" #include "net/net.h" #include "ne2000.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef struct ISANE2000State { ISADevice dev;
hw/net/pcnet.h +1 -1
@@ -7,7 +7,7 @@#define PCNET_LOOPTEST_CRC 1#define PCNET_LOOPTEST_NOCRC 2 -#include "exec/memory.h" +#include "hw/memory.h" /* BUS CONFIGURATION REGISTERS */ #define BCR_MSRDA 0
hw/openrisc/openrisc_sim.c +1 -1
@@ -24,7 +24,7 @@#include "hw/char/serial.h" #include "net/net.h" #include "hw/loader.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h" #include "sysemu/qtest.h"
hw/pci-bridge/pci_bridge_dev.c +1 -1
@@ -24,7 +24,7 @@#include "hw/pci/msi.h" #include "hw/pci/shpc.h" #include "hw/pci/slotid_cap.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/pci/pci_bus.h" struct PCIBridgeDev {
hw/pci-host/apb.c +1 -1
@@ -33,7 +33,7 @@#include "hw/pci/pci_bus.h" #include "hw/pci-host/apb.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* debug APB */ //#define DEBUG_APB
hw/pci-host/bonito.c +1 -1
@@ -45,7 +45,7 @@#include "hw/mips/mips.h" #include "hw/pci/pci_host.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_BONITO
hw/pci-host/ppce500.c +1 -1
@@ -317,7 +317,7 @@ static const VMStateDescription vmstate_ppce500_pci = { } }; -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static int e500_pcihost_bridge_initfn (PCIDevice *d) {
hw/pci-host/prep.c +1 -1
@@ -28,7 +28,7 @@#include "hw/pci/pci_bus.h" #include "hw/pci/pci_host.h" #include "hw/i386/pc.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define TYPE_RAVEN_PCI_DEVICE "raven"#define TYPE_RAVEN_PCI_HOST_BRIDGE "raven-pcihost"
hw/pci-host/versatile.c +1 -1
@@ -10,7 +10,7 @@#include "hw/sysbus.h" #include "hw/pci/pci.h" #include "hw/pci/pci_host.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef struct { SysBusDevice busdev;
hw/pci/pci.c +1 -1
@@ -33,7 +33,7 @@#include "qmp-commands.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_PCI #ifdef DEBUG_PCI
hw/pci/pcie_host.c +1 -1
@@ -22,7 +22,7 @@#include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/pcie_host.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* * PCI express mmcfig address
hw/ppc/e500.c +1 -1
@@ -33,7 +33,7 @@#include "hw/loader.h" #include "elf.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "qemu/host-utils.h" #include "hw/pci-host/ppce500.h"
hw/ppc/mac.h +1 -1
@@ -25,7 +25,7 @@#if !defined(__PPC_MAC_H__)#define __PPC_MAC_H__ -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/sysbus.h" #include "hw/ide/internal.h" #include "hw/input/adb.h"
hw/ppc/mac_newworld.c +1 -1
@@ -66,7 +66,7 @@#include "kvm_ppc.h" #include "hw/usb.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/sysbus.h" #define MAX_IDE_BUS 2
hw/ppc/mac_oldworld.c +1 -1
@@ -41,7 +41,7 @@#include "sysemu/kvm.h" #include "kvm_ppc.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define MAX_IDE_BUS 2#define CFG_ADDR 0xf0000510
hw/ppc/ppc405_boards.c +1 -1
@@ -32,7 +32,7 @@#include "qemu/log.h" #include "hw/loader.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define BIOS_FILENAME "ppc405_rom.bin"#define BIOS_SIZE (2048 * 1024)
hw/ppc/ppc405_uc.c +1 -1
@@ -28,7 +28,7 @@#include "qemu/timer.h" #include "sysemu/sysemu.h" #include "qemu/log.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define DEBUG_OPBA #define DEBUG_SDRAM
hw/ppc/ppc440_bamboo.c +1 -1
@@ -22,7 +22,7 @@#include "sysemu/device_tree.h" #include "hw/loader.h" #include "elf.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/char/serial.h" #include "hw/ppc/ppc.h" #include "ppc405.h"
hw/ppc/ppc4xx_devs.c +1 -1
@@ -25,7 +25,7 @@#include "hw/ppc/ppc.h" #include "hw/ppc/ppc4xx.h" #include "qemu/log.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_MMIO //#define DEBUG_UNASSIGNED
hw/ppc/ppc4xx_pci.c +1 -1
@@ -24,7 +24,7 @@#include "hw/ppc/ppc4xx.h" #include "hw/pci/pci.h" #include "hw/pci/pci_host.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #undef DEBUG#ifdef DEBUG
hw/ppc/prep.c +1 -1
@@ -40,7 +40,7 @@#include "hw/isa/pc87312.h" #include "sysemu/blockdev.h" #include "sysemu/arch_init.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define HARD_DEBUG_PPC_IO //#define DEBUG_PPC_IO
hw/ppc/spapr.c +1 -1
@@ -47,7 +47,7 @@#include "kvm_ppc.h" #include "hw/pci/pci.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/usb.h" #include "qemu/config-file.h"
hw/ppc/spapr_iommu.c +1 -1
@@ -21,7 +21,7 @@#include "hw/qdev.h" #include "kvm_ppc.h" #include "sysemu/dma.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/ppc/spapr.h"
hw/ppc/spapr_pci.c +1 -1
@@ -29,7 +29,7 @@#include "hw/pci/pci_host.h" #include "hw/ppc/spapr.h" #include "hw/pci-host/spapr.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include <libfdt.h> #include "trace.h"
hw/ppc/virtex_ml507.c +1 -1
@@ -33,7 +33,7 @@#include "hw/loader.h" #include "elf.h" #include "qemu/log.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/ppc/ppc.h" #include "hw/ppc/ppc4xx.h"
hw/s390x/s390-virtio-ccw.c +1 -1
@@ -10,7 +10,7 @@*/ #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "s390-virtio.h" #include "hw/s390x/sclp.h" #include "ioinst.h"
hw/s390x/s390-virtio.c +1 -1
@@ -32,7 +32,7 @@#include "hw/virtio/virtio.h" #include "hw/sysbus.h" #include "sysemu/kvm.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/s390x/s390-virtio-bus.h" #include "hw/s390x/sclp.h"
hw/s390x/sclp.c +1 -1
@@ -14,7 +14,7 @@#include "cpu.h" #include "sysemu/kvm.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/s390x/sclp.h"
hw/sh4/r2d.c +1 -1
@@ -37,7 +37,7 @@#include "hw/usb.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define FLASH_BASE 0x00000000#define FLASH_SIZE 0x02000000
hw/sh4/sh7750.c +1 -1
@@ -30,7 +30,7 @@#include "sh7750_regnames.h" #include "hw/sh4/sh_intc.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define NB_DEVICES 4
hw/sh4/sh_pci.c +1 -1
@@ -26,7 +26,7 @@#include "hw/pci/pci.h" #include "hw/pci/pci_host.h" #include "qemu/bswap.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef struct SHPCIState { SysBusDevice busdev;
hw/sh4/shix.c +1 -1
@@ -32,7 +32,7 @@#include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define BIOS_FILENAME "shix_bios.bin"#define BIOS_ADDRESS 0xA0000000
hw/sparc/leon3.c +1 -1
@@ -30,7 +30,7 @@#include "hw/loader.h" #include "elf.h" #include "trace.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/sparc/grlib.h"
hw/sparc64/sun4u.c +1 -1
@@ -39,7 +39,7 @@#include "hw/loader.h" #include "elf.h" #include "sysemu/blockdev.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_IRQ //#define DEBUG_EBUS
hw/timer/m48t59.c +1 -1
@@ -27,7 +27,7 @@#include "sysemu/sysemu.h" #include "hw/sysbus.h" #include "hw/isa/isa.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" //#define DEBUG_NVRAM
hw/timer/sh_timer.c +1 -1
@@ -11,7 +11,7 @@#include "hw/hw.h" #include "hw/sh4/sh.h" #include "qemu/timer.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/ptimer.h" //#define DEBUG_TIMER
hw/tpm/tpm_int.h +1 -1
@@ -12,7 +12,7 @@#ifndef TPM_TPM_INT_H #define TPM_TPM_INT_H -#include "exec/memory.h" +#include "hw/memory.h" #include "tpm_tis.h" /* overall state of the TPM interface */
hw/tpm/tpm_tis.c +1 -1
@@ -22,7 +22,7 @@#include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "block/block.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/pci/pci_ids.h"
hw/unicore32/puv3.c +1 -1
@@ -12,7 +12,7 @@#include "qemu-common.h" #include "ui/console.h" #include "elf.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/sysbus.h" #include "hw/boards.h" #include "hw/loader.h"
hw/virtio/dataplane/hostmem.c +1 -1
@@ -11,7 +11,7 @@* */ -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "hw/virtio/dataplane/hostmem.h" static int hostmem_lookup_cmp (const void *phys_,const void *region_)
hw/virtio/vhost.c +1 -1
@@ -18,7 +18,7 @@#include "hw/hw.h" #include "qemu/range.h" #include <linux/vhost.h> -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" static void vhost_dev_sync_region(struct vhost_dev *dev, MemoryRegionSection *section,
hw/virtio/virtio-balloon.c +1 -1
@@ -22,7 +22,7 @@#include "sysemu/balloon.h" #include "hw/virtio/virtio-balloon.h" #include "sysemu/kvm.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include "qapi/visitor.h" #if defined(__linux__)
hw/xen/xen_platform.c +1 -1
@@ -32,7 +32,7 @@#include "hw/xen/xen_common.h" #include "hw/xen/xen_backend.h" #include "trace.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include <xenguest.h>
hw/xen/xen_pt.c +1 -1
@@ -59,7 +59,7 @@#include "hw/xen/xen_backend.h" #include "xen_pt.h" #include "qemu/range.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #define XEN_PT_NR_IRQS (256)static uint8_t xen_pt_mapped_machine_irq[XEN_PT_NR_IRQS ] = {0 };
hw/xtensa/xtensa_lx60.c +2 -2
@@ -29,8 +29,8 @@#include "hw/boards.h" #include "hw/loader.h" #include "elf.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include "hw/char/serial.h" #include "net/net.h" #include "hw/sysbus.h"
hw/xtensa/xtensa_sim.c +2 -2
@@ -29,8 +29,8 @@#include "hw/boards.h" #include "hw/loader.h" #include "elf.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" static uint64_t translate_phys_addr (void *env,uint64_t addr) {
include/exec/softmmu_template.h +1 -1
@@ -22,7 +22,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/timer.h" -#include "exec/memory.h" +#include "hw/memory.h" #define DATA_SIZE (1 << SHIFT)
include/hw/address-spaces.h renamed from include/exec/address-spaces.h +1 -1
@@ -19,7 +19,7 @@* you're one of them. */ -#include "exec/memory.h" +#include "hw/memory.h" #ifndef CONFIG_USER_ONLY
include/hw/arm/arm.h +1 -1
@@ -11,7 +11,7 @@#ifndef ARM_MISC_H #define ARM_MISC_H 1 -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/irq.h" /* The CPU is also modelled as an interrupt controller. */
include/hw/arm/exynos4210.h +1 -1
@@ -27,7 +27,7 @@#define EXYNOS4210_H_ #include "qemu-common.h" -#include "exec/memory.h" +#include "hw/memory.h" #define EXYNOS4210_NCPUS 2
include/hw/arm/omap.h +1 -1
@@ -17,7 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #ifndef hw_omap_h -#include "exec/memory.h" +#include "hw/memory.h" # define hw_omap_h "omap.h"#include "hw/irq.h"
include/hw/arm/pxa.h +1 -1
@@ -9,7 +9,7 @@#ifndef PXA_H # define PXA_H "pxa.h" -#include "exec/memory.h" +#include "hw/memory.h" /* Interrupt numbers */ # define PXA2XX_PIC_SSP3 0
include/hw/arm/soc_dma.h +1 -1
@@ -22,7 +22,7 @@#define HW_SOC_DMA_H 1 -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/irq.h" struct soc_dma_s ;
include/hw/block/flash.h +1 -1
@@ -3,7 +3,7 @@/* NOR flash devices */ -#include "exec/memory.h" +#include "hw/memory.h" typedef struct pflash_t pflash_t ;
include/hw/char/serial.h +1 -1
@@ -27,7 +27,7 @@#include "hw/hw.h" #include "sysemu/sysemu.h" -#include "exec/memory.h" +#include "hw/memory.h" #define UART_FIFO_LENGTH 16/* 16550A Fifo Length */
include/hw/hw.h +1 -1
@@ -8,7 +8,7 @@#include "exec/cpu-common.h" #endif -#include "exec/ioport.h" +#include "hw/ioport.h" #include "hw/irq.h" #include "block/aio.h" #include "migration/qemu-file.h"
include/hw/i386/apic_internal.h +1 -1
@@ -20,7 +20,7 @@#ifndef QEMU_APIC_INTERNAL_H #define QEMU_APIC_INTERNAL_H -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/sysbus.h" #include "qemu/timer.h"
include/hw/i386/ioapic_internal.h +1 -1
@@ -23,7 +23,7 @@#define QEMU_IOAPIC_INTERNAL_H #include "hw/hw.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/sysbus.h" #define MAX_IOAPICS 1
include/hw/i386/pc.h +3 -3
@@ -2,12 +2,12 @@#define HW_PC_H #include "qemu-common.h" -#include "exec/memory.h" -#include "exec/ioport.h" +#include "hw/memory.h" +#include "hw/ioport.h" #include "hw/isa/isa.h" #include "hw/block/fdc.h" #include "net/net.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/i386/ioapic.h" /* PC-style peripherals (also used by other machines). */
include/hw/ide.h +1 -1
@@ -3,7 +3,7 @@#include "hw/isa/isa.h" #include "hw/pci/pci.h" -#include "exec/memory.h" +#include "hw/memory.h" #define MAX_IDE_DEVS 2
include/hw/ioport.h renamed from include/exec/ioport.h +1 -1
@@ -25,7 +25,7 @@#define IOPORT_H #include "qemu-common.h" -#include "exec/iorange.h" +#include "hw/iorange.h" typedef uint32_t pio_addr_t ;#define FMT_pioaddr PRIx32
include/hw/iorange.h renamed from include/exec/iorange.h +0 -0
include/hw/isa/apm.h +1 -1
@@ -4,7 +4,7 @@#include <stdint.h> #include "qemu-common.h" #include "hw/hw.h" -#include "exec/memory.h" +#include "hw/memory.h" typedef void (*apm_ctrl_changed_t )(uint32_t val,void *arg);
include/hw/isa/isa.h +2 -2
@@ -3,8 +3,8 @@/* ISA bus */ -#include "exec/ioport.h" -#include "exec/memory.h" +#include "hw/ioport.h" +#include "hw/memory.h" #include "hw/qdev.h" #define ISA_NUM_IRQS 16
include/hw/memory.h renamed from include/exec/memory.h +2 -2
@@ -22,8 +22,8 @@#include "exec/cpu-common.h" #include "exec/hwaddr.h" #include "qemu/queue.h" -#include "exec/iorange.h" -#include "exec/ioport.h" +#include "hw/iorange.h" +#include "hw/ioport.h" #include "qemu/int128.h" typedef struct MemoryRegionOps MemoryRegionOps ;
include/hw/mips/mips.h +1 -1
@@ -2,7 +2,7 @@#define HW_MIPS_H /* Definitions for mips board emulation. */ -#include "exec/memory.h" +#include "hw/memory.h" /* gt64xxx.c */ PCIBus *gt64120_register (qemu_irq *pic);
include/hw/pci-host/pam.h +1 -1
@@ -51,7 +51,7 @@*/ #include "qemu-common.h" -#include "exec/memory.h" +#include "hw/memory.h" #define SMRAM_C_BASE 0xa0000#define SMRAM_C_END 0xc0000
include/hw/pci/pci.h +1 -1
@@ -4,7 +4,7 @@#include "qemu-common.h" #include "hw/qdev.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "sysemu/dma.h" /* PCI includes legacy ISA access. */
include/hw/pci/pcie_host.h +1 -1
@@ -22,7 +22,7 @@#define PCIE_HOST_H #include "hw/pci/pci_host.h" -#include "exec/memory.h" +#include "hw/memory.h" #define TYPE_PCIE_HOST_BRIDGE "pcie-host-bridge"#define PCIE_HOST_BRIDGE (obj) \
include/hw/pci/shpc.h +1 -1
@@ -2,7 +2,7 @@#define SHPC_H #include "qemu-common.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "migration/vmstate.h" struct SHPCDevice {
include/hw/ppc/mac_dbdma.h +1 -1
@@ -22,7 +22,7 @@#ifndef HW_MAC_DBDMA_H #define HW_MAC_DBDMA_H 1 -#include "exec/memory.h" +#include "hw/memory.h" typedef struct DBDMA_io DBDMA_io ;
include/hw/sh4/sh_intc.h +1 -1
@@ -3,7 +3,7 @@#include "qemu-common.h" #include "hw/irq.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" typedef unsigned char intc_enum ;
include/hw/sysbus.h +1 -1
@@ -4,7 +4,7 @@/* Devices attached directly to the main system bus. */ #include "hw/qdev.h" -#include "exec/memory.h" +#include "hw/memory.h" #define QDEV_MAX_MMIO 32#define QDEV_MAX_PIO 32
include/hw/virtio/dataplane/hostmem.h +1 -1
@@ -14,7 +14,7 @@ #ifndef HOSTMEM_H #define HOSTMEM_H -#include "exec/memory.h" +#include "hw/memory.h" #include "qemu/thread.h" typedef struct {
include/hw/virtio/vhost.h +1 -1
@@ -3,7 +3,7 @@#include "hw/hw.h" #include "hw/virtio/virtio.h" -#include "exec/memory.h" +#include "hw/memory.h" /* Generic structures common for any vhost based device. */ struct vhost_virtqueue {
include/sysemu/dma.h +1 -1
@@ -11,7 +11,7 @@#define DMA_H #include <stdio.h> -#include "exec/memory.h" +#include "hw/memory.h" #include "hw/hw.h" #include "block/block.h" #include "sysemu/kvm.h"
ioport.c +2 -2
@@ -25,9 +25,9 @@* splitted out ioport related stuffs from vl.c. */ -#include "exec/ioport.h" +#include "hw/ioport.h" #include "trace.h" -#include "exec/memory.h" +#include "hw/memory.h" /***********************************************************/ /* IO Port */
kvm-all.c +2 -2
@@ -30,8 +30,8 @@#include "exec/gdbstub.h" #include "sysemu/kvm.h" #include "qemu/bswap.h" -#include "exec/memory.h" -#include "exec/address-spaces.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" #include "qemu/event_notifier.h" /* This check must be after config-host.h is included */
memory.c +3 -3
@@ -13,9 +13,9 @@* GNU GPL, version 2 or (at your option) any later version. */ -#include "exec/memory.h" -#include "exec/address-spaces.h" -#include "exec/ioport.h" +#include "hw/memory.h" +#include "hw/address-spaces.h" +#include "hw/ioport.h" #include "qemu/bitops.h" #include "sysemu/kvm.h" #include <assert.h>
monitor.c +1 -1
@@ -64,7 +64,7 @@#include "trace/simple.h" #endif #include "ui/qemu-spice.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "qmp-commands.h" #include "hmp.h" #include "qemu/thread.h"
qtest.c +2 -2
@@ -14,8 +14,8 @@#include "sysemu/qtest.h" #include "hw/qdev.h" #include "sysemu/char.h" -#include "exec/ioport.h" -#include "exec/memory.h" +#include "hw/ioport.h" +#include "hw/memory.h" #include "hw/irq.h" #include "sysemu/sysemu.h" #include "sysemu/cpus.h"
savevm.c +1 -1
@@ -35,7 +35,7 @@#include "qemu/sockets.h" #include "qemu/queue.h" #include "sysemu/cpus.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "qmp-commands.h" #include "trace.h" #include "qemu/bitops.h"
target-arm/kvm_arm.h +1 -1
@@ -12,7 +12,7 @@#define QEMU_KVM_ARM_H #include "sysemu/kvm.h" -#include "exec/memory.h" +#include "hw/memory.h" /** * kvm_arm_register_device:
target-i386/ioport-user.c +1 -1
@@ -21,7 +21,7 @@#include "qemu.h" #include "qemu-common.h" -#include "exec/ioport.h" +#include "hw/ioport.h" void cpu_outb (pio_addr_t addr,uint8_t val) {
target-i386/kvm.c +1 -1
@@ -30,7 +30,7 @@#include "qemu/config-file.h" #include "hw/i386/pc.h" #include "hw/i386/apic.h" -#include "exec/ioport.h" +#include "hw/ioport.h" #include "hyperv.h" #include "hw/pci/pci.h"
target-i386/misc_helper.c +1 -1
@@ -18,7 +18,7 @@*/ #include "cpu.h" -#include "exec/ioport.h" +#include "hw/ioport.h" #include "helper.h" #if !defined(CONFIG_USER_ONLY )
target-s390x/misc_helper.c +1 -1
@@ -19,7 +19,7 @@*/ #include "cpu.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "qemu/host-utils.h" #include "helper.h" #include <string.h>
target-sparc/mmu_helper.c +1 -1
@@ -19,7 +19,7 @@#include "cpu.h" #include "trace.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" /* Sparc MMU emulation */
translate-all.c +1 -1
@@ -53,7 +53,7 @@#endif #endif #else -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #endif #include "exec/cputlb.h"
xen-all.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/range.h" #include "sysemu/xen-mapcache.h" #include "trace.h" -#include "exec/address-spaces.h" +#include "hw/address-spaces.h" #include <xen/hvm/ioreq.h> #include <xen/hvm/params.h>
xen-stub.c +1 -1
@@ -10,7 +10,7 @@#include "qemu-common.h" #include "hw/xen/xen.h" -#include "exec/memory.h" +#include "hw/memory.h" #include "qmp-commands.h" void xenstore_store_pv_console_info (int i,CharDriverState *chr)
Signature · 1 line
1.8.1.4
PATCH 12/12 hw: move memory API to hw/core
In reply to Paolo Bonzini--- Makefile.target | 4 ++-- hw/core/Makefile.objs | 3 +++ ioport.c => hw/core/ioport.c | 0 memory.c => hw/core/memory.c | 0 4 files changed, 5 insertions(+), 2 deletions(-) rename ioport.c => hw/core/ioport.c (100%) rename memory.c => hw/core/memory.c (100%)
Makefile.target +2 -2
@@ -108,13 +108,13 @@ CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y) CONFIG_NO_GET_MEMORY_MAPPING = $(if $(subst n,,$(CONFIG_HAVE_GET_MEMORY_MAPPING)),n,y) CONFIG_NO_CORE_DUMP = $(if $(subst n,,$(CONFIG_HAVE_CORE_DUMP)),n,y) -obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o +obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o obj-y += qtest.o obj-y += hw/ obj-$(CONFIG_FDT) += device_tree.o obj-$(CONFIG_KVM) += kvm-all.o obj-$(CONFIG_NO_KVM) += kvm-stub.o -obj-y += memory.o savevm.o cputlb.o +obj-y += savevm.o cputlb.o obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) += memory_mapping.o obj-$(CONFIG_HAVE_CORE_DUMP) += dump.o obj-$(CONFIG_NO_GET_MEMORY_MAPPING) += memory_mapping-stub.o
hw/core/Makefile.objs +3 -0
@@ -11,4 +11,7 @@ common-obj-$(CONFIG_SOFTMMU) += null-machine.o common-obj-$(CONFIG_SOFTMMU) += loader.o common-obj-$(CONFIG_SOFTMMU) += qdev-addr.o common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o +common-obj-$(CONFIG_SOFTMMU) += ioport.o +obj-$(CONFIG_SOFTMMU) += memory.o +
hw/core/ioport.c renamed from ioport.c +0 -0
hw/core/memory.c renamed from memory.c +0 -0
Signature · 1 line
1.8.1.4
Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
Quoted 1 line · Paolo Bonzini
Signed-off-by Paolo Bonzini <[email protected]>
This doesn't look right. The MemoryRegion system isn't hw-specific, it's a part of the basic QEMU emulation system which provides functionality to hw/ and other things (like cputlb.c).
-- PMM
Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
Quoted 9 lines · Peter Maydell
Quoted 1 line · Paolo Bonzini
Signed-off-by Paolo Bonzini <[email protected]>This doesn't look right. The MemoryRegion system isn't hw-specific, it's a part of the basic QEMU emulation system which provides functionality to hw/ and other things (like
cputlb.c).-- PMM
I had the same thought.
Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
In reply to Peter MaydellIl 11/04/2013 18:28, Peter Maydell ha scritto:
Quoted 6 lines · Paolo Bonzini
Quoted 1 line
Quoted 1 line
Signed-off-by Paolo Bonzini <[email protected]>This doesn't look right. The MemoryRegion system isn't hw-specific, it's a part of the basic QEMU emulation system which provides functionality to hw/ and other things (like
cputlb.c).
The accelerator- and target-independent parts of the basic emulation are already in hw/core (not much really, but consider that CPUs are device and depend on hw/core/qdev.c). The memory API is simply the interface between the accelerators and hw/ (boards & device models).
In fact, apart from large parts of exec.c which are really part of the memory API implementation (but I'm not moving it in this patch for simplicity), the other users of the memory API are really the accelerators. KVM and Xen only use listeners, TCG needs more low-level access in cputlb.c and translate-all.c but that's pretty much it.
Paolo
Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
Quoted 8 lines · Paolo Bonzini
Il 11/04/2013 18:28, Peter Maydell ha scritto:
Quoted 6 lines · Paolo Bonzini
Quoted 1 line
Quoted 1 line
Signed-off-by Paolo Bonzini <[email protected]>This doesn't look right. The MemoryRegion system isn't hw-specific, it's a part of the basic QEMU emulation system which provides functionality to hw/ and other things (like
cputlb.c).
Quoted 4 lines
The accelerator- and target-independent parts of the basic emulation are already in hw/core (not much really, but consider that CPUs are device and depend on
hw/core/qdev.c). The memory API is simply the interface between the accelerators and hw/ (boards & device models).
Yes, so it should be provided in the place we put our accelerator implementation (ie .): it is functionality and interface exposed *to* the code in hw/, not functionality and interface provided *by* hw/.
-- PMM
Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
Il 11/04/2013 19:14, Peter Maydell ha scritto:
Quoted 14 lines · Paolo Bonzini
Quoted 8 lines
Il 11/04/2013 18:28, Peter Maydell ha scritto:
Quoted 6 lines · Paolo Bonzini
Quoted 1 line
Quoted 1 line
Signed-off-by Paolo Bonzini <[email protected]>This doesn't look right. The MemoryRegion system isn't hw-specific, it's a part of the basic QEMU emulation system which provides functionality to hw/ and other things (like
cputlb.c).Quoted 4 lines
The accelerator- and target-independent parts of the basic emulation are already in hw/core (not much really, but consider that CPUs are device and depend on
hw/core/qdev.c). The memory API is simply the interface between the accelerators and hw/ (boards & device models).
Quoted 4 lines
Yes, so it should be provided in the place we put our accelerator implementation (ie .): it is functionality and interface exposed *to* the code in hw/, not functionality and interface provided *by* hw/.
Ok, the historical practice was that qdev core was in hw/, and that's what I tried to follow. It makes sense either way to me.
But then patch 11 also has to be dropped, otherwise it doesn't make sense. Michael, what do you think?
Paolo
Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
Quoted 20 lines · Paolo Bonzini
Il 11/04/2013 19:14, Peter Maydell ha scritto:
Quoted 14 lines · Paolo Bonzini
Quoted 8 lines
Il 11/04/2013 18:28, Peter Maydell ha scritto:
Quoted 6 lines · Paolo Bonzini
Quoted 1 line
Quoted 1 line
Signed-off-by Paolo Bonzini <[email protected]>This doesn't look right. The MemoryRegion system isn't hw-specific, it's a part of the basic QEMU emulation system which provides functionality to hw/ and other things (like
cputlb.c).Quoted 4 lines
The accelerator- and target-independent parts of the basic emulation are already in hw/core (not much really, but consider that CPUs are device and depend on
hw/core/qdev.c). The memory API is simply the interface between the accelerators and hw/ (boards & device models).Quoted 4 lines
Yes, so it should be provided in the place we put our accelerator implementation (ie .): it is functionality and interface exposed *to* the code in hw/, not functionality and interface provided *by* hw/.
Quoted 7 lines
Ok, the historical practice was that qdev core was in hw/, and that's what I tried to follow. It makes sense either way to me.
But then patch 11 also has to be dropped, otherwise it doesn't make sense. Michael, what do you think?
Paolo
I agree.
Anthony Liguori
AppliedApplied. Thanks.
Regards,
Anthony Liguori