Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1163980pxb; Fri, 21 Jan 2022 11:12:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEWgBxSxl3Stap4705Vsq156NECrgpvrzx/LW/Cg+2dybdLKL4ztDZfMAF7RSW/ENsg+QV X-Received: by 2002:a63:a84e:: with SMTP id i14mr3945699pgp.159.1642792347381; Fri, 21 Jan 2022 11:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792347; cv=none; d=google.com; s=arc-20160816; b=KJvNqBYA6MjOY4JJ+rEap5L2gTJ73gyJxk/z9L2heHgN3L/Vb2EsvSl/OCWtcHN+To /Nqny2krSUCLbeGcI54bjgcEncdvYRVUMpkAgRTJUlJZ8XWoM2iM1M6iN0dL9ARJ69xY Sy4L1n3N+luivVpD5oLVmbbEFTfk10N2Piyd0gu5+IZFCD0AYKzvb9YP9UBO0eNsMHic r7BxqQ4u01DpkC+y1CqaLemax9qSC5+mlKYzr/Mrcb4DbptSnT95iwjxM07WgDB8W3sW bNDS4MS5ZgErtEgU3jo5FzMYXqXBLyhVJhp2HaktvE/MjGMPWWoiyXGkGK1p8pYByCIb VHqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=J9Mk8x6h3+3pv2pI2IYU/SKL9nrxKC/9/vUTNplQZ3o=; b=boQf7ZNVxNH/6KXuRMUlYSUesVCVKNUrIc0IIfwpyv3nA6gjK6aBcao8iqIqd8sMPK br06mScjTIu+VvztsLGjbPrOgFeTPw4BYDCXeNui/WiuoR7B4wMhjgiKmKna3gtDi+uB g4NyYnarbOLFsQNbelHnBH/3ih/ZNf/h3MIj6wy1DMQg+FBK8lAQfcQIXvN1VxMc3+vR WM/NmbZmxNPttuc+OFGiRN+3h/RCgy2e6l09fZlhmvKxUDvtU0AfIrg9X1vQaRiIM4gC 3KRtjU1J/+n48L3YgkvRkQwxNodTxY10E9XTqPvqtuCju4yFdrbeeUKPhN7OGqILK5g+ 1m6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H1ff2Q8x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si8534068pfl.166.2022.01.21.11.12.14; Fri, 21 Jan 2022 11:12:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H1ff2Q8x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354361AbiASLxH (ORCPT + 99 others); Wed, 19 Jan 2022 06:53:07 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:38942 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354362AbiASLxD (ORCPT ); Wed, 19 Jan 2022 06:53:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642593183; 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; bh=J9Mk8x6h3+3pv2pI2IYU/SKL9nrxKC/9/vUTNplQZ3o=; b=H1ff2Q8x3eJKRfsW7cLCwPjgLenuFrFsgXf1bbGZS+BB18o9znPW/XqAaIlHD1dLjIumEM 7GFdj5PBlXfU67kNnZ3n0XFczLWlH8Fj5rbfkV/tWHDaJv6HhYJYpLGHv/f9shkoteX20n F7DemMhGOut4CdMVCsK0W2m1Y5LZ33s= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-653-A326b2DpPFSjLq6WDxSYRw-1; Wed, 19 Jan 2022 06:53:02 -0500 X-MC-Unique: A326b2DpPFSjLq6WDxSYRw-1 Received: by mail-wm1-f72.google.com with SMTP id 14-20020a05600c024e00b0034a83f7391aso1744702wmj.4 for ; Wed, 19 Jan 2022 03:53:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=J9Mk8x6h3+3pv2pI2IYU/SKL9nrxKC/9/vUTNplQZ3o=; b=uMYyq3KG55A9CA2df+fVMIpGo4QfnZuhF18wiFKkZ7D8zpmQCdCGdjaxOGknHumcUL lcvPBsCRvJq/p3DzAc1AxAf/3hGJeEj6IJSSgxMDNwUvXHVckQBgG00z4QSdpmRhcF0P 7nKVJ74mhbxtVG8DZT5IQGuAspEreX4z8x72eT3KOW4+5zkQoRVunUfcS1udxrfPPval PQQsysPNl14Njety9XzoliiUfMS7yrw8KxXrZefleZLJifOJeYUfpqdw0FwjP+NXVzUE fnm5uHSyAkgfdFfsCePBRLQYmVJIqAdGQovctwiTWLwe4et1xwakyps+yh8FmGunkAH6 6nKQ== X-Gm-Message-State: AOAM531EhYqlEENsjlmm6q5WdwmTzYi9IYSgiP0fSx7OaYYI8cjeWpU/ A7rZ0RN2MNhedPNvgNRgvuRyClMTO7yk/Cg3ZoCCFkGFhey7qSoeUrDPtjs7rDmJSWwBH4WbHdI +OIoOdXW4rDxLl9wCAuLCic9S X-Received: by 2002:a5d:690c:: with SMTP id t12mr29073772wru.536.1642593180966; Wed, 19 Jan 2022 03:53:00 -0800 (PST) X-Received: by 2002:a5d:690c:: with SMTP id t12mr29073761wru.536.1642593180763; Wed, 19 Jan 2022 03:53:00 -0800 (PST) Received: from [192.168.8.100] (tmo-096-151.customers.d1-online.com. [80.187.96.151]) by smtp.gmail.com with ESMTPSA id l13sm5267757wmq.22.2022.01.19.03.52.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jan 2022 03:53:00 -0800 (PST) Message-ID: Date: Wed, 19 Jan 2022 12:52:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [RFC PATCH v1 06/10] KVM: s390: Add vm IOCTL for key checked guest absolute memory access Content-Language: en-US To: Janis Schoetterl-Glausch , Christian Borntraeger , Janosch Frank , Heiko Carstens , Vasily Gorbik Cc: David Hildenbrand , Claudio Imbrenda , Alexander Gordeev , kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220118095210.1651483-1-scgl@linux.ibm.com> <20220118095210.1651483-7-scgl@linux.ibm.com> From: Thomas Huth In-Reply-To: <20220118095210.1651483-7-scgl@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/01/2022 10.52, Janis Schoetterl-Glausch wrote: > Channel I/O honors storage keys and is performed on absolute memory. > For I/O emulation user space therefore needs to be able to do key > checked accesses. Can't we do the checking in userspace? We already have functions for handling the storage keys there (see hw/s390x/s390-skeys-kvm.c), so why can't we do the checking in QEMU? Thomas