Skip to content

Commit 4d90d33

Browse files
committed
arrangement
1 parent ac58714 commit 4d90d33

File tree

2,815 files changed

+680616
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,815 files changed

+680616
-99
lines changed

Diff for: kvm/config.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PREFIX=/usr/local
2-
KERNELDIR=../../../../linux
2+
KERNELDIR=../../windows-linux-compat
33
WANT_MODULE=1

Diff for: kvm/kernel/Makefile

+31-31
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,42 @@ INSTALLDIR = $(patsubst %/build,%/extra,$(KERNELDIR))
88

99
rpmrelease = devel
1010

11-
LINUX = ../../../../linux
11+
LINUX = ../../windows-linux-compat
1212

1313
EXTRA_CFLAGS +=
1414

15-
all:: sync
15+
all::
1616
$(MAKE) CC="gcc -D__WINKVM__ -save-temps" -C $(KERNELDIR) V=1 M=`pwd` "$$@"
1717

18-
sync:
19-
## rsync --exclude='*.mod.c' "$(LINUX)"/drivers/kvm/*.[ch] .
20-
rsync "$(LINUX)"/include/linux/kvm.h \
21-
"$(LINUX)"/include/linux/kvm_para.h \
22-
include/linux
23-
rsync "$(LINUX)"/include/asm/winkvmmisc.h \
24-
"$(LINUX)"/include/asm/msr-index.h \
25-
"$(LINUX)"/include/asm/processor-flags.h \
26-
"$(LINUX)"/include/asm/errno.h \
27-
"$(LINUX)"/include/asm/winkvm86.h \
28-
../../windows-linux-compat/asm
29-
rsync "$(LINUX)"/include/asm-generic/errno.h \
30-
../../windows-linux-compat/asm-generic
31-
rsync "$(LINUX)"/include/linux/winwdm.h \
32-
"$(LINUX)"/include/linux/winkvmint.h \
33-
"$(LINUX)"/include/linux/winkvmlist.h \
34-
"$(LINUX)"/include/linux/winkvmstab.h \
35-
"$(LINUX)"/include/linux/winkvmtypes.h \
36-
"$(LINUX)"/include/linux/winkvmgfp.h \
37-
../../windows-linux-compat/linux
38-
rsync "$(LINUX)"/include/linux/winkvmint.h \
39-
"$(LINUX)"/include/linux/winkvmgfp.h \
40-
"$(LINUX)"/include/linux/winkvm.h \
41-
../../vcproj/include/linux
42-
rsync ./vmx.h \
43-
../../vcproj/include/linux
44-
rsync "$(LINUX)"/include/linux/kvm.h \
45-
"$(LINUX)"/include/linux/winkvmtypes.h \
46-
../../vcproj/include/linux
18+
# sync:
19+
# ## rsync --exclude='*.mod.c' "$(LINUX)"/drivers/kvm/*.[ch] .
20+
# rsync "$(LINUX)"/include/linux/kvm.h \
21+
# "$(LINUX)"/include/linux/kvm_para.h \
22+
# include/linux
23+
# rsync "$(LINUX)"/include/asm/winkvmmisc.h \
24+
# "$(LINUX)"/include/asm/msr-index.h \
25+
# "$(LINUX)"/include/asm/processor-flags.h \
26+
# "$(LINUX)"/include/asm/errno.h \
27+
# "$(LINUX)"/include/asm/winkvm86.h \
28+
# ../../windows-linux-compat/asm
29+
# rsync "$(LINUX)"/include/asm-generic/errno.h \
30+
# ../../windows-linux-compat/asm-generic
31+
# rsync "$(LINUX)"/include/linux/winwdm.h \
32+
# "$(LINUX)"/include/linux/winkvmint.h \
33+
# "$(LINUX)"/include/linux/winkvmlist.h \
34+
# "$(LINUX)"/include/linux/winkvmstab.h \
35+
# "$(LINUX)"/include/linux/winkvmtypes.h \
36+
# "$(LINUX)"/include/linux/winkvmgfp.h \
37+
# ../../windows-linux-compat/linux
38+
# rsync "$(LINUX)"/include/linux/winkvmint.h \
39+
# "$(LINUX)"/include/linux/winkvmgfp.h \
40+
# "$(LINUX)"/include/linux/winkvm.h \
41+
# ../../vcproj/include/linux
42+
# rsync ./vmx.h \
43+
# ../../vcproj/include/linux
44+
# rsync "$(LINUX)"/include/linux/kvm.h \
45+
# "$(LINUX)"/include/linux/winkvmtypes.h \
46+
# ../../vcproj/include/linux
4747
# sed -i 's/f_path\./f_/' kvm_main.c
4848
# sed -i 's/f_mnt/f_vfsmnt/' kvm_main.c
4949
# mv kvm_main.c kvm_main.c.orig

Diff for: kvm/winkvm-qemu/config-host.h

-11
This file was deleted.

Diff for: kvm/winkvm-qemu/config-host.mak

-34
This file was deleted.

Diff for: kvm/winkvm-qemu/configure

