From owner-freebsd-virtualization@FreeBSD.ORG Wed May 21 07:11:27 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4BABE59A for ; Wed, 21 May 2014 07:11:27 +0000 (UTC) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9BBC2413 for ; Wed, 21 May 2014 07:11:26 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id E81F8153ABA; Wed, 21 May 2014 09:11:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Te0j003yANE; Wed, 21 May 2014 09:11:13 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:5099:2185:4a0e:9ad8] (unknown [IPv6:2001:4cb8:3:1:5099:2185:4a0e:9ad8]) by smtp.digiware.nl (Postfix) with ESMTP id 2C87C153434; Wed, 21 May 2014 09:11:13 +0200 (CEST) Message-ID: <537C518C.7030505@digiware.nl> Date: Wed, 21 May 2014 09:11:08 +0200 From: Willem Jan Withagen Organization: Digiware Management b.v. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Anish , freebsd-virtualization@freebsd.org Subject: Re: bhyve: svm (amd-v) update References: <53748481.8010108@FreeBSD.org> <537BC30C.4070208@digiware.nl> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2014 07:11:27 -0000 On 2014-05-21 6:59, Anish wrote: > Hi Willem, > Thanks for sharing your patch. I see that you have gone further than > what I have. Are you able to boot Linux with these changes? I'm running ubuntu-{12.x,14.04} with this and I'm able to compile the linux kernel. Peter helped a lot in getting it going. Although that is already takeing something like a week... So it is slow. You might also need my ahci hack/patch, since linux uses a lot of flushes and there is a 'bug' in the FreeBSD end of ahci that does not really cooperate with the way ubuntu-14.04 calls it. So I've emulated a flush to a NO-OP. which then results in a panic because the ahci command-list is empty. So I 'fixed' that too, and then things run, albeit slow. CentOS it tried at the begining, but I'm just not a RH fan, so when that was too slow, I gave up. Give some time and I'll try and extract my ahci-hack-patch, and that is the last part that'll let you get on your way, booting linux. I do not have a lot of time to look at this, so I'm already a few weeks stuck on speeding up the linux-kernels. Also because I do not know enough of the inards of Linux.. --WjW > Thanks and regards, > Anish > > > > On Tue, May 20, 2014 at 2:03 PM, Willem Jan Withagen > wrote: > > On 15-5-2014 17:56, Anish wrote: > > Hi Andriy, > > Thanks for your interest in SVM port of bhyve. I do have patch > to sync it > > to > http://svnweb.freebsd.org/base?view=revision&revision=263780(3/26). If > > patches looks good to you, we can submit it. I have been testing > it on > > Phenom box which lacks some of newer SVM features. > > I don't quite understand against what this patch is? > > Do I run it over head, to get SVM code into head? > Or do I patch against bhyve_SVM, because in the later case I get > complaints that > fatal error: 'vlapic_priv.h' file not found > > # locate vlapic_priv.h > /usr/srcs/head/sys/amd64/vmm/io/vlapic_priv.h > > So I'm guessing that is against head. > But last time I looked at head, more than just the interrupt stuff was > missing.... > > --WjW > > >