From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Borntraeger Subject: [PATCH] KVM: s390: Fix sdnxo setting for nested guests Date: Fri, 7 Apr 2017 14:27:45 +0200 Message-ID: <1491568065-7491-1-git-send-email-borntraeger@de.ibm.com> References: <70b26028-8076-c7ff-be17-b99946a20642@redhat.com> Cc: KVM , Christian Borntraeger , Cornelia Huck , linux-s390 , David Hildenbrand To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Return-path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44821 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932601AbdDGM1y (ORCPT ); Fri, 7 Apr 2017 08:27:54 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v37CNSbL118981 for ; Fri, 7 Apr 2017 08:27:54 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 29p94bnua2-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 07 Apr 2017 08:27:53 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Apr 2017 13:27:52 +0100 In-Reply-To: <70b26028-8076-c7ff-be17-b99946a20642@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: If the guest does not use the host register management, but it uses the sdnx area, we must fill in a proper sdnxo value (address of sdnx and the sdnxc). Reported-by: David Hildenbrand Signed-off-by: Christian Borntraeger --- arch/s390/kvm/vsie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c index 2fafc2b..025b1f2 100644 --- a/arch/s390/kvm/vsie.c +++ b/arch/s390/kvm/vsie.c @@ -627,7 +627,7 @@ static int pin_blocks(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) rc = set_validity_icpt(scb_s, 0x10b0U); if (rc) goto unpin; - scb_s->sdnxo = hpa; + scb_s->sdnxo = hpa | sdnxc; } return 0; unpin: -- 2.7.4