From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEXm0-0003di-A8 for qemu-devel@nongnu.org; Tue, 05 Aug 2014 01:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEXlu-0002nl-0x for qemu-devel@nongnu.org; Tue, 05 Aug 2014 01:59:00 -0400 Received: from [59.151.112.132] (port=15360 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEXlt-0002mA-CF for qemu-devel@nongnu.org; Tue, 05 Aug 2014 01:58:53 -0400 From: Hu Tao Date: Tue, 5 Aug 2014 13:56:27 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v4 0/6] bug fixs for memory backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "Michael S. Tsirkin" This series includes: 1. two patches to fix bugs of memory backend. See patch 1-2. 2. Add errp to memory_region_init_ram and memory_region_init_ram_ptr, and add corresponding nofail versions. See patch 3-4. changes to v3: - fix build on 32bit host - add memory API renaming - rebase on latest master Hu Tao (6): memory: add memory_region_init_ram_may_fail() and memory_region_init_ram_ptr_may_fail() exec: improve error handling and reporting in file_ram_alloc() and gethugepagesize() rename memory_region_init_ram to memory_region_init_ram_nofail rename memory_region_init_ram_may_fail to memory_region_init_ram rename memory_region_init_ram_ptr to memory_region_init_ram_ptr_nofail rename memory_region_init_ram_ptr_may_fail to memory_region_init_ram_ptr backends/hostmem-ram.c | 2 +- exec.c | 53 ++++++++++++++++++++----------- hw/alpha/typhoon.c | 2 +- hw/arm/armv7m.c | 6 ++-- hw/arm/cubieboard.c | 2 +- hw/arm/digic_boards.c | 2 +- hw/arm/exynos4210.c | 9 +++--- hw/arm/highbank.c | 4 +-- hw/arm/integratorcp.c | 5 +-- hw/arm/kzm.c | 4 +-- hw/arm/mainstone.c | 2 +- hw/arm/musicpal.c | 5 +-- hw/arm/omap1.c | 6 ++-- hw/arm/omap2.c | 4 +-- hw/arm/omap_sx1.c | 5 +-- hw/arm/palm.c | 2 +- hw/arm/pxa2xx.c | 9 +++--- hw/arm/realview.c | 7 +++-- hw/arm/spitz.c | 2 +- hw/arm/strongarm.c | 3 +- hw/arm/tosa.c | 2 +- hw/arm/versatilepb.c | 3 +- hw/arm/vexpress.c | 10 +++--- hw/arm/virt.c | 3 +- hw/arm/xilinx_zynq.c | 4 +-- hw/block/onenand.c | 2 +- hw/core/loader.c | 2 +- hw/cris/axis_dev88.c | 5 +-- hw/display/cg3.c | 5 +-- hw/display/g364fb.c | 4 +-- hw/display/qxl.c | 6 ++-- hw/display/sm501.c | 2 +- hw/display/tc6393xb.c | 2 +- hw/display/tcx.c | 5 +-- hw/display/vga.c | 2 +- hw/display/vmware_vga.c | 3 +- hw/i386/kvm/pci-assign.c | 5 +-- hw/i386/pc.c | 2 +- hw/i386/pc_sysfw.c | 4 +-- hw/input/milkymist-softusb.c | 4 +-- hw/lm32/lm32_boards.c | 5 +-- 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 | 7 +++-- hw/microblaze/petalogix_s3adsp1800_mmu.c | 5 +-- hw/mips/mips_fulong2e.c | 4 +-- hw/mips/mips_jazz.c | 7 +++-- hw/mips/mips_malta.c | 4 +-- hw/mips/mips_mipssim.c | 4 +-- hw/mips/mips_r4k.c | 4 +-- hw/misc/ivshmem.c | 9 +++--- hw/misc/vfio.c | 3 +- hw/moxie/moxiesim.c | 4 +-- hw/net/milkymist-minimac2.c | 4 +-- hw/openrisc/openrisc_sim.c | 2 +- hw/pci-host/prep.c | 2 +- hw/pci/pci.c | 2 +- hw/ppc/mac_newworld.c | 2 +- hw/ppc/mac_oldworld.c | 2 +- hw/ppc/ppc405_boards.c | 7 +++-- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/spapr.c | 4 +-- hw/s390x/s390-virtio-ccw.c | 2 +- hw/s390x/s390-virtio.c | 2 +- hw/sh4/r2d.c | 2 +- hw/sh4/shix.c | 6 ++-- hw/sparc/leon3.c | 4 +-- hw/sparc/sun4m.c | 9 +++--- hw/sparc64/sun4u.c | 5 +-- hw/unicore32/puv3.c | 2 +- hw/xtensa/sim.c | 4 +-- hw/xtensa/xtfpga.c | 6 ++-- include/exec/memory.h | 48 ++++++++++++++++++++++++---- include/exec/ram_addr.h | 4 +-- memory.c | 54 +++++++++++++++++++++++++++++--- numa.c | 4 +-- xen-hvm.c | 2 +- 79 files changed, 291 insertions(+), 168 deletions(-) -- 1.9.3