From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH] Fix up kvm-powerpc.h in libkvm Date: Wed, 02 Jan 2008 14:35:34 -0600 Message-ID: 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: 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 Jerone Young # Date 1199306048 21600 # Node ID da73eaf107eb8800f27e3bc045a2de28c476b07d # Parent bf828ac70dde1dfa4f67e4774a884669306423e6 Fix up kvm-powerpc.h in libkvm This patch fixes up kvm-powerpc.h. Adds proper preamble and use kvm_page_size as opposed to defining the pages size. Signed-off-by: Jerone Young diff --git a/libkvm/kvm-powerpc.h b/libkvm/kvm-powerpc.h --- a/libkvm/kvm-powerpc.h +++ b/libkvm/kvm-powerpc.h @@ -1,13 +1,17 @@ -/* +/* * This header is for functions & variables that will ONLY be - * used inside libkvm for powerpc. - * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE + * used inside libkvm for powerpc. + * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE * WITHIN LIBKVM. * - * Copyright (C) 2007 IBM + * Copyright (C) 2006 Qumranet, Inc. * * Authors: - * Jerone Young + * Avi Kivity + * Yaniv Kamay + * + * Copyright 2007 IBM Corporation. + * Added by: Jerone Young * * This work is licensed under the GNU LGPL license, version 2. */ @@ -17,7 +21,9 @@ #include "kvm-common.h" -#define PAGE_SIZE 4096ul +extern int kvm_page_size; + +#define PAGE_SIZE kvm_page_size #define PAGE_MASK (~(PAGE_SIZE - 1)) #endif ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/