From owner-freebsd-virtualization@freebsd.org Sat May 18 19:25:33 2019 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 380C51595D17 for ; Sat, 18 May 2019 19:25:33 +0000 (UTC) (envelope-from nap@ixsystems.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 064468D953 for ; Sat, 18 May 2019 19:25:31 +0000 (UTC) (envelope-from nap@ixsystems.com) Received: by mail-ed1-x534.google.com with SMTP id n17so16434343edb.0 for ; Sat, 18 May 2019 12:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixsystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=hB8gB9MxnRLz5mkBLNnEelG2fBML9ZIQs91mQMN0ZH0=; b=LlWMBw5a50VXScAKd8gABXh5XgKm9c0pM/WSOaOBPl9G610h/q7c/zZt+CsmaSJErY gA2hqb0A/e1h25uhqauv22es6bjnHxeFMW6t9XS8OJBuGPj67zdEe2JIo3H+Iy59oD5J wVxI1+iJiHoFwvA2wXC4Gan1VxZbg9yWpy/tySd7h+xoKUMPMUCnjFkSrAVh2k736rfF YI4iS7YI1AU2Y2+0X6/MyDpKVuFkalUJ4hvVjdiHjDVP3Ym5sZAzipW+hOFvlykOITLx Bi6EWUO0it3ulPArmZnZ0U1xlyb4FOi3KnKEXI195WYGjFf1FYFeHf8GDHnG0ziSrn/H VfxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hB8gB9MxnRLz5mkBLNnEelG2fBML9ZIQs91mQMN0ZH0=; b=XyCWP1fc2DBLcMSA4CZH/Jt5TS1ah1OS+N14y95dLQRSuas6Q+Ul0gxXX3DnPSVigj 7AjyvgXcgMkgMhhwLgI5mb2WFil8jt1yK9w3PAK19VcNoMmkIy1GnYZSZlKdLjp33x5/ 2PHfrgPbaJSj7pprWPiR2bsJnLOWCLSDt54NZxv2vQFdaH0B2Vuz2QQEsksATlehJZT+ w5lWKcyiFGHyn2pMf/bjqT1zFCMVlRTc9X/umlSSpNlJQIxdkKOSo9FyUtT6GCmJXCGA ONaoen+TKxDFhIBuhrHxdowD40kEcIBe65O1sgGM0d2x1lMxT7Mss02Sy6wo7tT70s/N VEGA== X-Gm-Message-State: APjAAAWSrgou80CAP30uw44puGSYemcewcKnz7fY7n85+j99UBdFaVPL P5n+7g9MW7s5wRTfZf09VG6JVvT5WQ76mI8l5PBSzZ7wYINqHlj5 X-Google-Smtp-Source: APXvYqxvmCCdaO4U050Gk3GMr48XTjO7sZzE5WV4usymep9u316YmGJBd0vCSMlrs1fAUoCwSdUI+etK+lMlJFDzDEs= X-Received: by 2002:aa7:c512:: with SMTP id o18mr66639515edq.82.1558207528271; Sat, 18 May 2019 12:25:28 -0700 (PDT) MIME-Version: 1.0 From: Nick Principe Date: Sat, 18 May 2019 15:24:53 -0400 Message-ID: Subject: Windows 10 guests fail to boot when attempting to passthrough network card To: freebsd-virtualization@freebsd.org X-Rspamd-Queue-Id: 064468D953 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ixsystems-com.20150623.gappssmtp.com header.s=20150623 header.b=LlWMBw5a; dmarc=pass (policy=none) header.from=ixsystems.com; spf=pass (mx1.freebsd.org: domain of nap@ixsystems.com designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=nap@ixsystems.com X-Spamd-Result: default: False [-6.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ixsystems-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.74)[ip: (-9.17), ipnet: 2a00:1450::/32(-2.20), asn: 15169(-2.27), country: US(-0.06)]; DKIM_TRACE(0.00)[ixsystems-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT3.ASPMX.L.GOOGLE.com]; RCVD_IN_DNSWL_NONE(0.00)[4.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.96)[-0.960,0]; DMARC_POLICY_ALLOW(-0.50)[ixsystems.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 18 May 2019 19:25:33 -0000 I have noticed that Windows 10 guests fail to boot when attempting to pass through a network card. I believe I have observed this with both cxgbe (t580) and mlx5en cards, but only have a cxgbe to test with now. Without passthrough, the Windows 10 guest boots and operates normally. FreeBSD guests (12.0-RELEASE) have no issue when booting with the cxgbe card passed through - I can kldload cxgbe and I get both cxl ports showing up in the FreeBSD guest. I have tested this with both 12.0-RELEASE and head (13-CURRENT r347883) as the host OS with no change in behavior. The bhyve output is: Unhandled ps2 keyboard command 0x02 Unhandled ps2 keyboard command 0x02 Assertion failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 504. fbuf frame buffer base: 0x943600000 [sz 16777216] Two main suggestions from discussions at BSDCan this week were: - Capture pciconf -lvb from the FreeBSD guest - Add some printf to pci_emul.c to capture some values when there is an error I've captured the above, and a lot of other relevant info, in a Google Doc here (too big to post directly): https://docs.google.com/document/d/1t-UVIO9Aq0TPUFHyo1nVscqaW1LoPuNhfLPitL8oeTs/edit?usp=sharing `nap