From owner-freebsd-virtualization@freebsd.org Sun Nov 18 01:08:13 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 E23D2110E6E2 for ; Sun, 18 Nov 2018 01:08:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7794F8A8AE for ; Sun, 18 Nov 2018 01:08:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3B75B110E6DC; Sun, 18 Nov 2018 01:08:12 +0000 (UTC) Delivered-To: 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 19A5A110E6DB for ; Sun, 18 Nov 2018 01:08:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ABA908A8A7 for ; Sun, 18 Nov 2018 01:08:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id F13191ACBF for ; Sun, 18 Nov 2018 01:08:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAI18Af8023252 for ; Sun, 18 Nov 2018 01:08:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAI18AWS023251 for virtualization@FreeBSD.org; Sun, 18 Nov 2018 01:08:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 230773] [bhyve] GDT limit needs reset on VMX exit Date: Sun, 18 Nov 2018 01:08:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 7794F8A8AE X-Spamd-Result: default: False [-0.38 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_SHORT(-0.38)[-0.375,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US] X-Rspamd-Server: mx1.freebsd.org 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: Sun, 18 Nov 2018 01:08:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230773 --- Comment #6 from commit-hook@freebsd.org --- A commit references this bug: Author: jhb Date: Sun Nov 18 01:07:37 UTC 2018 New revision: 340545 URL: https://svnweb.freebsd.org/changeset/base/340545 Log: MFC 339312,339364: Restore more descriptors during VM exits. 339312: Fully restore the GDTR, IDTR, and LDTR after VT-x VM exits. The VT-x VMCS only stores the base address of the GDTR and IDTR. As a result, VM exits use a fixed limit of 0xffff for the host GDTR and IDTR losing the smaller limits set in when the initial GDT is loaded on each CPU during boot. Explicitly save and restore the full GDTR and IDTR contents around VM entries and exits to restore the correct limit. Similarly, explicitly save and restore the LDT selector. VM exits always clear the host LDTR as if the LDT was loaded with a NULL selector and a userspace hypervisor is probably using a NULL selector anyway, but save and restore the LDT explicitly just to be safe. 339364: Reload the LDT selector after an AMD-v #VMEXIT. cpu_switch() always reloads the LDT, so this can only affect the hypervisor process itself. Fix this by explicitly reloading the host LDT selector after each #VMEXIT. The stock bhyve process on FreeBSD never uses a custom LDT, so this change is cosmetic. PR: 230773 Changes: _U stable/11/ stable/11/sys/amd64/include/cpufunc.h stable/11/sys/amd64/vmm/amd/svm.c stable/11/sys/amd64/vmm/intel/vmx.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Nov 19 17:19:05 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 EF2BE110D64C for ; Mon, 19 Nov 2018 17:19:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6F88C80555 for ; Mon, 19 Nov 2018 17:19:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2D92C110D642; Mon, 19 Nov 2018 17:19:04 +0000 (UTC) Delivered-To: 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 1A95D110D641 for ; Mon, 19 Nov 2018 17:19:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A6D7680550 for ; Mon, 19 Nov 2018 17:19:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D97EF7BC8 for ; Mon, 19 Nov 2018 17:19:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAJHJ2QD085913 for ; Mon, 19 Nov 2018 17:19:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAJHJ2wA085912 for virtualization@FreeBSD.org; Mon, 19 Nov 2018 17:19:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 213689] Allow bhyve to run from non-root user Date: Mon, 19 Nov 2018 17:19:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: shamaz.mazum@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 6F88C80555 X-Spamd-Result: default: False [1.06 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.27)[0.268,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; NEURAL_SPAM_SHORT(0.80)[0.795,0] X-Rspamd-Server: mx1.freebsd.org 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, 19 Nov 2018 17:19:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213689 shamaz.mazum@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shamaz.mazum@gmail.com --- Comment #5 from shamaz.mazum@gmail.com --- Hello again! I am currently using /dev/vmmctl device to allow non-root users to use bhyv= e as I described above. Unfortunately, this approach does not allow me to use PCI devices pass-through, as it demands access to /dev/pci, /dev/io and /dev/mem (as far as I remember). After updating to 12.0-RC1 I have noticed, that ntpd uses MAC framework now= (I didn't know about MAC existence before). Can this approach (writing specific MAC policy module) be used to grant unprivileged bhyve process access to certain files in /dev ? What other solutions to this problem could be? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Nov 20 15:56:04 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 DD04D1133C50 for ; Tue, 20 Nov 2018 15:56:03 +0000 (UTC) (envelope-from ixbug@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12291732DC for ; Tue, 20 Nov 2018 15:56:03 +0000 (UTC) (envelope-from ixbug@riseup.net) Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id ED0BE1A01F5 for ; Tue, 20 Nov 2018 07:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1542729356; bh=5lPERYAPU4ZMkzTqOTd33nh2jBoBj1lVjORUO1Y/pcU=; h=To:From:Subject:Date:From; b=krzPo+GPkRv4Ee0Lp0/RJ4MEZlvoyftohjsGJNb1AqRctELdK1LkF1Fg+LD9ANwY+ GIPO+Xu2KWrNohjenl+MeYsCu4C/0AY8l0sL7g2qtt8Vbphiw/HDHLp9HgdQFR8f4R 1w9je6yLBSfcMzbib7BNBWHx1p56vPLZdeVBICpo= X-Riseup-User-ID: DE170292ED389999FBBBBD67240A9F2A5778165F0DADCEC83909D72A53DDCEC5 Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id D5939E7AA9 for ; Tue, 20 Nov 2018 07:55:54 -0800 (PST) To: freebsd-virtualization@freebsd.org From: Finn Enok Subject: bhyve passthru: Malicious Driver Detection event Message-ID: <219c98cf-7774-315f-0fe5-a38f6dacb5f6@riseup.net> Date: Tue, 20 Nov 2018 15:55:00 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 12291732DC X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[riseup.net]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.991,0]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[riseup.net:+]; MX_GOOD(-0.01)[mx1.riseup.net]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; NEURAL_HAM_SHORT(-0.18)[-0.177,0]; RCVD_IN_DNSWL_LOW(-0.10)[129.153.252.198.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-0.02)[country: US(-0.09)]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Server: mx1.freebsd.org 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: Tue, 20 Nov 2018 15:56:04 -0000 Hi, I'd like to setup passthru for an Intel NIC using SR-IOV Virtual Functions (VFs): 4 VFs: - 3 VFs for VMs (passthru) - 1 VF for the host ixlv0 on the host works fine until I boot the first VM, which causes the host to loose connectivity. /var/log/messages gets filled with these entries when starting the VM which has one of the VFs assigned: kernel: ixl1: Malicious Driver Detection event 0 on TX queue 777, pf number 1 kernel: ixl1: MDD TX event is for this function! kernel: ixl1: Malicious Driver Detection event 1 on RX queue 776, pf number 64 kernel: ixl1: MDD RX event is for this function! Is this a driver bug or configuration issue on my side? thanks! Finn FreeBSD 11.2 NIC: Intel X710-DA2 "vm passthru" output shows the 3 ppt devices as "READY Yes" from the log during bootup: --------------------------- kernel: pci3: at device 0.81 (no driver attached) kernel: pci3: at device 0.82 (no driver attached) kernel: pci3: at device 0.83 (no driver attached) /etc/iov/ixl1.conf ------------------- PF { device : "ixl1"; num_vfs : 4; } DEFAULT { passthrough : true; } #VF for use by host VF-0 { passthrough : false; } debian vm config: ------------- loader="grub" cpu=1 memory=512M disk0_type="ahci-hd" disk0_name="disk0.img" grub_run_partition="1" grub_run_dir="/boot/grub" passthru0="2/0/81" uuid=... ixl1 related log entries when booting: --------------------------------------- kernel: ixl1: mem 0xf8800000-0xf8ffffff,0xf9800000-0xf9807fff irq 32 at device 0.1 numa-domain 0 on pci3 kernel: ixl1: using 1024 tx descriptors and 1024 rx descriptors kernel: ixl1: fw 6.0.48442 api 1.7 nvm 6.01 etid 800035cf oem 1.262.0 kernel: ixl1: PF-ID[1]: VFs 64, MSIX 129, VF MSIX 5, QPs 768, I2C kernel: ixl1: Using MSIX interrupts with 9 vectors kernel: ixl1: Allocating 8 queues for PF LAN VSI; 8 queues active kernel: ixl1: PCI Express Bus: Speed 8.0GT/s Width x8 kernel: ixl1: SR-IOV ready kernel: ixl1: netmap queues/slots: TX 8/1024, RX 8/1024 kernel: ixl1: The device is not iWARP enabled ixl0 should not be relevant but I'm including the log lines here as well (from bootup): kernel: ixl0: mem 0xf9000000-0xf97fffff,0xf9808000-0xf980ffff irq 32 at device 0.0 numa-domain 0 on pci3 kernel: ixl0: using 1024 tx descriptors and 1024 rx descriptors kernel: ixl0: fw 6.0.48442 api 1.7 nvm 6.01 etid 800035cf oem 1.262.0 kernel: ixl0: PF-ID[0]: VFs 64, MSIX 129, VF MSIX 5, QPs 768, I2C kernel: ixl0: Using MSIX interrupts with 9 vectors kernel: ixl0: Allocating 8 queues for PF LAN VSI; 8 queues active kernel: ixl0: PCI Express Bus: Speed 8.0GT/s Width x8 kernel: ixl0: SR-IOV ready From owner-freebsd-virtualization@freebsd.org Tue Nov 20 22:21:47 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 7F2D91140558 for ; Tue, 20 Nov 2018 22:21:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 170798703E for ; Tue, 20 Nov 2018 22:21:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CE3CB1140556; Tue, 20 Nov 2018 22:21:46 +0000 (UTC) Delivered-To: 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 BB61C1140555 for ; Tue, 20 Nov 2018 22:21:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5636087039 for ; Tue, 20 Nov 2018 22:21:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4E68016E32 for ; Tue, 20 Nov 2018 22:21:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAKMLj6p094380 for ; Tue, 20 Nov 2018 22:21:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAKMLjmS094379 for virtualization@FreeBSD.org; Tue, 20 Nov 2018 22:21:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 200859] [bhyve] vbsc_ident buffer accessed out of bounds Date: Tue, 20 Nov 2018 22:21:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: araujo@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 170798703E X-Spamd-Result: default: False [0.21 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.29)[-0.293,0]; NEURAL_SPAM_SHORT(0.65)[0.647,0]; NEURAL_HAM_LONG(-0.14)[-0.141,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US] X-Rspamd-Server: mx1.freebsd.org 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: Tue, 20 Nov 2018 22:21:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200859 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: araujo Date: Tue Nov 20 22:21:19 UTC 2018 New revision: 340707 URL: https://svnweb.freebsd.org/changeset/base/340707 Log: Define AHCI_PORT_IDENT and increase by 1 the VTBLK_BLK_ID_BYTES to avoid buffer accessed out of bounds, also switch to snprintf(3). PR: 200859 Submitted by: Caglar Obtained from: https://github.com/mist64/xhyve/pull/24 MFC after: 4 weeks Sponsored by: iXsystems Inc. Changes: head/usr.sbin/bhyve/pci_ahci.c head/usr.sbin/bhyve/pci_virtio_block.c --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Nov 20 22:24:14 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 E1ECF11405FD for ; Tue, 20 Nov 2018 22:24:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 76FBD8718F for ; Tue, 20 Nov 2018 22:24:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 35F9811405FC; Tue, 20 Nov 2018 22:24:14 +0000 (UTC) Delivered-To: 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 2439411405FB for ; Tue, 20 Nov 2018 22:24:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B7B148718D for ; Tue, 20 Nov 2018 22:24:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C946916E59 for ; Tue, 20 Nov 2018 22:24:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAKMOCcm000426 for ; Tue, 20 Nov 2018 22:24:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAKMOCth000425 for virtualization@FreeBSD.org; Tue, 20 Nov 2018 22:24:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 200859] [bhyve] vbsc_ident buffer accessed out of bounds Date: Tue, 20 Nov 2018 22:24:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: araujo@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: araujo@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 76FBD8718F X-Spamd-Result: default: False [0.21 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.29)[-0.293,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; NEURAL_SPAM_SHORT(0.65)[0.647,0]; NEURAL_HAM_LONG(-0.14)[-0.141,0] X-Rspamd-Server: mx1.freebsd.org 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: Tue, 20 Nov 2018 22:24:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200859 Marcelo Araujo changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |FIXED --- Comment #4 from Marcelo Araujo --- Committed! Thanks and sorry the delay. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Nov 21 17:40:23 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 1CBE3113FB61 for ; Wed, 21 Nov 2018 17:40:23 +0000 (UTC) (envelope-from Paul.Esson@Redstor.com) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60062.outbound.protection.outlook.com [40.107.6.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99B996D06E for ; Wed, 21 Nov 2018 17:40:21 +0000 (UTC) (envelope-from Paul.Esson@Redstor.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redstorltd.onmicrosoft.com; s=selector1-redstor-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p15x4gQZbexRA9Vh+r/FE+WWihzfvciVDdrydn6o8qU=; b=X6+beu9mza/W6aOIpIu3GsAxN/fGG6YhkPQLLnUx4GfegWFkTaPDYbnqA/jVS2JFlVXbzEcEgRDcjd7TooxWCsYJbCLX9L/WBcMlO/oQTjS7aufk/mWdPuG2wwlFbXCyeJfN4/fCcyUDX8431puSY+UUn+9IpOkLP1XbGNu7ehI= Received: from DB6P190MB0166.EURP190.PROD.OUTLOOK.COM (10.172.230.7) by DB6P190MB0360.EURP190.PROD.OUTLOOK.COM (10.175.242.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.27; Wed, 21 Nov 2018 17:40:19 +0000 Received: from DB6P190MB0166.EURP190.PROD.OUTLOOK.COM ([fe80::31fb:dc24:e23d:926c]) by DB6P190MB0166.EURP190.PROD.OUTLOOK.COM ([fe80::31fb:dc24:e23d:926c%7]) with mapi id 15.20.1361.015; Wed, 21 Nov 2018 17:40:19 +0000 From: Paul Esson To: "freebsd-virtualization@freebsd.org" Subject: AHCI SATA controller timeouts Thread-Topic: AHCI SATA controller timeouts Thread-Index: AdSBvv2rWsZHJODoTNuSPfBYSUA8rQ== Date: Wed, 21 Nov 2018 17:40:19 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Paul.Esson@Redstor.com; x-originating-ip: [81.136.184.115] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6P190MB0360; 6:730+y6iOd9E9ruB+/gTjd85Wl10wWgicEBl2Muqg4xjAQ7kLyCSn3zBw7wGgQJAfhpZTJ0MzgA/v5xSWE4rDgyyNaKqm9I3Uz+IRwFmAD61+sbQONBFZn+iL78v+7D4V670GGY3sBWJ+CdyWcGS722f2fchr0pGbmabylyvM6GnQnBI/dZQhgElBLHwSUv9s/ebY3RaquaNgVVB5PPSZCKckrATe+tzXgR9ype77PfXAG2Tv8auJej0y4Lhz4F6K9MrPiaCphzBThMxDidPDDjoQYbmI2QiVgMN8+BY4JrQ7aS4iXwVeSSNU7ZTzjlICNru0Y8OGNSkAayhXmRIiXlEQZs1okbcHG1A10tZDvcTW6joqFCgjKhWMMrWeJYzSO8XMOKVL2MKju5BVJ3JwqM8lMqQgo5u6+TrvB3tBSAqiQGh4DuRTqHUwdPVRCdO8XvkV3fnHm5hsSoGpaqlk9w==; 5:kzzsIoyJW/F1MyoY54P6cGa+1ignQ/DzISM7bdJ6JM4HWiQhyu0GChNBHYqGfTXLDkZ4KgDXHY8qeOmaL71v+YTuKaJfcYAWF1Fg/tQTAwHx2pahWo5L2VxJ9EpWZmzOSqwt07KxkzXV9Lh0rywD59m2cdqQQe+S587u0sOi+bg=; 7:Qt9iyu2dFgubuz2SyLG/SCOy040KvCNjmCCb9JdwXyciYhmsHxCcdR81k8un1zV0CRqouk5emxXiWxUXBujg8YAdBxK04osq1rrJR9ruS5N48f1eof9HFqdtPUTbrEwu82wraLh3IEWED+7qWEPwpA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 4e5b245a-094e-40de-9b8a-08d64fd86803 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DB6P190MB0360; x-ms-traffictypediagnostic: DB6P190MB0360: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(209352067349851)(163750095850)(21748063052155)(28532068793085)(190501279198761)(227612066756510)(128460861657000)(81160342030619)(31418570063057)(86561027422486); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231442)(944501410)(52105112)(10201501046)(3002001)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB6P190MB0360; BCL:0; PCL:0; RULEID:; SRVR:DB6P190MB0360; x-forefront-prvs: 08635C03D4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39850400004)(346002)(396003)(136003)(52314003)(199004)(189003)(486006)(7736002)(72206003)(6916009)(25786009)(256004)(71190400001)(316002)(71200400001)(14444005)(3480700005)(217873002)(2906002)(99286004)(66066001)(68736007)(5660300001)(14454004)(3846002)(6116002)(2351001)(790700001)(7696005)(97736004)(9686003)(733005)(6306002)(54896002)(5640700003)(4743002)(236005)(102836004)(26005)(2501003)(186003)(106356001)(9326002)(478600001)(6436002)(86362001)(105586002)(55016002)(861006)(6506007)(8676002)(2900100001)(74316002)(33656002)(606006)(81166006)(53936002)(8936002)(81156014)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6P190MB0360; H:DB6P190MB0166.EURP190.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: Redstor.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /wcCM1wJVP/J6oS3xsUE4Ai/5OIOs37/mcYX5Xt3o57yYqujZhYiJQVxHvR56Vo7UPQPEvhxWD4dxroEf7nsnyju4gG4UTkXgIhc/GuX+AnmDVbvgO+VkyZOo/mBwsNGrH24ux9yziNxBNPHbT5MgOD7SwSChnQXvBaFqq8/FDG12qwj8kwGWAaPrNdH1cePVSLUGDjRkt59bo6Aj0wNfouJ/Axz3YsOjDH0GGWtQt8ZZ/kMXTU5BGXqa5rMF0PX17I17AOxZkvv2uqWDlJ06Lz/pF/k1pf71pGOmYTGUfnDjFrVC9fRGW8vd3u6uwb7UTwty5GbrUXXZowOCZqL7Rham8GgwCsZzi0xb3xPuPs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: redstor.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e5b245a-094e-40de-9b8a-08d64fd86803 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 17:40:19.4910 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 24ac53ae-15a7-4211-afef-61d8f34e2571 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P190MB0360 X-Rspamd-Queue-Id: 99B996D06E X-Spamd-Result: default: False [-1.84 / 15.00]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[redstorltd.onmicrosoft.com]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[Redstor.com]; NEURAL_HAM_LONG(-0.99)[-0.985,0]; URI_COUNT_ODD(1.00)[17]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; DKIM_TRACE(0.00)[redstorltd.onmicrosoft.com:+]; MX_GOOD(-0.01)[mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net,mxtls.expurgate.net]; RCVD_IN_DNSWL_NONE(0.00)[62.6.107.40.list.dnswl.org : 127.0.3.0]; NEURAL_HAM_SHORT(-0.09)[-0.095,0]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.76)[ipnet: 40.64.0.0/10(-1.87), asn: 8075(-1.83), country: US(-0.09)]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: Wed, 21 Nov 2018 17:40:23 -0000 Hi Folks, I have a bhyve FreeBSD guest 11.2-RELEASE running on a FreeBSD host 11.2-RE= LEASE that is experiencing issues with a zvol presented from the host as a = BHYVE SATA DISK and used by the guest to create a zpool. I used the ahci-h= d block driver because it supported TRIM and I did not have the virtio-scsi= driver available. Anyway, I have this configuration running on a number of Dell PowerEdge R73= 0xd servers without issue, but we recently purchased a next generation R740= xd model and suddenly when I am generating lots of writes to the guest zpoo= l via a zfs send/receive I see the following timeout messages causing the i= /o to terminate. I've noted some online conversation around examples in a physical hardware = context but not virtual and wondered if anyone had seen anything similar? Nov 20 10:54:45 dc2-olbp-sn-15b kernel: ahcich6: Timeout on slot 14 port 0 Nov 20 10:54:52 dc2-olbp-sn-15b kernel: ahcich6: is 00000008 cs 00000000 ss= 00000000 rs 00006000 tfd 50 serr 00000000 cmd 0001ce17 Nov 20 10:54:52 dc2-olbp-sn-15b kernel: (ada0:ahcich6:0:0:0): SEND_FPDMA_QU= EUED DATA SET MANAGEMENT. ACB: 64 01 00 00 00 40 00 00 00 00 00 00 Nov 20 10:54:52 dc2-olbp-sn-15b kernel: (ada0:ahcich6:0:0:0): CAM status: C= ommand timeout Nov 20 10:54:52 dc2-olbp-sn-15b kernel: (ada0:ahcich6:0:0:0): Retrying comm= and Nov 21 15:12:09 dc2-olbp-sn-15b kernel: ahcich6: Timeout on slot 24 port 0 Nov 21 15:12:09 dc2-olbp-sn-15b kernel: ahcich6: is 00000000 cs 00000000 ss= 03000000 rs 03000000 tfd 50 serr 00000000 cmd 0001d917 Nov 21 15:12:09 dc2-olbp-sn-15b kernel: (ada0:ahcich6:0:0:0): WRITE_FPDMA_Q= UEUED. ACB: 61 00 b0 50 b5 40 22 00 00 01 00 00 Nov 21 15:12:09 dc2-olbp-sn-15b kernel: (ada0:ahcich6:0:0:0): CAM status: C= ommand timeout Nov 21 15:12:09 dc2-olbp-sn-15b kernel: (ada0:ahcich6:0:0:0): Retrying comm= and Regards, Paul Esson | Redstor Limited t +44 (0)118 951 5235 | m +44 (0)776 690 6514 e paul.esson@redstor.com www.redstor.com [http://partners.redstor.com/files/redstor_email_signatures_linkedin_icon_p= adding.png][http://partners.redstor= .com/files/redstor_email_signatures_twitter_icon_padding.png][http://partners.redstor.com/files/redstor_email_signatures= _facebook_icon_padding.png][http://partn= ers.redstor.com/files/redstor_email_signatures_youtube_icon_padding.png] [http://partners.redstor.com/files/NEW_logo_larger.png] From owner-freebsd-virtualization@freebsd.org Thu Nov 22 18:17:44 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 04FBB110330C for ; Thu, 22 Nov 2018 18:17:44 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55AF380291 for ; Thu, 22 Nov 2018 18:17:43 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C330AE05 for ; Thu, 22 Nov 2018 13:17:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 22 Nov 2018 13:17:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:mime-version:content-type; s= fm1; bh=A4iJ9ExiC53qXTF4ED6J6ADiEIs/pbClBuQCSOujqFA=; b=ZA34AxOs uVfeMZ6uOqcLHCza67Z0Ikd9/qAljJzgi24OSOvx8jOZFhRl8MAOs04OtMytI0xY jURIkxYd1sf1WSlQNBn3xD4RFYWtNen8bGXGTkGNDeob0i/YfbHgfpmP5m2uu1la yml7xrf9/ukNWeCpFhJlV81uwt4CSIYrSjkbahzwKVb54tsf+/2WPdXvE4VP+Bla r5IA/oSiDz7ex34yHl866SrpnwJOJ71qBoD9zdtAZCLGn9UDMrYzXqNLan4S+dLr vEH9zTWLqbei0lI7trko1IVpzbEzHGmoXRwK3XLVk8faOUq3mA7o9D/Cp7E+iAqW 5rBzhAJln2g6ow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=A4iJ9ExiC53qXTF4ED6J6ADiEIs/p bClBuQCSOujqFA=; b=S9WiLjS5gbESo9T7MyhgU/rUcHfal1Y6vqExd8i19re7J rT+4maInqlS/MHckpJaPz/JjL0E8QJmC1No7L2gFCTlwAD9Gn1GdnjJ144ei4+Yb /DQmwxSIKGczW1VwwfurYd0R/Jx35pcHqKnLCQ+s925+ajrX/XlgyxmDvj7gtLzg LDBr8l95oZmVjvVIRja0ajjWh9yR2RiFjtyzjIcDFRVep3qppV+rcoa2C1x8Ey4X X6gMR1ljbxD7pwxGkSgV3rTkuaf1UI2i0gaRjLC4hNA0n1fWfjFPsVPVNS7XZk7c ot587nXPFrhykjnbblqXb28hccIabhNXkp59ZJ4BQ== X-ME-Sender: X-ME-Proxy: Received: from rpi3.zyxst.net (rpi3.zyxst.net [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 95E4EE405D for ; Thu, 22 Nov 2018 13:17:40 -0500 (EST) Date: Thu, 22 Nov 2018 18:17:38 +0000 From: tech-lists To: freebsd-virtualization@freebsd.org Subject: vmrun.sh - how to pin vcpu to realcpu? Message-ID: <20181122181737.GA24125@rpi3.zyxst.net> Mail-Followup-To: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 55AF380291 X-Spamd-Result: default: False [-5.68 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net,messagingengine.com]; URL_IN_SUBJECT(0.40)[vmrun.sh]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[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]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zyxst.net]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; MX_GOOD(-0.01)[cached: in2-smtp.messagingengine.com]; NEURAL_HAM_SHORT(-0.99)[-0.991,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; IP_SCORE(-3.48)[ip: (-8.94), ipnet: 64.147.123.0/24(-4.47), asn: 11403(-3.89), country: US(-0.09)]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1] X-Rspamd-Server: mx1.freebsd.org 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: Thu, 22 Nov 2018 18:17:44 -0000 Hi, As subject - how can I pin a VM that used 4x cpu (-c 4) to realcpu? I know that it's the -p option but am unclear on the syntax. vmrun.sh gives the following for -p -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0) but how to express this for vcpus and realcpus? thanks, -- J. From owner-freebsd-virtualization@freebsd.org Thu Nov 22 18:36:44 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 DF4A5110399E for ; Thu, 22 Nov 2018 18:36:43 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AE2D80C1D for ; Thu, 22 Nov 2018 18:36:41 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 0F675E21 for ; Thu, 22 Nov 2018 13:36:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 22 Nov 2018 13:36:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; s=fm3; bh=RvlYQ7mxVyLUMCYnTvjFoacSyMX T5ljWmZGRu0c0Vj4=; b=xNxO82ig6AOCmIbGd20rQvFZUWlzJlGL+ZgY81aQ8oU vYMapOTZ2B8B9H1hUWwdv/Lz3W5n/R+oSV++pYrkoO+poSFP5UEgsdMlAHRHGbJH bqBMYNWw0oKj1Q6sTrxZkAfjgWXlJGfOIdxbPWBJYflLddKfR0jylZJ/vr+J8X3p SnWmBiHXzkympUaFqeil+e0ZMcstnsMUAXsGs6oGZSX5Mtzovh0Tbr5mjZr8BEG2 7tEc4lb6QXbYFlJSoCmpFeY7AqO/OIzbZcUGqaPN5wK9sohfLVPpHCptJmg3FJwt CzTrrvgeU3DOVDsKtTMsI9y0fYC7S0gQP7hcep7QIlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=RvlYQ7 mxVyLUMCYnTvjFoacSyMXT5ljWmZGRu0c0Vj4=; b=cYRuo3Dvdr3CnhAjmUSvL7 eIIiQz1y0zMO+z47fzYBXmhmbN4R0ULj/ovJB3+YU1AzGwckWjD5VJIMoHuKc8lj XtIYIaxJM06Vzy2+lXQd7lf0LP2W8D1XRqrRoYUwdYM++k7qWue7QCI3acdu00wi Pv1w/5bmfR1y9tOs8UcLP8FpGjOEPuMllwhPW5/nbalgLjLzLnQhdtUPfJZeScQh fLPh8/K33maw1lF7/nW615DiEjg27TJle70ibhhCE5IgNLkpgPlXec11/u8evMm9 AoYttQzE7vyEeAtTkH/zv6X0+BaCatT+ao+yZadITk7trvQlcjmqWDHnoIBbAEjw == X-ME-Sender: X-ME-Proxy: Received: from thor.yuripv.net (unknown [92.50.223.252]) by mail.messagingengine.com (Postfix) with ESMTPA id E6637102DD for ; Thu, 22 Nov 2018 13:36:38 -0500 (EST) Subject: Re: vmrun.sh - how to pin vcpu to realcpu? To: freebsd-virtualization@freebsd.org References: <20181122181737.GA24125@rpi3.zyxst.net> From: Yuri Pankov Openpgp: preference=signencrypt Autocrypt: addr=yuripv@yuripv.net; keydata= xsBNBFu8u6IBCADB11gP0QwnorrHjqAtKLHKHNHskhy0s7jqJKfx0YqXgVBKGLJ9/mjLAz0F CBNvemHSDDTs0mEZ9cBKKi6cmsav6+UQgr//yai6hvXLBJqKchSFO4MhmdvBtsGFq1yKz5Zi uhjmimKyIpgBgvMdbgGbGq6cnSB2uEPmZuJr419SVRODOkXukU+F5WHgaHzDdHAIu1asCt2B +6msxqIqlFWcXyZyTGicTGGvC/PFIsVRUtD1dIJANTC876g7DTb7LZXWiWwJpSJ4GKMXMHVX Ct9BoQ4i3nhKbOxb6Io1wsy+NFyWsTJ9KYrxKKPJP3oG8BWb/cqlFqnE4eNSsiq2q7krABEB AAHNIFl1cmkgUGFua292IDx5dXJpcHZARnJlZUJTRC5vcmc+wsCUBBMBCgA+FiEE+Gq3PsPe LT4tL/9wk4vgf7Eq4WwFAlu9Cn0CGwMFCQWjmoAFCwkIBwMFFQoJCAsFFgMCAQACHgECF4AA CgkQk4vgf7Eq4WxuPQf9HccaDyusO1J+wDQNlp9/uU0cnIfjHAeG80xrAfN9Vnf1wO9T2/WI iYlIdK+KVnhSa/DeBuHq/asfpUbrOleTF0hzG39os+95DzuT9a/j5XeQGuBgNbpVB+10zR3I 5AagSQetHilcZtz65g9GTUuIxb+xDaBehFBjyYXApfNE6yY5IlzDZpM7MOOLLFm2mQwQ8yjS eZ4jA6qW6/QMXRTkmpC9EXIeWDuNgWBwszaFGR6oUIpl0mGmwdJkEKwUazt6OuoDilMNZefZ 0pVFZBhnE46vK+6FDDFZE3BkeHVnqvy2QGL/6uKhSHc0lChCEPHnhqz6v23MwcQ6ktVWzvBJ oM7ATQRbvLuiAQgAyood0Pd96wzY+GQPBYQUNkZZgYL8Di3AzyC94dFe4d/Mt/h4rIBUnFwA g7Ha05WGdW0V5A/RRxDcpwXL9Jf97hiQ5PI2hiAxNEz/DkAUafiGlPfwR5wKqysUyRiKJQ2o ctpvssdsoXXOgeLo1jA6ghda1jg/spjlsPlS5ZTpKx3GWuTybV/VDhmwKWZfGUzPBJeAgDTf BdW4PTFs1IvvC2KBlhnPgcLBUtTlAdXOEj4DLuXw+Fn7K/ckZdOn3aRANmE+wf4+f+UUgtLB NmbP7ZifyUX5RyddsnI+fZmtsUDHxCReNIWQ6TBUJmb21aoBIN6HEHJbY28ZSCmf5owuMwAR AQABwsB8BBgBCgAmFiEE+Gq3PsPeLT4tL/9wk4vgf7Eq4WwFAlu8u6ICGwwFCQWjmoAACgkQ k4vgf7Eq4WyA3AgAqgGTHKMVAS2WuNGuW9uI+YtY6ZbwmGG94fkOZbefgRSfO5Am+HSblA95 IdotvQa8VkFmvVjbnvaM8XmJG5H17m0GF3sVaJUbJ4euDnRrBPCr6KwRQQd83Svxkbdicvo7 J031FrkJZW8zD9DH4QgzJNTKPFrwx9v3DhD/8iyn9tGvnHepy7O24nY5hl6PacrgSgLVeir/ lUbueAC/gP1AWLv3gdw7b83J7rftWauimj/vpFMD8CDSyJNODgQ8DdM0TU4qjABWGMs9r2Rw QehNbYf5f/2QuW/Q5NGaRSNW2HS/cpp62XtTKmxj5wwk6EMbtNE/6WQpumfdmK2UGLjcJQ== Message-ID: <201fcea5-820c-e196-b846-ff90698270bd@yuripv.net> Date: Thu, 22 Nov 2018 21:36:28 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181122181737.GA24125@rpi3.zyxst.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="44Kr30C8V6rCjADikrOtnuD7aIID4U0Ra" X-Rspamd-Queue-Id: 9AE2D80C1D X-Spamd-Result: default: False [-4.23 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:64.147.123.25]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yuripv.net:+,messagingengine.com:+]; MX_GOOD(-0.01)[in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[252.223.50.92.zen.spamhaus.org : 127.0.0.11]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(3.00)[252.223.50.92.zen.spamhaus.org : 127.0.0.4]; R_DKIM_ALLOW(0.00)[yuripv.net,messagingengine.com]; URL_IN_SUBJECT(0.40)[vmrun.sh]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[yuripv.net]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; IP_SCORE(-3.45)[ip: (-8.85), ipnet: 64.147.123.0/24(-4.42), asn: 11403(-3.89), country: US(-0.09)]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0] X-Rspamd-Server: mx1.freebsd.org 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: Thu, 22 Nov 2018 18:36:44 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --44Kr30C8V6rCjADikrOtnuD7aIID4U0Ra Content-Type: multipart/mixed; boundary="ay4xE0tohHB1TvAo0aXMVXF8iTgfGbM2H"; protected-headers="v1" From: Yuri Pankov To: freebsd-virtualization@freebsd.org Message-ID: <201fcea5-820c-e196-b846-ff90698270bd@yuripv.net> Subject: Re: vmrun.sh - how to pin vcpu to realcpu? References: <20181122181737.GA24125@rpi3.zyxst.net> In-Reply-To: <20181122181737.GA24125@rpi3.zyxst.net> --ay4xE0tohHB1TvAo0aXMVXF8iTgfGbM2H Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable tech-lists wrote: > Hi, >=20 > As subject - how can I pin a VM that used 4x cpu (-c 4) to realcpu? > I know that it's the -p option but am unclear on the syntax. >=20 > vmrun.sh gives the following for -p >=20 > -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0) >=20 > but how to express this for vcpus and realcpus? -p option you are thinking about, i.e. "-p vcpu:hostcpu" is bhyve(8)'s one; there doesn't seem to be an equivalent option in vmrun.sh at the moment. --ay4xE0tohHB1TvAo0aXMVXF8iTgfGbM2H-- --44Kr30C8V6rCjADikrOtnuD7aIID4U0Ra Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE+Gq3PsPeLT4tL/9wk4vgf7Eq4WwFAlv29zQACgkQk4vgf7Eq 4Wz7YAgAriMerRcoA/fjgFN74b+EuCuHgreb53+C5XUZOxUwkFDSqTYWkrqJLatu etu4Hv4MIhvzvECWRiqj1cQR5wqWUuc/Y2YolWHzheGCXT5CFThHHk/iBk5szlcV uUjaHk3UlFWCgihMB43jOMfiZDeY+wNH8hzEWwtxa0MwOKpZ45Zufe2CffvgEYgU km+iJkZdbAdWb5BK7qOmwdqMyrJ+W1tXASaKlGQTsleqdJQBawyscS14WcETMABa botTxkzSmS/honYZi10u5XYURrThlaryvCJLie7g7i0Au0IIbMdAcrgwTtktsjKd F9MJ9+UHRtCMXAS/+yPwKlmxjzc4TQ== =CA7l -----END PGP SIGNATURE----- --44Kr30C8V6rCjADikrOtnuD7aIID4U0Ra-- From owner-freebsd-virtualization@freebsd.org Thu Nov 22 19:27: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 C861B1104B85 for ; Thu, 22 Nov 2018 19:27:02 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D327B82AA7 for ; Thu, 22 Nov 2018 19:27:01 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id wAMIujnq078617; Thu, 22 Nov 2018 10:56:45 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id wAMIuiZ7078616; Thu, 22 Nov 2018 10:56:44 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201811221856.wAMIuiZ7078616@pdx.rh.CN85.dnsmgr.net> Subject: Re: vmrun.sh - how to pin vcpu to realcpu? In-Reply-To: <20181122181737.GA24125@rpi3.zyxst.net> To: tech-lists Date: Thu, 22 Nov 2018 10:56:44 -0800 (PST) CC: freebsd-virtualization@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: D327B82AA7 X-Spamd-Result: default: False [0.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.60)[-0.601,0]; URL_IN_SUBJECT(0.40)[vmrun.sh]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.45)[-0.451,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: pdx.rh.CN85.dnsmgr.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.53)[-0.535,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.02)[country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org 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: Thu, 22 Nov 2018 19:27:02 -0000 > Hi, > > As subject - how can I pin a VM that used 4x cpu (-c 4) to realcpu? > I know that it's the -p option but am unclear on the syntax. > > vmrun.sh gives the following for -p > > -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0) > > but how to express this for vcpus and realcpus? vmrun.sh and bhyve(8) are seperate commands, only bhyve(8) supports the cpu pin option as -p, you can not do this with the example script vmrun.sh unless you modify it yourself and add some other option to do this with. To do the pinning with bhyve(8) you do something like bhyve -p 0:0 -p 1:1 -p 2:2 -p 3:7 if I am reading the code correctly. -- Rod Grimes rgrimes@freebsd.org