Re: [PATCH 6/9] KVM: x86: Add static asserts to document connection b/w TSS structs and macros
From: Huang, Kai
Date: Thu Jun 25 2026 - 20:46:36 EST
On Thu, 2026-06-25 at 15:04 -0700, Sean Christopherson wrote:
> Add static asserts to sanity check the I/O permission map and TSS size
> macros against tss_segment_32. Alternatively, the macros could simply use
> offsetof() and sizeof(), but having literal numbers makes it easier to
> understand the bigger picture, and provides a good excuse for the sanity
> checks.
>
> Opportunistically add the necessary includes to make tss.h self sufficient.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>