Skip to content

x86/cpufeatures: KVM: Add mem encrypt word

Sean Christopherson kvm lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/cpu branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 0 repliesApplied

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2x86/cpufeatures: Assign dedicated feature word for CPUID_0x8000001F[EAX]arch/x86/include/asm/cpufeature.h arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/disabled-features.h +5 more+27 -170 replies
2/2KVM: x86: Override reported SME/SEV feature flags with host maskarch/x86/kvm/cpuid.c arch/x86/kvm/cpuid.h+3 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrijesh Singh
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] x86/cpufeatures: KVM: Add mem encrypt word

Gather the AMD memory encryption features into a dedicated word for CPUID 0x8000001F[EAX] and use the new word in KVM to adjust its reporting of SEV support based on host kernel enabling.

Paolo, can you ack patch 2? Boris is planning on taking this through the tip tree. Thanks!

Split out from a larger KVM SEV cleanup series[*], thus the somewhat questionable v3 tag.

Based on v5.11-rc4.

[*] https://lkml.kernel.org/r/[email protected]

Sean Christopherson (2):
x86/cpufeatures: Assign dedicated feature word for

    CPUID_0x8000001F[EAX]

KVM: x86: Override reported SME/SEV feature flags with host mask

 arch/x86/include/asm/cpufeature.h              |  7 +++++--
 arch/x86/include/asm/cpufeatures.h             | 17 +++++++++++------
 arch/x86/include/asm/disabled-features.h       |  3 ++-
 arch/x86/include/asm/required-features.h       |  3 ++-
 arch/x86/kernel/cpu/common.c                   |  3 +++
 arch/x86/kernel/cpu/scattered.c                |  5 -----
 arch/x86/kvm/cpuid.c                           |  2 ++
 arch/x86/kvm/cpuid.h                           |  1 +
 tools/arch/x86/include/asm/disabled-features.h |  3 ++-
 tools/arch/x86/include/asm/required-features.h |  3 ++-
 10 files changed, 30 insertions(+), 17 deletions(-)
Signature · 1 line
2.30.0.280.ga3ce27912f-goog