Re: [PATCH 0/9] KVM: x86: Spring cleaning, part 2

From: Sean Christopherson

Date: Tue Jul 14 2026 - 15:38:40 EST


On Thu, 25 Jun 2026 15:04:41 -0700, Sean Christopherson wrote:
> A few more cleanups that I wasn't able to get out in time to catch kvm/next
> (almost all of these are the result of code review feedback). The main theme
> is again trimming down x86's kvm_host.h.
>
> Sean Christopherson (9):
> KVM: x86: Move the "APIC attention" macros from kvm_host.h => lapic.c
> KVM: x86/mmu: Annotate tdp_enabled as being read-mostly
> KVM: x86: Pluralize the macro guard name for msrs.h
> KVM: x86: Move CR and DR macro definitions from kvm_host.h => regs.h
> KVM: x86: Move KVM_GUESTDBG_VALID_MASK from kvm_host.h => x86.c
> KVM: x86: Add static asserts to document connection b/w TSS structs
> and macros
> KVM: x86: Move KVM's arbitrary task switch reason enums to x86.h
> KVM: x86: Move "struct kvm_apic_map" definition from kvm_host.h =>
> lapic.h
> KVM: x86: Move "struct kvm_vcpu_hv" and all children from kvm_host.h
> => hyperv.h
>
> [...]

Applied to kvm-x86 misc, thanks!

[1/9] KVM: x86: Move the "APIC attention" macros from kvm_host.h => lapic.c
https://github.com/kvm-x86/linux/commit/26c877c70b57
[2/9] KVM: x86/mmu: Annotate tdp_enabled as being read-mostly
https://github.com/kvm-x86/linux/commit/eb4b67c93472
[3/9] KVM: x86: Pluralize the macro guard name for msrs.h
https://github.com/kvm-x86/linux/commit/8821646e292d
[4/9] KVM: x86: Move CR and DR macro definitions from kvm_host.h => regs.h
https://github.com/kvm-x86/linux/commit/eb42c91b6546
[5/9] KVM: x86: Move KVM_GUESTDBG_VALID_MASK from kvm_host.h => x86.c
https://github.com/kvm-x86/linux/commit/eb7313b66c59
[6/9] KVM: x86: Add static asserts to document connection b/w TSS structs and macros
https://github.com/kvm-x86/linux/commit/de28ef6548a2
[7/9] KVM: x86: Move KVM's arbitrary task switch reason enums to x86.h
https://github.com/kvm-x86/linux/commit/0bc5f998e18d
[8/9] KVM: x86: Move "struct kvm_apic_map" definition from kvm_host.h => lapic.h
https://github.com/kvm-x86/linux/commit/c3d35340a337
[9/9] KVM: x86: Move "struct kvm_vcpu_hv" and all children from kvm_host.h => hyperv.h
https://github.com/kvm-x86/linux/commit/ed6ee602bceb

--
https://github.com/kvm-x86/linux/tree/next