From owner-freebsd-virtualization@freebsd.org Mon Mar 16 07:33:59 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1F22525D219 for ; Mon, 16 Mar 2020 07:33:59 +0000 (UTC) (envelope-from wanpengqian@gmail.com) Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) (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 48gp2X5Bwxz4dnC for ; Mon, 16 Mar 2020 07:33:56 +0000 (UTC) (envelope-from wanpengqian@gmail.com) Received: by mail-qt1-x843.google.com with SMTP id i26so3546929qtq.8 for ; Mon, 16 Mar 2020 00:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=8Q1m8tvjW+6riATwEjp1llaIWUjwzh/x2pzUMAMQiOs=; b=iOXf416/+UcB1IIn2bjcqGc2CMKVF+9/2wE8Zb7KSAVe6toqjmmDgSdq26bQ6C4ZVp Nazbggd0B6MIzWuXfH5wBLYYxSk4zYvJVLdghs0sy9eVb15Bo4syh1WkS7KL90lV8g5J 4WfkxDrKPhJrn1bj1dJACo584a/uf8U3YjUCJKiyLyaRN2FzOOyX3RBj8gbm/aJPUjve 4P5UgP+ZPCkr7ITw7sXOVE6z5kboRBe/Vhat+znPZ7QDAbrFs0gDiCsq8x8lEH94NSj6 JZeACV+091fI1/PPrhS1cyPNHAAvSsESRJMS2xu+2orZ3svN9IYzlGVnOoKLLbGazp9Z ZynQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=8Q1m8tvjW+6riATwEjp1llaIWUjwzh/x2pzUMAMQiOs=; b=Wy3V/q8jLJRzErPShXvtLc719mYjtLdWma/by8cCFX14sAfXiPRoUWcgKSn5OaK9DT jPVYjVuvrrPN/RnXNhC0K5bqqgzt4ngDvsjGFJG8ZoWGycR4zlZSX6uYTNmsezttR+15 DOvt9gyNeowpD6tKPI7tfiZItRfPNAoDZdpqZs/Ow8SvXBI+c98sWixZu/lts9GsFbtj VXQS55x2wlY9FoawZJ+6MlhFvccvBppqm/gXrlanMIgaqYKgsBqTkSgbD0vcoFM4uCaC 6gHTEk8HZ3L1UxE1uojJ2ayJPiiuxtlO1bwgp9sqx7kWg/K2iUYwSYU40NRE9KwB263x Wdwg== X-Gm-Message-State: ANhLgQ0AOhRiKrQey60JUBOMYr1SdgNuJaCFmTX60Di818KZxiuKJv+M TP4xkiDn3uftusTWHncND/8VAGUkfXaG474jzeFa0JNcn+w= X-Google-Smtp-Source: ADFU+vuWMtCokzM/yhZB3CbPaUOy4wi1rF1+xVB7W+1h9ixfCdGpH25DNPuAkF2llHVUBsyyiNrE+0n0RVtutkKO1A0= X-Received: by 2002:aed:3244:: with SMTP id y62mr16667565qtd.242.1584344034851; Mon, 16 Mar 2020 00:33:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Wanpeng Qian Date: Mon, 16 Mar 2020 16:33:40 +0900 Message-ID: Subject: Re: bhyve: Passthru second port of i350-T2 to Windows cause system crash. To: FreeBSD virtualization Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48gp2X5Bwxz4dnC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=iOXf416/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of wanpengqian@gmail.com designates 2607:f8b0:4864:20::843 as permitted sender) smtp.mailfrom=wanpengqian@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (1.92), ipnet: 2607:f8b0::/32(-1.85), asn: 15169(-1.65), country: US(-0.05)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[3.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] 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: Mon, 16 Mar 2020 07:33:59 -0000 I found a commit relate to VT-d, I will try this patch first. https://reviews.freebsd.org/rS349184 On Mon, Mar 16, 2020 at 2:33 PM Wanpeng Qian wrote: > > Hello all > > I am using FreeBSD 12.1R + patch > https://reviews.freebsd.org/D20531 > > Without D20531 patch, I can passthru this first port of i350-T2 > to a Linux vm. > and with the Patch, I can passthough the second port to A windows > VM. it works. > > about several minutes later, system crash. I reset the sever via IPMI. > the last dmesg keep. see the attached file. > > I sometimes get such error duing the passthrough in FreeBSD 12.1 > without passthrough(with/without patch), the system is stable. > and I run ESXi with passthough also. pretty stable for months without reboot. > > any idea? am I doing something wrong? > I think I am separate the iommu group to different vm? > how to check the iommu group in FreeBSD? > > Thanks.