Re: [PATCH 0/4] KVM: x86: Collect host state snapshots into a struct
From: Sean Christopherson
Date: Tue Jun 04 2024 - 19:39:23 EST
On Tue, 23 Apr 2024 15:15:17 -0700, Sean Christopherson wrote:
> Add a global "kvm_host" structure to hold various host values, e.g. for
> EFER, XCR0, raw MAXPHYADDR etc., instead of having a bunch of one-off
> variables that inevitably need to be exported, or in the case of
> shadow_phys_bits, are buried in a random location and are awkward to use,
> leading to duplicate code.
>
> Sean Christopherson (4):
> KVM: x86: Add a struct to consolidate host values, e.g. EFER, XCR0,
> etc...
> KVM: SVM: Use KVM's snapshot of the host's XCR0 for SEV-ES host state
> KVM: x86/mmu: Snapshot shadow_phys_bits when kvm.ko is loaded
> KVM: x86: Move shadow_phys_bits into "kvm_host", as "maxphyaddr"
>
> [...]
Applied to kvm-x86 misc, thanks!
[1/4] KVM: x86: Add a struct to consolidate host values, e.g. EFER, XCR0, etc...
https://github.com/kvm-x86/linux/commit/7974c0643ee3
[2/4] KVM: SVM: Use KVM's snapshot of the host's XCR0 for SEV-ES host state
https://github.com/kvm-x86/linux/commit/52c47f5897b6
[3/4] KVM: x86/mmu: Snapshot shadow_phys_bits when kvm.ko is loaded
https://github.com/kvm-x86/linux/commit/c043eaaa6be0
[4/4] KVM: x86: Move shadow_phys_bits into "kvm_host", as "maxphyaddr"
https://github.com/kvm-x86/linux/commit/82897db91215
--
https://github.com/kvm-x86/linux/tree/next