On Thu, Oct 29, 2026 at 09:06:45AM +0100, Philippe Mathieu-Daudé wrote: > Date: Thu, 29 Oct 2026 09:06:45 +0100 > From: Philippe Mathieu-Daudé <[email protected]> > Subject: Re: QEMU Sashiko > > On 29/10/26 00:32, Alistair wrote: > > Hey, > > > > Sashiko just merged initial support for QEMU [1]. > > > > For those who don't know, Sashiko is a LLM powered review bot used for > > the Linux kernel. When people send patches to LKML Sashiko reviews the > > patches and responds to the mailing list with any issue that it finds. > > > > Like all LLM tools, it is both useful, but also verbose, prone to > > hallucinations and misses things (like humans do to though). The > > general consensus in the kernel community is that it's a useful and > > valuable tool. > > > > Sashiko is just a Rust application and prompts, it doesn't include a > > LLM and you can use a range of different LLM backends. > > > > Google sponsors the development and runs a Linux instance. So you can > > see the hosted Linux instance here: https://sashiko.dev/ and it uses > > Gemini for the LLM which Google pays for. It seems like there is also a > > GCC one starting up. > > > > The cool thing about Sashiko though is you can run it locally as well, > > so you can use it to test your patches before sending them to LKML, as > > long as you have a LLM backend you can use. > > > > So, now that Sashiko also supports QEMU there are two exciting use > > cases: > > > > 1. Developers can run it locally to review their patches before sending > > them to the list. This can catch issues before sending patches > > > > 2. Maintainers can run an instance to review patches. How you set this > > up depends on the maintainer and how many tokens you have. Pointing it > > at the list directly and running it for all patches might be too much, > > but some combination of manually triggering it for certain patches > > seems to work well. The Settings.toml file can be setup based on what > > you want to do. > > > > The hope with this is to save maintainers time as Sashiko can catch > > issues without requiring much time from a maintainer. > > > > QEMU support in Sashiko is very new, so it will take some tweaking to > > improve things, but it is at least a good starting place. > > > > 1: > > https://github.com/sashiko-dev/sashiko/commit/e432036bba7ab10d4517385916e6c834d8176f70 > > I'm glad you added projects/qemu/ directory there; some time ago > Zhao and myself tried to leverage LLM to review QEMU and reduce > maintenance burden but there was little community interest and > some negative feedback so we didn't pursued on the list. > https://lore.kernel.org/qemu-devel/[email protected]/ > https://lore.kernel.org/qemu-devel/[email protected]/
Thanks, good to know this! >From my own experience, LLM-driven review (for QEMU) is indeed very helpful. I think there are two aspects that make LLM reviw effective: one is the prompt (or guidance), and the other is agent orchestration - especially multi-stage sub-agent orchestration. Regarding the second point, I think this is the key factor that makes Sashiko produce better results compared to direct prompting. In the project Philippe and I mentioned above (https://github.com/trueptolemy/review-prompts), agent orchestration was also implemented through prompts, and we were ultimately able to achieve effects similar to Sashiko — however, multiple sub-agents do lead to significant token consumption :-). Coming back to the first point, the recent `qemu-codebase` skill has inspired me. From a long-term (ideal) perspective, guidance-type prompts about code are actually unnecessary. As long as the documentation is comprehensive, the `qemu-codebase` skill can fully direct the LLM to the relevant docs. Therefore, if third-party prompts about code (perhaps compiled from mailing list discussions) can produce better results, it suggests that certain content should be documented. So, I think the best and ideal approach is to identify documentation gaps from review prompts, and we can consider to feed that back into in-tree contributions (which in turn can reduce the need for out-of-tree review prompts) - finaly, third-party review tools are only responsible for orchestration, while all code-related rules and guidelines are in-tree. Thanks, Zhao
