Re: [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-17 Thread Cornelia Huck
On Fri, 6 Jul 2018 10:35:06 -0400 "Jason J. Herne" wrote: > On 07/06/2018 04:03 AM, Cornelia Huck wrote: > > On Thu, 5 Jul 2018 13:25:38 -0400 > > "Jason J. Herne" wrote: > >> +senseIdCcw.count = sizeof(senseData); > >> + > >> +if (do_cio(schid, ptr2u32(), CCW_FMT1)) { > >> +

Re: [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-09 Thread Christian Borntraeger
On 07/05/2018 07:25 PM, Jason J. Herne wrote: Instead of doing this > +void await_io_int(uint16_t sch_no) > +{ > +/* > + * wait_psw and ctl6 must be static to avoid stack allocation as gcc > cannot > + * align stack variables. The stctg, lctlg and lpswe instructions require > +

Re: [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-09 Thread Christian Borntraeger
On 07/05/2018 07:25 PM, Jason J. Herne wrote: > From: "Jason J. Herne" > +void await_io_int(uint16_t sch_no) > +{ > +/* > + * wait_psw and ctl6 must be static to avoid stack allocation as gcc > cannot > + * align stack variables. The stctg, lctlg and lpswe instructions require >

Re: [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-06 Thread Jason J. Herne
On 07/06/2018 04:03 AM, Cornelia Huck wrote: On Thu, 5 Jul 2018 13:25:38 -0400 "Jason J. Herne" wrote: ... + +senseIdCcw.cmd_code = CCW_CMD_SENSE_ID; +senseIdCcw.cda = ptr2u32(); Are we sure that this is always under 2G? I thought I saw somewhere that Qemu always loads the bios

Re: [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-06 Thread Cornelia Huck
On Thu, 5 Jul 2018 13:25:38 -0400 "Jason J. Herne" wrote: > From: "Jason J. Herne" > > Add struct for format-0 ccws. Support executing format-0 channel > programs and waiting for their completion before continuing execution. > This will be used for real dasd ipl. > > Add cu_type() to channel

Re: [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-06 Thread Christian Borntraeger
On 07/05/2018 07:25 PM, Jason J. Herne wrote: > From: "Jason J. Herne" > > Add struct for format-0 ccws. Support executing format-0 channel > programs and waiting for their completion before continuing execution. > This will be used for real dasd ipl. > > Add cu_type() to channel io library.

[Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs

2018-07-05 Thread Jason J. Herne
From: "Jason J. Herne" Add struct for format-0 ccws. Support executing format-0 channel programs and waiting for their completion before continuing execution. This will be used for real dasd ipl. Add cu_type() to channel io library. This will be used to query control unit type which is used to