All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Brown <mcb30@ipxe.org>
To: Andrei Borzenkov <arvidjaar@gmail.com>,
	 "Rivard, Matthew T" <matthew.t.rivard@intel.com>,
	The development of GNU GRUB <grub-devel@gnu.org>,
	 ipxe-devel@lists.ipxe.org,
	edk2-devel-01 <edk2-devel@ml01.01.org>
Subject: Re: [ipxe-devel] iPXE efi chainloading grub2 pxe efi file
Date: Thu, 15 Oct 2015 18:46:19 +0100	[thread overview]
Message-ID: <561FE66B.9080101@ipxe.org> (raw)
In-Reply-To: <561DF29D.70702@gmail.com>

On 14/10/15 07:13, Andrei Borzenkov wrote:
> Well, now we have two *applications* each holding exclusive open on
> adapter. I do not know details about iPXE but if there is any remote
> chance it does background polling we are back at square one.

iPXE will obtain exclusive access to the underlying SNP, NII, or PCI I/O 
protocol, and will (quite forcibly) kick off anything else connected to 
this handle.  It will then create an entirely new EFI handle on which is 
installed iPXE's own SNP and NII protocol instances, along with our own 
PXEBC and LoadFile protocols.  MNP is then allowed to attach to this new 
handle.

We don't set up a timer for background polling ourselves, but MNP will 
set up a timer and periodically poll via our provided SNP protocol 
instance.  We forcibly prevent these MNP polls whenever we're in the 
middle of a blocking operation (such as when shim.efi calls our PXEBC's 
Mtftp() method).

Hope that helps to explain how iPXE works in some more detail.  Please 
note that all of the above applies only to very recent builds of iPXE 
(September 2015 onwards).

I have personally observed grub.efi being able to obtain the cached IP 
address (from our reconstructed DHCP packet) and being able to 
communicate via the SNP instance provided by iPXE.  It _is_ expected to 
work, and I'm definitely interested in fixing any interoperability 
problems with GRUB.

Could someone give me a short and simple set of instructions for 
reproducing the problem being discussed here?

Thanks,

Michael


      parent reply	other threads:[~2015-10-15 22:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <EEEB59C9688B214382E250B0063276B96CEE43@ORSMSX102.amr.corp.intel.com>
     [not found] ` <55FB8A5F.6040404@gmail.com>
     [not found]   ` <EEEB59C9688B214382E250B0063276B96CF050@ORSMSX102.amr.corp.intel.com>
2015-10-14  6:13     ` iPXE efi chainloading grub2 pxe efi file Andrei Borzenkov
2015-10-14 16:56       ` Rivard, Matthew T
2015-10-14 18:03         ` Andrei Borzenkov
2015-10-14 18:09           ` Rivard, Matthew T
2015-10-14 18:23             ` Andrei Borzenkov
2015-10-14 21:12               ` Rivard, Matthew T
2015-10-14 20:09             ` Andrei Borzenkov
2016-01-17 15:41               ` [PATCH][WiP] native DHCPv4 support in net_bootp Andrei Borzenkov
2016-01-21 18:37                 ` Mark Rutland
2016-03-19  1:03                 ` Rivard, Matthew T
2016-03-19  4:51                   ` Andrei Borzenkov
2015-10-15 17:46       ` Michael Brown [this message]

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=561FE66B.9080101@ipxe.org \
    --to=mcb30@ipxe.org \
    --cc=arvidjaar@gmail.com \
    --cc=edk2-devel@ml01.01.org \
    --cc=grub-devel@gnu.org \
    --cc=ipxe-devel@lists.ipxe.org \
    --cc=matthew.t.rivard@intel.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.