From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Ehrhardt Subject: [PATCH] add more regs to kvm_show_regs for powerpc Date: Thu, 17 Jan 2008 13:53:32 +0100 Message-ID: <12005744143278-git-send-email-ehrhardt@linux.vnet.ibm.com> References: <12005744123603-git-send-email-ehrhardt@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Christian Ehrhardt , "Avi Kivity ; Hollis Blanchard ; Jerone Young" , Hollis Blanchard To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: <12005744123603-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 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 Subject: [PATCH] add more regs to kvm_show_regs for powerpc From: Hollis Blanchard From: Christian Ehrhardt This make "extra pages" allocation only apply to x86. 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 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/