From patchwork Fri Nov 22 15:15:54 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: 293497 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DDEF02C009A for ; Sat, 23 Nov 2013 02:23:09 +1100 (EST) Received: from localhost ([::1]:39443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsZX-0006MP-AP for incoming@patchwork.ozlabs.org; Fri, 22 Nov 2013 10:23:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsX9-0003Id-SP for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjsX0-00009i-Lb for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:39 -0500 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:58690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsX0-00009W-EL for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:30 -0500 Received: by mail-la0-f47.google.com with SMTP id ep20so1041276lab.6 for ; Fri, 22 Nov 2013 07:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=D8DZrqlfiGvo4CCKzJ4PAkpfm7uTjQWWJ3aU7XQazc8=; b=ZtLSTRmEHc0g4fX4mAYPrwerpsnzce1wBdKmhVjHcWEjLhEoNIMWVAjXd4Usa9qccl +9bH3HZ+pu/A2KyFPD1q0PYj6C/0IUZ/i1FZT4OkAgAJCL+GfnkuzsVW+lTjK3Q3iwJy DBAJXMzE5+jlhCR2p2MMrKIvemZfS+fpHcegwms8K0BPwFGjLPI3FWPgsInNqSmqs1CC bmf+Klv4b67waUU2pybiLbCc7sluLSb2j1Tn0iQae3mUikl2ICkRFZ8KDGC71rfJLiEC hoy1VtI2Rw1m+52vICs4dvqgjOrDeKjZu4Hef2LJmO4x/+aabIRnDmvZJ48TPuRtAZUA /wKg== X-Received: by 10.112.29.147 with SMTP id k19mr9615434lbh.9.1385133629255; Fri, 22 Nov 2013 07:20:29 -0800 (PST) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id h11sm1214503lbg.8.2013.11.22.07.20.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Nov 2013 07:20:26 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Fri, 22 Nov 2013 16:15:54 +0100 Message-Id: <1385133359-13770-4-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> References: <1385133359-13770-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: 2a00:1450:4010:c03::22f Subject: [Qemu-devel] [RFC PATCH 3/8] 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 5e17110..05df217 100644 --- a/exec.c +++ b/exec.c @@ -806,6 +806,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(&subsection)); @@ -1609,6 +1610,7 @@ static subpage_t *subpage_init(AddressSpace *as, hwaddr base) static uint16_t dummy_section(MemoryRegion *mr) { MemoryRegionSection section = { + .address_space = &address_space_memory, .mr = mr, .offset_within_address_space = 0, .offset_within_region = 0,