From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH 3 of 7] Chnage so that Powerpc & IA64 do not have KVM_EXTRA_PAGES set Date: Sun, 27 Jan 2008 21:16:26 -0600 Message-ID: <7c535acfd618f41aa6f4.1201490186@thinkpad> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org # HG changeset patch # User Christian Ehrhardt # Date 1201488336 21600 # Node ID 7c535acfd618f41aa6f49efa25e3fd6e1f75b633 # Parent 57f4e5bd23e0da3c493e769e3e2b738e1495f7ef Chnage so that Powerpc & IA64 do not have KVM_EXTRA_PAGES set IA64 already had an exclusion and so does ppc. This patch switches the default to no extra pages and lets I386 and X86_64 get it's 3 extra pages as needed. Signed-off-by: Christian Ehrhardt Signed-off-by: Hollis Blanchard Signed-off-by: Jerone Young diff --git a/qemu/vl.c b/qemu/vl.c --- a/qemu/vl.c +++ b/qemu/vl.c @@ -9313,10 +9313,10 @@ int main(int argc, char **argv) #if USE_KVM /* Initialize kvm */ -#ifdef TARGET_IA64 +#if defined(TARGET_I386) || defined(TARGET_X86_64) +#define KVM_EXTRA_PAGES 3 +#else #define KVM_EXTRA_PAGES 0 -#else -#define KVM_EXTRA_PAGES 3 #endif if (kvm_allowed) { phys_ram_size += KVM_EXTRA_PAGES * TARGET_PAGE_SIZE; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/