]> xenbits.xensource.com Git - xen.git/commit
x86: drop unneeded __packed attributes
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 7 Mar 2017 16:11:06 +0000 (17:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Mar 2017 16:11:06 +0000 (17:11 +0100)
commit4036e7c592905c2292cdeba8269e969959427237
treedf4857cc6884f2479e6e2815ef0bb01647033bb8
parentfe39a9ffcd9876dbfcf3852fed758d8533f826bb
x86: drop unneeded __packed attributes

There where a couple of unneeded packed attributes in several x86-specific
structures, that are obviously aligned. The only non-trivial one is
vmcb_struct, which has been checked to have the same layout with and without
the packed attribute using pahole. In that case add a build-time size check to
be on the safe side.

No functional change is expected as a result of this commit.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/vmcb.c
xen/arch/x86/x86_emulate/x86_emulate.h
xen/include/asm-x86/hvm/svm/vmcb.h