# Re: \[PATCH 3/3\] tools/virtio: use {READ,WRITE}\_ONCE() in uaccess.h

- From: Cornelia Huck \<hidden\>
- Date: 2016-11-24 11:38:06 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2016/11/4882244
- Thread: https://ratatoskr.run/kvm/2016/11/4882170/t.md

```text
On Thu, 24 Nov 2016 10:25:14 +0000
Mark Rutland [ref] wrote:

> As a step towards killing off ACCESS_ONCE, use {READ,WRITE}_ONCE() for the
> virtio tools uaccess primitives, pulling these in from <linux/compiler.h>.
> 
> With this done, we can kill off the now-unused ACCESS_ONCE() definition.
> 
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Jason Wang <redacted>
> Cc: Michael S. Tsirkin <mst@redhat.com>
> Cc: <redacted>
> Cc: <redacted>
> ---
>  tools/virtio/linux/uaccess.h | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

Reviewed-by: Cornelia Huck <redacted>
```
