From owner-freebsd-virtualization@freebsd.org Wed Feb 7 23:10:02 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B595EE274E for ; Wed, 7 Feb 2018 23:10:02 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com [IPv6:2607:f8b0:400d:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B32F584034 for ; Wed, 7 Feb 2018 23:10:01 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-qk0-x235.google.com with SMTP id f68so3365083qke.9 for ; Wed, 07 Feb 2018 15:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=cqjPJd8wK2S/3I2j95hRQ15JaagJJfdK4EAjUchAAio=; b=G2WNo8D5fxAD396nQqJGKbU8Ukxp7a1FTrcSNSse2wWSr/pwhsAcJVpx9qQ89uwm32 LVz9mBQM36A6TKjXs/v4OULWF8cKYFmgoj4B0eRnWmAxxZnhqdXQ6Wf0BAUk0PJOFLWU xwqC2lw0KufNPD20/KEl4DbydhPJTbQCyU/f8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=cqjPJd8wK2S/3I2j95hRQ15JaagJJfdK4EAjUchAAio=; b=pE/+MKs/fymn20FkA/np9P1vVdRIOQCigXd4zKMTkqfitrZVbhrMkCMXjTVXGTK0cs Id0TOD5nT/TDwI/zBj+mpmvgNQG/KJI5yAiYo8bwyFcVuVi6aN8uEgJDqPmfqGHF7eEI HBhfPqSAqP+5WUoPN7H46X/ZEvl5EhXl6knAhdcgucXHJsaL0zK4D173BKXJOsZqh2SF R30cFpTKDevP9acLovYmGLi3tWV4KHpNeEZrSvLfTFQYCl0pSTZJcj/YRe4zUlLYAXBS l+6ukOemebJuj8KEYWC8wDN2F0XXtNwFGhtU22gl18zxyRe8UduL3hjDNe8VRBW4Y1Jo S3LA== X-Gm-Message-State: APf1xPAY1bvmQa+qaSJLUAJBcjjujGvXrVzgejr1hQMTMNNERmuTaGOX 57bdLnDbevFVdcT8Mdb/xfoRV2Du X-Google-Smtp-Source: AH8x225M27p8tg8FWmHm1TG016UxDsK3DhcxmsJ9nNnEpRUPRya1y9z56zeZW5UqhXCZuX+0VGIEaQ== X-Received: by 10.55.2.140 with SMTP id v12mr11300750qkg.340.1518045000863; Wed, 07 Feb 2018 15:10:00 -0800 (PST) Received: from Papi.lobos ([177.158.245.220]) by smtp.gmail.com with ESMTPSA id a190sm1219595qkf.20.2018.02.07.15.09.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 15:10:00 -0800 (PST) Date: Wed, 7 Feb 2018 20:12:24 -0300 From: Mario Lobo To: freebsd-virtualization@freebsd.org Subject: Re: Bhyve passthrough problems (update) Message-ID: <20180207201224.2c5c4c47@Papi.lobos> In-Reply-To: <20180119175257.3f29d9d6@Papi.lobos> References: <20180117202250.6ef90c6d@Papi.lobos> <20180119175257.3f29d9d6@Papi.lobos> Organization: BSD X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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, 07 Feb 2018 23:10:02 -0000 On Fri, 19 Jan 2018 17:52:57 -0300 Mario Lobo wrote: > On Thu, 18 Jan 2018 00:58:08 -0800 > Peter Grehan wrote: > > > Hi Mario, > > > > > I'm trying to passthrough a firewire pci card to a windows 7 64 > > > guest. > > > > First, you'll need to verify if that card supports MSI or MSI-x > > since that is required by bhyve for passthru support. This can be > > seen with 'pciconf -lbc' on the FreeBSD host. > > > > > VM exits with: > > > > > > Assertion failed: (mr->name == memp->name), function > > > unregister_mem, file /usr/src/usr.sbin/bhyve/mem.c, line 265. > > > Abort trap > > > > This is bug in bhyve when running Windows with PCI devices that > > have more than 1 memory BAR (e.g. Intel igb ethernet devices), due > > to the order that Windows determines BAR sizes. I've been meaning > > to fix this for a long time so will try and get to it. > > > > later, > > > > Peter. > > Hi there: > > Well, now, even without setting up passthrough, the VM doesn't start > (which it did, before I svned up /usr/src). > > With vnc: > > bhyve -c 4 -s 0,amd_hostbridge > -s 3,ahci-hd,/Vmachines/disk.img,sectorsize=512 > -s 4,ahci-cd,/Extra/Isos/Windows/Windows_7/null_dvd.iso > -s 10,virtio-net,tap0 > -s 11,fbuf,tcp=0.0.0.0:5900,,w=1600,h=900,wait > -s 20,xhci,tablet > -s 31,lpc > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd > -m 4G -H -w WIN-764 > fbuf frame buffer base: 0x942e00000 [sz 16777216] > > error: > Assertion failed: (error == 0), function modify_bar_registration, > file /usr/src/usr.sbin/bhyve/pci_emul.c, line 491. Abort trap > > > Without vnc: > > bhyve -c 4 -s 0,amd_hostbridge > -s 3,ahci-hd,/Vmachines/disk.img,sectorsize=512 > -s 4,ahci-cd,/Extra/Isos/Windows/Windows_7/null_dvd.iso > -s 10,virtio-net,tap0 > -s 20,xhci,tablet > -s 31,lpc > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd > -m 4G -H -w WIN-764 > > error: > Assertion failed: (mr->name == memp->name), function unregister_mem, > file /usr/src/usr.sbin/bhyve/mem.c, line 265. Abort trap > > > Revisions (/usr/src 11-STABLE): > > working: 321652 > not working (current): 328163 > > Any updates on this issue? Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."