On 07/02/2018 10:38 AM, Christian Borntraeger wrote:
On 06/29/2018 11:11 PM, Tony Krowiak wrote:
Introduces a new CPU model feature and two CPU modelI think it probably should be at the end of the series, other than that its good.
facilities to support AP virtualization for KVM guests.
CPU model feature:
The KVM_S390_VM_CPU_FEAT_AP feature indicates that
AP instructions are available on the guest. This
feature will be enabled by the kernel only if the AP
instructions are installed on the linux host. This feature
must be specifically turned on for the KVM guest from
userspace to use the VFIO AP device driver for guest
access to AP devices.
CPU model facilities:
1. AP Query Configuration Information (QCI) facility is installed.
ÂÂÂ This is indicated by setting facilities bit 12 for
ÂÂÂ the guest. The kernel will not enable this facility
ÂÂÂ for the guest if it is not set on the host. This facility
ÂÂÂ must not be set by userspace if the KVM_S390_VM_CPU_FEAT_AP
ÂÂÂ feature is not installed.
ÂÂÂ If this facility is not set for the KVM guest, then only
ÂÂÂ APQNs with an APQI less than 16 will be available to the
ÂÂÂ guest regardless of the guest's matrix configuration. This
ÂÂÂ is a limitation of the AP bus running on the guest.
2. AP Facilities Test facility (APFT) is installed.
ÂÂÂ This is indicated by setting facilities bit 15 for
ÂÂÂ the guest. The kernel will not enable this facility for
ÂÂÂ the guest if it is not set on the host. This facility
ÂÂÂ must not be set by userspace if the KVM_S390_VM_CPU_FEAT_AP
ÂÂÂ feature is not installed.
ÂÂÂ If this facility is not set for the KVM guest, then no
ÂÂÂ AP devices will be available to the guest regardless of
ÂÂÂ the guest's matrix configuration. This is a limitation
ÂÂÂ of the AP bus running under the guest.
Reviewed-by: Christian Borntraeger <borntraeger@xxxxxxxxxx>
Reviewed-by: Halil Pasic <pasic@xxxxxxxxxxxxx>
Signed-off-by: Tony Krowiak <akrowiak@xxxxxxxxxxxxx>
If I move this to the end of the series, the very next patch checks the
KVM_S390_VM_CPU_FEAT_AP feature?