Re: [PATCH 3/3] vdpa_sim_blk: call vringh_complete_iotlb() also in the error path

2022-06-22 Thread Jason Wang
On Wed, Jun 22, 2022 at 12:13 AM Stefano Garzarella wrote: > > Call vringh_complete_iotlb() even when we encounter a serious error > that prevents us from writing the status in the "in" header > (e.g. the header length is incorrect, etc.). > > The guest is misbehaving, so maybe the ring is in a ba

[PATCH 3/3] vdpa_sim_blk: call vringh_complete_iotlb() also in the error path

2022-06-21 Thread Stefano Garzarella
Call vringh_complete_iotlb() even when we encounter a serious error that prevents us from writing the status in the "in" header (e.g. the header length is incorrect, etc.). The guest is misbehaving, so maybe the ring is in a bad state, but let's avoid making things worse. Signed-off-by: Stefano G