All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: pjp@centroid.eu, QEMU Developers <qemu-devel@nongnu.org>,
	gardask@gmail.com, rgcinjp@disroot.org, daniel@pocock.pro,
	groug@kaod.org, ppc@openbsd.org, kite@centroid.eu,
	joseph.mayer@protonmail.com, siliconbadger@protonmail.com,
	qemu-ppc@nongnu.org, david@gibson.dropbear.id.au
Subject: Re: QEMU-KVM offers OPAL firmware interface? OpenBSD guest support?
Date: Sat, 28 Aug 2021 13:06:20 +0200	[thread overview]
Message-ID: <51bff28d-4779-b023-fee6-b3e9196b7ec5@kaod.org> (raw)
In-Reply-To: <561422a20e4f9ae2@bloch.sibelius.xs4all.nl>

[ ... ] 

> OpenBSD probably uses XIVE in a different way than Linux though.
If it is running under the skiboot firmware (Like on the Talos 
system), it is necessarily using an OPAL interface, either the 
P8 legacy interface (on top of XIVE HW) or the XIVE native 
interface.     

  https://github.com/open-power/skiboot/blob/master/doc/opal-api/index.rst
  https://github.com/open-power/skiboot/blob/master/doc/xive.rst


[ ... ]

> qemu-system-ppc64 -M powernv9 -cpu power9 -m 2G -smp 1 \
>                   -serial mon:stdio \
>                   -device ich9-ahci,id=ahci0,bus=pcie.0 \
>                   -device qemu-xhci,id=usb0,bus=pcie.2 \
>                   -bios /usr/local/share/qemu/skiboot.lid \
>                   -kernel ./pnor.BOOTKERNEL \
>                   -drive id=disk,file=miniroot70.img,if=none \
>                   -device ide-hd,bus=ahci0.0,drive=disk \
>                   -drive id=disk1,file=power.img,if=none \
>                   -device ide-hd,bus=ahci0.1,drive=disk1 \
>                   -device e1000e,bus=pcie.1
> 
> miniroot70.img is the OpenBSD installer image that can be found at:
> 
>   http://cdn.openbsd.org/pub/OpenBSD/snapshots/powerpc64/miniroot70.img
> 
> power.img is the disk image to install on; you can probably leave that out.
> 
> Not sure where I got pnor.BOOTKERNEL from anymore.

That's the file we would be interested in. I suppose this is the same 
image used to boot the Talos ? 

> This command boots into the installer, but hangs at the "Welcome to
> the OpenBSD installer" message.  It is supposed to print a prompt
> after that, but that never happens.

It shouldn't be too hard to debug with all the FW images.  

[ ... ]

>> I thought the BSD folks were working on POWER9 baremetal support,
>> PowerNV platform, on top of OPAL/skiboot. Is that completed ?
> 
> Yup. OpenBSD boots fine on the Raptor Talos/Blackbird machines that we have.

Great ! Where can we get the kernel/rootfs images loaded by skiboot ?  
That would make a good acceptance test for the QEMU PowerNV machines.

Thanks,

C.
 



       reply	other threads:[~2021-08-28 11:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7r8MLHEKQicVkfT4tQLsiRXQmt_800XbV1s0mM_QJTgOY7XadpiRcD4HizmXByPaZRsMQV2WbNKDfKU-PdVo3ZO9JC6fJ0MF5LM_j5a2fgA=@protonmail.com>
     [not found] ` <20210827170113.5f4ed260@bahia.lan>
     [not found]   ` <HgtFZEnabNjIrsVI3x8MYs2QYSCG4IFStP0MR3qwPWBmXW9kDmQmIwQEWHMVdJbUCu-XvHdMpZGe3pr-B91s1D7y6cn9SVzhxEYms5c3p0o=@protonmail.com>
     [not found]     ` <20210827180259.3720d58d@bahia.lan>
     [not found]       ` <56141ff67838992a@bloch.sibelius.xs4all.nl>
     [not found]         ` <20210827190053.6c68def5@bahia.lan>
     [not found]           ` <25bfa81c-9498-4e82-a848-1fbb1c188ff1@kaod.org>
     [not found]             ` <561422a20e4f9ae2@bloch.sibelius.xs4all.nl>
2021-08-28 11:06               ` Cédric Le Goater [this message]
2021-08-29  4:09                 ` QEMU-KVM offers OPAL firmware interface? OpenBSD guest support? Joseph
2021-08-29  4:20                   ` Joseph
2021-08-30  6:26                     ` Cédric Le Goater
2021-08-30  6:57                   ` David Gibson
2021-08-30 15:44                     ` BALATON Zoltan
2021-08-31  0:27                       ` David Gibson
2021-08-31 15:12                         ` Fabiano Rosas
2021-08-30 16:04                     ` Michal Suchánek
2021-08-31  0:45                       ` David Gibson
2021-08-31  7:42                       ` Cédric Le Goater
2021-08-31  9:56                         ` David Gibson
2021-08-27 14:35 Joseph

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51bff28d-4779-b023-fee6-b3e9196b7ec5@kaod.org \
    --to=clg@kaod.org \
    --cc=daniel@pocock.pro \
    --cc=david@gibson.dropbear.id.au \
    --cc=gardask@gmail.com \
    --cc=groug@kaod.org \
    --cc=joseph.mayer@protonmail.com \
    --cc=kite@centroid.eu \
    --cc=mark.kettenis@xs4all.nl \
    --cc=pjp@centroid.eu \
    --cc=ppc@openbsd.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=rgcinjp@disroot.org \
    --cc=siliconbadger@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.