From owner-freebsd-hackers@freebsd.org Mon Aug 19 18:09:00 2019 Return-Path: Delivered-To: freebsd-hackers@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 F382DCD250 for ; Mon, 19 Aug 2019 18:08:59 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.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 46C24B5vx5z47Wv for ; Mon, 19 Aug 2019 18:08:58 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x7JI8mHe045609; Mon, 19 Aug 2019 11:08:48 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x7JI8mbN045608; Mon, 19 Aug 2019 11:08:48 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201908191808.x7JI8mbN045608@gndrsh.dnsmgr.net> Subject: Re: bhyve problem In-Reply-To: To: Warner Losh Date: Mon, 19 Aug 2019 11:08:48 -0700 (PDT) CC: "Rodney W. Grimes" , FreeBSD Hackers , Wojciech Puchar 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: 46C24B5vx5z47Wv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-rwg@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd-rwg@gndrsh.dnsmgr.net X-Spamd-Result: default: False [-0.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.795,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.47)[-0.468,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.14)[-0.137,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.05)[ip: (0.15), ipnet: 69.59.192.0/19(0.07), asn: 13868(0.05), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2019 18:09:00 -0000 > On Mon, Aug 19, 2019 at 9:29 AM Rodney W. Grimes < > freebsd-rwg@gndrsh.dnsmgr.net> wrote: > > > > I wonder which kernel interface changed in an incompatible way... > > > > The fact that he had a new user land with an ioctl that > > does not exist in his kernel would be the "incompatible way". > > > > The ioctl didnt exist so an error was returned. > > Nothing more in the name of compatibility could be done. > > > > I'm concerned that the errors weren't properly reported so the OP had to > send mail to the mailing list. Either we need a better error reporting > mechanism or need to back to the old way of doing things when the new way > fails... I do not know what more can new code report when it makes a call that it expects to be there and is told that the call does not exist? The OP shot his foot, he tried to run a new user land on an old kernel, an unsupported environment. Exactly how could one in prove the error reporting? Check for kernel version and function support, that opens a massive can of worms. Exactly what old way are you refering to? I think your running down a rabbit hole that is purely foot shot by trying to run new userland on old kernel, something that would take all the developers the rest of time to solve. > Warner > > > > > Warner > > > > > > On Mon, Aug 19, 2019, 1:05 AM Wojciech Puchar wrote: > > > > > > > the problem was that i upgraded userland, compiled kernel but forgot to > > > > install kernel. > > > > > > > > > > > > On Sun, 18 Aug 2019, Rodney W. Grimes wrote: > > > > > > > > >> after updating system to > > > > >> > > > > >> FreeBSD puchar.net 11.3-PRERELEASE FreeBSD 11.3-PRERELEASE #2 > > r347617: > > > > Sat > > > > >> Jun 1 18:32:23 CEST 2019 > > > > >> root@puchar.net:/h/backup1/src/sys/amd64/compile/puchar amd64 > > > > >> > > > > >> bhyve no longer works > > > > >> > > > > >> attempts to start VM that worked normally like > > > > >> > > > > >> nice -n -20 /usr/sbin/bhyve -s 0,hostbridge -m 2048M -P -H -c 2 \ > > > > > ^^^^ > > > > > This is the topology, it looks fine. Hummm... > > > > > You could try "-c cpus=2" but that should make no difference at all. > > > > > > > > > > Are you by any chance having syctl's for cpu topology set? > > > > > hw.vmm.topology.cores_per_package > > > > > hw.vmm.topology.threads_per_core > > > > > > > > > > Can you show me the output of: > > > > > sysctl -a hw.vmm.topology > > > > > > > > > > > > > > >> -s 7,fbuf,rfb=10.0.1.1:5902,password=2j74uo5 \ > > > > >> -s > > > > > > 3,ahci-hd,/dev/label/Windows2-C.eli,hd:/dev/label/Windows2-U.eli,hd:/dev/label/Windows2-V.eli > > > > \ > > > > >> -s 5,virtio-net,tap5,mac=08:00:27:b7:ca:0b \ > > > > >> -s 30,virtio-rnd -s 31,lpc -U dc53b3f7-7eb0-11e7-b5b8-54ee7513f26b \ > > > > >> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -w windows2 > > > > >> /usr/sbin/bhyvectl --destroy --vm=windows2 > > > > >> > > > > >> > > > > >> results in > > > > >> > > > > >> bhyve: vm_set_topology > > > > > > > > > > Humm.. you have 2 commands above, which one produced this error? > > > > > I think you actually only ran the first command which failed, and > > > > > you never actually ran the second command. > > > > > > > > > > If it is the first command that is failing can you do a > > > > > ls -lag /dev/vmm/windows2 > > > > > BEFORE you run that command, I want to see if this might > > > > > be a reinit attempt. > > > > > > > > > >> on console > > > > >> > > > > >> and bhyve exits. no more messages. no VM. > > > > >> > > > > >> what's wrong? > > > > > > > > > > -- > > > > > Rod Grimes > > > > rgrimes@freebsd.org > > > > > _______________________________________________ > > > > > freebsd-hackers@freebsd.org mailing list > > > > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > > > To unsubscribe, send any mail to " > > > > freebsd-hackers-unsubscribe@freebsd.org" > > > > > > > > > > > > > > _______________________________________________ > > > > freebsd-hackers@freebsd.org mailing list > > > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > > To unsubscribe, send any mail to " > > freebsd-hackers-unsubscribe@freebsd.org" > > > > > > > _______________________________________________ > > > freebsd-hackers@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > To unsubscribe, send any mail to " > > freebsd-hackers-unsubscribe@freebsd.org" > > > > > > > -- > > Rod Grimes > > rgrimes@freebsd.org > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Rod Grimes rgrimes@freebsd.org