From nobody Wed Jan 11 22:57:29 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nsjl40pmNz2sQds for ; Wed, 11 Jan 2023 22:58:08 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nsjl33dMyz40TB for ; Wed, 11 Jan 2023 22:58:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RN8a2T6c; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::629 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x629.google.com with SMTP id u19so40549277ejm.8 for ; Wed, 11 Jan 2023 14:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Hwyz9GQPgskXYtcbb1IfXzrafJnq3+lXfVKAlQI9ckk=; b=RN8a2T6cB5hLQcO6TKoTZEeeEa3JkZ8eyyelrbVaG/krvidsyYwb9XIloHtwskiFH1 oJ9IAjQJ4CYH+JXfVc8VA+l9qI9VoTwZf3Ckx25mmwaM09/KtqnvthRtCc5jNRVTIyPs oAUarDXbzEJoX+mT/ZrrNWlNG/KgXs1W5fH5LQgpc5EUhJB1Xl6LonrCQT2BO3nq1T/O kcmkdFQnrcLD3aSEOhhybPkCe3ZNs7LPAHHxoW9Rm7uhQe13Meek2T59AA9x+oGdS9t7 dZLpEp5fne3rmxKhpnnmM862YqXsKSUQLWhLAoi1rqVwckmb2rHR53fpidOuzoHabw2X 6xpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Hwyz9GQPgskXYtcbb1IfXzrafJnq3+lXfVKAlQI9ckk=; b=bJV6YEnAUOUBbzxbLcq2lGYlopmlOzlQ31PHxvsNB/m70YJReCAg2flyQlxYdIWw6w TBGO/jV2K9PvJPFx0dttVzjakrGqE5yZPc0jVzMfTJxgSaUxz+3SEp3vuBc1Vc5/4gAy /qFw/n1X9GOZTVRsa52XZwX7Vmg1z5SZX36eNYBfZIB20jrH6o0LKhK77Edbya0WgtXR VPsLsdCRZzpVZpEW4Rkoqa+VUAjiWI0o3FEj5pz0HFaa5Hw3Qi+L4jyyuwF1ecMQbOJr ip4Rb2CV/HFZBPPakB8aIa1+8EIav64QHCYckbB93Trv1ocGNa2H5pH4b/hxhkt8WsPl df4A== X-Gm-Message-State: AFqh2kr3DWtp9KcOGyIDv4A1hbd3u7R8E4vr3FczA1WHkL2szepiffNt 8Gk6hxY3JAzoGm0TvTAASv45lgZ8EACE41F0LNhTO9SGEr2zcA== X-Google-Smtp-Source: AMrXdXth1VVkpSUi8oUl19z13XVDbGJ1fFTcTYak6n6kDcwxY/3RLOR6YrcKCCj14QTdjy1AxkoPyICMueiKZyUrUMk= X-Received: by 2002:a17:906:c183:b0:7c1:27a:7495 with SMTP id g3-20020a170906c18300b007c1027a7495mr4923676ejz.7.1673477885705; Wed, 11 Jan 2023 14:58:05 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: Mario Marietto Date: Wed, 11 Jan 2023 23:57:29 +0100 Message-ID: Subject: My current FreeBSD installation does not take care at all of the /boot/loader.conf's commented lines. To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000eac14305f204ee52" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::629:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4Nsjl33dMyz40TB X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000eac14305f204ee52 Content-Type: text/plain; charset="UTF-8" Hello. This is my */boot/loader.conf :* loader_logo="daemon" #vmm_load="YES" nmdm_load="YES" if_tap_load="YES" if_bridge_load="YES" bridgestp_load="YES" fusefs_load="YES" tmpfs_load="YES" verbose_loading="YES" #pptdevs="0/2/0 2/0/0 2/0/1 2/0/2 2/0/3" kern.geom.label.disk_ident.enable="0" kern.geom.label.gptid.enable="0" cryptodev_load="YES" zfs_load="YES" kern.racct.enable=1 aio_load="YES" vboxdrv_load="YES" kern.cam.scsi_delay=10000 I REALLY want to know why,if I have commented the two lines related to bhyve,*#vmm_load="YES"* and "*#pptdevs="0/2/0 2/0/0 2/0/1 2/0/2 2/0/3*" I'm still able to launch a bhyve vm passing thru the gpus whose PCI addresses are inside the pptdevs argument. It seems that my system does not care at all to read the comment that I have added inside the */boot/loader.conf* file. Or there is some different reason that I would like to understand. This is the proof. Despite the comment on the line line "*#vmm_load="YES*",I still see that the vmm module is still loaded : # kldstat | grep vmm 10 1 0xffffffff82794000 5848b8 vmm-intel.ko as well as the ppt "driver",it is still attached,despite I have commented the line "*#pptdevs="0/2/0 2/0/0 2/0/1 2/0/2 2/0/3"* pciconf -l ppt4@pci0:0:2:0: class=0x038000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3e98 subvendor=0x1458 subdevice=0xd000 ppt0@pci0:2:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1e04 subvendor=0x19da subdevice=0x2503 ppt1@pci0:2:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x10f7 subvendor=0x19da subdevice=0x2503 ppt2@pci0:2:0:2: class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad6 subvendor=0x19da subdevice=0x2503 ppt3@pci0:2:0:3: class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad7 subvendor=0x19da subdevice=0x2503 I presume that every line I want to comment on this file will be ignored. WHY ? -- Mario. --000000000000eac14305f204ee52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello.

