From owner-freebsd-ppc@freebsd.org Sat Feb 23 18:22:41 2019 Return-Path: Delivered-To: freebsd-ppc@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 5C3EB152075A for ; Sat, 23 Feb 2019 18:22:41 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from neo-zeon.de (neo-zeon.de [96.90.244.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.neo-zeon.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CBFE97896 for ; Sat, 23 Feb 2019 18:22:39 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from [192.168.0.55] (ukyo.nerv.lan [192.168.0.55]) (authenticated bits=0) by neo-zeon.de (8.15.2/8.15.2) with ESMTPSA id x1NIMbXE090087 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 23 Feb 2019 10:22:37 -0800 (PST) (envelope-from cam@neo-zeon.de) Subject: Re: QEMU From: Cameron Berkenpas To: freebsd-ppc@freebsd.org References: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> <8213518b-14a5-aac2-bcbb-529e49c4f044@gmail.com> <9f96d3ac-ada3-8f41-6c2c-e6fab80e49e9@gmail.com> <79ae62b5-f627-5a76-f824-5fdbb3f17876@neo-zeon.de> Message-ID: Date: Sat, 23 Feb 2019 10:22:37 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <79ae62b5-f627-5a76-f824-5fdbb3f17876@neo-zeon.de> Content-Language: en-US X-Rspamd-Queue-Id: 7CBFE97896 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of cam@neo-zeon.de designates 96.90.244.226 as permitted sender) smtp.mailfrom=cam@neo-zeon.de X-Spamd-Result: default: False [-2.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:96.90.244.224/28]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[neo-zeon.de]; NEURAL_SPAM_SHORT(0.14)[0.136,0]; MX_GOOD(-0.01)[mail02.neo-zeon.de,neo-zeon.de]; SUBJ_ALL_CAPS(0.30)[4]; IP_SCORE(-0.98)[ipnet: 96.64.0.0/11(-4.29), asn: 7922(-0.53), country: US(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2019 18:22:41 -0000 Scratch that, I still get: "KVM can't supply 64kiB CI pages, which guest expects" Seems I'd forgotten my VM was set to qemu mode for testing. The good news is that this works for me in with qemu. At least I can boot up quite slowly with qemu and try other solutions now. On 2/23/19 10:03 AM, Cameron Berkenpas wrote: > Hello, > > This was very helpful! I switched to pseries-2.5 and my FreeBSD VM > (KVM) works again! > > > On 2/23/19 5:49 AM, Jason Bacon wrote: >> On 7/21/18 1:06 PM, Jason Bacon wrote: >>> On 7/19/18 4:32 PM, Jason Bacon wrote: >>>> On 07/19/18 14:09, Chuck Tuffli wrote: >>>>> On Thu, Jul 12, 2018 at 8:09 AM, Jason Bacon >>>>> wrote: >>>>>> FYI, I get the exact same behavior under qemu 2.8.1 on Debian. >>>>>> >>>>>> So now we have similar symptoms in qemu 2.8.1, 2.9, and 2.12.50 >>>>>> on FreeBSD >>>>>> and Linux hosts. >>>>> FWIW, on an Ubuntu 14.04 system with qemu-system-ppc64 version 2.0.0, >>>>> the ppc64 snapshot ISO of 12.0, the OS appears to install correctly >>>>> and subsequently boots correctly. >>>>> >>>>> --chuck >>>> That's worth a lot, actually. >>>> >>>> The 12.0 snapshot also works on my FreeBSD 11.1 host with the stock >>>> qemu package.  Both keyboard and mouse input are processed. >>>> >>>> Interestingly, though, while 12.0 works, it seems to be a lot >>>> slower than 11.1 under qemu.  Below are times to get to the install >>>> screen.  ( I just close the qemu window as soon as it reaches that >>>> point, where 11.1 won't accept keyboard input. ) >>>> >>>> FreeBSD cray.acadix  bacon ~ 999: time qemu-ppc install >>>> freebsd-ppc.img >>>> FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso >>>> + [ ! -e freebsd-ppc.img ] >>>> + qemu-system-ppc64 -cdrom >>>> FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso >>>> -drive 'file=freebsd-ppc.img,format=raw' -boot d >>>> 217.327u 3.455s 4:21.41 84.4%    9628+6292k 94+2io 476pf+0w >>>> >>>> >>>> FreeBSD cray.acadix  bacon ~ 1000: time qemu-ppc install >>>> freebsd-ppc.img Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso >>>> + [ ! -e freebsd-ppc.img ] >>>> + qemu-system-ppc64 -cdrom >>>> Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso -drive >>>> 'file=freebsd-ppc.img,format=raw' -boot d >>>> 123.001u 1.748s 2:47.05 74.6%    9643+6302k 556+3io 0pf+0w >>>> >>>> Maybe these data will provide some clues to the ppc base developers... >>>> >>> I'm getting "lock order reversal" errors followed by stack traces >>> when running portsnap.  Bleeding-edge 12.0 issue? >>> >> >> Poked around at this a bit more and found a workaround.  It seems >> FreeBSD doesn't support the latest default PPC machine in qemu. >> Available options are listed below.  After switching from the default >> pseries-2.6 to pseries-2.5, FreeBSD 12.0 works flawlessly. >> >> I attached a script I'm using to install and then boot the VM. >> >> So now there's an easy way to test/fix ports for PPC64.  Runs about >> as fast as a 486, but that's fine since we can install dependencies >> via "pkg install" to reduce build time. >> >> >> FreeBSD cray.acadix  bacon ~ 1010: qemu-system-ppc -machine help >> Supported machines are: >> bamboo               bamboo >> g3beige              Heathrow based PowerMAC (default) >> mac99                Mac99 based PowerMAC >> mpc8544ds            mpc8544ds >> none                 empty machine >> ppce500              generic paravirt e500 platform >> prep                 PowerPC PREP platform >> ref405ep             ref405ep >> taihu                taihu >> virtex-ml507         Xilinx Virtex ML507 reference design >> FreeBSD cray.acadix  bacon ~ 1011: qemu-system-ppc64 -machine help >> Supported machines are: >> bamboo               bamboo >> g3beige              Heathrow based PowerMAC >> mac99                Mac99 based PowerMAC >> mpc8544ds            mpc8544ds >> none                 empty machine >> ppce500              generic paravirt e500 platform >> prep                 PowerPC PREP platform >> pseries-2.1          pSeries Logical Partition (PAPR compliant) >> pseries-2.2          pSeries Logical Partition (PAPR compliant) >> pseries-2.3          pSeries Logical Partition (PAPR compliant) >> pseries-2.4          pSeries Logical Partition (PAPR compliant) >> pseries-2.5          pSeries Logical Partition (PAPR compliant) >> pseries              pSeries Logical Partition (PAPR compliant) >> (alias of pseries-2.6) >> pseries-2.6          pSeries Logical Partition (PAPR compliant) >> (default) >> ref405ep             ref405ep >> taihu                taihu >> virtex-ml507         Xilinx Virtex ML507 reference design >> >> >> >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to"freebsd-ppc-unsubscribe@freebsd.org" >