From patchwork Mon Aug 16 11:09:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Heimes X-Patchwork-Id: 1517130 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=NzzRsW3y; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GpBJg6Htyz9s5R; Mon, 16 Aug 2021 21:09:55 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mFaV5-0000Gv-Tf; Mon, 16 Aug 2021 11:09:51 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mFaUn-0000DG-8N for kernel-team@lists.ubuntu.com; Mon, 16 Aug 2021 11:09:33 +0000 Received: from T570.fritz.box (p54abbd2e.dip0.t-ipconnect.de [84.171.189.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 0D5424066D for ; Mon, 16 Aug 2021 11:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629112173; bh=cjwaEeT70YR7rvcB6PAIl9dKqVIS+2UNJnWBz0VrPNM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NzzRsW3yHgm9MiabBRJssyLpV9ww7F4ECzRZVm2OchFK8ujda9Tk8x6ONi9Lb40sh Wkp0z1+QM4YK1+nc+hkyY9/tzRoBNJ8ITssn3h/bRGGm5762CGoaXs3+p+S66LRjkI VrN9mKZbGO6vkfX8dG3sx9VWE6070Gnw2hAew+wmQIH5+6OWIRRwTnmDwaFRrdl3Ht Pv2+Q9MVbzklKu3WrwyhT6goYcTmaw1Id5yNYevf/7wcxAKaARprbKBnLfQ8SYrpzv ylepVh2AcKJLPsqhvB5AqSpz0C72slUKVONn+KB6c/aSLKAHLFkdP3vpNUNull+Jez 6iE9o8f133n9A== From: frank.heimes@canonical.com To: kernel-team@lists.ubuntu.com Subject: [I][PATCH 1/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Date: Mon, 16 Aug 2021 13:09:20 +0200 Message-Id: <20210816110921.25756-2-frank.heimes@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210816110921.25756-1-frank.heimes@canonical.com> References: <20210816110921.25756-1-frank.heimes@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Christian Borntraeger BugLink: https://bugs.launchpad.net/bugs/1932174 pass through newer vector instructions if vector support is enabled. Reviewed-by: Claudio Imbrenda Reviewed-by: Janosch Frank Acked-by: Cornelia Huck Signed-off-by: Christian Borntraeger (cherry picked from commit 1f703d2cf20464338c3d5279dddfb65ac79b8782) Signed-off-by: Frank Heimes --- arch/s390/kvm/kvm-s390.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 876fc1f7282a..f72f361d39dd 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -713,6 +713,10 @@ int kvm_vm_ioctl_enable_cap(struct kvm *kvm, struct kvm_enable_cap *cap) set_kvm_facility(kvm->arch.model.fac_mask, 152); set_kvm_facility(kvm->arch.model.fac_list, 152); } + if (test_facility(192)) { + set_kvm_facility(kvm->arch.model.fac_mask, 192); + set_kvm_facility(kvm->arch.model.fac_list, 192); + } r = 0; } else r = -EINVAL; From patchwork Mon Aug 16 11:09:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Heimes X-Patchwork-Id: 1517129 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=MD6xYwpT; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GpBJX4PWBz9sWw; Mon, 16 Aug 2021 21:09:48 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mFaUy-0000EI-KM; Mon, 16 Aug 2021 11:09:44 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mFaUn-0000DM-Gb for kernel-team@lists.ubuntu.com; Mon, 16 Aug 2021 11:09:33 +0000 Received: from T570.fritz.box (p54abbd2e.dip0.t-ipconnect.de [84.171.189.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 41DB43F070 for ; Mon, 16 Aug 2021 11:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629112173; bh=9D0zKMISw6UZ3dpv6kSvdfPAHOKhAeS3AuKY35jlfkA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MD6xYwpTUDobTkMjmfEkUcf2lsVsq87lVxYl1GT9KR2UvgTKbNvJ2k1x7zOwFX3FP v5BwiLJUcYEgBi4r+vjDjH4cvzAdiT1JoC3NlAr414UjRBMdSXZq3nVQKa9yRyX4M/ fd6c4cP4hnEYgiiL1bXKo9KLxSA9l2oS+MHoxSfrJc4mrDk80C9jJm0W3+nQMo7djR kQ73c8ICQY09NW0nD6aWIxV3YB1LzLoq8BTstHCUmw4w2ufet7RhPUXviMFcO88Anl tPgvsHUj4RmVNm+YFXGjGecSTr70E1oq4oDHDjhWTn4CSNi2DSOwwAunqzcQ2Rs3fZ G2nTGEqf/QbvA== From: frank.heimes@canonical.com To: kernel-team@lists.ubuntu.com Subject: [I][PATCH 2/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196 Date: Mon, 16 Aug 2021 13:09:21 +0200 Message-Id: <20210816110921.25756-3-frank.heimes@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210816110921.25756-1-frank.heimes@canonical.com> References: <20210816110921.25756-1-frank.heimes@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Christian Borntraeger BugLink: https://bugs.launchpad.net/bugs/1932174 This enables the NNPA, BEAR enhancement,reset DAT protection and processor activity counter facilities via the cpu model. Reviewed-by: Claudio Imbrenda Reviewed-by: Janosch Frank Acked-by: Cornelia Huck Signed-off-by: Christian Borntraeger (cherry picked from commit a3efa842926600b04cb1252e9211892c3bfc4d49) Signed-off-by: Frank Heimes --- arch/s390/tools/gen_facilities.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/s390/tools/gen_facilities.c b/arch/s390/tools/gen_facilities.c index 61ce5b59b828..606324e56e4e 100644 --- a/arch/s390/tools/gen_facilities.c +++ b/arch/s390/tools/gen_facilities.c @@ -115,6 +115,10 @@ static struct facility_def facility_defs[] = { 12, /* AP Query Configuration Information */ 15, /* AP Facilities Test */ 156, /* etoken facility */ + 165, /* nnpa facility */ + 193, /* bear enhancement facility */ + 194, /* rdp enhancement facility */ + 196, /* processor activity instrumentation facility */ -1 /* END */ } },