From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artur Samborski Subject: Re: FreeBSD-amd64 fails to start with SMP on quemu-kvm Date: Fri, 11 Jan 2013 15:57:05 +0100 Message-ID: <50F02841.9040203@semihalf.com> References: <50EB0232.4090003@semihalf.com> <20130107230028.GE1139@amt.cnet> <50EC856F.7030905@semihalf.com> <20130109101540.GC700@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from smtp.semihalf.com ([213.17.239.109]:65087 "EHLO smtp.semihalf.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754850Ab3AKO5I (ORCPT ); Fri, 11 Jan 2013 09:57:08 -0500 In-Reply-To: <20130109101540.GC700@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: W dniu 09.01.2013 11:15, Gleb Natapov pisze: > On Tue, Jan 08, 2013 at 09:45:35PM +0100, Artur Samborski wrote: >> W dniu 08.01.2013 00:00, Marcelo Tosatti pisze: >>> On Mon, Jan 07, 2013 at 06:13:22PM +0100, Artur Samborski wrote: >>>> Hello, >>>> >>>> When i try to run FreeBSD-amd64 on more than 1 vcpu in quemu-kvm >>>> (Fedora Core 17) eg. to run FreeBSD-9.0-RELEASE-amd64 with: >>>> >>>> qemu-kvm -m 1024m -cpu host -smp 2 -cdrom >>>> /storage/iso/FreeBSD-9.0-RELEASE-amd64-dvd1.iso >>>> >>>> it freezes KVM with: >>>> >>>> KVM internal error. Suberror: 1 >>>> emulation failure >>>> RAX=ffffffff80b0d4c0 RBX=000000000009f000 RCX=00000000c0000080 >>>> RDX=0000000000000000 >>>> RSI=000000000000d238 RDI=0000000000000000 RBP=0000000000000000 >>>> RSP=0000000000000000 >>>> R8 =0000000000000000 R9 =0000000000000000 R10=0000000000000000 >>>> R11=0000000000000000 >>>> R12=0000000000000000 R13=0000000000000000 R14=0000000000000000 >>>> R15=0000000000000000 >>>> RIP=000000000009f076 RFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 >>>> ES =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA] >>>> CS =0008 0000000000000000 00000000 00209900 DPL=0 CS64 [--A] >>>> SS =9f00 000000000009f000 0000ffff 0000f300 DPL=3 DS16 [-WA] >>>> DS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] >>>> FS =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA] >>>> GS =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA] >>>> LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT >>>> TR =0000 0000000000000000 0000ffff 00008b00 DPL=0 TSS64-busy >>>> GDT= 000000000009f080 00000020 >>>> IDT= 0000000000000000 0000ffff >>>> CR0=80000011 CR2=0000000000000000 CR3=000000000009c000 CR4=00000030 >>>> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 >>>> DR3=0000000000000000 >>>> DR6=00000000ffff0ff0 DR7=0000000000000400 >>>> EFER=0000000000000501 >>>> Code=00 00 00 80 0f 22 c0 ea 70 f0 09 00 08 00 48 b8 c0 d4 b0 80 >>>> ff ff ff ff e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >>>> 00 99 20 00 ff ff 00 00 >>> >>> Artur, >>> >>> Can you check whether >>> >>> https://patchwork-mail.kernel.org/patch/1942681/ >>> >>> fixes your problem >>> >> >> Hi, thanks for the reply. >> >> Unfortunately, the patch does not help. Attempt to start FreeBSD >> amd64 via quemu-kvm with -smp parameter greater than 1 fails in >> exactly the same way as before. >> >> The patch was applied to the kernel from the 3.6.11-1.fc17.src.rpm package. >> >> Do I need some additional patches? >> >> > Can you try queue branch from kvm.git? > Thanks for the advice - I used kernel from kvm.git(queue) and was able to run FreeBSD-amd guest with SMP on my kvm-host server without previous problems. Unfortunately, after few hours server was hung up. Case requires further investigations, but generally speaking we went forward. Unfortunately, experiments on the server are difficult, because it is used for everyday work. -- Artur