Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755668AbcK3DY6 (ORCPT ); Tue, 29 Nov 2016 22:24:58 -0500 Received: from relay3.sgi.com ([192.48.152.1]:60735 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754607AbcK3DYu (ORCPT ); Tue, 29 Nov 2016 22:24:50 -0500 From: Alex Thorlton To: linux-kernel@vger.kernel.org Cc: Alex Thorlton , Russ Anderson , David Vrabel , Juergen Gross , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Denys Vlasenko , Boris Ostrovsky , x86@kernel.org, xen-devel@lists.xenproject.org Subject: [RFC PATCH v2] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries Date: Tue, 29 Nov 2016 21:24:45 -0600 Message-Id: <1480476287-232878-1-git-send-email-athorlton@sgi.com> X-Mailer: git-send-email 1.8.5.6 In-Reply-To: <1479168677-23633-1-git-send-email-athorlton@sgi.com> References: <1479168677-23633-1-git-send-email-athorlton@sgi.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 913 Lines: 25 Here's the second round of my patches to fix up the problems that we're seeing with the XENMEM_machine_memory_map hypercall. These few simple changes, to give xen_e820_map some extra space, get things working fine on our large machine. This version of the patchset adds a patch to remove the #ifdef CONFIG_EFI conditional around the definition of E820_X_MAX, so that it's always slightly larger than E820MAX. I've also tweaked the code that works on xen_e820_map to use ARRAY_SIZE(xen_e820_map) instead of using E820_X_MAX directly, as suggested by Boris. As always, I appreciate any input that others can give! - Alex Alex Thorlton (2): x86: Make E820_X_MAX unconditionally larger than E820MAX xen/x86: Increase xen_e820_map to E820_X_MAX possible entries arch/x86/include/asm/e820.h | 8 +++----- arch/x86/xen/setup.c | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) -- 1.8.5.6