Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-05 Thread Haydn Solomon
Hi Avi,

I'm having issues with kvm-55. Was running a winxp sp2 guest all day
yesterday with no problems. Shut down the guest at the end of the day. Boot
up guest this morning and was not able to get any network on the guest.
Networking on host was working fine. Shut down the guest. Started it back up
but guest hung on startup. The latest stable version in my experience has
been release 51. I have had issues with later releases. Releases 54 and 55
have both had issues with networking for me. Thanks.

Host details
Linux localhost.localdomain 2.6.23.1-21.fc7 #1 SMP Thu Nov 1 20:28:15 EDT
2007 x86_64 x86_64 x86_64 GNU/Linux

output of /proc/cpuinfo

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Core(TM)2 Duo CPU T7500  @ 2.20GHz
stepping: 10
cpu MHz : 800.000
cache size  : 4096 KB
physical id : 0
siblings: 2
core id : 1
cpu cores   : 2
fpu : yes
fpu_exception   : yes
cpuid level : 10
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm
constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx est tm2
ssse3 cx16 xtpr lahf_lm ida
bogomips: 4387.72
clflush size: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


Some output from guest hanging.

Message from syslogd@ at Wed Dec  5 06:41:08 2007 ...
localhost kernel: Bad page state in process 'qemu-system-x86'
Message from syslogd@ at Wed Dec  5 06:41:08 2007 ...
localhost kernel: page:8100022132a8 flags:0x00500804
mapping: mapcount:1 count:0 (Tainted: P   )


Message from syslogd@ at Wed Dec  5 06:41:09 2007 ...
localhost kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@ at Wed Dec  5 06:41:09 2007 ...
localhost kernel: Backtrace:
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel: Eeek! page_mapcount(page) went negative! (-1)
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel:   page pfn = 529c3
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel:   page-flags = 5008080014
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel:   page-count = 1
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel:   page-mapping = 
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel:   vma-vm_ops = 0x0
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
localhost kernel: [ cut here ]
Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...


Haydn







On Dec 4, 2007 8:49 AM, Avi Kivity [EMAIL PROTECTED] wrote:

 The cr3 reload optimization in kvm-54 killed Solaris, so here is a fix.

 Changes from kvm-54:
 - remove old hypercall driver (Anthony Liguori)
 - disable dirty page logging for main memory (Izik Eidus)
 - fix incorrect page count calculation for dirty logging (Izik Eidus)
 - improve testsuite 'make clean' (Neo Jia)
 - compile fix (Sheng Yang)
 - reorganize x86 emulator main switch
 - don't bypass mmu on pae cr3 reload if pdptrs changed
   - fixes Solaris x86
 - use common defines for EFER (Carlo Marcelo Arenas Belon)
 - portability (Xiantao Zhang)
 - fix kvm_init() error path (Xiantao Zhang)
 - ia64 iosapic support (Xiantao Zhang)

 Notes:
  If you use the modules bundled with kvm-55, 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


 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 kvm-devel mailing list
 kvm-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/kvm-devel

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-05 Thread Avi Kivity
Ryan Harper wrote:
 * Cam Macdonell [EMAIL PROTECTED] [2007-12-04 13:08]:
   
 Hi Avi,

 I'm having a problem with unifdef target in the 
 kvm-userspace/kernel/Makefile:

 [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync 
 LINUX=~/src/KVM/kvm
 make: Entering directory `/home/cam/src/KVM/kvm-userspace/kernel'
 rsync --exclude='*.mod.c' /home/cam/src/KVM/kvm/drivers/kvm/*.[ch] .
 rsync /home/cam/src/KVM/kvm/include/linux/kvm.h \
 /home/cam/src/KVM/kvm/include/linux/kvm_para.h \
  include/linux
 rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm_para.h include/asm
 rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm.h include/asm
 mv  include/linux/kvm.h  include/linux/kvm.h.orig  unifdef 
 -DCONFIG_X86  include/linux/kvm.h.orig   include/linux/kvm.h; (( $? = 
 1 ))  rm  include/linux/kvm.h.orig
 /bin/sh: unifdef: not found
 /bin/sh: cannot open =: No such file
 /bin/sh: 127: not found
 make: *** [sync] Error 127
 make: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel'
 

 I needed to install the unifdef binary (apt-get install unifdef) and
 then apply the attached patch to get make LINUX= sync working again.

   

Oh, someone already posted this but I forgot.  Anyway I applied this patch.

-- 
error compiling committee.c: too many arguments to function


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-05 Thread Izik Eidus
Haydn Solomon wrote:


 Some output from guest hanging.

 Message from syslogd@ at Wed Dec  5 06:41:08 2007 ...
 localhost kernel: Bad page state in process 'qemu-system-x86'
 Message from syslogd@ at Wed Dec  5 06:41:08 2007 ...
 localhost kernel: page:8100022132a8 flags:0x00500804 
 mapping: mapcount:1 count:0 (Tainted: P   )


 Message from syslogd@ at Wed Dec  5 06:41:09 2007 ...
 localhost kernel: Trying to fix it up, but a reboot is needed
 Message from syslogd@ at Wed Dec  5 06:41:09 2007 ...
 localhost kernel: Backtrace:
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel: Eeek! page_mapcount(page) went negative! (-1)
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel:   page pfn = 529c3
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel:   page-flags = 5008080014
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel:   page-count = 1
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel:   page-mapping = 
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel:   vma-vm_ops = 0x0
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...
 localhost kernel: [ cut here ]
 Message from syslogd@ at Wed Dec  5 06:42:27 2007 ...


this is weird, i dont understand how you get page_mapcount to be negative
(i would understand if _count would go to negative (not that i will like 
it :))

do you remember from witch version of kvm it started? (kvm-47 ???)

one more thing is that beside you i dont know anyone who get this kind 
of error,
is it ever happen to you when you dont use kvm?
is your guest image is something special?, can i some how do anything 
that will give me the same result on my host?

at lkml Dave Jones say that many of thease can be hardware problem (i 
would count more that it is kvm bug, but maybe it is worth trying memtest)
http://lkml.org/lkml/2007/10/16/295

but one big hint for me will be if you will be able to tell if the 
problem start right after kvm-47 and never before it.

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


[kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Avi Kivity
The cr3 reload optimization in kvm-54 killed Solaris, so here is a fix.

Changes from kvm-54:
- remove old hypercall driver (Anthony Liguori)
- disable dirty page logging for main memory (Izik Eidus)
- fix incorrect page count calculation for dirty logging (Izik Eidus)
- improve testsuite 'make clean' (Neo Jia)
- compile fix (Sheng Yang)
- reorganize x86 emulator main switch
- don't bypass mmu on pae cr3 reload if pdptrs changed
   - fixes Solaris x86
- use common defines for EFER (Carlo Marcelo Arenas Belon)
- portability (Xiantao Zhang)
- fix kvm_init() error path (Xiantao Zhang)
- ia64 iosapic support (Xiantao Zhang)

Notes:
  If you use the modules bundled with kvm-55, 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


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Ryan Harper
* Cam Macdonell [EMAIL PROTECTED] [2007-12-04 13:08]:
 
 Hi Avi,
 
 I'm having a problem with unifdef target in the 
 kvm-userspace/kernel/Makefile:
 
 [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync 
 LINUX=~/src/KVM/kvm
 make: Entering directory `/home/cam/src/KVM/kvm-userspace/kernel'
 rsync --exclude='*.mod.c' /home/cam/src/KVM/kvm/drivers/kvm/*.[ch] .
 rsync /home/cam/src/KVM/kvm/include/linux/kvm.h \
 /home/cam/src/KVM/kvm/include/linux/kvm_para.h \
  include/linux
 rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm_para.h include/asm
 rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm.h include/asm
 mv  include/linux/kvm.h  include/linux/kvm.h.orig  unifdef 
 -DCONFIG_X86  include/linux/kvm.h.orig   include/linux/kvm.h; (( $? = 
 1 ))  rm  include/linux/kvm.h.orig
 /bin/sh: unifdef: not found
 /bin/sh: cannot open =: No such file
 /bin/sh: 127: not found
 make: *** [sync] Error 127
 make: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel'

I needed to install the unifdef binary (apt-get install unifdef) and
then apply the attached patch to get make LINUX= sync working again.


-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
[EMAIL PROTECTED]
diff --git a/kernel/Makefile b/kernel/Makefile
index 22326b2..782685e 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -18,7 +18,7 @@ hack =mv $1 $1.orig  \
| sed 's/\blapic\b/l_apic/g'  $1  rm $1.orig
 
 unifdef = mv $1 $1.orig  \
- unifdef -DCONFIG_X86 $1.orig  $1; (( $$? = 1 ))  rm $1.orig
+ unifdef -DCONFIG_X86 $1.orig  $1; [ $$? -le 1 ]  rm $1.orig
 
 all::
$(MAKE) -C $(KERNELDIR) M=`pwd` $$@
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Cam Macdonell
Ryan Harper wrote:
 * Cam Macdonell [EMAIL PROTECTED] [2007-12-04 13:08]:
 Hi Avi,

 I'm having a problem with unifdef target in the 
 kvm-userspace/kernel/Makefile:

 [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync 
 LINUX=~/src/KVM/kvm
 make: Entering directory `/home/cam/src/KVM/kvm-userspace/kernel'
 rsync --exclude='*.mod.c' /home/cam/src/KVM/kvm/drivers/kvm/*.[ch] .
 rsync /home/cam/src/KVM/kvm/include/linux/kvm.h \
 /home/cam/src/KVM/kvm/include/linux/kvm_para.h \
  include/linux
 rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm_para.h include/asm
 rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm.h include/asm
 mv  include/linux/kvm.h  include/linux/kvm.h.orig  unifdef 
 -DCONFIG_X86  include/linux/kvm.h.orig   include/linux/kvm.h; (( $? = 
 1 ))  rm  include/linux/kvm.h.orig
 /bin/sh: unifdef: not found
 /bin/sh: cannot open =: No such file
 /bin/sh: 127: not found
 make: *** [sync] Error 127
 make: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel'
 
 I needed to install the unifdef binary (apt-get install unifdef) and
 then apply the attached patch to get make LINUX= sync working again.
 

Ah, I didn't realize that it's a program.

Thanks,
Cam

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel