Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp782970imm; Wed, 8 Aug 2018 05:48:52 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwPmTreX9hFCjwirP2l02yrHZpuykE/ZRRUudZc5BiX+h1B4nrdvRNvtrL6WHChD+mto/Qk X-Received: by 2002:aa7:8713:: with SMTP id b19-v6mr2810483pfo.151.1533732532287; Wed, 08 Aug 2018 05:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533732532; cv=none; d=google.com; s=arc-20160816; b=qYhb4oe8WPOIl+WyuReBha/IATLCIUKM2RfOlQ/qRQRNB1iRy0KN6f0XDLKn74jT78 KtN/iIAXMmE+yUYiFptKAd1fSl44MnlG9L8mbeU0BnGDXevpGeNlk+CEtUpWedsueRS6 IRIEp1VYFaWhOU7mi4bZgkJb3/HuBIQogBXKrdFZOxATxDa1pTcUiozn6mz2XyAev3Yg j7yITpYFFcF7P4dOdZESKbMn+AUu7ieDRJyyvaOdOqzr5AntUn69IdkpEN7zETHZgg1c zN1u8uYwBjrqfuQVUMUHSgwe9r24QPaTUdHocNej6K/tSe3UJ51mA78HcD2PNOU2hz7C cYgw== 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=K1jp/L73wHENU2YSliMlYlQnaAM4Ob7urkfEYGKLlXA=; b=lUj0fwJU5ta/Vmw6MprVLbFlV98RD1Xq8TurBrAadwfxqZ1ywVCoj1FMvUMLtC/mHb wtddSCDZcxLiRd5L5vcJ6dcng+k51G8kDvWCAshqOohyuy0OW52624ZGc5NDuCud+wwJ EJs52scuS8vC8ZqkZoSPpFP5ejU5QAjD4i5FXPKP+9Yl42Wjfq1pU276hZv6eHkFKPZ5 66ktEboGSwx1Acnu9w8eBJ/3fOD0Er34xXChy3YUxOHC+E9BW4vbiRaW1YVj9uFAJHFj c3NMvl9hWrAgTOVtayV71IMyubUvpEo1hsHBwzSc/sdBpyDQb/4vcw7tqkrZWCD190jm g1iw== 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 i12-v6si4506305pfj.190.2018.08.08.05.48.38; Wed, 08 Aug 2018 05:48:52 -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 S1727198AbeHHPHM (ORCPT + 99 others); Wed, 8 Aug 2018 11:07:12 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726745AbeHHPHL (ORCPT ); Wed, 8 Aug 2018 11:07:11 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8C23281663D8; Wed, 8 Aug 2018 12:47:38 +0000 (UTC) Received: from gondolin (dhcp-192-215.str.redhat.com [10.33.192.215]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5293F1C731; Wed, 8 Aug 2018 12:47:35 +0000 (UTC) Date: Wed, 8 Aug 2018 14:47:33 +0200 From: Cornelia Huck To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Heiko Carstens , Martin Schwidefsky , Janosch Frank , Christian Borntraeger , Pierre Morel Subject: Re: [PATCH RFC 2/2] KVM: s390: introduce and use KVM_REQ_VSIE_RESTART Message-ID: <20180808144733.507ba955.cohuck@redhat.com> In-Reply-To: <20180807125131.3606-3-david@redhat.com> References: <20180807125131.3606-1-david@redhat.com> <20180807125131.3606-3-david@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.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 08 Aug 2018 12:47:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 08 Aug 2018 12:47:38 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 Tue, 7 Aug 2018 14:51:31 +0200 David Hildenbrand wrote: > When we change the crycb (or execution controls), we also have to make sure > that the vSIE shadow datastructures properly consider the changed > values before rerunning the vSIE. We can achieve that by simply using a > VCPU request now. Is this actually a concrete problem right now, or does this only become a real concern with vfio-ap? > > This has to be a synchronous request (== handled before entering the > (v)SIE again). > > The request will make sure that the vSIE handler is left, and that the > request will be processed (NOP), therefore forcing a reload of all > vSIE data (including rebuilding the crycb) when re-entering the vSIE > interception handler the next time. > > Signed-off-by: David Hildenbrand > --- > arch/s390/include/asm/kvm_host.h | 1 + > arch/s390/kvm/kvm-s390.c | 7 ++++++- > 2 files changed, 7 insertions(+), 1 deletion(-) Reviewed-by: Cornelia Huck