xenserver: Turn on SSE and SSE2 for the build, for atomic 64-bit ops.
authorBen Pfaff <blp@nicira.com>
Fri, 3 Oct 2014 22:49:23 +0000 (15:49 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 3 Nov 2014 18:25:19 +0000 (10:25 -0800)
commit4f0b577e0c31eb2efc15fe7b88451f310003b9ba
treeec7f33bee12a94b5d57231c2e918dbd3f28bc803
parentbd8bf90f721bef30a819d0eddd7daa0f1dd64007
xenserver: Turn on SSE and SSE2 for the build, for atomic 64-bit ops.

The ovs-atomic-i586 implementation of atomic operations can implement
64-bit atomics more efficiently when SSE is supported.  XenServer runs only
on 64-bit capable processors, in 32-bit mode, so we know on XenServer that
SSE and SSE2 are supported because they are architectural for amd64.  Thus,
this commit enables SSE and SSE2 when building for XenServer to get the
improved atomics support.

I tested that this successfully adds -msse -msse2 to the compiler flags
inside a XenServer DDK, but I didn't actually run it on a real XenServer
install.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
xenserver/openvswitch-xen.spec.in