Skip to contentSkip to conversation

Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c

PATCH Applied Jerone Young 3 participants 3 messages Jan 8, 2008 – Jan 9, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c

# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1199827424 21600
# Node ID bff590d13f32071b50d79f511424821847ed5ba7
# Parent a6e6b30d5f4154fd91dbf68e7e3986b2af02ee0f
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.

libkvm/libkvm-powerpc.c +7 -0
@@ -45,6 +45,13 @@ int kvm_alloc_kernel_memory(kvm_context_
 {
 	fprintf(stderr, "%s: Operation not supported\n", __FUNCTION__);
 	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)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jerone Young

# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1199827424 21600
# Node ID bff590d13f32071b50d79f511424821847ed5ba7
# Parent a6e6b30d5f4154fd91dbf68e7e3986b2af02ee0f
Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c

Quoted 5 lines

Function kvm_create_kernel_phys_mem was missing from powerpc causing a undefined definition when linking to libkvm when compiled for powerpc.

Signature · 9 lines
Hollis Blanchard
IBM Linux Technology Center


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Applied
#2 lore raw
In reply to Jerone Young
Quoted 7 lines · Jerone Young

# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1199827424 21600
# Node ID bff590d13f32071b50d79f511424821847ed5ba7
# Parent a6e6b30d5f4154fd91dbf68e7e3986b2af02ee0f
Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c

Quoted 5 lines

Function kvm_create_kernel_phys_mem was missing from powerpc causing a undefined definition when linking to libkvm when compiled for powerpc.

Applied, thanks.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace