Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-26 Thread Christian Borntraeger
On 04/26/2018 05:43 AM, Thomas Huth wrote: > On 25.04.2018 18:03, Christian Borntraeger wrote: >> >> >> On 04/25/2018 05:36 PM, Thomas Huth wrote: >>> On 25.04.2018 14:44, Christian Borntraeger wrote: On 04/25/2018 02:41 PM, Christian Borntraeger wrote: > You load from address

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Thomas Huth
On 25.04.2018 18:03, Christian Borntraeger wrote: > > > On 04/25/2018 05:36 PM, Thomas Huth wrote: >> On 25.04.2018 14:44, Christian Borntraeger wrote: >>> >>> >>> On 04/25/2018 02:41 PM, Christian Borntraeger wrote: You load from address 0. On 04/25/2018 02:34 PM, Thomas Huth

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Christian Borntraeger
On 04/25/2018 05:36 PM, Thomas Huth wrote: > On 25.04.2018 14:44, Christian Borntraeger wrote: >> >> >> On 04/25/2018 02:41 PM, Christian Borntraeger wrote: >>> You load from address 0. >>> >>> On 04/25/2018 02:34 PM, Thomas Huth wrote: On 25.04.2018 14:18, Christian Borntraeger wrote:

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Christian Borntraeger
On 04/25/2018 05:36 PM, Thomas Huth wrote: > On 25.04.2018 14:44, Christian Borntraeger wrote: >> >> >> On 04/25/2018 02:41 PM, Christian Borntraeger wrote: >>> You load from address 0. >>> >>> On 04/25/2018 02:34 PM, Thomas Huth wrote: On 25.04.2018 14:18, Christian Borntraeger wrote:

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Thomas Huth
On 25.04.2018 14:44, Christian Borntraeger wrote: > > > On 04/25/2018 02:41 PM, Christian Borntraeger wrote: >> You load from address 0. >> >> On 04/25/2018 02:34 PM, Thomas Huth wrote: >>> On 25.04.2018 14:18, Christian Borntraeger wrote: On 04/25/2018 11:08 AM, Thomas Huth wrote:

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Christian Borntraeger
On 04/25/2018 02:41 PM, Christian Borntraeger wrote: > You load from address 0. > > On 04/25/2018 02:34 PM, Thomas Huth wrote: >> On 25.04.2018 14:18, Christian Borntraeger wrote: >>> >>> On 04/25/2018 11:08 AM, Thomas Huth wrote: >>> --- a/pc-bios/s390-ccw/netmain.c +++

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Christian Borntraeger
You load from address 0. On 04/25/2018 02:34 PM, Thomas Huth wrote: > On 25.04.2018 14:18, Christian Borntraeger wrote: >> >> On 04/25/2018 11:08 AM, Thomas Huth wrote: >> >>> --- a/pc-bios/s390-ccw/netmain.c >>> +++ b/pc-bios/s390-ccw/netmain.c >>> @@ -283,6 +283,15 @@ void panic(const char

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Thomas Huth
On 25.04.2018 14:18, Christian Borntraeger wrote: > > On 04/25/2018 11:08 AM, Thomas Huth wrote: > >> --- a/pc-bios/s390-ccw/netmain.c >> +++ b/pc-bios/s390-ccw/netmain.c >> @@ -283,6 +283,15 @@ void panic(const char *string) >> } >> } >> >> +void write_subsystem_identification(void) >>

Re: [Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Christian Borntraeger
On 04/25/2018 11:08 AM, Thomas Huth wrote: > --- a/pc-bios/s390-ccw/netmain.c > +++ b/pc-bios/s390-ccw/netmain.c > @@ -283,6 +283,15 @@ void panic(const char *string) > } > } > > +void write_subsystem_identification(void) > +{ > +uint32_t *schid = (uint32_t *) 184; > +uint32_t

[Qemu-devel] [PATCH v3 2/3] pc-bios/s390-ccw/net: Use diag308 to reset machine before jumping to the OS

2018-04-25 Thread Thomas Huth
The netboot firmware so far simply jumped directly into the OS kernel after the download has been completed. This, however, bears the risk that the virtio-net device still might be active in the background and incoming packets are still placed into the buffers - which could destroy memory of the