This is my /boot/= loader.conf :


loader_logo=3D"daemon"
#vmm_load=3D"YES"
nmdm_load=3D"YES"
if_tap_load=3D"YES"
if_bridge_load=3D"YES"
bridgestp_load=3D"YES"
fusefs_load=3D"YES"
tmpfs_load=3D"YES"
verbose_loading=3D"YES"
#pptdevs=3D"0/2/0 2/0/0 2/0/1 2/0/2 2/0/3"
kern.geom.label.disk_ident.enable=3D"0"
kern.geom.label.gptid.enable=3D"0"
cryptodev_load=3D"YES"
zfs_load=3D"YES"
kern.racct.enable=3D1
aio_load=3D"YES"
vboxdrv_load=3D"YES"
kern.cam.scsi_delay=3D10000


I REALLY want to know why,if I have comment= ed the two lines related to bhyve,#vmm_load=3D"YES" and "#pptdevs=3D"0/2/0 2/0/0 2/0/1 2/0/2 2/0/3" I'm still able to launch a bhyve vm passing thru the gpus whose PCI = =20 addresses are inside the pptdevs argument. It seems that my system does=20 not care at all to read the comment that I have added inside the /boot/loader.conf file. Or there is some different reason that I would like to =20 understand. This is the proof. Despite the comment on the line line "<= strong class=3D"gmail-_12FoOEddL7j_RgMQN0SNeU">#vmm_load=3D"YES",I still see that the vmm module is still loaded :


# kldstat | grep vmm

10    1 0xffffffff82794000   5848b8 vmm-intel.ko


as well as the ppt "driver",it is= still attached,despite I have commented the line "#pptdevs=3D"0/2/0 2/0/0 2/0/1 2/0/2 2/0/3= "


pciconf -l

ppt4@pci0:0:2:0:        class=3D0x038000 rev=3D0x02 hdr=3D0x00 vendor=3D0x8=
086 device=3D0x3e98 subvendor=3D0x1458 subdevice=3D0xd000

ppt0@pci0:2:0:0:        class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x1=
0de device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503

ppt1@pci0:2:0:1:        class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x1=
0de device=3D0x10f7 subvendor=3D0x19da subdevice=3D0x2503

ppt2@pci0:2:0:2:        class=3D0x0c0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x1=
0de device=3D0x1ad6 subvendor=3D0x19da subdevice=3D0x2503

ppt3@pci0:2:0:3:        class=3D0x0c8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x1=
0de device=3D0x1ad7 subvendor=3D0x19da subdevice=3D0x2503


I presume that every line I want to comment= on this file will be ignored. WHY ?

--
Mario.
--000000000000eac14305f204ee52--