From patchwork Mon Dec 16 08:05:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 301499 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2FE4B2C0085 for ; Mon, 16 Dec 2013 19:09:09 +1100 (EST) Received: from localhost ([::1]:54348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTEf-0002vD-VT for incoming@patchwork.ozlabs.org; Mon, 16 Dec 2013 03:09:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTEC-0002mW-Q9 for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:08:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsTE7-00037Z-1s for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:08:36 -0500 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]:41247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTE6-00037U-Qt for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:08:30 -0500 Received: by mail-pb0-f49.google.com with SMTP id jt11so5138372pbb.22 for ; Mon, 16 Dec 2013 00:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SNTnBch7EMI6lWOwBDAkNqtM1G/gCyJYWTRugKSATGo=; b=IctZfd6rQMlem5IH+hUZzJriu5nzQRnxm4g9LSVRgFWll0YW1/HeXTcT2jy+tIkJrH Fg+MxgLf80ojo44u+lV9WQy9hEjZ3VEPEeNonW+9G9nBtpz+SBm6rw2SQw8PTcSJ031i RlIfTR4iiS34eDkBOX6WGqmuZm2JsvD8DQO4JdG/XBw9b1nUujFpy52Uz40Xx2tM108A DFoFwflcwWqJDyFWgdVienRzItWimsvIFE9Sn8xKwKrd+kEJcRat+Z4aMomZ/XuO9iGd wbh4MOG38L48CRib+QY9BlwjGdzSJMgUZL+0o32069qDgoAmdtwUasoJEY0eeRmaTeDG IvkQ== X-Received: by 10.66.242.17 with SMTP id wm17mr18816275pac.102.1387181310021; Mon, 16 Dec 2013 00:08:30 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id vn10sm24285583pbc.21.2013.12.16.00.08.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Dec 2013 00:08:29 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Mon, 16 Dec 2013 18:05:51 +1000 Message-Id: <1387181170-23267-4-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1387181170-23267-1-git-send-email-edgar.iglesias@gmail.com> References: <1387181170-23267-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::231 Cc: peter.maydell@linaro.org, blauwirbel@gmail.com, aliguori@amazon.com, pcrost@xilinx.com, pbonzini@redhat.com, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v1 03/22] exec: Always initialize MemorySection address spaces X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index c34f642..6d88931 100644 --- a/exec.c +++ b/exec.c @@ -878,6 +878,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *secti if (!(existing->mr->subpage)) { subpage = subpage_init(d->as, base); + subsection.address_space = d->as; subsection.mr = &subpage->iomem; phys_page_set(d, base >> TARGET_PAGE_BITS, 1, phys_section_add(&d->map, &subsection)); @@ -1717,6 +1718,7 @@ static subpage_t *subpage_init(AddressSpace *as, hwaddr base) static uint16_t dummy_section(PhysPageMap *map, MemoryRegion *mr) { MemoryRegionSection section = { + .address_space = &address_space_memory, .mr = mr, .offset_within_address_space = 0, .offset_within_region = 0,