Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp274198imm; Wed, 22 Aug 2018 04:04:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy0zG+FGJ8aELVVRNJds44ZGVQ1WfZycNDKGQT32YvuVcMD3kOzBGzjvES388loxnpUU1oC X-Received: by 2002:a65:6102:: with SMTP id z2-v6mr51420743pgu.46.1534935894136; Wed, 22 Aug 2018 04:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534935894; cv=none; d=google.com; s=arc-20160816; b=gTXx7REXehw79zqhhMsByzSAOzK0NoDjEW+/UddM2XccMnftCB2nYnFJJBlPKESjYw 7dSspZuqlCoZIDn8FYUe2r0eyzYME0utdcH/9cp+oWE8GdekdObFVYlEmApfM/xXwB1G tHOP3DOvwOTcx/jIOpn+ptNnNKFblxb7NjWVXFgFSn2BV1C4xFdrPIzoM00UAfYRokDy tlQg+QcUZw14hgZxg3ytxpB1gfSO3F8XVF77oJ0fhe7BWWEhutWORcuiGp+OSb3WLIx3 HzV6qet+6U6SsUgh6lxpU9xat7ISj6vpjb+w78bY+q1vaZNFduo/mxIxGo8H/AaCmna8 pVDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:reply-to:arc-authentication-results; bh=V2XIruhYw+iDc5WdoWY7XRlcsDnXdLCMZzAJwrc/9T4=; b=x0ArLZIQ03vNvsVlCk/yvsXI4uaOZYbMG32c3VBWRuXCtLaWWFSeEK42hUjutkVAR3 tC/AgCbVRpffG+mmXNaWdFy6nXakeb0xaMTSsgMfHvHc4kOMrSCL3fdQfwrNkPRaWT4L ccx1pKXCYuOWvn6Ev/NETYOtTz5IhSI3tqxfH0SemY/ojxDQRJsBBoMETdI44aPtTnzn tLyKw1pVTgaUAzynGBYLyPe5HU/J+nPSHzyinqWBcNERc4MytKwnnk4eMAdPeNuisfFH 1ispMPUeYBoGvnThbkRgAWXkIOxIy8v3OjPgZsIg0rOojCP3N7pcCFXqBVMuolc3Oc15 2viw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p91-v6si1434973plb.51.2018.08.22.04.04.39; Wed, 22 Aug 2018 04:04:54 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbeHVO1n (ORCPT + 99 others); Wed, 22 Aug 2018 10:27:43 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58496 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728748AbeHVO1m (ORCPT ); Wed, 22 Aug 2018 10:27:42 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w7MAxJ8c105087 for ; Wed, 22 Aug 2018 07:03:16 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2m128t9v7w-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 22 Aug 2018 07:03:15 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Aug 2018 12:03:12 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 22 Aug 2018 12:03:08 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w7MB36c834930808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 22 Aug 2018 11:03:06 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8DEEDA405D; Wed, 22 Aug 2018 14:03:06 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E1D18A406B; Wed, 22 Aug 2018 14:03:05 +0100 (BST) Received: from [9.152.224.111] (unknown [9.152.224.111]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 22 Aug 2018 14:03:05 +0100 (BST) Reply-To: pmorel@linux.ibm.com Subject: Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains To: Cornelia Huck , Halil Pasic Cc: Tony Krowiak , 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, borntraeger@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 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> From: Pierre Morel Date: Wed, 22 Aug 2018 13:03:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180822114250.59a250aa.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18082211-0020-0000-0000-000002BA2050 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18082211-0021-0000-0000-0000210775FF Message-Id: <8bc5f207-f913-825c-f9fc-0a2c7fd280aa@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-22_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=744 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808220113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/08/2018 11:42, Cornelia Huck wrote: > On Wed, 22 Aug 2018 01:18:20 +0200 > Halil Pasic wrote: > >> On 08/21/2018 07:07 PM, Tony Krowiak wrote: >>> This convention has been enforced by the kernel since v1. This is also >>> enforced by both the LPAR as well as in z/VM. The following is from the >>> PR/SM Planning Guide: >>> >>> Control Domain >>> A logical partition's control domains are those cryptographic domains for which remote secure >>> administration functions can be established and administered from this logical partition. This >>> logical partition’s control domains must include its usage domains. For each index selected in the >>> usage domain index list, you must select the same index in the control domain index list >>> > That's interesting. > >> IMHO this quote is quite a half-full half-empty cup one: >> * it mandates the set of usage domains is a subset of the set >> of the control domains, but >> * it speaks of independent controls, namely about the 'usage domain index' >> and the 'control domain index list' and makes the enforcement of the rule >> a job of the administrator (instead of codifying it in the controls). > I'm wondering if a configuration with a usage domain that is not also a > control domain is rejected outright? Anybody tried that? :) Yes, and no it is not. We can use a queue (usage domain) to a AP card for SHA-512 or RSA without having to define the queue as a control domain. Regards, Pierre -- Pierre Morel Linux/KVM/QEMU in Böblingen - Germany