lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 29 Oct 2016 09:20:08 -0400 (EDT)
From:   Paolo Bonzini <pbonzini@...hat.com>
To:     Borislav Petkov <bp@...en8.de>
Cc:     Piotr Luc <Piotr.Luc@...el.com>, kvm@...r.kernel.org,
        he chen <he.chen@...ux.intel.com>,
        linux-kernel@...r.kernel.org, tglx@...utronix.de, x86@...nel.org,
        hpa@...or.com, mingo@...hat.com, Luwei Kang <luwei.kang@...el.com>,
        rkrcmar@...hat.com
Subject: Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS
 features to kvm guest



----- Original Message -----
> From: "Borislav Petkov" <bp@...en8.de>
> To: "Paolo Bonzini" <pbonzini@...hat.com>
> Cc: "Piotr Luc" <Piotr.Luc@...el.com>, kvm@...r.kernel.org, "he chen" <he.chen@...ux.intel.com>,
> linux-kernel@...r.kernel.org, tglx@...utronix.de, x86@...nel.org, hpa@...or.com, mingo@...hat.com, "Luwei Kang"
> <luwei.kang@...el.com>, rkrcmar@...hat.com
> Sent: Saturday, October 29, 2016 2:53:10 PM
> Subject: Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest
> 
> On Sat, Oct 29, 2016 at 08:36:11AM -0400, Paolo Bonzini wrote:
> > Because then it wouldn't be in processor.h.
> 
> Easy:
> 
> 	return cpuid_edx(…) & KVM_CPUID_EDX_7_MASK;
> 
> at the call site.

Yup.  That's what I said before (entry->edx &= cpuid_count_edx(7, 0)).

Paolo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