From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitaly Kuznetsov Subject: RE: [PATCH v2] x86/hyper-v: Mark TLFS structures packed Date: Mon, 03 Dec 2018 14:45:28 +0100 Message-ID: <874lbuyb9j.fsf@vitty.brq.redhat.com> References: <20181130125422.21494-1-vkuznets@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , "linux-kernel\@vger.kernel.org" , Roman Kagan , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "x86\@kernel.org" , Nadav Amit , Thomas Gleixner To: Michael Kelley , "kvm\@vger.kernel.org" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Michael Kelley writes: > From: Vitaly Kuznetsov Sent: Friday, November 30, 2018 4:54 AM >> >> @@ -466,7 +466,7 @@ union hv_message_flags { >> struct { >> __u8 msg_pending:1; >> __u8 reserved:7; >> - }; >> + } __packed; >> }; >> >> /* Define port identifier type. */ > > I think __packed is also needed in the definition > of struct u defined within union hv_port_id. That > struct has bit fields, so shouldn't it be done just like > union hv_message_flags above? > True, missed it, thanks! Will send v3 out shortly. -- Vitaly