Thread (5 messages) 5 messages, 3 authors, 2026-01-13

Re: [EXTERNAL] [PATCH] vhost: fix caching attributes of MMIO regions by setting them explicitly

From: Shiva Shankar Kommula <hidden>
Date: 2026-01-13 06:20:05
Also in: kvm, virtualization

Hi Michael, 
Just a ping on this patch. Would appreciate your review when you get a chance.

Thanks

quoted hunk ↗ jump to hunk
On 2 Jan 2026, at 12:27, Kommula Shiva Shankar [off-list ref] wrote:

Prioritize security for external emails:
Confirm sender and content safety before clicking links or opening attachments
Report Suspicious
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 <redacted>
Acked-by: Jason Wang <jasowang@redhat.com>
---
Originally sent to net-next, now redirected to vhost tree
per Jason Wang's suggestion. 

drivers/vhost/vdpa.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c
index 05a481e4c385..b0179e8567ab 100644
--- a/drivers/vhost/vdpa.c
+++ b/drivers/vhost/vdpa.c
@@ -1527,6 +1527,7 @@ static int vhost_vdpa_mmap(struct file *file, struct vm_area_struct *vma)
if (vma->vm_end - vma->vm_start != notify.size)
return -ENOTSUPP;

+ vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP);
vma->vm_ops = &vhost_vdpa_vm_ops;
return 0;
-- 
2.48.1


  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help