public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH] Fix up kvm-powerpc.h in libkvm
Date: Wed, 02 Jan 2008 14:35:34 -0600	[thread overview]
Message-ID: <da73eaf107eb8800f27e.1199306134@thinkpad> (raw)

# 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/

             reply	other threads:[~2008-01-02 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 20:35 Jerone Young [this message]
2008-01-03 15:46 ` [PATCH] Fix up kvm-powerpc.h in libkvm Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da73eaf107eb8800f27e.1199306134@thinkpad \
    --to=jyoung5-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox