From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X46cA-0002zW-Ee for qemu-devel@nongnu.org; Mon, 07 Jul 2014 06:57:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X46c4-00024O-AA for qemu-devel@nongnu.org; Mon, 07 Jul 2014 06:57:42 -0400 Received: from [59.151.112.132] (port=49428 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X46c3-0001yK-S1 for qemu-devel@nongnu.org; Mon, 07 Jul 2014 06:57:36 -0400 From: Hu Tao Date: Mon, 7 Jul 2014 18:55:26 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH V3 for 2.1 0/2] bug fixs for memory backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Yasunori Goto , "Michael S. Tsirkin" , Paolo Bonzini , Igor Mammedov This series includes two patches to fix bugs of memory backend. See each patch for the bugs and how to reproduce them. changes to v2: - introduce memory_region_init_ram_may_fail and memory_region_init_ram_ptr_may_fail - address comments by MST - missing the functions renaming. will send later. Hu Tao (2): 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() backends/hostmem-ram.c | 4 ++-- exec.c | 51 +++++++++++++++++++++++++++-------------- hw/block/pflash_cfi01.c | 5 +++- hw/block/pflash_cfi02.c | 5 +++- include/exec/memory.h | 40 +++++++++++++++++++++++++++++++- include/exec/ram_addr.h | 4 ++-- memory.c | 61 +++++++++++++++++++++++++++++++++++++++---------- 7 files changed, 134 insertions(+), 36 deletions(-) -- 1.9.3