* compile error
@ 2007-06-01 5:22 Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01888A23-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Zhao, Yunfeng @ 2007-06-01 5:22 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1.1: Type: text/plain, Size: 843 bytes --]
I met an error when i build latest KVM on rhel5.
Seems asm/cmpxchg.h is not in the kernel before 2.6.22.
How can I fix the issue?
make -C kernel
make[1]: Entering directory `/tmp/tmp/kvm-userspace/kernel'
make -C /lib/modules/2.6.18-8.el5/build M=`pwd` "$@"
make[2]: Entering directory `/usr/src/kernels/2.6.18-8.el5-x86_64'
CC [M] /tmp/tmp/kvm-userspace/kernel/mmu.o
/tmp/tmp/kvm-userspace/kernel/mmu.c:25:25: error: asm/cmpxchg.h: No such
file or directory
make[3]: *** [/tmp/tmp/kvm-userspace/kernel/mmu.o] Error 1
make[2]: *** [_module_/tmp/tmp/kvm-userspace/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-x86_64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/tmp/kvm-userspace/kernel'
make: *** [kernel] Error 2
thanks
Yunfeng
[-- Attachment #1.2: Type: text/html, Size: 4835 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: debug and breakpoint interrupts handling?
@ 2007-06-28 3:26 Jun Koi
[not found] ` <fdaac4d50706272026r33a09fe5gf96d1e2827e3fa30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Jun Koi @ 2007-06-28 3:26 UTC (permalink / raw)
To: Dor Laor; +Cc: kvm-devel
On 6/28/07, Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> >On 6/27/07, Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> >> >BTW, I think that turning on debugger from qemu is a dangerous
> action,
> >> >from security point of view. Once the gdbserver is started, anybody
> >> >can connect to it (with gdb) and modify VM memory in anyway he wants
> >> >(like overwrite kernel with malicious code). The problem why this is
> >> >feasible is because there is no authentication machanism on
> gdbserver
> >> >at all.
> >>
> >> How can gdb-ing qemu harm the kernel? Although the whole guest memory
> >> image is mapped to qemu and writable for gdb, kernel data structures
> are
> >> not mapped (except for kvm_run and it has validity checks). So I
> don't
> >> think it's a security hole.
> >
> >You mean kvm_run() maps guest VM at the start, and unmaps it at the
> >end? That is interesting! That is obviously more secure, as when
> >debugger is active, it cannot modify VM.
>
> It's not why I meant.
> Kvm_run is mapped only once after the creation of the vcpu (in
> kvmctl.c).
Ah, we are talking past each other here :-). I thought you mentioned
kvm_run() function instead of kvm_run structure. (The naming system in
KVM is quite confused)
> The guest has ability to change at anytime the content of the kvm_run
> structure but it has no pointers and the values are checked against
> validity check each time the kernel uses it.
> So except for ruining the guest context gdb or malicious user cannot
> harm the kernel or other guests.
>
Again, a misunderstanding here. I wanted to say that gdb client can be
used to modify the kernel of *guest VM*, rather than host kernel.
Many thanks,
Jun
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 14+ messages in thread* Compile error
@ 2007-07-09 1:13 Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01B8F5C9-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Zhao, Yunfeng @ 2007-07-09 1:13 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I meet the error below when I compile KVM module against
30dac03825e830641054a829fe99ff6d1f2ebe0d. The kernel is 2.6.22-rc4.
+ make -C kernel
make[1]: Entering directory
`/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-users
pace/BUILD/kernel'
make -j20 -C /lib/modules/2.6.22-rc4/build M=`pwd` "$@"
make[2]: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.22rc4g85f6038f'
LD
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/built-in.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/svm.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/vmx.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/vmx-debug.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/mmu.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/x86_emulate.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/anon_inodes.o
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c: In function 'kvm_cpu_hotplug':
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3007: error: 'CPU_DYING' undeclared (first
use in this function)
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3007: error: (Each undeclared identifier is
reported only once
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3007: error: for each function it appears
in.)
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3008: error: 'CPU_DYING_FROZEN' undeclared
(first use in this function)
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3013: warning: implicit declaration of
function 'on_cpu'
make[3]: ***
[/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-users
pace/BUILD/kernel/kvm_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
How can I fix this issue?
Thanks
Yunfeng
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 14+ messages in thread* compile error
@ 2008-01-09 2:37 Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A029F4E20-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Zhao, Yunfeng @ 2008-01-09 2:37 UTC (permalink / raw)
To: kvm-devel
Today's tip fails to compile with following error messages:
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use
rspace/qemu/../libkvm -DCONFIG_X86 -Wall -O2 -g -fno-strict-aliasing
-I.
-I/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-u
serspace/qemu -MMD -MP -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE
-I/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-u
serspace/qemu/slirp -DQEMU_IMG -c -o qemu-img-block-raw-posix.o
block-raw-posix.c
In file included from /usr/include/linux/cdrom.h:14,
from block-raw-posix.c:52:
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use
rspace/qemu/../libkvm/asm/byteorder.h:9: error: syntax error before
"__u64"
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use
rspace/qemu/../libkvm/asm/byteorder.h:15: error: syntax error before
"__u32"
make[1]: *** [qemu-img-block-raw-posix.o] Error 1
make[1]: Leaving directory
`/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-us
erspace/qemu'
make: *** [qemu] Error 2
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 14+ messages in thread* compile error
@ 2008-02-18 2:38 Zhao, Yunfeng
2008-02-18 10:16 ` Avi Kivity
0 siblings, 1 reply; 14+ messages in thread
From: Zhao, Yunfeng @ 2008-02-18 2:38 UTC (permalink / raw)
To: kvm-devel
[-- Attachment #1.1: Type: text/plain, Size: 910 bytes --]
Today's IA32e KVM build fails, here is the error message:
libqemu.a(kvm-tpr-opt.o): In function `enable_vapic':
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-use
rspace/qemu/kvm-tpr-opt.c:232: undefined reference to `kvm_enable_vapic'
libqemu.a(kvm-tpr-opt.o): In function `kvm_tpr_vcpu_start':
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-use
rspace/qemu/kvm-tpr-opt.c:302: undefined reference to
`kvm_enable_tpr_access_reporting'
collect2: ld returned 1 exit status
make[2]: *** [qemu-system-x86_64] Error 1
make[2]: Leaving directory
`/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-us
erspace/qemu/x86_64-softmmu'
make[1]: *** [subdir-x86_64-softmmu] Error 2
make[1]: Leaving directory
`/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-us
erspace/qemu'
make: *** [qemu] Error 2
[-- Attachment #1.2: Type: text/html, Size: 3692 bytes --]
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #3: Type: text/plain, Size: 158 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: compile error
2008-02-18 2:38 Zhao, Yunfeng
@ 2008-02-18 10:16 ` Avi Kivity
2008-02-18 13:15 ` Zhao, Yunfeng
0 siblings, 1 reply; 14+ messages in thread
From: Avi Kivity @ 2008-02-18 10:16 UTC (permalink / raw)
To: Zhao, Yunfeng; +Cc: kvm-devel
Zhao, Yunfeng wrote:
>
> Today’s IA32e KVM build fails, here is the error message:
>
> libqemu.a(kvm-tpr-opt.o): In function `enable_vapic':
>
> /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu/kvm-tpr-opt.c:232:
> undefined reference to `kvm_enable_vapic'
>
> libqemu.a(kvm-tpr-opt.o): In function `kvm_tpr_vcpu_start':
>
> /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu/kvm-tpr-opt.c:302:
> undefined reference to `kvm_enable_tpr_access_reporting'
>
> collect2: ld returned 1 exit status
>
> make[2]: *** [qemu-system-x86_64] Error 1
>
> make[2]: Leaving directory
> `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu/x86_64-softmmu'
>
> make[1]: *** [subdir-x86_64-softmmu] Error 2
>
> make[1]: Leaving directory
> `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu'
>
> make: *** [qemu] Error 2
>
I can't reproduce this with the last snapshot. What commits hashes are
you using?
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-02-18 14:51 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 5:22 compile error Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01888A23-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-01 6:29 ` Avi Kivity
-- strict thread matches above, loose matches on Subject: below --
2007-06-28 3:26 debug and breakpoint interrupts handling? Jun Koi
[not found] ` <fdaac4d50706272026r33a09fe5gf96d1e2827e3fa30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-29 6:12 ` Compile error Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01AE9AD9-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-07-01 9:35 ` Dor Laor
2007-07-09 1:13 Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01B8F5C9-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-07-09 7:02 ` Avi Kivity
2008-01-09 2:37 compile error Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A029F4E20-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2008-01-09 8:39 ` Avi Kivity
[not found] ` <4784882F.9000103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-09 17:03 ` Hollis Blanchard
2008-01-10 9:56 ` Avi Kivity
2008-02-18 2:38 Zhao, Yunfeng
2008-02-18 10:16 ` Avi Kivity
2008-02-18 13:15 ` Zhao, Yunfeng
2008-02-18 14:51 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox