Re: [PATCH] x86/vmx_tests: test for rdseed/rdrand

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

On Mon, Jan 8, 2018 at 11:06 PM, Matt Weber
<matthew.weber@xxxxxxxxxxxxxxxxxxx> wrote:
> A binutils of at least 2.23 is required
> (2.22.x introduced RDSEED).
>
> Signed-off-by: Matthew Weber <matthew.weber@xxxxxxxxxxxxxxxxxxx>
> ---
>  configure       | 17 +++++++++++++++++
>  x86/vmx_tests.c |  6 ++++++
>  2 files changed, 23 insertions(+)
>
> diff --git a/configure b/configure
> index dd9d361..4912582 100755
> --- a/configure
> +++ b/configure
> @@ -171,6 +171,23 @@ mkdir -p lib
>  ln -sf "$asm" lib/asm
>
>
> +cat > rd_test.c <<EOF
> +#include <stdint.h>
> +int main() {
> +   uint16_t seed=0;
> +   unsigned char ok;
> +   asm volatile ("rdseed %0; setc %1"
> +                 : "=r" (seed), "=qm" (ok));
> +   return ok;
> +}
> +EOF
> +if $cross_prefix$cc -o /dev/null rd_test.c &> /dev/null; then
> +  echo "Checking for rdseed/rdrand... Yes."
> +else
> +  CFLAGS="${CFLAGS} -DNO_RDSEEDRAND"

This CFLAGS wasn't actually carried through.  I've sent a v2 resolving that.
https://marc.info/?l=kvm&m=151580743523259&w=2



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux