]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/s390/kvm/kvm-s390.c
KVM: s390: allow sync of fp registers via vregs
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 15 Jan 2016 13:11:46 +0000 (14:11 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Feb 2016 12:12:48 +0000 (13:12 +0100)
commitf6aa6dc44948739be39c20bbcbbe8cff5d77fe18
tree63695a4fe2a96834663ebdcaa948318f50a1e1d5
parentbce87cce88c71957c56479809db8316a836ec8b1
KVM: s390: allow sync of fp registers via vregs

If we have MACHINE_HAS_VX, the floating point registers are stored
in the vector register format, event if the guest isn't enabled for vector
registers. So we can allow KVM_SYNC_VRS as soon as MACHINE_HAS_VX is
available.

This can in return be used by user space to support floating point
registers via struct kvm_run when the machine has vector registers.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c