diff options
author | Farhan Ali <alifm@linux.vnet.ibm.com> | 2016-10-20 17:59:20 -0400 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-02-28 12:04:48 +0100 |
commit | f38b5b7fc4e27724afc72b91efa2bc82f84bb25e (patch) | |
tree | 6301e09119bcb32eef1993d7c2709742ecaa2b39 /hw/s390x/ipl.h | |
parent | 5f31ade055dfb9da9d04fe826374ed5f91dd5d24 (diff) | |
download | qemu-f38b5b7fc4e27724afc72b91efa2bc82f84bb25e.zip qemu-f38b5b7fc4e27724afc72b91efa2bc82f84bb25e.tar.gz qemu-f38b5b7fc4e27724afc72b91efa2bc82f84bb25e.tar.bz2 |
s390x/ipl: Load network boot image
Load the network boot image into guest RAM when the boot
device selected is a network device. Use some of the reserved
space in IplBlockCcw to store the start address of the netboot
image.
A user could also use 'chreipl'(diag 308/5) to change the boot device.
So every time we update the IPLB, we need to verify if the selected
boot device is a network device so we can appropriately load the
network boot image.
Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/ipl.h')
-rw-r--r-- | hw/s390x/ipl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/s390x/ipl.h b/hw/s390x/ipl.h index 4ad9a7c..46930e4 100644 --- a/hw/s390x/ipl.h +++ b/hw/s390x/ipl.h @@ -16,7 +16,8 @@ #include "cpu.h" struct IplBlockCcw { - uint8_t reserved0[85]; + uint64_t netboot_start_addr; + uint8_t reserved0[77]; uint8_t ssid; uint16_t devno; uint8_t vm_flags; @@ -100,6 +101,7 @@ struct S390IPLState { IplParameterBlock iplb; bool iplb_valid; bool reipl_requested; + bool netboot; /*< public >*/ char *kernel; |