public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: Laszlo Ersek <lersek@redhat.com>,
	Ard Biesheuvel <ard.biesheuvel@arm.com>,
	Rebecca Cran <rebecca@bsdio.com>,
	edk2-devel-groups-io <devel@edk2.groups.io>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Cc: Andrew Fish <afish@apple.com>, Leif Lindholm <leif@nuviainc.com>,
	"Justen, Jordan L" <jordan.l.justen@intel.com>
Subject: Re: Where to put the bhyve code in the edk2 repo: BhyvePkg, or under OvmfPkg?
Date: Mon, 11 May 2020 21:22:35 +0000	[thread overview]
Message-ID: <MN2PR11MB4461FF31AA0D74FE8495EC1DD2A10@MN2PR11MB4461.namprd11.prod.outlook.com> (raw)
In-Reply-To: <29ea808a-f3de-ba07-1f8c-73b6b610cf67@redhat.com>

Hi Laszlo,

Is there an option for Bhyve to live in an edk2-platforms branch
or in edk2-staging branch until it meets the quality criteria for
OvmfPkg in the edk2 repo?

Mike

> -----Original Message-----
> From: Laszlo Ersek <lersek@redhat.com>
> Sent: Monday, May 11, 2020 2:12 PM
> To: Kinney, Michael D <michael.d.kinney@intel.com>; Ard
> Biesheuvel <ard.biesheuvel@arm.com>; Rebecca Cran
> <rebecca@bsdio.com>; edk2-devel-groups-io
> <devel@edk2.groups.io>
> Cc: Andrew Fish <afish@apple.com>; Leif Lindholm
> <leif@nuviainc.com>; Justen, Jordan L
> <jordan.l.justen@intel.com>
> Subject: Re: Where to put the bhyve code in the edk2
> repo: BhyvePkg, or under OvmfPkg?
> 
> On 05/11/20 18:36, Kinney, Michael D wrote:
> > I agree that ArmVirtPkg contents should be added to
> OvmfPkg.
> 
> I guess "OvmfPkg/Secondary/Bhyve" would be a
> compromise.
> 
> (I would actually prefer "Staging" to "Secondary",
> according to the following definition:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvald
> s/linux.git/tree/drivers/staging/Kconfig
> 
> menuconfig STAGING
> 	bool "Staging drivers"
> 	---help---
> 	  This option allows you to select a number of
> drivers that are
> 	  not of the "normal" Linux kernel quality level.
> These drivers
> 	  are placed here in order to get a wider audience
> to make use of
> 	  them.  Please note that these drivers are under
> heavy
> 	  development, may or may not work, and may contain
> userspace
> 	  interfaces that most likely will be changed in the
> near
> 	  future.
> 
> 	  Using any of these drivers will taint your kernel
> which might
> 	  affect support options from both the community,
> and various
> 	  commercial support organizations.
> 
> 	  If you wish to work on these drivers, to help
> improve them, or
> 	  to report problems you have with them, please see
> the
> 	  drivers/staging/<driver_name>/TODO file to see
> what needs to be
> 	  worked on, and who to contact.
> 
> 	  If in doubt, say N here.
> 
> However, edk2 already uses a separate "staging" repo in
> (nearly) the same sense, so I figure the "staging" term
> is already taken. Hence "Secondary", or even
> "SecondClass".)
> 
> Thanks
> Laszlo
> 
> >> -----Original Message-----
> >> From: Ard Biesheuvel <ard.biesheuvel@arm.com>
> >> Sent: Monday, May 11, 2020 9:21 AM
> >> To: Laszlo Ersek <lersek@redhat.com>; Rebecca Cran
> >> <rebecca@bsdio.com>; edk2-devel-groups-io
> >> <devel@edk2.groups.io>
> >> Cc: Kinney, Michael D <michael.d.kinney@intel.com>;
> >> Andrew Fish <afish@apple.com>; Leif Lindholm
> >> <leif@nuviainc.com>; Justen, Jordan L
> >> <jordan.l.justen@intel.com>
> >> Subject: Re: Where to put the bhyve code in the edk2
> >> repo: BhyvePkg, or under OvmfPkg?
> >>
> >> On 5/11/20 5:55 PM, Laszlo Ersek wrote:
> >>> (CC'ing Ard and Jordan.)
> >>>
> >>> On 05/08/20 17:44, Rebecca Cran wrote:
> >>>> During the Community Meeting last night, I was
> asked
> >> to send this email
> >>>> starting a discussion about where to put the bhyve
> >> code in the edk2
> >>>> tree: whether it should be in a new BhyvePkg, or
> >> added under OvmfPkg.
> >>>
> >>> I prefer a top-level BhyvePkg.
> >>>
> >>> If most edk2 consumers wouldn't like to see a top-
> >> level BhyvePkg
> >>> directory, I can certainly live with OvmfPkg/Bhyve.
> >>>
> >>> I can also live with OvmfPkg/Bhyve*,
> >> OvmfPkg/Library/Bhyve*, etc, modules.
> >>>
> >>> So I guess these would be my choices in decreasing
> >> order of preference.
> >>> (To be clear, I consider my option#3 still a lot
> >> better than not having
> >>> bhyve support in upstream edk2 at all.)
> >>>
> >>> In either case, "Maintainers.txt" should get a new
> >> section listing the
> >>> bhyve-specific modules as being under your and
> Peter
> >> Grehan's
> >>> reviewership ("R").
> >>>
> >>>> It
> >>>> appears it's already been decided it should be in
> >> edk2 along with the
> >>>> other virtual platforms and not edk2-platforms,
> >> where code for physical
> >>>> platforms will reside.
> >>>
> >>> I haven't been aware that this is a done deal, but
> if
> >> it is, it makes me
> >>> glad! I've always wanted bhyve stuff to be in edk2
> >> and not in
> >>> edk2-platforms.
> >>>
> >>
> >> I think it is a good thing to have support for
> virtual
> >> platforms in core
> >> EDK2, given that such a platform is only a download
> >> away for anyone who
> >> wants to try it. I am strongly opposed to the idea
> that
> >> core EDK2 should
> >> just be a repository of bits and pieces that
> platforms
> >> can incorporate,
> >> especially because it can make regressions
> unsolveable
> >> once we get
> >> ourselves into a state where reverting some patch
> fixes
> >> a problem on one
> >> platform and creates one on another.
> >>
> >> However, I don't think every platforms in core EDK2
> can
> >> be a first class
> >> citizen. There is simply no way we can expect
> >> contributors to make sure
> >> that their changes don't break under Bhyve, and the
> >> same will be true
> >> once (if) we merge kvmtool guest support, which is
> >> under development as
> >> well (given that it supports virtualization only,
> and
> >> so unlike QEMU,
> >> which supports emulation as well, it requires a
> native
> >> host)
> >>
> >> So I agree that it makes sense to incorporate Bhyve
> >> into core EDK2, but
> >> we have to decide on some rules regarding 'second
> >> class' platforms:
> >> how/when to test them, and how urgently we treat
> >> regressions found
> >> during such testing. We can treat ArmVirtXen the
> same
> >> way, imo, as well
> >> as KvmTool when it lands.
> >>
> >> Whether we create a BhyvePkg depends on our future
> >> intent wrt merging
> >> OVMF with other virtual platforms. I think it would
> >> make sense for the
> >> ArmVirtPkg and OvmfPkg to be merged at some point,
> at
> >> which time it will
> >> probably make little sense to have a separate
> BhyvePkg.
> >> But I'm not sure
> >> what Laszlo's take is on this.
> >>
> >> In summary, I can live with any of these options, as
> >> long as the
> >> underlying rules and assumptions are clarified.
> >>
> >


  reply	other threads:[~2020-05-11 21:22 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 15:44 Where to put the bhyve code in the edk2 repo: BhyvePkg, or under OvmfPkg? Rebecca Cran
2020-05-11 15:55 ` Laszlo Ersek
2020-05-11 16:20   ` Ard Biesheuvel
2020-05-11 16:36     ` Michael D Kinney
2020-05-11 16:38       ` Andrew Fish
2020-05-11 16:41         ` [edk2-devel] " Michael D Kinney
2020-05-11 21:12       ` Laszlo Ersek
2020-05-11 21:22         ` Michael D Kinney [this message]
2020-05-11 21:58           ` [edk2-devel] " Rebecca Cran
2020-05-12  9:28             ` Laszlo Ersek
2020-05-12  9:52               ` Ard Biesheuvel
2020-05-12 15:09                 ` Laszlo Ersek
2020-05-14  2:34               ` Rebecca Cran
2020-05-14 10:24                 ` Laszlo Ersek
2020-05-14 16:20                   ` Rebecca Cran
2020-05-14 17:48                     ` Sean
2020-05-14 18:22                       ` Rebecca Cran
2020-05-14 18:46                         ` Sean
2020-05-14 18:54                           ` Rebecca Cran
2020-05-15  9:39                       ` Laszlo Ersek
2020-05-15  9:42                     ` Laszlo Ersek
2020-05-15  9:47                       ` Ard Biesheuvel
2020-05-15 12:51                         ` Laszlo Ersek
2020-05-15 15:03                           ` Leif Lindholm
2020-05-11 16:25   ` Michael D Kinney

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-list 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=MN2PR11MB4461FF31AA0D74FE8495EC1DD2A10@MN2PR11MB4461.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /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