]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: s390: implement CPU model only facilities
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 5 Sep 2018 16:54:00 +0000 (18:54 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 6 Sep 2018 09:16:15 +0000 (11:16 +0200)
commitc936f04c73a3c764be71ed63000d9833550f457e
tree0458a99022ece15b973675c2a23abe0f5daac77e
parenta11240dbf5ade7d973eb5409f17e376efd328c0d
KVM: s390: implement CPU model only facilities

CVE-2017-5715 (Spectre v2 s390x)

Some facilities should only be provided to the guest, if they are
enabled by a CPU model. This allows us to avoid capabilities and
to simply fall back to the cpumodel for deciding about a facility
without enabling it for older QEMUs or QEMUs without a CPU
model.

Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
(cherry picked from commit c3b9e3e1ea1c1d1524b56b6734711db2a6fc2163)
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/tools/gen_facilities.c