Received: by 10.192.165.148 with SMTP id m20csp3928908imm; Mon, 30 Apr 2018 08:45:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrtLNwlJx7XCa1iedfOqVFXgWDZGlp5M6jnRdvblyIesCgtyvcT3Eu0V/Sk+wSu2Ozt1kho X-Received: by 2002:a65:4b02:: with SMTP id r2-v6mr10333947pgq.82.1525103100887; Mon, 30 Apr 2018 08:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525103100; cv=none; d=google.com; s=arc-20160816; b=Fr8GlVGGD/64V1JZE16L+8s6RfM5Ef945ioSYYoJrpOI22m1GHgsErITaTZcMaX0qY ZRUfRISn5pd7w7I37TU+nGu+xjSIV9Ee9g5GHacsCRydFs5M0MumKhQmR/sJqyBdG0ww NED8vR3BAlo36AuHuA5fJyz30tFFOb0NibAF8dI9LpsehVRrODtl4Jhlutykw0vUeFOv sVfSLj9XfFe0xFJkZ1V767nKiPKpYd8pMVJRQ1EARSyFwcCHDC1sPRZV0CFFfKxfr9J8 mIQvJVIBtubdVyDyGyS+pc6AWVywkKP7QLTvXQ1gx5TVUBztwkII5OSq4PZL0rQbqdTf Ffeg== 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=O1SZl14aRvOPs2Q1MwnUIx4QTF4DjlypbDYDm1O8NmE=; b=cI0RSLWoXvvLgtD7L3fkR5Qm0rkcZSzxaz3NovpqPMUQRnzjTnZhPjw4H7PhLL2ngL Ft5gAAmB91JD42MXLwEp7Kfo2vlifM/hVD4PCSU+2X3/pOooPFBCs/m2qO36VsE7mZQ3 olltT2wHk49kRJKNSxL/4tJii9uePuw24xo3SH9eQUcI+VYoG5AiemMEsOAVQU/xt7LR aWsmjRg4Tgx0CXKxx6xJ+2adIfDO+h1B/xmX6u+UFsqkfw07kyqlVWYdzhCanF7RIn4C IsHiITPdH2RfbHUs3UN9cCTF8DEmxyXEPrt4MCZYhPu12EensCwCx3lG+R/erd5ca4n5 5cQw== 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 b186-v6si6365564pgc.569.2018.04.30.08.44.46; Mon, 30 Apr 2018 08:45:00 -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 S1754556AbeD3Pn3 (ORCPT + 99 others); Mon, 30 Apr 2018 11:43:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39388 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753334AbeD3Pn2 (ORCPT ); Mon, 30 Apr 2018 11:43:28 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EBD2AEC015; Mon, 30 Apr 2018 15:43:27 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0E892023456; Mon, 30 Apr 2018 15:43:26 +0000 (UTC) Date: Mon, 30 Apr 2018 17:43:24 +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 08/10] vfio: ccw: Handling reset and shutdown with states Message-ID: <20180430174324.34f59569.cohuck@redhat.com> In-Reply-To: <1524149293-12658-9-git-send-email-pmorel@linux.vnet.ibm.com> References: <1524149293-12658-1-git-send-email-pmorel@linux.vnet.ibm.com> <1524149293-12658-9-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.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 30 Apr 2018 15:43:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 30 Apr 2018 15:43:28 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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:11 +0200 Pierre Morel wrote: > Two new events, VFIO_CCW_EVENT_ONLINE and VFIO_CCW_EVENT_OFFLINE > allow to handle the enabling and disabling of a Sub Channel and > the shutdown, quiesce and reset operations are changed accordingly. OK, onlining/offlining via the fsm makes more sense conceptually than the init event. How is that supposed to play with enabling the subchannel in the init event? I would rather expect it to be done in the onlining transition only? > > Signed-off-by: Pierre Morel > --- > drivers/s390/cio/vfio_ccw_drv.c | 47 ++++++-------------------- > drivers/s390/cio/vfio_ccw_fsm.c | 66 +++++++++++++++++++++++++++++++++++++ > drivers/s390/cio/vfio_ccw_ops.c | 15 +++------ > drivers/s390/cio/vfio_ccw_private.h | 3 ++ > 4 files changed, 83 insertions(+), 48 deletions(-)