virtio: allow __virtioXX, __leXX in config space
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 07:20:21 +0000 (03:20 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 13:30:19 +0000 (09:30 -0400)
commita4235ec06acf05c58081700cda02dcd480d9e9cb
treeb5179d0d8a489cc38219bdee1186aa8886e04822
parent5487196878bc926a1ee15069c13aa48b9a894fab
virtio: allow __virtioXX, __leXX in config space

Currently all config space fields are of the type __uXX.
This confuses people and some drivers (notably vdpa)
access them using CPU endian-ness - which only
works well for legacy or LE platforms.

Update virtio_cread/virtio_cwrite macros to allow __virtioXX
and __leXX field types. Follow-up patches will convert
config space to use these types.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
include/linux/virtio_config.h