[PATCH 0/3] pc-bios/s390-ccw: Fix problems related to network booting

Thomas Huth posted 3 patches 2 weeks, 5 days ago
pc-bios/s390-ccw/virtio.h     |  2 ++
pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
pc-bios/s390-ccw/virtio-net.c |  5 ++++
pc-bios/s390-ccw/virtio.c     |  7 ++++-
4 files changed, 44 insertions(+), 22 deletions(-)
[PATCH 0/3] pc-bios/s390-ccw: Fix problems related to network booting
Posted by Thomas Huth 2 weeks, 5 days ago
The boot can currently fail after the s390-ccw bios used a network
device since we do not properly shut down the device afterwards, so
that incoming network packets can corrupt the memory. We have to make
sure to put the virtio-net device into a sane state again afterwards.

The third patch is unrelated, but I spotted this rather cosmetic
problem while working on the code in netmain.c, so I included it here,
too.

Thomas Huth (3):
  pc-bios/s390-ccw/virtio: Add a function to reset a virtio device
  pc-bios/s390-ccw: Fix boot problem with virtio-net devices
  pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP
    server

 pc-bios/s390-ccw/virtio.h     |  2 ++
 pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
 pc-bios/s390-ccw/virtio-net.c |  5 ++++
 pc-bios/s390-ccw/virtio.c     |  7 ++++-
 4 files changed, 44 insertions(+), 22 deletions(-)

-- 
2.47.1
Re: [PATCH 0/3] pc-bios/s390-ccw: Fix problems related to network booting
Posted by Eric Farman 2 weeks, 5 days ago
On Thu, 2025-01-16 at 12:58 +0100, Thomas Huth wrote:
> The boot can currently fail after the s390-ccw bios used a network
> device since we do not properly shut down the device afterwards, so
> that incoming network packets can corrupt the memory. We have to make
> sure to put the virtio-net device into a sane state again afterwards.
> 
> The third patch is unrelated, but I spotted this rather cosmetic
> problem while working on the code in netmain.c, so I included it here,
> too.
> 
> Thomas Huth (3):
>   pc-bios/s390-ccw/virtio: Add a function to reset a virtio device
>   pc-bios/s390-ccw: Fix boot problem with virtio-net devices
>   pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP
>     server

Looks good to me; Thank you, Thomas! For the series:

Reviewed-by: Eric Farman <farman@linux.ibm.com>

> 
>  pc-bios/s390-ccw/virtio.h     |  2 ++
>  pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
>  pc-bios/s390-ccw/virtio-net.c |  5 ++++
>  pc-bios/s390-ccw/virtio.c     |  7 ++++-
>  4 files changed, 44 insertions(+), 22 deletions(-)
> 
Re: [PATCH 0/3] pc-bios/s390-ccw: Fix problems related to network booting
Posted by Jared Rossi 2 weeks, 5 days ago
Thanks Thomas,

Looks good to me. I've tested and verified that the problem is fixed.

Tested-by: Jared Rossi <jrossi@linux.ibm.com>

On 1/16/25 6:58 AM, Thomas Huth wrote:
> The boot can currently fail after the s390-ccw bios used a network
> device since we do not properly shut down the device afterwards, so
> that incoming network packets can corrupt the memory. We have to make
> sure to put the virtio-net device into a sane state again afterwards.
>
> The third patch is unrelated, but I spotted this rather cosmetic
> problem while working on the code in netmain.c, so I included it here,
> too.
>
> Thomas Huth (3):
>    pc-bios/s390-ccw/virtio: Add a function to reset a virtio device
>    pc-bios/s390-ccw: Fix boot problem with virtio-net devices
>    pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP
>      server
>
>   pc-bios/s390-ccw/virtio.h     |  2 ++
>   pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
>   pc-bios/s390-ccw/virtio-net.c |  5 ++++
>   pc-bios/s390-ccw/virtio.c     |  7 ++++-
>   4 files changed, 44 insertions(+), 22 deletions(-)
>