qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: "Michal Suchánek" <msuchanek@suse.de>
Cc: pjp@centroid.eu, gardask@gmail.com, rgcinjp@disroot.org,
	daniel@pocock.pro, "QEMU Developers" <qemu-devel@nongnu.org>,
	"Greg Kurz" <groug@kaod.org>,
	kite@centroid.eu, Joseph <joseph.mayer@protonmail.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	siliconbadger@protonmail.com, qemu-ppc@nongnu.org,
	"ppc@openbsd.org" <ppc@openbsd.org>,
	"Mark Kettenis" <mark.kettenis@xs4all.nl>
Subject: Re: QEMU-KVM offers OPAL firmware interface? OpenBSD guest support?
Date: Tue, 31 Aug 2021 10:45:21 +1000	[thread overview]
Message-ID: <YS17oUzgIY0TIjzT@yekko> (raw)
In-Reply-To: <20210830160431.GC61714@kunlun.suse.cz>

[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]

On Mon, Aug 30, 2021 at 06:04:31PM +0200, Michal Suchánek wrote:
> On Mon, Aug 30, 2021 at 04:57:21PM +1000, David Gibson wrote:
> > On Sun, Aug 29, 2021 at 04:09:54AM +0000, Joseph wrote:
> > > Hi Mark, Cédric, Greg at the openbsd-ppc ML,
> 
> > 
> > So.. if you want to run OpenBSD on POWER10 you will definitely need
> > PAPR support, because POWER10 won't support bare metal OS access at
> > all (it will be back to PowerVM always, like POWER5..POWER7).
> 
> Hello,
> 
> what is stopping powernv support other than lack of firmware
> support?

The virtualization features of the CPU simply aren't designed to do
full virtualization, only para-virtualization (which is what PAPR
is).  A guest in the POWER model is *aware* that it doesn't have
hypervisor privilege, but a powernv OS expects to have hypervisor
privilege.

I don't know that it's strictly impossible to provide a virtualized
powernv environment.  Specifically, it might be possible to take an
approach similar to KVM PR at a higher level: run the guest in
supervisor mode, but trap and emulate all hypervisor privileged
instructions.  However, I'm not certain that all the things that need
to be trapped do in fact trap, it would require a bunch of careful
research.  Even if it's possible, it would be a big job: essentially a
completely new KVM implementation.

> Doesn't PowerVM use teh very same vrtualization features that KVM
> does?

Yes, that's exactly the point.  The (para-)virtualized guest
environment provided by both PowerVM and KVM is PAPR (the "pseries"
machine type in qemu terms).  "powernv" is the bare metal,
hypervisor-privileged, host environment (that's even where the name
comes from "POWER Non Virtualized").

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-08-31  0:51 UTC|newest]

Thread overview: 12+ 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               ` QEMU-KVM offers OPAL firmware interface? OpenBSD guest support? Cédric Le Goater
2021-08-29  4:09                 ` 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 [this message]
2021-08-31  7:42                       ` Cédric Le Goater
2021-08-31  9:56                         ` David Gibson

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=YS17oUzgIY0TIjzT@yekko \
    --to=david@gibson.dropbear.id.au \
    --cc=clg@kaod.org \
    --cc=daniel@pocock.pro \
    --cc=gardask@gmail.com \
    --cc=groug@kaod.org \
    --cc=joseph.mayer@protonmail.com \
    --cc=kite@centroid.eu \
    --cc=mark.kettenis@xs4all.nl \
    --cc=msuchanek@suse.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).