Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1312521imm; Thu, 23 Aug 2018 00:31:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzLVdQS7Q5UvsnmS34YKNA6YuD7pQZk/rG/bZpZAG74MUS8KsWguu/TaGkkPgJ2CA5tyc4x X-Received: by 2002:a17:902:158b:: with SMTP id m11-v6mr42114551pla.102.1535009470179; Thu, 23 Aug 2018 00:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535009470; cv=none; d=google.com; s=arc-20160816; b=eq8DW4ovMaGiwQ5phU1dePEDv93QnnamUoidMN7LzqJzR6O83U94Hwl2drENGfFVD0 clu19ygQUICfLV5a7ALbB93nO6ZttDXgJ2RmmdO1u92ovXFnr0HeQxH7ptsyIFrmabFW Q5kXayDobJNudeOssD8BojKJgCnSN59P9Y5SpZfrY3na+Cf/Q0c/TjNt6MGNVfwBTCO1 NpRPVD7VNucTlWyzRpxwRtuVI8yBcQ22BRP9GS0u3Lebeh/F4Vfi1QXD5tlR4XQ4qB0X o89l50esVbuTKztBCAZnsgz31IpRJOUlpjD4J9MzZuJRoBUw4EhgEOZPMooqroI6yvbM LGPA== 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=GLm6t0oE7oAShBpmrqFNC88JnZWPCWB6aet+V1EYbzg=; b=oUjTmmYkvnxiOBlFaAPim41nzNK6ZuuKs3FmwnnHaozujmqU14BYKIxa5MWjJn0cRX THIPOjtPT0FfrKMmr7iISC52vHoZxzDfdHo/pWhhrN+XeioItw7ahol3kTHOBZPVBpQx IJak2HQpoh6MNwiVPFWyfeMnrDB/Tg6/V2F+zng0cQFaMWjnCoq3MIFSy0N2J9kxCCUy rHly8CdOQn82Txmq+300HbO/xXa04dFOaqq2INIaNzfeidCzNNChTGT++MixnktI4yxO Z7PN9toUwUtJS/v9jQgucsMo8wkuDXZZBDD1xWq+vZgHJMhgaDWv3k9kPYJFDOc9fBY7 qgFw== 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 m13-v6si3660860pgh.360.2018.08.23.00.30.32; Thu, 23 Aug 2018 00:31:10 -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 S1726685AbeHWKzq (ORCPT + 99 others); Thu, 23 Aug 2018 06:55:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47590 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726177AbeHWKzp (ORCPT ); Thu, 23 Aug 2018 06:55:45 -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 24E1E40241C5; Thu, 23 Aug 2018 07:27:29 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 887F72026DE4; Thu, 23 Aug 2018 07:27:24 +0000 (UTC) Date: Thu, 23 Aug 2018 09:27:22 +0200 From: Cornelia Huck To: David Hildenbrand Cc: Pierre Morel , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, frankja@linux.ibm.com, akrowiak@linux.ibm.com, borntraeger@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH v2 1/5] KVM: s390: vsie: BUG correction by shadow_crycb Message-ID: <20180823092722.5853bd4b.cohuck@redhat.com> In-Reply-To: <8300634d-8500-1898-e283-175fc893054a@redhat.com> References: <1534956717-14087-1-git-send-email-pmorel@linux.ibm.com> <1534956717-14087-2-git-send-email-pmorel@linux.ibm.com> <8300634d-8500-1898-e283-175fc893054a@redhat.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.7]); Thu, 23 Aug 2018 07:27:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 23 Aug 2018 07:27:29 +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 Wed, 22 Aug 2018 18:53:02 +0200 David Hildenbrand wrote: > On 22.08.2018 18:51, Pierre Morel wrote: > > Copy the key mask to the right offset inside the shadow CRYCB > > > > Signed-off-by: Pierre Morel > > Reviewed-by: David Hildenbrand > > --- > > arch/s390/kvm/vsie.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c > > index 9175518..12b9707 100644 > > --- a/arch/s390/kvm/vsie.c > > +++ b/arch/s390/kvm/vsie.c > > @@ -173,7 +173,8 @@ static int shadow_crycb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) > > return set_validity_icpt(scb_s, 0x0039U); > > > > /* copy only the wrapping keys */ > > - if (read_guest_real(vcpu, crycb_addr + 72, &vsie_page->crycb, 56)) > > + if (read_guest_real(vcpu, crycb_addr + 72, > > + vsie_page->crycb.dea_wrapping_key_mask, 56)) > > return set_validity_icpt(scb_s, 0x0035U); > > > > scb_s->ecb3 |= ecb3_flags; > > > > Please fixup the subject as requested. +1 > (were there more RB-s?) > Yep, mine. FTR: Reviewed-by: Cornelia Huck