All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] UEFI-based HTTP Boot
@ 2017-01-20  1:13 Ken Lin
  2017-01-20  1:13 ` [RFC 1/2] net: add efihttp to do HTTP(S) Boot by UEFI HTTP Protocol Ken Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ken Lin @ 2017-01-20  1:13 UTC (permalink / raw)
  To: grub-devel; +Cc: kengyu, clayc, michael.ruan, ljk, Ken Lin

This RFC patchset is stacked on the previous HTTP boot patchset:
https://lists.gnu.org/archive/html/grub-devel/2016-12/msg00088.html
It re-uses some code from it, e.g. the DCHPACK
with vendor_class_identifier=HTTPClient.

Instead of implementing HTTP and HTTPS boot totally from software,
UEFI firmware already defines APIs for HTTP(s).
Please check UEFI spec. 2.5 and plus for the detail:

28.6 EFI HTTP Protocols

Then why two implementations? For older UEFI firmwares (UEFI 2.4 and older),
the HTTP(s) APIs are not available. In the case,
Grub can fall back to the software-based implementation.
In the first patch of this patchset, grub-core/net/drivers/efi/efihttp.c:76 to 81
is the code to query if the HTTP Protocol is supported by the UEFI firmware.

This patchset was tested on QEMU+OVMF and it works flawlessly.

The main goals of this RFC is to ask for opinions and suggestion to make
the first patch modularized as much as possible.
In the second patch, there is some codes related TCP re-transmission
that need to pass by for the HTTP Boot to work.

More details are described in the logs of each patch. 


Ken Lin (2):
  net: add efihttp to do HTTP(S) Boot by UEFI HTTP Protocol
  net: workaround to bypass corruption of the efihttp function pointer

 grub-core/Makefile.core.def         |   1 +
 grub-core/net/bootp.c               |   6 +
 grub-core/net/drivers/efi/efihttp.c | 386 ++++++++++++++++++++++++++++++++++++
 grub-core/net/drivers/efi/efinet.c  |   1 +
 grub-core/net/net.c                 |  39 +++-
 include/grub/efi/api.h              |  17 ++
 include/grub/efi/http.h             | 221 +++++++++++++++++++++
 include/grub/err.h                  |   3 +-
 include/grub/net.h                  |   1 +
 9 files changed, 672 insertions(+), 3 deletions(-)
 create mode 100755 grub-core/net/drivers/efi/efihttp.c
 create mode 100755 include/grub/efi/http.h

-- 
2.7.4



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-01-25  9:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20  1:13 [RFC 0/2] UEFI-based HTTP Boot Ken Lin
2017-01-20  1:13 ` [RFC 1/2] net: add efihttp to do HTTP(S) Boot by UEFI HTTP Protocol Ken Lin
2017-01-20  1:13 ` [RFC 2/2] net: workaround to bypass corruption of the efihttp function pointer Ken Lin
2017-01-20 14:50 ` [RFC 0/2] UEFI-based HTTP Boot Andrei Borzenkov
2017-01-20 18:01   ` Chang, Clay (HPS OE-Linux TDC)
2017-01-21  3:37   ` Lin, Keng-Yu
2017-01-21 17:41     ` Andrei Borzenkov
2017-01-25  8:09   ` Michael Chang
2017-01-25  8:19     ` Andrei Borzenkov
2017-01-25  8:49       ` Michael Chang
2017-01-25  9:01         ` Andrei Borzenkov

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.