Re: [PATCH v2] cirrus: handle wraparound in cirrus_invalidate_region

2020-09-01 Thread Li Qiang
Gerd Hoffmann 于2020年9月1日周二 下午10:12写道: > > Code simply asserts that there is no wraparound instead of handling > it properly. The assert() can be triggered by the guest (must be > privilidged inside the guest though). Fix it. > > Buglink: https://bugs.launchpad.net/qemu/+bug/1880189 > Cc: Li

[PATCH v2] cirrus: handle wraparound in cirrus_invalidate_region

2020-09-01 Thread Gerd Hoffmann
Code simply asserts that there is no wraparound instead of handling it properly. The assert() can be triggered by the guest (must be privilidged inside the guest though). Fix it. Buglink: https://bugs.launchpad.net/qemu/+bug/1880189 Cc: Li Qiang Reported-by: Philippe Mathieu-Daudé