]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/ap: Restrict driver_override versus apmask and aqmask use
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 19 Nov 2025 15:27:38 +0000 (16:27 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 24 Nov 2025 10:43:06 +0000 (11:43 +0100)
commit46030379f13c3f07c699dcaf034a50f023f77925
tree82660a12358e3d7cff11f5c2a2e9e20318086d86
parent8babcc2b6a75d1eced723a78cb67b3ff6abac8b0
s390/ap: Restrict driver_override versus apmask and aqmask use

Introduce a restriction for the driver_override feature versus apmask
and aqmask:
- driver_override is only allowed when the apmask and aqmask values
  both are default (=0xffff..ffff).
- apmask and aqmask modifications are only allowed when there is no
  driver_override on any AP device active.
So in the end the user is restricted to choose to either use
apmask/apmask to divide the AP devices into host owned and vfio owned
or use the driver_override feature but not mix these two approaches.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h
drivers/s390/crypto/ap_queue.c