Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-28 Thread Wei Xu
Avi, Thanks for quick response! Let me know when it's done. Wei On 3/28/11 9:33 AM, "Avi Kivity" wrote: > On 03/28/2011 06:31 PM, Wei Xu wrote: >> Avi, >> >> That's why I also attached the mmx-qemu.patch for user space... >> > > We can't ask users to rebuild their qemus when they upgrade

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-28 Thread Avi Kivity
On 03/28/2011 06:31 PM, Wei Xu wrote: Avi, That's why I also attached the mmx-qemu.patch for user space... We can't ask users to rebuild their qemus when they upgrade a kernel. I pushed a new version as tag sse-mmio-v2; unfortunately there's quite a bit of work remaining. -- error compili

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-28 Thread Wei Xu
Avi, That's why I also attached the mmx-qemu.patch for user space... Wei On 3/28/11 2:23 AM, "Avi Kivity" wrote: > On 03/28/2011 02:53 AM, Wei Xu wrote: +++ linux/contents/include/linux/kvm.h 2011-03-21 09:16:39.0 -0700 @@ -152,7 +152,7 @@ /* KVM_EXIT_MMIO */

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-28 Thread Avi Kivity
On 03/28/2011 02:54 AM, Wei Xu wrote: Avi, Are you sure there is a sse-mmio branch? I could not find it anywhere... http://git.kernel.org/?p=virt/kvm/kvm.git;a=shortlog;h=refs/heads/sse-mmio Badly out of date, and somewhat broken. Rebasing and fixing now. -- error compiling committee.c:

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-28 Thread Avi Kivity
On 03/28/2011 02:53 AM, Wei Xu wrote: >> +++ linux/contents/include/linux/kvm.h 2011-03-21 09:16:39.0 -0700 >> @@ -152,7 +152,7 @@ >> /* KVM_EXIT_MMIO */ >> struct { >> __u64 phys_addr; >> - __u8 data[8]; >> + __u8 data[16]; >> __u32 len; >> __u8 is_write; >> } mmio; > >

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-27 Thread Wei Xu
Avi, Are you sure there is a sse-mmio branch? I could not find it anywhere... Wei Xu On 3/27/11 4:57 AM, "Avi Kivity" wrote: > On 03/26/2011 12:12 AM, Wei Xu wrote: >> Jiri& Avi: >> >> I attached the patched I did for movq and movdqa emulation. Please note: >> (1) I only implemented those

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-27 Thread Wei Xu
Avi, See my comment below with Wei>>. On 3/27/11 4:57 AM, "Avi Kivity" wrote: > On 03/26/2011 12:12 AM, Wei Xu wrote: >> Jiri& Avi: >> >> I attached the patched I did for movq and movdqa emulation. Please note: >> (1) I only implemented those two. Other instructions like addq may be >> follo

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-27 Thread Avi Kivity
On 03/26/2011 12:12 AM, Wei Xu wrote: Jiri& Avi: I attached the patched I did for movq and movdqa emulation. Please note: (1) I only implemented those two. Other instructions like addq may be following same way. (2) I use same guest_fx_image to hold value and fxsave/fxrstor to copy to/from regi

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-25 Thread Wei Xu
Jiri & Avi: I attached the patched I did for movq and movdqa emulation. Please note: (1) I only implemented those two. Other instructions like addq may be following same way. (2) I use same guest_fx_image to hold value and fxsave/fxrstor to copy to/from registers. This is not very efficient I admi

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-22 Thread Jiri Kosina
On Mon, 21 Mar 2011, Wei Xu wrote: > Avi and Jiri: > > I implemented emulation of movq(64bit) and movdqa(128 bit). If you guys > still need it let me know and I can post somewhere... I found a way around it, so I don't need it any more in the setup that has been affected. But it is definitely

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2011-03-21 Thread Wei Xu
Avi and Jiri: I implemented emulation of movq(64bit) and movdqa(128 bit). If you guys still need it let me know and I can post somewhere... Wei Xu On 8/31/10 9:30 AM, "Avi Kivity" wrote: > > On 08/31/2010 06:49 PM, Avi Kivity wrote: >> On 08/31/2010 05:32 PM, Jiri Kosina wrote: >>> (qemu)

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2010-08-31 Thread Avi Kivity
On 08/31/2010 06:49 PM, Avi Kivity wrote: On 08/31/2010 05:32 PM, Jiri Kosina wrote: (qemu) x/5i $eip 0xc027a841: movq (%esi),%mm0 0xc027a844: movq 0x8(%esi),%mm1 0xc027a848: movq 0x10(%esi),%mm2 0xc027a84c: movq 0x18(%esi),%mm3 0xc027a850:

Re: "KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2010-08-31 Thread Avi Kivity
On 08/31/2010 05:32 PM, Jiri Kosina wrote: (qemu) x/5i $eip 0xc027a841: movq (%esi),%mm0 0xc027a844: movq 0x8(%esi),%mm1 0xc027a848: movq 0x10(%esi),%mm2 0xc027a84c: movq 0x18(%esi),%mm3 0xc027a850: movq %mm0,(%edx) === Is there any issue w

"KVM internal error. Suberror: 1" with ancient 2.4 kernel as guest

2010-08-31 Thread Jiri Kosina
Hi, when migrating ancient machine to become KVM guest, I am facing a problem that KVM gives me the error below when being passed oldish vmlinuz image: === # qemu-kvm -kernel vmlinuz-2.4.33 KVM internal error. Suberror: 1 rax rbx 003e rcx rdx 0