Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp149125imj; Thu, 7 Feb 2019 02:01:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IbMOCZ1U2aKSAos8eKctZoHwh6lyQJnFjPu0OxC19LFshCiDWjrfDcPd9NBamr28xDnptFv X-Received: by 2002:a63:d310:: with SMTP id b16mr4241298pgg.274.1549533693902; Thu, 07 Feb 2019 02:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549533693; cv=none; d=google.com; s=arc-20160816; b=fWK2nDIP/QajgHgQCpolhF3O7N0DKP1faL1xYUB0IiUi/vHLow8QSgNV8KQ8O2N9i7 EJ+L4YNDb8255w7wt5oXCqV2/MqWz9MrfLhmvsZ25NWRN8gWXS5yUj/TUWaaEs8Urvh6 a3y/XEQ/ox24E7C+DSMCckoQjIBYpmYjg0GqNjPOUkm/zDDn/T1qYon4LIL6s2QVQpKU 5RmSzcg3KnWcMWpNH6Y2dRRpDnYJ6ttQDq/BvHL8vkHfwdeTVYfZIJisapVly7nLihvi lpPQiWCfPD9696MxmUbfhmcXaDL9xtoQ2C0moeQqe7jN1IggjxmEsLQlojP/TdmQVBGQ hVJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=uZ7RPtoaMbKLMkLqEygMwyV6nrVamvxt4MUSa78x/W0=; b=MqzzscaCMJCfVDatKCLTu76T7WbD2q/i704yms8UxlsOI8+0ZOYV85tBym+YYYVodf QEs70UpHt9UebvdXHD6/a9+Th7uKPKGWtjmFNYlvt2AcrhCOr18ItFCkq+Is0o7J16w6 NL9V4C/oy24PXchW+AKtYvBYTWbJjUn/X28GgCzqUNlbj9Wt9MC7+tUot2F/ZxTrUTuW VK/+r646Co0Wkf6YgOho9eq42A5yE6CCJ8becZpLnRe06moy/ak0sPQXe3KW/jSxbaHs 5jSX0zeojPIqaMB9za3lQl5buwM/8gePP75Psj4YGNPHOB+1yQwDpyfvn4vHknP+I5xM l3Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si4426689pgm.584.2019.02.07.02.01.17; Thu, 07 Feb 2019 02:01:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfBGJ7s (ORCPT + 99 others); Thu, 7 Feb 2019 04:59:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45232 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbfBGJ7r (ORCPT ); Thu, 7 Feb 2019 04:59:47 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 909497FDE7; Thu, 7 Feb 2019 09:59:47 +0000 (UTC) Received: from gondolin (ovpn-117-74.ams2.redhat.com [10.36.117.74]) by smtp.corp.redhat.com (Postfix) with ESMTP id CD30117CFF; Thu, 7 Feb 2019 09:59:44 +0000 (UTC) Date: Thu, 7 Feb 2019 10:59:40 +0100 From: Cornelia Huck To: Tony Krowiak Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, borntraeger@de.ibm.com, pmorel@linux.vnet.ibm.com, pasic@linux.vnet.ibm.com, akrowiak@linux.vnet.ibm.com, oberpar@linux.ibm.com, sebott@linux.ibm.com Subject: Re: [PATCH v2] zcrypt: handle AP Info notification from CHSC SEI command Message-ID: <20190207105940.19b34df1.cohuck@redhat.com> In-Reply-To: <1549488686-3746-1-git-send-email-akrowiak@linux.ibm.com> References: <1549488686-3746-1-git-send-email-akrowiak@linux.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 07 Feb 2019 09:59:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Feb 2019 16:31:26 -0500 Tony Krowiak wrote: > The current AP bus implementation periodically polls the AP configuration > to detect changes. When the AP configuration is dynamically changed via the > SE or an SCLP instruction, the changes will not be reflected to sysfs until > the next time the AP configuration is polled. The CHSC architecture > provides a Store Event Information (SEI) command to make notification of an > AP configuration change. This patch introduces a handler to process > notification from the CHSC SEI command by immediately kicking off an AP bus > scan-after-event. > > Signed-off-by: Tony Krowiak > Reviewed-by: Halil Pasic > Reviewed-by: Sebastian Ott > --- > arch/s390/include/asm/ap.h | 11 +++++++++++ > drivers/s390/cio/chsc.c | 13 +++++++++++++ > drivers/s390/crypto/ap_bus.c | 11 +++++++++++ > 3 files changed, 35 insertions(+) Reviewed-by: Cornelia Huck