KVM: s390: Populate mask of non-hypervisor managed facility bits
authorAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Fri, 1 Apr 2016 12:38:57 +0000 (15:38 +0300)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 9 May 2016 11:33:59 +0000 (13:33 +0200)
commit60a37709ce603da62d0b60699b713558b4cfd513
treed434189c384eed599eac886cd863aa0b5648a0cc
parent154fa27e6ba37931ca585598acf17c4dcd44c81a
KVM: s390: Populate mask of non-hypervisor managed facility bits

When a guest is initializing, KVM provides facility bits that can be
successfully used by the guest. It's done by applying
kvm_s390_fac_list_mask mask on host facility bits stored by the STFLE
instruction. Facility bits can be one of two kinds: it's either a
hypervisor managed bit or non-hypervisor managed.

The hardware provides information which bits need special handling.
Let's automatically passthrough to guests new facility bits, that
don't require hypervisor support.

Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Eric Farman <farman@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c