diff options
| author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:29 +0200 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
| commit | c381abc37f0aba42ed2e3b41cdace8f8438829e4 (patch) | |
| tree | 7a73dc1b35f5601acfd5ea1c4b6928dc54226182 /python/qemu/utils/accel.py | |
| parent | 640b8a1c588b56349b3307d88459ea1cd86181fb (diff) | |
| download | focaccia-qemu-c381abc37f0aba42ed2e3b41cdace8f8438829e4.tar.gz focaccia-qemu-c381abc37f0aba42ed2e3b41cdace8f8438829e4.zip | |
vdpa: Avoid compiler to squash reads to used idx
In the next patch we will allow busypolling of this value. The compiler have a running path where shadow_used_idx, last_used_idx, and vring used idx are not modified within the same thread busypolling. This was not an issue before since we always cleared device event notifier before checking it, and that could act as memory barrier. However, the busypoll needs something similar to kernel READ_ONCE. Let's add it here, sepparated from the polling. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'python/qemu/utils/accel.py')
0 files changed, 0 insertions, 0 deletions