Forgot your password?
typodupeerror
Linux

'KVM Chainsaw' Expected to Hit Linux 7.3 For Dealing with 'God Data Structure' (phoronix.com) 30

An anonymous reader shared this report from Phoronix: A patch series that appears destined for the upcoming Linux 7.3 merge window is what's dubbed the "KVM Chainsaw" as a major code clean-up in dealing with the kvm_mmu "god data structure". Red Hat engineer and KVM maintainer Paolo Bonzini has merged the kvm-chainsaw branch to KVM's "next" Git branch. With this KVM Chainsaw work now in the next branch, it should be submitted for the upcoming Linux 7.3 cycle.

The KVM Chainsaw work deals with the kvm_mmu structure being overloaded with multiple uses and splits it down into three parts for better handling current KVM usage. Paolo explains of KVM Chainsaw with the merge to the KVM.git next branch:

"The kvm_mmu is a "god data structure" that includes three different tasks: describing the guest page table's format, walking the guest page tables and building the page tables. This means that the (already poorly named) nested_mmu is only used in part, since it has no page tables to construct. Furthermore, some parts are reused across guest and host page tables (such as the reserved bits detector) but others are not; for example permission_fault is replaced by simplified code such as is_executable_pte().

This series cleans this up by splitting kvm_mmu in three parts...

'KVM Chainsaw' Expected to Hit Linux 7.3 For Dealing with 'God Data Structure'

Comments Filter:
  • by TheMiddleRoad ( 1153113 ) on Monday July 27, 2026 @07:40AM (#66258640)
    But I thought that keyboard, video, and mouse were already split up. I'm so confused.
    • Seriously, pick a new acronym. Same goes for DRM.

      • Re: (Score:2, Insightful)

        by gweihir ( 88907 )

        I think the problem is that too many people picking acronyms know a lot less about tech than they think they do and fail to do minimal research. Kind of a small Dunning-Kruger effect.

    • Nononono, you've understood it wrong, he's going to wave a chainsaw around on a stage in Argentina.
  • by Ritz_Just_Ritz ( 883997 ) on Monday July 27, 2026 @07:50AM (#66258646)

    ...but I'm unclear on how these changes would impact (or not) my life as a daily user of a linux desktop and occasional server. Not everyone is a kernel developer.

    • by DarkOx ( 621550 ) on Monday July 27, 2026 @08:08AM (#66258666) Journal

      KVM is kernel virtual machine, and it is used to allow Linux to act as hypervisor.

      Presumably as a desktop user and occasional server maintainer this does not affect you at all. Usually they work pretty hard to not break user land, but I imagine things like qemu or android studio that couple fairly tightly to KVM behavior might see performance gains or something if you update to versions aware of the platform changes.

      • It also may bring about additional functionality as time goes by, which can be useful. kvm is one of the few best of breed apps there is for what it does, and has an excellent reputation.

      • Thank you. I'm a retired computer geek and was wondering. I use Fedora on my desktop, and update it every morning while making breakfast. Generally, I see a new kernel come out once every week or two, but lately they've been coming down two or three a week. Now I know why.
    • Re: (Score:3, Interesting)

      by drinkypoo ( 153816 )

      This isn't going to affect you at all. Statistically nobody not working on KVM cares about this. It's almost exclusively just going to make KVM development easier. There is no reason why this should have hit the front page.

      • by gweihir ( 88907 )

        Exactly.

      • Any KVM fundamental changes can affect the kernel by changing resource allocation especially for user space. Applications are in some ways considered hyper featured virtual machines, at least some developers think so. There are even a few key kernel features that began as vm exclusive functionality actually lobbied in to app support.

    • by gweihir ( 88907 )

      It is essentially a detail-level optimization. No idea why it even gets reported here. Maybe Red Hat paid to have their name up there.

    • by Plugh ( 27537 )
      If like me you use VirtualBox you should hold off on this kernel upgrade until you know VirtualBox is ready for it
  • by Junta ( 36770 ) on Monday July 27, 2026 @08:48AM (#66258708)

    Nothing in the summary really conveys why this raises to the level of news. Digging in it doesn't really have consequences for the users in the short term.

    Plausibly a good change, but a change among countless other good changes that pass without notice.

    • by gweihir ( 88907 )

      I completely agree. Maybe Red Hat paid to have their name up there. Or maybe it is a slow-news day.

    • Chainsaws are cool. Doom 2 had chainsaws. Therefore it's newsworthy.

      I wonder what kind of chainsaw they used. Was it a Stihl?

      • Chainsaws are cool. Doom 2 had chainsaws. Therefore it's newsworthy.

        I wonder what kind of chainsaw they used. Was it a Stihl?

        Yeah. It was a Stihl.

        Stihl Clickschitt model to be exact..

    • by dmomo ( 256005 )

      It would have been nice for the summary to at least clue in people who are unfamiliar with what KVM is in this context. overview was painful enough to read that after the first sentence, I didn't care.

    • Nothing in the summary really conveys why this raises to the level of news. Digging in it doesn't really have consequences for the users in the short term.

      Plausibly a good change, but a change among countless other good changes that pass without notice.

      Direct consequences for users in the short term, not many. But considering that most of the servers users interact with are on top of KVM, either as "Plain Vanilla" VMs, or Cloud Implementations (AWS runs on top of KVM, ditto for most of OpenStack), the indirect consequences of these changes quickly add up.

    • I presume that this "God data structure" is referring to the Higgs Bogon, the basis of the bogomips metric. Splitting the bogon is the first step to creating a kernel that can run on quantum computers. Or, possibly, the first step to causing vacuum collapse and the destruction of the universe as we know it. Hard to tell when messing with God stuff.

    • by swillden ( 191260 ) <shawn-ds@willden.org> on Monday July 27, 2026 @01:29PM (#66259212) Journal

      Nothing in the summary really conveys why this raises to the level of news. Digging in it doesn't really have consequences for the users in the short term.

      Plausibly a good change, but a change among countless other good changes that pass without notice.

      I dunno. Given all the non-nerd news that shows up here, it's refreshing to see something more deeply technical, even if most of use who don't spend a lot of time thinking about VMs in Linux aren't directly affected.

      I'd be fine with a bit more coverage of possibly-interesting kernel changes. I mean, /. shouldn't cover all of them; we have LWN for that. But picking the occasional random change of significance to highlight is worthwhile. Maybe one per week or something.

      • Yeah I very much liked to read it as well. Goes to show that some engineers deeply care about the neatness and maintainability of our beloved kernel.
    • by juancn ( 596002 )

      Also, going through the diff, it's not that large of a change either.

      It's tricky code: yes, but it's essentially a cleanup.

  • Will this change have any change in performance for running multiple KVM machines in a cluster?

    Or is this more for a more reliable code maintenance setup?

  • Because the poster was obviously overextending themselves on this title of this story.

  • by ledow ( 319597 )

    It's like a miniature version of the "big kernel lock" thing that took years to resolve.

    Sure there were some blocking issues causing performance setbacks for it in certain locations but it was orders of magnitude more difficult to slice it out and replace things with smaller locks, and it still didn't have MASSIVE increases in performance or any user-visible way at all.

    It's just code maintenance.

The young lady had an unusual list, Linked in part to a structural weakness. She set no preconditions.

Working...