eal/x86: check rdrand and rdseed
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 14 May 2019 13:37:02 +0000 (14:37 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jun 2019 22:23:04 +0000 (00:23 +0200)
commitffadd933acdcb17edf5f825e8321b9ac9cd4bb07
treed81b5f5163b5050d823b3ec381fc7fd881a33b92
parenta7c5f2606f615fc0be15b776e8842456e9d66088
eal/x86: check rdrand and rdseed

The meson build never checked for the presence of rdrand and rdseed
instructions, while make build never checked for rdseed. Ensure builds
always have the appropriate checks - and therefore defines - for these
instructions. For runtime, we also add in rdseed to the list of known
bits returned from cpuid() instruction, so we can confirm its presence at
application init time.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
config/x86/meson.build
lib/librte_eal/common/arch/x86/rte_cpuflags.c
lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
mk/rte.cpuflags.mk