]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba04051a48cadd4cdba2cbc926fa914436e08103
treeb5179d0d8a489cc38219bdee1186aa8886e04822
parent587e37c3f5d8b4a8c1347744af6526cfed03a288
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