Alistair Francis f265ae8c79 cadence_gem: Avoid infinite loops with a misconfigured buffer
A guest can write zero to the DMACFG resulting in an infinite loop when
it reaches the while(bytes_to_copy) loop.

To avoid this issue enforce a minimum size for the RX buffer. Hardware
does not have this enforcement and relies on the guest to set a non-zero
value.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reported-by: Li Qiang <liqiang6-s@360.cn>
Reported-by: P J P <ppandit@redhat.com>
Message-id: 84bb1c391b833275da3f573d4972920cea34c188.1466539342.git.alistair.francis@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-06-27 15:37:32 +01:00
..
2016-06-07 18:19:25 +03:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:23 +00:00
2016-05-19 16:42:29 +02:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:23 +00:00
2015-09-02 14:51:07 +01:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:23 +00:00
2015-07-27 14:12:18 +01:00
2016-01-29 15:07:23 +00:00
2016-06-17 03:28:03 +03:00
2016-06-16 18:39:03 +02:00
2016-01-29 15:07:23 +00:00