Re: [ANNOUNCE] kvm-36 release

Gildas
2007-09-12T16:13:18Z

Hi,

Some updates since kvm-37

Compilation worked fine for me on an intel Core2 64bits machine
running ubuntu feisty with kernel 2.6.20 x86_64.

Loading modules went ok.

* Running a windows xp image with "/usr/local/bin/qemu-system-x86_64
-smp 2 -m 768 -hda win_xp.qcow -net user -net nic -monitor
tcp::4444,server -vnc :1 -redir tcp:3389::3389 &" result in :
exception 6 (0)
rax 0000000000000000 rbx 0000000000000000 rcx 0000000000000000 rdx
0000000000000600
rsi 0000000000000000 rdi 0000000000000000 rsp 000000000000fffe rbp
0000000000000000
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11
0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15
0000000000000000
rip 0000000000000003 rflags 00033082
cs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (30850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 0/ffff
idt 0/ffff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
code: 54 ff 00 --> f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0
53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 a5 fe 00 f0 87 e9 00 f0 53 ff 00
f0 53 ff 00 f0 53 ff

* The same image boots with "/usr/local/bin/qemu-system-x86_64 -m 768
-hda win_xp.qcow -net user -net nic -monitor tcp::4444,server -vnc :1
-redir tcp:3389::3389 &".

* I've found out that "-net nic -net user" don't interact nicely with
"-smp 2", as the following test with a debian image (kernel 2.6.18
64bits)shows:
-smp 2 -net user (without -net nic)-> boots fine
-smp 2 -net nic (without -net user)-> boots fine
-net nice -net user (without -smp 2) -> boots fine
-smp 2 -net user -net nic -> crash with:
exception 6 (0)
rax 0000000000000000 rbx 0000000000000000 rcx 0000000000000000 rdx
0000000000000600
rsi 0000000000000000 rdi 0000000000000000 rsp 000000000000fffe rbp
0000000000000000
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11
0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15
0000000000000000
rip 0000000000000003 rflags 00033082
cs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (30850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 0/ffff
idt 0/ffff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
code: 54 ff 00 --> f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0
53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 a5 fe 00 f0 87 e9 00 f0 53 ff 00
f0 53 ff 00 f0 53 ff
Aborted (core dumped)

Also, when it boots correctly with "-smp 2" it shows 2 processors in
/proc/cpuinfo, but I have messages as follows at bootup:
" ACPI : Getting cpuindex for acpiid 0x2
ACPI Exception (acpi_processor-0681): AE_NOT_FOUND, Processor Device
not present [20060707]"
(not sure if this is related but I don't remember having seen them before)

HTH
Gildas

2007/9/12, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>:
> That's kvm-39 of course.
>
> Avi Kivity wrote:
> > Fix a couple of lapic hiccups in kvm-38.
> >
> > Changes since kvm-38:
> > - provide div64_64() for older kernels
> > - improve emulation failure reporting
> > - more x86 emulator work (push imm8, pushf, call near) (Nitin A Kamble)
> > - don't use TPR shadow on i386 (Sheng Yang)
> >
> > Notes:
> > If you use the modules bundled with kvm-39, you can use any version
> > of Linux from 2.6.9 upwards.
> > If you use the modules bundled with Linux 2.6.20, you need to use
> > kvm-12.
> > If you use the modules bundled with Linux 2.6.21, you need to use
> > kvm-17.
> > Modules from Linux 2.6.22 and up will work with any kvm version from
> > kvm-22. Some features may only be available in newer releases.
> > For best performance, use Linux 2.6.23-rc2 or later as the host.
> >
> > http://kvm.qumranet.com
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > kvm-devel mailing list
> > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/kvm-devel
> >
>
>
> --
> 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 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.