Received: from eggs.gnu.org ([2001:4830:134:3::10]:34640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEtwP-0008CH-Km for qemu-devel@nongnu.org; Wed, 06 Aug 2014 01:39:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEtwI-0002b2-7K for qemu-devel@nongnu.org; Wed, 06 Aug 2014 01:39:13 -0400 Received: from [59.151.112.132] (port=62667 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEtwH-0002Zq-JG for qemu-devel@nongnu.org; Wed, 06 Aug 2014 01:39:06 -0400 From: Hu Tao Date: Wed, 6 Aug 2014 13:36:43 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v5 0/6] memory API improvements and bug fixes for memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , "Michael S. Tsirkin" , Yasuaki Isimatu , Paolo Bonzini , Yasunori Goto This series includes two parts: 1. part 1 includes patches 1-4, which improves error handling of memory_region_init_ram, memory_region_init_ram_ptr and memory_region_init_rom_device 2. part 2 includes patches 5-6, each fixes a bug of memory backend. changes to v4: - don't introduce _may_fail and _nofail versions of memory API - the patches order of bug fix and memory API change is exchanged, first comes the API change, then bug fix. Hu Tao (6): exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr memory: add parameter errp to memory_region_init_ram memory: add parameter errp to memory_region_init_ram_ptr memory: add parameter errp to memory_region_init_rom_device hostmem-ram: don't exit qemu if size of memory-backend-ram is way too big exec: improve error handling and reporting in file_ram_alloc() and gethugepagesize() backends/hostmem-ram.c | 2 +- exec.c | 53 +++++++++++++++++++++----------- hw/alpha/typhoon.c | 3 +- hw/arm/armv7m.c | 7 +++-- hw/arm/cubieboard.c | 2 +- hw/arm/digic_boards.c | 2 +- hw/arm/exynos4210.c | 9 +++--- hw/arm/highbank.c | 5 +-- hw/arm/integratorcp.c | 5 +-- hw/arm/kzm.c | 4 +-- hw/arm/mainstone.c | 3 +- hw/arm/musicpal.c | 6 ++-- hw/arm/omap1.c | 6 ++-- hw/arm/omap2.c | 6 ++-- hw/arm/omap_sx1.c | 6 ++-- hw/arm/palm.c | 3 +- hw/arm/pxa2xx.c | 11 ++++--- hw/arm/realview.c | 9 ++++-- hw/arm/spitz.c | 2 +- hw/arm/strongarm.c | 3 +- hw/arm/tosa.c | 2 +- hw/arm/versatilepb.c | 3 +- hw/arm/vexpress.c | 15 ++++++--- hw/arm/virt.c | 3 +- hw/arm/xilinx_zynq.c | 6 ++-- hw/block/onenand.c | 2 +- hw/block/pflash_cfi01.c | 2 +- hw/block/pflash_cfi02.c | 2 +- hw/core/loader.c | 2 +- hw/cris/axis_dev88.c | 6 ++-- hw/display/cg3.c | 6 ++-- hw/display/g364fb.c | 2 +- hw/display/qxl.c | 6 ++-- hw/display/sm501.c | 2 +- hw/display/tc6393xb.c | 3 +- hw/display/tcx.c | 5 +-- hw/display/vga.c | 3 +- hw/display/vmware_vga.c | 3 +- hw/i386/kvm/pci-assign.c | 6 ++-- hw/i386/pc.c | 3 +- hw/i386/pc_sysfw.c | 5 +-- hw/input/milkymist-softusb.c | 4 +-- hw/lm32/lm32_boards.c | 6 ++-- hw/lm32/milkymist.c | 3 +- hw/m68k/an5206.c | 4 +-- hw/m68k/dummy_m68k.c | 2 +- hw/m68k/mcf5208.c | 4 +-- hw/microblaze/petalogix_ml605_mmu.c | 5 +-- hw/microblaze/petalogix_s3adsp1800_mmu.c | 6 ++-- hw/mips/mips_fulong2e.c | 5 +-- hw/mips/mips_jazz.c | 8 +++-- hw/mips/mips_malta.c | 6 ++-- hw/mips/mips_mipssim.c | 6 ++-- hw/mips/mips_r4k.c | 5 +-- hw/misc/ivshmem.c | 5 +-- hw/misc/vfio.c | 3 +- hw/moxie/moxiesim.c | 4 +-- hw/net/milkymist-minimac2.c | 2 +- hw/openrisc/openrisc_sim.c | 2 +- hw/pci-host/prep.c | 3 +- hw/pci/pci.c | 2 +- hw/ppc/mac_newworld.c | 3 +- hw/ppc/mac_oldworld.c | 3 +- hw/ppc/ppc405_boards.c | 8 +++-- hw/ppc/ppc405_uc.c | 3 +- hw/ppc/spapr.c | 2 +- hw/s390x/s390-virtio-ccw.c | 2 +- hw/s390x/s390-virtio.c | 2 +- hw/sh4/r2d.c | 2 +- hw/sh4/shix.c | 8 +++-- hw/sparc/leon3.c | 4 +-- hw/sparc/sun4m.c | 10 +++--- hw/sparc64/sun4u.c | 6 ++-- hw/unicore32/puv3.c | 3 +- hw/xtensa/sim.c | 4 +-- hw/xtensa/xtfpga.c | 8 +++-- include/exec/memory.h | 12 ++++++-- include/exec/ram_addr.h | 4 +-- memory.c | 15 +++++---- numa.c | 4 +-- xen-hvm.c | 3 +- 81 files changed, 263 insertions(+), 162 deletions(-) -- 1.9.3