From patchwork Thu Dec 19 05:51:14 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: 303175 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 F351C2C009A for ; Thu, 19 Dec 2013 16:54:36 +1100 (EST) Received: from localhost ([::1]:42173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWZ8-0007nq-5m for incoming@patchwork.ozlabs.org; Thu, 19 Dec 2013 00:54:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWYb-0007b6-6o for qemu-devel@nongnu.org; Thu, 19 Dec 2013 00:54:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtWYV-0007FQ-SA for qemu-devel@nongnu.org; Thu, 19 Dec 2013 00:54:01 -0500 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:51994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWYV-0007FH-LE for qemu-devel@nongnu.org; Thu, 19 Dec 2013 00:53:55 -0500 Received: by mail-pb0-f51.google.com with SMTP id up15so686048pbc.24 for ; Wed, 18 Dec 2013 21:53:51 -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=EVqg6G5o4dTAodX2vF9hGUe6LF2MNRfzHc8L0rHZWHWNRSmP66Fl2YUc6ct8IaQfIB pC3Jl65SLRh5DK7kRkd9+zPeFlbO6uKBfdTfLQEXZjCpvtDgh9gvNuJ1etCrgH79uiTR W3UTlYSoZufxu2KMjfNPkL5J8eWo1h6bz9SXJqLTOVJjUH5MeGdIyQ0RgF/KmVm12HjS cgq19Jvl+okyq/cUxleIQ72nFMxEALyFYXqByqkTIhWOQ541aU8oHsOSkxSIY/Z09Rhd 3eeZo6Iew65mobHnD9O1R2rNsLfpJyTKcNqon6cqr5JCQrbDfM8/d9VkDDhHxb73WID6 +4zQ== X-Received: by 10.66.123.5 with SMTP id lw5mr38727761pab.83.1387432430964; Wed, 18 Dec 2013 21:53:50 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id ka3sm4304004pbc.32.2013.12.18.21.53.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 21:53:50 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Thu, 19 Dec 2013 15:51:14 +1000 Message-Id: <1387432293-17711-4-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1387432293-17711-1-git-send-email-edgar.iglesias@gmail.com> References: <1387432293-17711-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::233 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 v2 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,