From b9e27d18c57816e3b4896d0c1e7e15db71bf3d82 Mon Sep 17 00:00:00 2001 From: Jerone Young Date: Tue, 8 Jan 2008 15:27:36 -0600 Subject: [PATCH] kvm: libkvm: Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c Function kvm_create_kernel_phys_mem was missing from powerpc causing a undefined definition when linking to libkvm when compiled for powerpc. Signed-off-by: Jerone Young Acked-by: Hollis Blanchard Signed-off-by: Avi Kivity --- kvm/libkvm/libkvm-powerpc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kvm/libkvm/libkvm-powerpc.c b/kvm/libkvm/libkvm-powerpc.c index 33459bbfcb..1710e6d960 100644 --- a/kvm/libkvm/libkvm-powerpc.c +++ b/kvm/libkvm/libkvm-powerpc.c @@ -47,6 +47,13 @@ int kvm_alloc_kernel_memory(kvm_context_t kvm, unsigned long memory, return -1; } +void *kvm_create_kernel_phys_mem(kvm_context_t kvm, unsigned long phys_start, + unsigned long len, int log, int writable) +{ + fprintf(stderr, "%s: Operation not supported\n", __FUNCTION__); + return NULL; +} + void kvm_show_code(kvm_context_t kvm, int vcpu) { fprintf(stderr, "%s: Operation not supported\n", __FUNCTION__); -- 2.11.4.GIT