[libvirt] [PATCH 01/17] cpu: add CPU features for indirect branch prediction protection

Jiri Denemark posted 17 patches 7 years, 4 months ago
[libvirt] [PATCH 01/17] cpu: add CPU features for indirect branch prediction protection
Posted by Jiri Denemark 7 years, 4 months ago
From: Paolo Bonzini <pbonzini@redhat.com>

Added in QEMU commits TBD and TBD.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 src/cpu/cpu_map.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index e5da7a8876..eff7681cf5 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -292,6 +292,9 @@
     <feature name='avx512-4fmaps'>
       <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00000008'/>
     </feature>
+    <feature name='spec-ctrl'>
+      <cpuid eax_in='0x07' ecx_in='0x00' edx='0x04000000'/>
+    </feature>
 
     <!-- Processor Extended State Enumeration sub leaf 1 -->
     <feature name='xsaveopt'>
@@ -420,6 +423,11 @@
       <cpuid eax_in='0x80000007' edx='0x00000100'/>
     </feature>
 
+    <!-- More AMD-specific features -->
+    <feature name='ibpb'>
+      <cpuid eax_in='0x80000008' ebx='0x00001000'/>
+    </feature>
+
     <!-- models -->
     <model name='486'>
       <feature name='fpu'/>
-- 
2.15.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 01/17] cpu: add CPU features for indirect branch prediction protection
Posted by Eric Blake 7 years, 3 months ago
On 01/09/2018 04:45 PM, Jiri Denemark wrote:
> From: Paolo Bonzini <pbonzini@redhat.com>
> 
> Added in QEMU commits TBD and TBD.

I'm assuming the TBD will be resolved before you push?

> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
> ---
>  src/cpu/cpu_map.xml | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 01/17] cpu: add CPU features for indirect branch prediction protection
Posted by Jiri Denemark 7 years, 3 months ago
On Wed, Jan 17, 2018 at 10:27:58 -0600, Eric Blake wrote:
> On 01/09/2018 04:45 PM, Jiri Denemark wrote:
> > From: Paolo Bonzini <pbonzini@redhat.com>
> > 
> > Added in QEMU commits TBD and TBD.
> 
> I'm assuming the TBD will be resolved before you push?

Oops, I completely forgot about the TBDs and I already pushed this
series to make sure the patches are included in 4.0.0. Anyway, since the
QEMU pull request was sent, but not merged yet, we don't have the commit
IDs.

Jirka

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list