Received: by 10.192.165.148 with SMTP id m20csp417114imm; Wed, 25 Apr 2018 01:26:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEIiJJftcu9ZBnhifb5EsV1gKdYZ/gvMsWhgaN4UdORVDs8l6jFu81enWLVOKTEo4YctMY X-Received: by 2002:a17:902:7405:: with SMTP id g5-v6mr5402494pll.102.1524644803191; Wed, 25 Apr 2018 01:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524644803; cv=none; d=google.com; s=arc-20160816; b=b5KAZak+NlJ8nMeciJlxsDLOIr+sZxj4+/dIhH7XBZ+nuIi/Ei7tWQWjgP8Mydm9RG DOTHrVzYoE1K4xSbF6yZ1B9BYQUqyoU03vebbZCJ4RfbLYXKnUb1T6+eg9O3V9nECZ4E skbZvNBsPejQNNDGVbZdRQWPgMwBtCnxDHEllpSI41Tcg7eSxZKtv0RDl7WTcI77GUiv kmxTgG5R1C8NMShutHGmf8F70c9e6wvb0BVISM3IkoQbcUpgzPKe4PZqK2WEK/ksRlSZ g3KEWI9jZ+i0R3FjFvObrBf5LG5JUe5LbITLgFVj36NJj8QbAJZiT3B1JenIk0ZBhpHc I/BA== 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:arc-authentication-results; bh=k7mJPh8K7c5HzotuRANjWrQ8fbqJ7SCdIDxDXHPTJVo=; b=alguDFV7QV49tfYW1UF12QpbT5wW2R1S+VmRzP2P34JySSiy3gGPi/1yEOJsh5urLB 06yp/DJS1N2SVrLlXy9xKIpzIiUU0MBaR5kpYuXCS6Llr8LQJDnwEaJt7BZnoFhlEQSM MGS/sd4dUyW8H9neLsxZJhx08+ijveqRBfgbNFwdKWqiEzTddHb/idncw+AxKs8ODeQT JXcyM5hvmV7gyLgMcGcxgUGLEL2JgScOij3bY4YVUtqREzoiUUfy0wTf3XHMjZh1Ek+d V63VUnrwTg/3ux3dS5RvaL/r+u/6ZvXpsqCd/KjzBx1Ybw4ox9F8GMk6Kjbj3HGofSLw IeIw== 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 i192si13603620pgc.380.2018.04.25.01.26.28; Wed, 25 Apr 2018 01:26:43 -0700 (PDT) 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 S1751435AbeDYIZZ (ORCPT + 99 others); Wed, 25 Apr 2018 04:25:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55068 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750945AbeDYIZX (ORCPT ); Wed, 25 Apr 2018 04:25:23 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 061BB406C74C; Wed, 25 Apr 2018 08:25:23 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 067C2215CDC8; Wed, 25 Apr 2018 08:25:21 +0000 (UTC) Date: Wed, 25 Apr 2018 10:25:19 +0200 From: Cornelia Huck To: Pierre Morel Cc: pasic@linux.vnet.ibm.com, bjsdjshi@linux.vnet.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 03/10] vfio: ccw: new SCH_EVENT event Message-ID: <20180425102519.16e6195b.cohuck@redhat.com> In-Reply-To: <1524149293-12658-4-git-send-email-pmorel@linux.vnet.ibm.com> References: <1524149293-12658-1-git-send-email-pmorel@linux.vnet.ibm.com> <1524149293-12658-4-git-send-email-pmorel@linux.vnet.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.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 25 Apr 2018 08:25:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 25 Apr 2018 08:25:23 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'cohuck@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Apr 2018 16:48:06 +0200 Pierre Morel wrote: > The Sub channel event callback is threaded using workqueues. > The work uses the FSM introducing the VFIO_CCW_EVENT_SCH_EVENT > event. I don't think this is a good name; after all, all of the events are events for the subchannel :) This seems to be more of a "we need to update the schib" event... VFIO_CCW_EVENT_SCHIB_CHANGED? _SCH_CHANGED? _UPDATE_NEEDED? Tbh, I'm not quite sure this makes sense for me yet... will continue reading, but this probably needs a 'why'. > The update of the SCHIB is now done inside the FSM function. > > Signed-off-by: Pierre Morel > --- > drivers/s390/cio/vfio_ccw_drv.c | 33 +++++++++++++-------------------- > drivers/s390/cio/vfio_ccw_fsm.c | 23 +++++++++++++++++++++++ > drivers/s390/cio/vfio_ccw_private.h | 3 +++ > 3 files changed, 39 insertions(+), 20 deletions(-)