llc_no1 驱动如何实现no cache的mmap mmap最终下发到驱动程序,通过设置vma属性可以实现no cache的映射: staticint xxx_nocache_mmap(struct file *filp,struct vm_area_struct *vma) { vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);//赋nocache标志 vma->vm_pgoff = ((u32)map_start >...
then an mmap of the first two pages of the file will succeed when it should fail. Fixes:642fb4d("[PATCH] NOMMU: Provide shared-writable mmap support on ramfs") Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton Cc: David Howells <dhowells...
Problem I believe this issue is possibly kind of the same issue that was raised back in 2016: rust-lang/cargo#2808 Context: Virtualised "cargo build" fails with "No such device" whenever setup is qemu +virtiofsd with --cache=never. Essen...