Framework for adding Powerpc
PATCH 1/1 Framework for adding Powerpc
Figured I would just put this on the list for the curious bunch. This is a small patch that is basically to show functions that have to be implemented for powerpc. This is an early patch in my personal repo .. but it's mainly to give an idea of the functions that are going into the libkvm-powerpc.c . Now once the kernel pieces get in place upstream this will be more filed out.
Initial libkvm powerpc support
These patches add initial code for powerpc. No big implimentations as kernel code is still being worked out. But it can be a good template for other architectures.
libkvm/config-powerpc.mak new file +6 -0
@@ -0,0 +1,6 @@ + +LIBDIR := /lib +CFLAGS += -m32 +CFLAGS += -D__powerpc__ + +libkvm-$(ARCH)-objs := libkvm-powerpc.o
libkvm/kvm-powerpc.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* 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 +* WITHIN LIBKVM. +* +* Copyright (C) 2007 IBM +* +* Authors: +* Jerone Young <[email protected]> +* +* This work is licensed under the GNU LGPL license, version 2. +*/ + +#ifndef KVM_POWERPC_H +#define KVM_POWERPC_H + +#include "kvm-common.h" + +#define PAGE_SIZE 4096ul +#define PAGE_MASK (~(PAGE_SIZE - 1)) + +#endif
libkvm/libkvm-powerpc.c new file +51 -0
51 lines not on this page · raw message
libkvm/libkvm.c +4 -0
@@ -39,6 +39,10 @@#if defined(__x86_64__) || defined(__i386__)#include "kvm-x86.h" +#endif + +#if defined(__powerpc__) +#include "kvm-powerpc.h" #endif int kvm_abi =EXPECTED_KVM_API_VERSION ;
-------------------------------------------------------------------------
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/
_______________________________________________
kvm-ppc-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel