Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-27 Thread Avi Kivity
Dave Hansen wrote:
 On Wed, 2008-03-26 at 18:58 +0200, Avi Kivity wrote:
   
 Dave Hansen wrote:
 
 On Wed, 2008-03-26 at 11:50 +0200, Avi Kivity wrote:
   
 Dave Hansen wrote:
 
 
 I was getting some kvm userspace crashes trying to run a Windows guest.
 So, I decided to try a recent kernel (2.6.25-rc6-00333-ga4083c9)  with
 the kvm kernel code that shipped with that kernel.

   
   
 This is fixed in 2.6.25-rc7.
 
 
 I just updated to -rc7 and re-tested.  Same symptoms:
   
 Bad.  Which kvm userspace are you running?
 

 ~/src/kvm-userspace$ git describe
 kvm-63-118-g52be1a1

   

I dug out my i386 install and tried it.  Doesn't reproduce for me on 
either kvm.git or -rc7.

Do you have a working setup that we can bisect?


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


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-27 Thread Avi Kivity
Avi Kivity wrote:
 Dave Hansen wrote:
 On Wed, 2008-03-26 at 18:58 +0200, Avi Kivity wrote:
  
 Dave Hansen wrote:

 On Wed, 2008-03-26 at 11:50 +0200, Avi Kivity wrote:
  
 Dave Hansen wrote:

 I was getting some kvm userspace crashes trying to run a Windows 
 guest.
 So, I decided to try a recent kernel (2.6.25-rc6-00333-ga4083c9)  
 with
 the kvm kernel code that shipped with that kernel.

[...]


btw, is this with = 4GB RAM on the host?

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


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-27 Thread Avi Kivity
Dave Hansen wrote:
 On Thu, 2008-03-27 at 12:10 +0200, Avi Kivity wrote:
   
 btw, is this with = 4GB RAM on the host?
 

 Well, are you asking whether I have PAE on or not? :)

   

No, I'm asking whether there is a possibility of address truncation :)

PAE by itself doesn't affect kvm much, as it always runs the guest in 
pae mode.

Can you try running with mem=2000M or something?

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


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-27 Thread Dave Hansen
On Thu, 2008-03-27 at 11:36 +0200, Avi Kivity wrote:
 I dug out my i386 install and tried it.  Doesn't reproduce for me on 
 either kvm.git or -rc7.
 
 Do you have a working setup that we can bisect?

I don't really have a working revision to bisect against.  I'm not sure
that it ever worked.  It's also on my actual laptop, so it's a bit of a
pain to get any other work done while I'm bisecting. :)

I'll move the Windows image over to another machine today and see if I
can reproduce elsewhere.  I'll also check some older versions of KVM to
see if any of those work.  If I do that, should I keep the kvm
userspace, modules and BIOSes all synchronized from each version that I
test?

-- Dave


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-27 Thread Dave Hansen
On Thu, 2008-03-27 at 17:53 +0200, Avi Kivity wrote:
 Dave Hansen wrote:
  On Thu, 2008-03-27 at 11:36 +0200, Avi Kivity wrote:

  I dug out my i386 install and tried it.  Doesn't reproduce for me on 
  either kvm.git or -rc7.
 
  Do you have a working setup that we can bisect?
  
  I don't really have a working revision to bisect against.  I'm not sure
  that it ever worked.  
 
 I'm fairly sure Windows works on kvm...

Oh, I didn't mean to imply that Windows doesn't work, just that the
particular perverted way in which I'm poking it may have never
worked. :)

 How did you generate the image?

The original install was done in a kqemu-accelerated host. 

  It's also on my actual laptop, so it's a bit of a
  pain to get any other work done while I'm bisecting. :)
 
  I'll move the Windows image over to another machine today and see if I
  can reproduce elsewhere.  I'll also check some older versions of KVM to
  see if any of those work.  If I do that, should I keep the kvm
  userspace, modules and BIOSes all synchronized from each version that I
  test?

 
 You can keep the userspace (qemu + bios) fixed and change the kernel, or 
 vice versa.
 
-- Dave


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-27 Thread Dave Hansen
On Thu, 2008-03-27 at 16:59 +0200, Avi Kivity wrote:
 Dave Hansen wrote:
  On Thu, 2008-03-27 at 12:10 +0200, Avi Kivity wrote:
  btw, is this with = 4GB RAM on the host?
  
  Well, are you asking whether I have PAE on or not? :)
 
 No, I'm asking whether there is a possibility of address truncation :)
 
 PAE by itself doesn't affect kvm much, as it always runs the guest in 
 pae mode.
 
 Can you try running with mem=2000M or something?

Oh, sure.  I'll give that a shot.

-- Dave


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-26 Thread Avi Kivity
Dave Hansen wrote:
 I was getting some kvm userspace crashes trying to run a Windows guest.
 So, I decided to try a recent kernel (2.6.25-rc6-00333-ga4083c9)  with
 the kvm kernel code that shipped with that kernel.

   

This is fixed in 2.6.25-rc7.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to 
panic.


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-26 Thread Avi Kivity
Dave Hansen wrote:
 On Wed, 2008-03-26 at 11:50 +0200, Avi Kivity wrote:
   
 Dave Hansen wrote:
 
 I was getting some kvm userspace crashes trying to run a Windows guest.
 So, I decided to try a recent kernel (2.6.25-rc6-00333-ga4083c9)  with
 the kvm kernel code that shipped with that kernel.

   
 This is fixed in 2.6.25-rc7.
 

 I just updated to -rc7 and re-tested.  Same symptoms:
   

Bad.  Which kvm userspace are you running?

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


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-26 Thread Dave Hansen
On Wed, 2008-03-26 at 18:58 +0200, Avi Kivity wrote:
 Dave Hansen wrote:
  On Wed, 2008-03-26 at 11:50 +0200, Avi Kivity wrote:
  Dave Hansen wrote:
  
  I was getting some kvm userspace crashes trying to run a Windows guest.
  So, I decided to try a recent kernel (2.6.25-rc6-00333-ga4083c9)  with
  the kvm kernel code that shipped with that kernel.
 

  This is fixed in 2.6.25-rc7.
  
 
  I just updated to -rc7 and re-tested.  Same symptoms:
 
 Bad.  Which kvm userspace are you running?

~/src/kvm-userspace$ git describe
kvm-63-118-g52be1a1

-- Dave


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6

2008-03-26 Thread Dave Hansen
On Wed, 2008-03-26 at 11:50 +0200, Avi Kivity wrote:
 Dave Hansen wrote:
  I was getting some kvm userspace crashes trying to run a Windows guest.
  So, I decided to try a recent kernel (2.6.25-rc6-00333-ga4083c9)  with
  the kvm kernel code that shipped with that kernel.
 
 
 This is fixed in 2.6.25-rc7.

I just updated to -rc7 and re-tested.  Same symptoms:

[  751.033545] BUG: unable to handle kernel paging request at 0096b848
[  751.040082] IP: [c01a0636] d_instantiate+0x26/0x50
[  751.048065] Oops: 0002 [#1] SMP
[  751.052057] Modules linked in: kvm_intel kvm nls_iso8859_1 vfat fat rfcomm 
l2cap tun ppdev acpi_cpufreq cpufreq_ondemand cpe
[  751.052057]
[  751.052057] Pid: 8743, comm: evolution Not tainted (2.6.25-rc7 #146)
[  751.052057] EIP: 0060:[c01a0636] EFLAGS: 00210286 CPU: 0
[  751.052057] EIP is at d_instantiate+0x26/0x50
[  751.052057] EAX: 0096b844 EBX: e65d7d48 ECX:  EDX: e65d7d60
[  751.052057] ESI: e67a7d00 EDI: e67a7cc0 EBP: e802ce48 ESP: e802ce3c
[  751.052057]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[  751.052057] Process evolution (pid: 8743, ti=e802c000 task=f3c8ce00 
task.ti=e802c000)
[  751.052057] Stack: e65d7d48  f4c191f8 e802ce60 c01e2fa4 e67a7cc0 
f4c191f8 e65d7d48
[  751.052057]e660c280 e802ce80 c01e30c3 8180 e67a7cc0  
c03b4a00 e660c280
[  751.052057]8180 e802cea0 c0197964 e802cf24 c03b4a00 e67a7cc0 
e660c280 e802cf24
[  751.052057] Call Trace:
[  751.052057]  [c01e2fa4] ? ext3_add_nondir+0x34/0x60
[  751.052057]  [c01e30c3] ? ext3_create+0xf3/0x100
[  751.052057]  [c0197964] ? vfs_create+0x74/0x100
[  751.052057]  [c0197c8f] ? open_namei_create+0x4f/0xa0
[  751.052057]  [c01981f3] ? open_namei+0x513/0x560
[  751.052057]  [c018db2c] ? do_filp_open+0x2c/0x60
[  751.052057]  [c018dd29] ? get_unused_fd_flags+0x39/0xd0
[  751.052057]  [c018dec4] ? do_sys_open+0x54/0xe0
[  751.052057]  [c018df6c] ? sys_open+0x1c/0x20
[  751.052057]  [c0104e2c] ? sysenter_past_esp+0x6d/0xa5
[  751.052057]  [c039] ? quirk_vt8235_acpi+0x90/0xa0
[  751.052057]  ===
[  751.052057] Code: 27 00 00 00 00 55 89 e5 57 89 c7 56 8d 70 40 53
89 d3 39 70 40 75 37 b8 40 15 4e c0 e8 14 d1 1f 00 85 db
[  751.052057] EIP: [c01a0636] d_instantiate+0x26/0x50 SS:ESP 0068:e802ce3c
[  751.052103] ---[ end trace 514c1de750400319 ]---


-- Dave


-
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
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel