From owner-freebsd-virtualization@freebsd.org Sat Jun 20 00:21:14 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 5054133D1E0 for ; Sat, 20 Jun 2020 00:21:14 +0000 (UTC) (envelope-from wanpengqian@gmail.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 49pbtx3wyDz41PD for ; Sat, 20 Jun 2020 00:21:13 +0000 (UTC) (envelope-from wanpengqian@gmail.com) Received: by mail-qt1-x82f.google.com with SMTP id x62so5228782qtd.3 for ; Fri, 19 Jun 2020 17:21:13 -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 :cc; bh=0FlekbMX92ShY1OBKPvcHxi0ezPMJzoIl91wWWBbruU=; b=e9PiR21W7W4AYW2D5gMaku1a5fJ0CXPoGD2B2dApz0jgPYzqnCuWsIRums1vX8Zy68 Rr3HmfrkbWjpuwoBG5s+gQokzdcAAzFe/iTNTr934RkNPESijhJLun1GrCQuXlGToXic t9Kkbv5AULAhV3h/wtCtgKPWLGAdj3TSdHXJdtqcsOEexhP3+4IANgiz46/kvXdl0XiC OlVV3tvvJ9ft7CBTGKExMdfDMwOZr0P2/s1WGfuQ/1N7yQt+rrnMdl4QoYVMAWvUNMgy GfFyMij5a6FdhVlk8+2xZYHcA+/ygaHQIL4h27lfw/a5P059pVXUh5Bf+hrcOjZrYudB +9yA== 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:cc; bh=0FlekbMX92ShY1OBKPvcHxi0ezPMJzoIl91wWWBbruU=; b=Pw2d0JK316RsswL7GZZ+Hihg2JZMtBUPu+ObvfADMTQihqN2KIpXHfifKIQt9oE1zm hhyS6rP5AtW/IFfa0Yzc8VN0Lq2d7+NEelsAia/8SWDIkuiac46u63KMksF3HgzVcifw rFhDFDlHin1ViwF21zu3/rvYiHd4KwPfMtXlPa4hc2tz8f9xFOEb4hiF+wrqcioYIs+m Ebl8YgYo+YRUSVIPLOjZ2dT5ZaO+uqMyGZhiXk0iGqgw7EFe5SdcNPG360FjalRxxFjV 0cZhI6OEYXRnJec9b4bfzSlodORy0j4esiDdlfPND9ygwcPEoEyXbHaXm0edN4+kKFVl AeuQ== X-Gm-Message-State: AOAM533/H+twKHV212VPR+ihYXtglP8nRAvjWLjqoMsvKiOTrWYDAew4 Jc9yrvgM9bjvzvXwhvQKD9Dch/qUJSSqT+bbq5jE7Q== X-Google-Smtp-Source: ABdhPJwt7Emdgst/xUjnlSpOaZix6EogY+v3zoVGE7cstu5Q8NGNQlvTlz97oXDYBmk2g5dxNu/pBaEa6akCrkrXKBg= X-Received: by 2002:ac8:31f9:: with SMTP id i54mr5909614qte.209.1592612471611; Fri, 19 Jun 2020 17:21:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Wanpeng Qian Date: Sat, 20 Jun 2020 09:21:00 +0900 Message-ID: Subject: Re: Can bhyve pass disk vendor, model and serial values to guests? To: Rob Roy Gregg Cc: freebsd-virtualization@freebsd.org X-Rspamd-Queue-Id: 49pbtx3wyDz41PD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=e9PiR21W; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of wanpengqian@gmail.com designates 2607:f8b0:4864:20::82f as permitted sender) smtp.mailfrom=wanpengqian@gmail.com X-Spamd-Result: default: False [-2.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.965]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.05)[-1.051]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82f:from]; NEURAL_HAM_SHORT(-0.70)[-0.695]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 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, 20 Jun 2020 00:21:14 -0000 Hi Gregg There is a patch for this, but you have to apply manually for 12.1R You can get it here https://reviews.freebsd.org/D24174 2020=E5=B9=B46=E6=9C=8820=E6=97=A5(=E5=9C=9F) 8:23 Rob Roy Gregg : > > FreeBSD Friends, > > I tried the forums and thought I'd ask here next; here's the thread: > > > https://forums.freebsd.org/threads/can-bhyve-pass-disk-vendor-model-and-s= erial-values-to-guests.75851/ > > This is on 12.1-RELEASE-p6. > > Can bhyve pass disks to guests in a way that preserves the disk's actual > vendor, model and serial values (as viewed from inside of the guest)? > > Here's how a passed-in disk looks inside the guest with ahci-hd emulation= : > > linux_in_bhyve# lsblk --output vendor,model,serial /dev/sda > VENDOR MODEL SERIAL > ATA BHYVE SATA DISK BHYVE-FC87-ABA5-711B > > And with virtio-blk emulation: > > linux_in_bhyve# lsblk -o vendor,model,serial /dev/vdb > VENDOR MODEL SERIAL > 0x1af4 > > Meanwhile, a similar disk configured on ESXi 5.5 U3b as a "pass-through > RDM" looks like this; this is what I'd like to see in the bhyve guest > also: > > linux_in_esxi# lsblk -o vendor,model,serial /dev/sdb > VENDOR MODEL SERIAL > HITACHI OPEN-V-CM 60060e801602a100000102a100000bba > > Thank you! > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" >