Received: by 10.223.164.221 with SMTP id h29csp258375wrb; Mon, 16 Oct 2017 02:26:09 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCnA4NhrYe5fR/LP/wO8YDxz4FBcu25REes4Y2sJwKR3Kl0HooWG58/eyd1ufM/xCirc9AP X-Received: by 10.84.233.10 with SMTP id j10mr8578506plk.14.1508145969252; Mon, 16 Oct 2017 02:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508145969; cv=none; d=google.com; s=arc-20160816; b=p/DhxdHLxw3Fa2vUEfgQ1Mz1X7udeBi6bLCBHT7KLEyhsBqhBxSaxI2LHW35Pm/Nhg WLw93XdI+TI+hfCNG+ErEkWxRz2uNy/rVi+mlMQjpP0lh5LSLWhsHugg4tl8qrml5atY cXCbS8V6chdRX0exnnO6AqBkmC99DDWd7WG7YIszMUhs8xycAMjr0tMQzWFptSIIsDbH jpDEqlNDqhyJeeRhotw36vkcUHby37TuD8k6/p9kWHg7E6G8omm/rry0Q+WFOwQykEQj hiIGA2eKNDpYTXZgfJj8QJsz5ll1wyNyNU/jMetpUHGRTPQ2fgDAJusgH4Wh6JQ7rsSI jmGQ== 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-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=RHtFVJCS00FYlnnvJKGFsCcvBokMQISrktAW8Q0Kgak=; b=nWIrvfRRyspKofC4tzgyFQiqOevWkG65y6tsbFw26Wpld+4heTZMhe1+BmappkokFe UzJKrBCiWjTJbbaYQGhDztg5BrDFEu5/8JtUsH4TFEjkteHByg5S6W48G5+sF4NfR8ba zonXA4Y+8TAtXoprapjXHmoPGAM06gBG+LmGiycxKesA8z85bOegTiYBkI/VpCINr+xU P1dUg3w26+QCFnJ29QyzE6IzHJUX3gVNZoU2ous8eLYX0Cu360BobsCdf9JqWZ17HGvT xbz5hczN4jtkxM3HviQg7T32iJrr47zeS7V/VfsrQB1L9bpyMj57x0lYU6+tpvWbDzEh 1OFQ== 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 9si4130703pfq.164.2017.10.16.02.25.54; Mon, 16 Oct 2017 02:26:09 -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 S1752069AbdJPJZV (ORCPT + 99 others); Mon, 16 Oct 2017 05:25:21 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44400 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752033AbdJPJZT (ORCPT ); Mon, 16 Oct 2017 05:25:19 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9G9OLha059364 for ; Mon, 16 Oct 2017 05:25:19 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dmnujj6yv-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 16 Oct 2017 05:25:19 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Oct 2017 10:25:16 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 16 Oct 2017 10:25:13 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v9G9PC7921168236; Mon, 16 Oct 2017 09:25:12 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 55F1C52043; Mon, 16 Oct 2017 09:19:35 +0100 (BST) Received: from mschwideX1 (unknown [9.152.212.220]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id CB81F5203F; Mon, 16 Oct 2017 09:19:34 +0100 (BST) Date: Mon, 16 Oct 2017 11:25:10 +0200 From: Martin Schwidefsky To: Tony Krowiak Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, freude@de.ibm.com, heiko.carstens@de.ibm.com, borntraeger@de.ibm.com, cohuck@redhat.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, qemu-s390x@nongnu.org, jjherne@linux.vnet.ibm.com, thuth@redhat.com, pasic@linux.vnet.ibm.com Subject: Re: [RFC 19/19] s390/facilities: enable AP facilities needed by guest In-Reply-To: <1507916344-3896-20-git-send-email-akrowiak@linux.vnet.ibm.com> References: <1507916344-3896-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1507916344-3896-20-git-send-email-akrowiak@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17101609-0012-0000-0000-000005822FC7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17101609-0013-0000-0000-000018FC67F6 Message-Id: <20171016112510.39e9c330@mschwideX1> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-16_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710160134 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Oct 2017 13:39:04 -0400 Tony Krowiak wrote: > Sets up the following facilities bits to enable the specified AP > facilities for the guest VM: > * STFLE.12: Enables the AP Query Configuration Information > facility. The AP bus running in the guest uses > the information returned from this instruction > to configure AP adapters and domains for the > guest machine. > * STFLE.15: Indicates the AP facilities test is available. > The AP bus running in the guest uses the > information. > > Signed-off-by: Tony Krowiak > --- > arch/s390/tools/gen_facilities.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/s390/tools/gen_facilities.c b/arch/s390/tools/gen_facilities.c > index 70dd8f1..eeaa7db 100644 > --- a/arch/s390/tools/gen_facilities.c > +++ b/arch/s390/tools/gen_facilities.c > @@ -74,8 +74,10 @@ struct facility_def { > 8, /* enhanced-DAT 1 */ > 9, /* sense-running-status */ > 10, /* conditional sske */ > + 12, /* AP query configuration */ > 13, /* ipte-range */ > 14, /* nonquiescing key-setting */ > + 15, /* AP special-command facility */ > 73, /* transactional execution */ > 75, /* access-exception-fetch/store indication */ > 76, /* msa extension 3 */ With this all KVM guests will always have the AP instructions available, no? In principles I like this approach, but it differs from the way z/VM does things, there the guest will get an exception if it tries to execute an AP instruction if there are no AP devices assigned to the guest. I wonder if there is a reason why z/VM does it the way it does. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. From 1581165030002785789@xxx Fri Oct 13 17:41:19 +0000 2017 X-GM-THRID: 1581165030002785789 X-Gmail-Labels: Inbox,Category Forums