Mark "struct vmx_msr_entry" as 16-byte aligned so that it can be used in static definitions without generating random VM-Entry failures due to an unaligned MSR load/store list. Signed-off-by: Sean Christopherson --- x86/vmx_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c index 6161f451..31c7672c 100644 --- a/x86/vmx_tests.c +++ b/x86/vmx_tests.c @@ -1973,7 +1973,7 @@ struct vmx_msr_entry { u32 index; u32 reserved; u64 value; -} __attribute__((packed)); +} __attribute__((packed)) __attribute__((aligned(16))); #define MSR_MAGIC 0x31415926 struct vmx_msr_entry *exit_msr_store, *entry_msr_load, *exit_msr_load; -- 2.54.0.563.g4f69b47b94-goog