Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4160036ooa; Tue, 14 Aug 2018 01:53:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx/9aIwejdUtUcFOqQQKYPzXYBR4X2v/jYBHxPVyexmnjZG+wQf3aidnxykpXTMR/3Hf+Uy X-Received: by 2002:a65:6551:: with SMTP id a17-v6mr20284821pgw.132.1534236782837; Tue, 14 Aug 2018 01:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534236782; cv=none; d=google.com; s=arc-20160816; b=FDPYOTORX2zpoz9w65sc5pCqIEL11t20P7KMDMZ9VuATgR6JXP/cXTz+QRGsq7k8Au FM5l5Ebp8qPXbv/6fkzjMX3ShdsGm6qQ5ZsUNArVp/p80cOAHeql2No8w4haoEFCUgEw 9Gt6TbvWU84hfAop6p4YqXrpLR/4582s1WbPSrNqz9CrKp+ObvDr5nBfES00DJ/BEsK+ gDlaclDyWqcSnfG2sp7M3Zev4Snj78+6NSmNj7p19Suzvf0f7I1+aOxuHXeYKI2SRdNR lAOsILBYJgdknCQjyJU2C/ZzjPh3qC+QYWUmMw6h5tswDuONT4pbpQuJ8Hj/wQbtQoZH TChg== 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=IzxEkDkOTfaqvi3MKnGRmZ85XUZ+IqOGPEumUG1msaQ=; b=KXVSK3G5HTiTeburVBxidth7JElt1JjtHLKbWrbO5xP9vXoEE6fJG/aDLWBMkiuovV T31fmiNex8WfpyOuNvd4EQWCRFhzGfut71e/DRSpVHY6XFRqZ5lb9IoEl1YIOA53tdLS SVl0RoR6S0JyWwLjgA1/TCQc1XXfeXuNSgPQDLI1zR2TdNBHg40XhyodtqtfRQvabHeS orOiN7Y/UDkO5yKzhX4qvIyIus/sxq53HS4DHWPGJcXm20/+N5W3tjaiGiHDzHsmyXDV mfPQ8rdzjQPuvs/JU+j8y3JXO+akGaiwIQwpFEJeGxRPXd1uxq5erGQh3SSQpWGJaQdR rI9g== 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 184-v6si20714224pgb.587.2018.08.14.01.52.47; Tue, 14 Aug 2018 01:53:02 -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 S1731493AbeHNLg2 (ORCPT + 99 others); Tue, 14 Aug 2018 07:36:28 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59336 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727701AbeHNLg1 (ORCPT ); Tue, 14 Aug 2018 07:36:27 -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 3E6BCC12A4; Tue, 14 Aug 2018 08:50:15 +0000 (UTC) Received: from gondolin (ovpn-117-136.ams2.redhat.com [10.36.117.136]) by smtp.corp.redhat.com (Postfix) with ESMTP id 810822026D7E; Tue, 14 Aug 2018 08:50:06 +0000 (UTC) Date: Tue, 14 Aug 2018 10:50:03 +0200 From: Cornelia Huck To: Tony Krowiak Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, borntraeger@de.ibm.com, kwankhede@nvidia.com, bjsdjshi@linux.vnet.ibm.com, pbonzini@redhat.com, alex.williamson@redhat.com, pmorel@linux.vnet.ibm.com, alifm@linux.vnet.ibm.com, mjrosato@linux.vnet.ibm.com, jjherne@linux.vnet.ibm.com, thuth@redhat.com, pasic@linux.vnet.ibm.com, berrange@redhat.com, fiuczy@linux.vnet.ibm.com, buendgen@de.ibm.com, frankja@linux.ibm.com, David Hildenbrand , Tony Krowiak Subject: Re: [PATCH v9 05/22] KVM: s390: vsie: simulate VCPU SIE entry/exit Message-ID: <20180814105003.290cf5f1.cohuck@redhat.com> In-Reply-To: <1534196899-16987-6-git-send-email-akrowiak@linux.vnet.ibm.com> References: <1534196899-16987-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1534196899-16987-6-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.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 14 Aug 2018 08:50:15 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 14 Aug 2018 08:50:15 +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 Mon, 13 Aug 2018 17:48:02 -0400 Tony Krowiak wrote: > From: David Hildenbrand > > VCPU requests and VCPU blocking right now don't take care of the vSIE > (as it was not necessary until now). But we want to have VCPU requests > that will also be handled before running the vSIE again. > > So let's simulate a SIE entry when entering the vSIE loop and check > for PROG_ flags. The existing infrastructure (e.g. exit_sie()) will then > detect that the SIE (in form of the vSIE execution loop) is running and > properly kick the vSIE CPU, resulting in it leaving the vSIE loop and > therefore the vSIE interception handler, allowing it to handle VCPU > requests. > > E.g. if we want to modify the crycb of the VCPU and make sure that any > masks also get applied to the VSIE crycb shadow (which uses masks from the > VCPU crycb), we will need a way to hinder the vSIE from running and make > sure to process the updated crycb before reentering the vSIE again. > > Signed-off-by: David Hildenbrand > Signed-off-by: Tony Krowiak > Reviewed-by: Pierre Morel > --- > arch/s390/kvm/kvm-s390.c | 9 ++++++++- > arch/s390/kvm/kvm-s390.h | 1 + > arch/s390/kvm/vsie.c | 20 ++++++++++++++++++-- > 3 files changed, 27 insertions(+), 3 deletions(-) I think that is the RFC version of David's patch, not the v1? Again, not really relevant for reviewing, but I hope that you test the final version.