Re: [PATCH] vfio-ccw: Do not read region ret_code after write

2021-03-02 Thread Eric Farman
On 3/2/21 1:14 PM, Cornelia Huck wrote: On Mon, 1 Mar 2021 20:51:43 +0100 Eric Farman wrote: A pwrite() call returns the number of bytes written (or -1 on error), and vfio-ccw compares this number with the size of the region to determine if an error had occurred or not. If they are equal,

Re: [PATCH] vfio-ccw: Do not read region ret_code after write

2021-03-02 Thread Cornelia Huck
On Mon, 1 Mar 2021 20:51:43 +0100 Eric Farman wrote: > A pwrite() call returns the number of bytes written (or -1 on error), > and vfio-ccw compares this number with the size of the region to > determine if an error had occurred or not. If they are equal, the > code reads the ret_code field from

[PATCH] vfio-ccw: Do not read region ret_code after write

2021-03-01 Thread Eric Farman
A pwrite() call returns the number of bytes written (or -1 on error), and vfio-ccw compares this number with the size of the region to determine if an error had occurred or not. If they are equal, the code reads the ret_code field from the region. However, while the kernel sets the ret_code field a