]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vhost: fix caching attributes of MMIO regions by setting them explicitly
authorKommula Shiva Shankar <kshankar@marvell.com>
Fri, 2 Jan 2026 06:57:03 +0000 (12:27 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Feb 2026 19:13:44 +0000 (14:13 -0500)
commit5145b277309f3818e2db507f525d19ac3b910922
treedb4c9d3ce2ccd9897e33267d0534c8f87231a88c
parent503ef41e88080fb2d2399173e34d26e59567fb5e
vhost: fix caching attributes of MMIO regions by setting them explicitly

Explicitly set non-cached caching attributes for MMIO regions.
Default write-back mode can cause CPU to cache device memory,
causing invalid reads and unpredictable behavior.

Invalid read and write issues were observed on ARM64 when mapping the
notification area to userspace via mmap.

Signed-off-by: Kommula Shiva Shankar <kshankar@marvell.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260102065703.656255-1-kshankar@marvell.com>
drivers/vhost/vdpa.c