kvm: libkvm: move kvm_context to kvm-common.h & add CFLAGS to config-* filese
commitae0d809a4a04308c1a62de2ebc7776a63e9a6fa6
authorJerone Young <jyoung5@us.ibm.com>
Tue, 6 Nov 2007 16:48:42 +0000 (6 10:48 -0600)
committerAvi Kivity <avi@qumranet.com>
Wed, 7 Nov 2007 13:44:07 +0000 (7 15:44 +0200)
tree96ec2ff912b88fe863fa3623c9569c3579ee6ed5
parent00ec67470a6939061b5b12bd579690b986d87667
kvm: libkvm: move kvm_context to kvm-common.h & add CFLAGS to config-* filese

This patch moves kvm_context from libkvm.c to kvm-common.h. This is so
other files are able to see members of kvm_context. Also you should
allways declare stuff like this in a header anyway.

Also moved are delcrations MAX_VCPU, KVM_MAX_NUM_MEM_REGIONS
to kvm-common.h. While PAGE_SIZE & PAGE_MASK where moved to kvm-x86.h.

The idea here is kvm-$(ARCH).h will be headers for interal use by
libkvm. Headers name libkvm-$(ARCH) will be functions that are
arch specific that will be exposed to a user.

Also apart of this patch is added CFLAGS to the config-$(ARCH).mak files.
Really instead there needed to be a unified make file for libkvm &
user directory. But for now this fixes the issue

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
kvm/libkvm/config-i386.mak
kvm/libkvm/config-x86_64.mak
kvm/libkvm/kvm-common.h [new file with mode: 0644]
kvm/libkvm/kvm-x86.h [new file with mode: 0644]
kvm/libkvm/libkvm.c
kvm/libkvm/libkvm.h