From owner-freebsd-virtualization@FreeBSD.ORG Wed May 21 09:31:48 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6EA45990 for ; Wed, 21 May 2014 09:31:48 +0000 (UTC) Received: from nijmegen.renzel.net (mx1.renzel.net [195.243.213.130]) by mx1.freebsd.org (Postfix) with ESMTP id 2DD812431 for ; Wed, 21 May 2014 09:31:47 +0000 (UTC) Received: from dublin.vkf.isb.de.renzel.net (unknown [10.0.0.80]) by nijmegen.renzel.net (smtpd) with ESMTP id D5D8F14148DF for ; Wed, 21 May 2014 11:31:32 +0200 (CEST) Received: from asbach.renzel.net (unknown [10.2.0.7]) by dublin.vkf.isb.de.renzel.net (Postfix) with ESMTP id 8E5B41A056C for ; Wed, 21 May 2014 11:31:31 +0200 (CEST) Content-Type: text/plain; charset="ISO-8859-1" From: Nils Beyer Organization: VKF Renzel GmbH Date: Wed, 21 May 2014 11:31:31 +0200 User-Agent: KNode/4.12.4 Content-Transfer-Encoding: 7Bit Subject: Re: bhyve: svm (amd-v) update To: freebsd-virtualization@freebsd.org References: <53748481.8010108@FreeBSD.org> <537BC30C.4070208@digiware.nl> <537C5AF0.7070403@digiware.nl> Lines: 55 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.98 at nijmegen.renzel.net X-Virus-Status: Clean X-Spam-Status: No, score=-6.5 required=7.0 tests=BAYES_00,MISSING_MID, UNPARSEABLE_RELAY autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on nijmegen.renzel.net 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 09:31:48 -0000 Hi Willem, Willem Jan Withagen wrote: > I'd be interested in the vlapic to if that helps the speed. > But you can help me a lot if you give me the SVN commands to do what you > described above. These were my steps: 0) mv /usr/src /usr/src.bak 1) svnlite co svn://svn.freebsd.org/base/projects/bhyve_svm /usr/src 2) cd /usr/src 3) patch -p4 < /tmp/bhyve_svm_HEAD_r263780.patch 4) svnlite merge svn://svn.freebsd.org/base/head one conflict in file "amdv.c" - enter "mf" (mine-full); in my previous post, I mistakenly said "theirs-full"; what is, of course, wrong. 5) manually patch "amdv.c" with: <----------------------- SNIP -----------------------------> Index: sys/amd64/vmm/amd/amdv.c =================================================================== --- sys/amd64/vmm/amd/amdv.c (revision 266491) +++ sys/amd64/vmm/amd/amdv.c (working copy) @@ -99,7 +99,7 @@ } static void -amd_iommu_add_device(void *domain, int bus, int slot, int func) +amd_iommu_add_device(void *domain, uint16_t rid) { printf("amd_iommu_add_device: not implemented\n"); @@ -106,7 +106,7 @@ } static void -amd_iommu_remove_device(void *domain, int bus, int slot, int func) +amd_iommu_remove_device(void *domain, uint16_t rid) { printf("amd_iommu_remove_device: not implemented\n"); <----------------------- SNIP -----------------------------> 6) should be fine now to compile and to integrate your patches Thanks a lot for your work and regards, Nils