vhost: relax full barriers for used idx
authorJoyce Kong <joyce.kong@arm.com>
Mon, 21 Dec 2020 15:50:31 +0000 (23:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:55 +0000 (18:07 +0100)
commit10b8c36af0abb654907d97738641d6a643408b99
tree3ccb6490cf16e044adc261a347053ea44c268d1d
parent9253c34cfb9dd32faeb8e513f6d8fafd356a2e62
vhost: relax full barriers for used idx

Used idx can be synchronized by one-way barrier instead of full
write barrier for split vring.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vdpa.c