Skip to content

KVM: x86: Fix supported VM_TYPES caps

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Fully re-initialize supported_vm_types on vendor module loadarch/x86/kvm/x86.c+2 -10 replies
2/3KVM: x86: Fully re-initialize supported_mce_cap on vendor module loadarch/x86/kvm/x86.c+2 -30 replies
3/3KVM: x86: Explicitly zero kvm_caps during vendor module loadarch/x86/kvm/x86.c+7 -03 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchXiaoyao Li
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] KVM: x86: Fix supported VM_TYPES caps

Fix a goof where KVM fails to re-initialize the set of supported VM types, resulting in KVM overreporting the set of supported types when a vendor module is reloaded with incompatible settings. E.g. unload kvm-intel.ko, reload with ept=0, and KVM will incorrectly treat SW_PROTECTED_VM as supported.

Fix a similar long-standing bug with supported_mce_cap that is much less benign, and then harden against us making the same mistake in the future.

Sean Christopherson (3):
KVM: x86: Fully re-initialize supported_vm_types on vendor module load
KVM: x86: Fully re-initialize supported_mce_cap on vendor module load
KVM: x86: Explicitly zero kvm_caps during vendor module load

 arch/x86/kvm/x86.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

base-commit: a96cb3bf390eebfead5fc7a2092f8452a7997d1b

Signature · 1 line
2.44.0.769.g3c40516874-goog