+110
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,100 @@ bsd="no"
9797
linux="no"
9898
kqemu="no"
9999
profiler="no"
100+
#!/bin/sh
101+
#
102+
# qemu configure script (c) 2003 Fabrice Bellard
103+
#
104+
# set temporary file name
105+
if test ! -z "$TMPDIR" ; then
106+
TMPDIR1="${TMPDIR}"
107+
elif test ! -z "$TEMPDIR" ; then
108+
TMPDIR1="${TEMPDIR}"
109+
else
110+
TMPDIR1="/tmp"
111+
fi
112+
113+
TMPC="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.c"
114+
TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"
115+
TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}"
116+
TMPS="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.S"
117+
118+
# default parameters
119+
prefix=""
120+
interp_prefix="/usr/gnemul/qemu-%M"
121+
static="no"
122+
cross_prefix=""
123+
cc="gcc"
124+
gcc3_search="yes"
125+
gcc3_list="gcc-3.4 gcc34 gcc-3.3 gcc33 gcc-3.2 gcc32"
126+
host_cc="gcc"
127+
ar="ar"
128+
make="make"
129+
install="install"
130+
strip="strip"
131+
cpu=`uname -m`
132+
target_list=""
133+
case "$cpu" in
134+
i386|i486|i586|i686|i86pc|BePC)
135+
cpu="i386"
136+
;;
137+
armv*b)
138+
cpu="armv4b"
139+
;;
140+
armv*l)
141+
cpu="armv4l"
142+
;;
143+
alpha)
144+
cpu="alpha"
145+
;;
146+
"Power Macintosh"|ppc|ppc64)
147+
cpu="powerpc"
148+
;;
149+
mips)
150+
cpu="mips"
151+
;;
152+
s390)
153+
cpu="s390"
154+
;;
155+
sparc|sun4[muv])
156+
cpu="sparc"
157+
;;
158+
sparc64)
159+
cpu="sparc64"
160+
;;
161+
ia64)
162+
cpu="ia64"
163+
;;
164+
m68k)
165+
cpu="m68k"
166+
;;
167+
x86_64|amd64)
168+
cpu="x86_64"
169+
;;
170+
*)
171+
cpu="unknown"
172+
;;
173+
esac
174+
gprof="no"
175+
bigendian="no"
176+
mingw32="no"
177+
EXESUF=""
178+
gdbstub="yes"
179+
slirp="yes"
180+
adlib="no"
181+
oss="no"
182+
dsound="no"
183+
coreaudio="no"
184+
alsa="no"
185+
fmod="no"
186+
fmod_lib=""
187+
fmod_inc=""
188+
bsd="no"
189+
linux="no"
190+
kqemu="no"
191+
kvm="no"
192+
profiler="no"
193+
kernel_path=""
100194
cocoa="no"
101195
check_gfx="yes"
102196
check_gcc="yes"
@@ -136,6 +230,7 @@ bsd="yes"
136230
oss="yes"
137231
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
138232
kqemu="yes"
233+
kvm="yes"
139234
fi
140235
;;
141236
NetBSD)
@@ -193,6 +288,7 @@ linux_user="yes"
193288
usb="linux"
194289
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
195290
kqemu="yes"
291+
kvm="yes"
196292
fi
197293
;;
198294
esac
@@ -284,6 +380,8 @@ for opt do
284380
;;
285381
--disable-kqemu) kqemu="no"
286382
;;
383+
--enable-kvm) kvm="yes"
384+
;;
287385
--enable-profiler) profiler="yes"
288386
;;
289387
--enable-cocoa) cocoa="yes" ; coreaudio="yes" ; sdl="no"
@@ -394,6 +492,8 @@ echo " --target-list=LIST set target list [$target_list]"
394492
echo ""
395493
echo "kqemu kernel acceleration support:"
396494
echo " --disable-kqemu disable kqemu support"
495+
echo " --kernel-path=PATH set the kernel path (configure probes it)"
496+
echo " --enable-kvm enable kernel virtual machine support"
397497
echo ""
398498
echo "Advanced options (experts only):"
399499
echo " --source-path=PATH path of source code [$source_path]"
@@ -746,6 +846,7 @@ if test -n "$sparc_cpu"; then
746846
echo "Target Sparc Arch $sparc_cpu"
747847
fi
748848
echo "kqemu support $kqemu"
849+
echo "kvm support $kvm"
749850
echo "Documentation $build_docs"
750851
[ ! -z "$uname_release" ] && \
751852
echo "uname -r $uname_release"
@@ -1087,13 +1188,21 @@ elfload32="no"
10871188
interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"`
10881189
echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h
10891190

1191+
configure_kvm() {
1192+
if test $kvm = "yes" -a "$target_softmmu" = "yes" -a $cpu = "$target_cpu" ; then
1193+
echo "#define USE_KVM 1" >> $config_h
1194+
echo "CONFIG_KVM_KERNEL_INC=$kernel_path/include" >> $config_mak
1195+
fi
1196+
}
1197+
10901198
if test "$target_cpu" = "i386" ; then
10911199
echo "TARGET_ARCH=i386" >> $config_mak
10921200
echo "#define TARGET_ARCH \"i386\"" >> $config_h
10931201
echo "#define TARGET_I386 1" >> $config_h
10941202
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "i386" ; then
10951203
echo "#define USE_KQEMU 1" >> $config_h
10961204
fi
1205+
configure_kvm
10971206
elif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then
10981207
echo "TARGET_ARCH=arm" >> $config_mak
10991208
echo "#define TARGET_ARCH \"arm\"" >> $config_h
@@ -1149,6 +1258,7 @@ elif test "$target_cpu" = "x86_64" ; then
11491258
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then
11501259
echo "#define USE_KQEMU 1" >> $config_h
11511260
fi
1261+
configure_kvm
11521262
elif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then
11531263
echo "TARGET_ARCH=mips" >> $config_mak
11541264
echo "#define TARGET_ARCH \"mips\"" >> $config_h

0 commit comments

Comments
 (0)