public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix up kvm-powerpc.h in libkvm
@ 2008-01-02 20:35 Jerone Young
  2008-01-03 15:46 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jerone Young @ 2008-01-02 20:35 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

# HG changeset patch
# User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
# 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 <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

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 <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
+ *	Avi Kivity   <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
+ *	Yaniv Kamay  <yaniv-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
+ *
+ * Copyright 2007 IBM Corporation.
+ * Added by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  *
  * 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-03 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 20:35 [PATCH] Fix up kvm-powerpc.h in libkvm Jerone Young
2008-01-03 15:46 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox