From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Alexander Graf <agraf@suse.de>,
Farhan Ali <alifm@linux.vnet.ibm.com>,
David Hildenbrand <david@redhat.com>,
Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>,
Cornelia Huck <cohuck@redhat.com>
Subject: [Qemu-devel] [RFC PATCH v2 0/8] Implement network booting directly into the s390-ccw BIOS
Date: Fri, 7 Jul 2017 12:26:56 +0200 [thread overview]
Message-ID: <1499423224-23060-1-git-send-email-thuth@redhat.com> (raw)
It's already possible to do a network boot of an s390x guest with an
external netboot image based on a Linux installation, but it would
be much more convenient if the s390-ccw firmware supported network
booting right out of the box, without the need to assemble such an
external image first.
This patch series now introduces a s390-netboot.img that can be used
for network booting via DHCP and TFTP by re-using the networking stack
from the SLOF firmware (see https://github.com/aik/SLOF/ for details),
and adds a driver for virtio-net-ccw devices.
The code can only be built if the roms/SLOF/ submodule has been checked
out, and you apply the following pending SLOF patch on top of it:
https://patchwork.ozlabs.org/patch/785384/
Then it should be possible to download a combined kernel + initrd
image via TFTP, e.g. by starting QEMU with:
qemu-system-s390x ... -device virtio-net,netdev=n1,bootindex=1 \
-netdev user,id=n1,tftp=/path/to/tftp,bootfile=kernel.img
Note that this version does not support downloading via config
files (i.e. pxelinux config files or .INS config files) yet. This
will be added later.
v2:
- Put the network boot loader into a separate s390-netboot.img
binary instead of linking it directly into the s390-ccw firmware.
- Use the SLOF sources from the roms/SLOF/ submodule instead of
copying them into the pc-bios/s390-ccw folder
- Removed the .INS config file loading code for now - only support
combined kernel + initrd images in this initial implementation.
Thomas Huth (8):
pc-bios/s390-ccw: Move libc functions to separate header
pc-bios/s390-ccw: Move ebc2asc to sclp.c
pc-bios/s390-ccw: Move virtio-block related functions into a separate
file
pc-bios/s390-ccw: Add a write() function for stdio
roms/SLOF: Update submodule to latest status
pc-bios/s390-ccw: Add core files for the network bootloading program
pc-bios/s390-ccw: Add virtio-net driver code
pc-bios/s390-ccw: Link libnet into the netboot image and do the TFTP
load
pc-bios/s390-ccw/Makefile | 13 +-
pc-bios/s390-ccw/bootmap.c | 1 +
pc-bios/s390-ccw/libc.h | 43 +++++
pc-bios/s390-ccw/main.c | 14 +-
pc-bios/s390-ccw/netboot.mak | 51 ++++++
pc-bios/s390-ccw/netmain.c | 365 +++++++++++++++++++++++++++++++++++++++++
pc-bios/s390-ccw/s390-ccw.h | 31 +---
pc-bios/s390-ccw/sclp.c | 37 +++--
pc-bios/s390-ccw/virtio-blk.c | 296 +++++++++++++++++++++++++++++++++
pc-bios/s390-ccw/virtio-net.c | 130 +++++++++++++++
pc-bios/s390-ccw/virtio-scsi.c | 1 +
pc-bios/s390-ccw/virtio.c | 283 ++------------------------------
pc-bios/s390-ccw/virtio.h | 17 +-
roms/SLOF | 2 +-
14 files changed, 955 insertions(+), 329 deletions(-)
create mode 100644 pc-bios/s390-ccw/libc.h
create mode 100644 pc-bios/s390-ccw/netboot.mak
create mode 100644 pc-bios/s390-ccw/netmain.c
create mode 100644 pc-bios/s390-ccw/virtio-blk.c
create mode 100644 pc-bios/s390-ccw/virtio-net.c
--
1.8.3.1
next reply other threads:[~2017-07-07 10:27 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 10:26 Thomas Huth [this message]
2017-07-07 10:26 ` [Qemu-devel] [RFC PATCH v2 1/8] pc-bios/s390-ccw: Move libc functions to separate header Thomas Huth
2017-07-07 13:46 ` Christian Borntraeger
2017-07-07 15:05 ` Thomas Huth
2017-07-07 15:10 ` Thomas Huth
2017-07-07 13:56 ` Farhan Ali
2017-07-07 10:26 ` [Qemu-devel] [RFC PATCH v2 2/8] pc-bios/s390-ccw: Move ebc2asc to sclp.c Thomas Huth
2017-07-07 12:42 ` Cornelia Huck
2017-07-07 14:05 ` Farhan Ali
2017-07-07 10:26 ` [Qemu-devel] [RFC PATCH v2 3/8] pc-bios/s390-ccw: Move virtio-block related functions into a separate file Thomas Huth
2017-07-07 12:54 ` Cornelia Huck
2017-07-07 13:04 ` Thomas Huth
2017-07-07 13:06 ` Cornelia Huck
2017-07-07 10:27 ` [Qemu-devel] [RFC PATCH v2 4/8] pc-bios/s390-ccw: Add a write() function for stdio Thomas Huth
2017-07-07 12:57 ` Cornelia Huck
2017-07-07 10:27 ` [Qemu-devel] [RFC PATCH v2 5/8] roms/SLOF: Update submodule to latest status Thomas Huth
2017-07-07 10:27 ` [Qemu-devel] [RFC PATCH v2 6/8] pc-bios/s390-ccw: Add core files for the network bootloading program Thomas Huth
2017-07-07 10:27 ` [Qemu-devel] [RFC PATCH v2 7/8] pc-bios/s390-ccw: Add virtio-net driver code Thomas Huth
2017-07-07 12:37 ` Cornelia Huck
2017-07-10 11:23 ` Thomas Huth
2017-07-10 11:38 ` Cornelia Huck
2017-07-07 10:27 ` [Qemu-devel] [RFC PATCH v2 8/8] pc-bios/s390-ccw: Link libnet into the netboot image and do the TFTP load Thomas Huth
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=1499423224-23060-1-git-send-email-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=agraf@suse.de \
--cc=alifm@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=mihajlov@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/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).