Received: by 10.192.165.148 with SMTP id m20csp7904imm; Fri, 20 Apr 2018 01:59:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/P9r7KGW/awvDp8TI994ijz0lyH5fQpnNO38vJSy5SEqgenSHAKj3fJLtRqtBTCvj3XuTO X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr9469907plg.361.1524214785591; Fri, 20 Apr 2018 01:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524214785; cv=none; d=google.com; s=arc-20160816; b=XrLW7BCVTpeSor9dCZIDbFn48LgbYHwMHL5pkZUkmN2GVQnvqq1BvpsFYBLGN45jj2 mN1isPH8MQySxomtXeqTCn0ZNu6rBFB3XfU662pLd4+g1pdP6pZMEl2+6XfjHj62iczF merU2TivwEcFZvXNNpTwEglzg/vYHWR7I/smcxVLMEnivAGvfYs9B2gWBM3bKZeumVQA aIMKAiW+1uIOVsKlsIdOiK4ziA8KC+9hqFbVhtzs8HSI/HGsV3vhke4nU0KccSw/5lSl NdM9ebZN+bUWHO3HJiB3884ToshaZuI6qWaP622itrO+gPwJ+O9eTdnEN69Cdppcq88u 0O9g== 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=oBBDGT5Jcl1t/wkdfaXWBMaruUIgzEMNkRBapvzVik8=; b=LQBHxGDmzL7yOiAgNR9hFGasE2F1ycIlsN+AUt5X4PwNo7GBLRiRBWSW824qhPjwvz 98b/+UTxugUV+yUDuwUphigxnBLvKrMVXmkJR4E0UcBNA3DRWMqDZdrqd5p/Kyhci8ud lTvSm5bNgnGOGuXk2+Le2jA+GgdxADrLK+jQ4oc5QWmXyOawmqUx02sBgsg0nGkrF1DD NiAsp62Y21wW1hvxx5Bfd+YQMdPoPKeUNCNaytxD/8R5vr9Wj3MYdjOBGI84gc6EWGhz UQAdNl7mp117T++hylwzCOZbfWdn0ay+LP92qsyhHJpmaTyzdJDvQmgXTRPZpd/7YLyz xFZw== 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 s135si4646212pgs.629.2018.04.20.01.59.31; Fri, 20 Apr 2018 01:59:45 -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 S1754306AbeDTI6D (ORCPT + 99 others); Fri, 20 Apr 2018 04:58:03 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60642 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754264AbeDTI6C (ORCPT ); Fri, 20 Apr 2018 04:58:02 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 86A77406F97B; Fri, 20 Apr 2018 08:58:01 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3138C10B2B22; Fri, 20 Apr 2018 08:58:00 +0000 (UTC) Date: Fri, 20 Apr 2018 10:57:57 +0200 From: Cornelia Huck To: Tony Krowiak Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, borntraeger@de.ibm.com, pmorel@linux.vnet.ibm.com, pasic@linux.vnet.ibm.com, pbonzini@redhat.com, rkrcmar@redhat.com Subject: Re: [PATCH] KVM: s390: reset crypto attributes for all vcpus Message-ID: <20180420105757.506c4421.cohuck@redhat.com> In-Reply-To: <1524172432-26211-1-git-send-email-akrowiak@linux.vnet.ibm.com> References: <1524172432-26211-1-git-send-email-akrowiak@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.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 20 Apr 2018 08:58:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 20 Apr 2018 08:58:01 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 17:13:52 -0400 Tony Krowiak wrote: > Introduces a new function to reset the crypto attributes for all > vcpus whether they are running or not. Each vcpu in KVM will > be removed from SIE prior to resetting the crypto attributes in its > SIE state description. After all vcpus have had their crypto attributes > reset the vcpus will be restored to SIE. > > This function is incorporated into the kvm_s390_vm_set_crypto(kvm) > function to fix a reported issue whereby the crypto key wrapping > attributes could potentially get out of synch for running vcpus. > > Reported-by: Halil Pasic > Signed-off-by: Tony Krowiak > --- > arch/s390/kvm/kvm-s390.c | 18 ++++++++++++++---- > arch/s390/kvm/kvm-s390.h | 13 +++++++++++++ > 2 files changed, 27 insertions(+), 4 deletions(-) Reviewed-by: Cornelia Huck