Skip to content

x86/virt/tdx: Minor sparse fixups

Dave Hansen kvm lkml 2 versions – Applied

Status from this message: Applied to kvm-x86 tdx, with the scopes changed to "KVM: TDX:". Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v12 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2x86/virt/tdx: Remove __user annotation from kernel pointerarch/x86/kvm/vmx/tdx.c+2 -13 replies
2/2x86/virt/tdx: Fix sparse warnings from using 0 for NULLarch/x86/kvm/vmx/tdx.c+3 -32 replies

Reviews trailers per patch

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

PatchRick EdgecombeKiryl ShutsemauXiaoyao Li
1/2R-b A-b R-b
2/2R-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [v2][PATCH 0/2] x86/virt/tdx: Minor sparse fixups

Changs from v1:

* Add Fixes/Reviewed-by tags (Rick)
* Add some "backwards" KVM changelog blurbs

--

Sean recently suggested relying on sparse to add type safety in TDX code, hoping that the robots would notice and complain. Well, that plan is not working out so great. TDX is not even sparse clean today and nobody seems to have noticed or cared.

I can see how folks might ignore the 0 vs. NULL complaints. But the misplaced __user is actually bad enough it should be fixed no matter what.

Might as well fix it all up.

Cc Xiaoyao Li <[email protected]>
Cc Sean Christopherson <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Rick Edgecombe <[email protected]>