Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5931282imm; Mon, 27 Aug 2018 06:54:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaIQTFHF9fRlBzBALJuVohSlfCTvuYAxEDFOoahZOCIk/BUjYdtNpAUUQDz+Ntc4f+PRHpf X-Received: by 2002:a65:614a:: with SMTP id o10-v6mr12512666pgv.387.1535378052536; Mon, 27 Aug 2018 06:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535378052; cv=none; d=google.com; s=arc-20160816; b=XyU8rs2QByb3s5Bizwy+Xb+2ZDIjtI84bifYLJtJJiDmicEAbkCNRrtzvZYqLi7n7k hqSHZHyci0atzE/tENDBVKM7X0FtS8uDFplcqV13zaFDKWPMmK25S5qP/jx1TOawhHgO 6nIxttXMU3VOPj3k7XfyiOJLODdsaxrrMQ8dL5nRV1aX4/2vuCLD34H7sa3nvjcQYdlK +hyugxVHTcozynUes7t/eVIMTWWGgIca/HrbyjJL6tCXBAAr62Ii+xYe/9lguDUFCWiE zhcSHwi54MqgJ0rLIask+qvR248gk6CHEO372JoFFHTpxhwC/vtvhpE08PuTgwRPZqC4 F9Kg== 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=YEhKNc25enP/M8sy7B8buj0gK4ak6sSd9CXg112/byg=; b=B3uY35UY0glhoeF8wEzvKJMzjqDJOtLlB6xHKEpfjFRRUwMpPhhC4LgFAOGYS6cKUT W33Gwjxxp6jPJQB+51wT/PRjrmG6q5UK9PCPBzaHKEMo1w3rRV+aQPApOYxC6LyOhpfG XNmaKgUTNHmXtfX7DPKs2SWjiKgLn3HFc3L117UKP16JtdLH5fs4skhv7viJ35psGmhs D2nAmpYV74Dy3NlmbT/bNfaQb1pE9VUvDjbPM2OwMK8hb6h6/x0vOPCTAVZirBgEqXcH nUr1bosDmP+/BAE/qvQWGYjTmcACvrvVUZjFUHLU30cm/VXZBmbePwRHaLJ3NNgnahkg 4wLQ== 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 g12-v6si14599909pla.70.2018.08.27.06.53.57; Mon, 27 Aug 2018 06:54:12 -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 S1727500AbeH0RiT (ORCPT + 99 others); Mon, 27 Aug 2018 13:38:19 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38762 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726883AbeH0RiS (ORCPT ); Mon, 27 Aug 2018 13:38:18 -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 A23D64021702; Mon, 27 Aug 2018 13:51:33 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73A782026D6B; Mon, 27 Aug 2018 13:51:28 +0000 (UTC) Date: Mon, 27 Aug 2018 15:51:26 +0200 From: Cornelia Huck To: Tony Krowiak Cc: Halil Pasic , Christian Borntraeger , pmorel@linux.ibm.com, Tony Krowiak , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, kwankhede@nvidia.com, bjsdjshi@linux.vnet.ibm.com, pbonzini@redhat.com, alex.williamson@redhat.com, pmorel@linux.vnet.ibm.com, alifm@linux.vnet.ibm.com, mjrosato@linux.vnet.ibm.com, jjherne@linux.vnet.ibm.com, thuth@redhat.com, pasic@linux.vnet.ibm.com, berrange@redhat.com, fiuczy@linux.vnet.ibm.com, buendgen@de.ibm.com, frankja@linux.ibm.com Subject: Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains Message-ID: <20180827155126.440f2170.cohuck@redhat.com> In-Reply-To: <65cb82b5-85ce-1831-5b2a-719d2cf27be8@linux.ibm.com> References: <1534196899-16987-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1534196899-16987-13-git-send-email-akrowiak@linux.vnet.ibm.com> <20180820162317.08bd7d23.cohuck@redhat.com> <660de00a-c403-28c1-4df4-82a973ab3ad5@linux.ibm.com> <20180821172548.57a6c758.cohuck@redhat.com> <82a391ee-85b1-cdc7-0f9b-d37fd8ba8e47@linux.ibm.com> <20180822114250.59a250aa.cohuck@redhat.com> <8bc5f207-f913-825c-f9fc-0a2c7fd280aa@linux.ibm.com> <219b352b-d5a2-189c-e205-82e7f9ae3d64@de.ibm.com> <9ef5fcb9-02e0-88e3-007c-eedb14e6db80@linux.ibm.com> <20180823122525.02fc4af3.cohuck@redhat.com> <20180827103316.4e7fbc10.cohuck@redhat.com> <65cb82b5-85ce-1831-5b2a-719d2cf27be8@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.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.5]); Mon, 27 Aug 2018 13:51:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 27 Aug 2018 13:51:33 +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 Mon, 27 Aug 2018 09:47:58 -0400 Tony Krowiak wrote: > On 08/27/2018 04:33 AM, Cornelia Huck wrote: > > On Thu, 23 Aug 2018 10:16:59 -0400 > > Tony Krowiak wrote: > > > >> On 08/23/2018 06:25 AM, Cornelia Huck wrote: > >>> On Wed, 22 Aug 2018 15:16:19 -0400 > >>> Tony Krowiak wrote: > >>> > >>>> One of the things I suggested in a private conversation with Christian > >>>> earlier > >>>> today was to provide an additional rw sysfs attribute - a boolean - that > >>>> indicates > >>>> whether all usage domains should also be control domains. The default > >>>> could be > >>>> true. This would allow one to configure guests with usage-only domains > >>>> as well > >>>> as satisfy the convention. > >>> Would this additional attribute then control "add usage domains to the > >>> list of control domains automatically", or "don't allow to add a usage > >>> domain if it has not already been added as a control domain"? > >> It was just a proposal that wasn't really discussed at all, but this > >> attribute would add usage domains to the list of control domains > >> automatically if set to one. That would be the default behavior which > >> would be turned off by manually setting it to zero. > > If we want to do something like that, having it add the usage domains > > automatically sounds like the more workable alternative. What I like > > about this is that we make it explicit that we change the masks beyond > > what the admin explicitly configured, and provide a knob to turn off > > that behaviour. > > So, are you saying I should go ahead and implement this? I'm just saying that it does not sound like a bad idea :) If you agree that it's a good idea and if others also like it... I'd certainly not mind you going ahead :)