memattrs: Check the size of MemTxAttrs
authorZhao Liu <zhao1.liu@intel.com>
Tue, 21 Jan 2025 15:13:22 +0000 (23:13 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2025 10:50:53 +0000 (11:50 +0100)
commit57f9d9c84a9112d534fa90f2a6dad74bd71150b6
tree0f170e35539dbe0a99f6502a32ec247884dda4a2
parent5014e33b1e00d330f13df33c09a3932ac88f8d94
memattrs: Check the size of MemTxAttrs

Make sure MemTxAttrs is packed into 8 bytes and does not exceed 8 bytes.

Suggested-by: Philippe Mathieu-Daudà <philmd@linaro.org>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250121151322.171832-3-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/memattrs.h