From nobody Tue Jul 2 19:35:04 2024 X-Original-To: freebsd-virtualization@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 4WDCmZ6wt3z5P7xP for ; Tue, 02 Jul 2024 19:35:10 +0000 (UTC) (envelope-from kirjanov@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDCmZ47MJz4f98 for ; Tue, 2 Jul 2024 19:35:10 +0000 (UTC) (envelope-from kirjanov@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-58c38bcd738so96455a12.2 for ; Tue, 02 Jul 2024 12:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719948907; x=1720553707; darn=freebsd.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Sx1IQZrGmekUeQfToNS/Y1/lCowUpdBnk2IPwet7UJI=; b=iYv79MhA9aBtHgnDivz9B1MLPyaffh34jSgkN7Kg0aa/nDTeTW1nP5LUXasfkiHJSy AR/8/SrAUdQ9IdzKdgKi7teFid2SUIW3uealNK0If3eidfEnkdOT5QkifW3u1wzs8eml nOQdyLXYfJfuu6xBLcIxuv4wjIvvaCa5kHnaax7dsR7n2Y9U4YYAq/dMnUbXnrcuZKUn XIA9aWcmD7HBfOe0z1uvXpsCgFb+qodJ7kv9j77IARO9wChadGSp8atj3+6fYvfygQd2 8PPwKBPWHVRVsr3X/3id/rBTSvIHtwo6uzCBJB9CPa1Cp1cbrRh+XxXX/r36CfjtEAdi N1Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719948907; x=1720553707; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sx1IQZrGmekUeQfToNS/Y1/lCowUpdBnk2IPwet7UJI=; b=k0ilATq2XfcgRw6Uo8YNmfC8ADNpHrTgM5LhE0kz8QJTtFzCFq12ACiJvZDjEiI4mT aJKfPeGJ6EUGM78SFStvbgoVeg0p2ffpjWdhYobtF7yRHi/UfhbGZ5skl9vByqvwmMAL mgICt4KkZ8lDHwQmpp6Ycq+GTuqSFEPbPg0cpmxt/fkGUh0wfwtLCvvTpyDCLRZqg4XB nWEmTM/hPzTax/scuqCBJHhN0UYYGrCvgPGQhHTP5vWoENwSeXQUSrqpL2V4DtOptC7k 6bcdcY+1If/3nXUd3P2o55Dcrm4fYbIGbEffOprpmGtgahA4Fm2c7EeEFu1aDEdLchbO vELw== X-Gm-Message-State: AOJu0YwapeO9Hwv6g7aYkuw050P4hjNDWZhg8i8xUIu/AD4FHF31y4S+ FXmj9D7lpgdbJ2yKmph6zIBLpjcAz4LdY2u5rkDDfbvdYuZK9L1u5icWm+MxB5PCE4hAPAmhEqr xA8kdf75gA0vnHFCLnZL6O0ZNblU= X-Google-Smtp-Source: AGHT+IHol0J8ytZa3kBMqTGdP0/524t9qGCJRLwseeIQ4p8Sbof6Cm+NU98YlIvg2y7GHxCgQG4lMV6j/hSHhtXShx0= X-Received: by 2002:a50:ccd0:0:b0:578:6959:9d36 with SMTP id 4fb4d7f45d1cf-5879c08e141mr6547186a12.0.1719948907000; Tue, 02 Jul 2024 12:35:07 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 Received: by 2002:a05:7412:2019:b0:115:8ba0:9df2 with HTTP; Tue, 2 Jul 2024 12:35:04 -0700 (PDT) In-Reply-To: References: From: Denis Kirjanov Date: Tue, 2 Jul 2024 22:35:04 +0300 Message-ID: Subject: Re: How to unload the vmm.ko module while FreeBSD is running... To: Mario Marietto Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000a23cc5061c48cf90" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4WDCmZ47MJz4f98 --000000000000a23cc5061c48cf90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 2 =D0=B8=D1=8E=D0=BB=D1=8F 2024= =E2=80=AF=D0=B3. =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0= =B5=D0=BB=D1=8C Mario Marietto =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > Hello. > > I'm trying to unload the vmm kernel module,but it fails : > > [root@marietto /bhyve]=3D=3D> kldunload -fv vmm > Unloading vmm.ko, id=3D13 > kldunload: can't unload file: Device busy > > I don't understand why it fails,since I don't have any bhyve vm currently > running : > > [root@marietto /bhyve]=3D=3D> ps ax | grep bhyve > 6645 4 RL+ 0:00,00 grep bhyve (ggrep) > > and yes,the vmm module is loaded in memory : > > root@marietto /bhyve]=3D=3D> kldstat | grep vmm > 13 1 0xffffffff827ac000 37c9e8 vmm.ko > > how has it been loaded inside the memory ? Using /boot/loader.conf : > > vmm_load=3D"YES" > > and it is located inside the directory /boot/kernel and it is called vmm.= ko > bhyvectl --destroy --vm=3D > > Is there a way to unload it and reload it while FreeBSD is running,withou= t > rebooting the system ? thanks. > > -- > Mario. > --=20 Regards / Mit besten Gr=C3=BC=C3=9Fen, Denis --000000000000a23cc5061c48cf90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 2 =D0=B8=D1=8E=D0=BB=D1= =8F 2024=E2=80=AF=D0=B3. =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0= =D1=82=D0=B5=D0=BB=D1=8C Mario Marietto <marietto2008@gmail.com> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0= =B0=D0=BB:
Hel= lo.

I'm trying to unload the vmm kernel module= ,but it fails :

[root@marietto /bhyve]=3D=3D&g= t; kldunload -fv vmm
Unloading vmm.ko, id=3D13
kldunload: can&= #39;t unload file: Device busy

I don't underst= and why it fails,since I don't have any bhyve vm currently running :

[root@marietto /bhyve]=3D=3D> ps ax | grep bh= yve
6645 =C2=A04 =C2=A0RL+ =C2=A0 =C2=A0 0:00,00 grep bhyve (ggrep)

and yes,the vmm module is loaded in memory :

root@marietto /bhyve]=3D=3D> kldstat | grep vmm
13 = =C2=A0 =C2=A01 0xffffffff827ac000 =C2=A0 37c9e8 vmm.ko

= how has it been loaded inside the memory ? Using /boot/loader.conf :

vmm_load=3D"YES"

= and it is located inside the directory /boot/kernel and it is called vmm.ko=

bhyvectl --destroy --=
vm=3D<name>

=C2=A0<= /div>

Is= there a way to unload it and reload it while FreeBSD is running,without re= booting the system ? thanks.

--
Mario.


--
Regards / Mit besten Gr=C3=BC=C3=9Fen,
Denis=

--000000000000a23cc5061c48cf90--