From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 866A4C33CB2 for ; Fri, 31 Jan 2020 11:44:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50D3B20705 for ; Fri, 31 Jan 2020 11:44:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bQvNBK2M" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728499AbgAaLoR (ORCPT ); Fri, 31 Jan 2020 06:44:17 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34254 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728428AbgAaLoR (ORCPT ); Fri, 31 Jan 2020 06:44:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580471056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp; bh=qQon9H8oirA0BfQXr/ZQWuhlqVRCE1JMZ5FOC58Vsj8=; b=bQvNBK2M0lruF/RafwwUc9ztrVj/BmhlNP5hHbycFszS5/2JjQ5gCwocH3pCgTXPHLx4Xm 9dD+eD33AHhouYzNiwyxB78Sd25VjJioVQsEzzZDK80WGlUtr2tUVvtEXwKvqxF39eWfgJ 6bj3wqrKbm/Ns/bLs4YP5MtxliFuRnw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-347-Bxrlac-vONe8hpsGwbdSQA-1; Fri, 31 Jan 2020 06:44:12 -0500 X-MC-Unique: Bxrlac-vONe8hpsGwbdSQA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D0CB4800D48; Fri, 31 Jan 2020 11:44:10 +0000 (UTC) Received: from thuth.remote.csb (ovpn-116-176.ams2.redhat.com [10.36.116.176]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2AE4ACFC1; Fri, 31 Jan 2020 11:44:06 +0000 (UTC) Subject: Re: [PATCH v10 3/6] KVM: s390: Add new reset vcpu API To: Janosch Frank , kvm@vger.kernel.org Cc: borntraeger@de.ibm.com, david@redhat.com, cohuck@redhat.com, linux-s390@vger.kernel.org References: <20200131100205.74720-1-frankja@linux.ibm.com> <20200131100205.74720-4-frankja@linux.ibm.com> From: Thomas Huth Openpgp: preference=signencrypt Message-ID: <7e36cbd4-3f37-8509-400e-c2c708281aeb@redhat.com> Date: Fri, 31 Jan 2020 12:44:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200131100205.74720-4-frankja@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 31/01/2020 11.02, Janosch Frank wrote: > The architecture states that we need to reset local IRQs for all CPU > resets. Because the old reset interface did not support the normal CPU > reset we never did that on a normal reset. > > Let's implement an interface for the missing normal and clear resets > and reset all local IRQs, registers and control structures as stated > in the architecture. > > Userspace might already reset the registers via the vcpu run struct, > but as we need the interface for the interrupt clearing part anyway, > we implement the resets fully and don't rely on userspace to reset the > rest. > > Signed-off-by: Janosch Frank > Reviewed-by: Cornelia Huck > Reviewed-by: Christian Borntraeger > --- > Documentation/virt/kvm/api.txt | 43 +++++++++++++++++ > arch/s390/kvm/kvm-s390.c | 84 +++++++++++++++++++++++----------- > include/uapi/linux/kvm.h | 5 ++ > 3 files changed, 105 insertions(+), 27 deletions(-) Reviewed-by: Thomas Huth