Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2274710pxa; Fri, 7 Aug 2020 07:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPGRSLTfzwUk1vAAa4IRZJX3A9uu0KgX3x+tg8+v5MXinLY0rHM/JC7JnkzPTifEGg9Gt+ X-Received: by 2002:a17:906:a413:: with SMTP id l19mr9798171ejz.15.1596810422719; Fri, 07 Aug 2020 07:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596810422; cv=none; d=google.com; s=arc-20160816; b=Ysk2hvZRVDLtpVFGFpeVAmwP9rVVAgBtIEs8Cutyh8i2VDi+Htnq1TKrncov5HFBD8 2jl/BP4IYY/3eDFZYGbG0xU2D7TRLUt+I95GZIwkr8bIV6kI1qgPGyHySDM2J94PPS/J ucnqtkLnsa+0yI1GQMl7+O/mWwdeimGF1In0Ku+xW8Kc6YDECglxy6iEu/V5w5uYwTr/ GjcdWJuB8R2GEVPQhtoeZPjuN7OlEFRHCFUaKOHvj4fNROgktqMejedYZkWHozPVdsUU eKU9ee/w6jMACLRn+YCJotdDyp8xb/N8w39UnshcrdWwponViH9gfYaVpgF07XglaI9V oxhg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=12G63m6nNUgCxJtOgPkzXIunifSEIVC0Gdm1Kr5ju1s=; b=CFuAataFtCu5KB+iSyhXCbhYaf9o9Lc85NEcd5iDIIJPEzdNMMhnuFaafaaJFnokGw mRyjgZ+iCfI1Dl0LY8JV+qnbmK+TFCFoK4aqeFMQ6dv+9jIFOLbDKdUSCQOfIkMeNXT6 9tXGj4Fagky8dIBTZfYHBq8JWcsqMKr6ApFDM0EkQH0z1BBsZOn7XgHL5vVOD1ELw/qV 9YlcOtrhaqcGLhYHN/gdFFoy8cj3s6C8j5exBujWne3EbIIyP1gyIy6gmN6eHrWTmeit DkhojzZKZ8JtMTxI7RFJUlpuasA16oL0D9zO9HdnkzTdmAFjCXFbxtu+vNGVivcpKvP5 Wwmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gr1HUEKm; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt15si5676984ejb.319.2020.08.07.07.26.36; Fri, 07 Aug 2020 07:27:02 -0700 (PDT) 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=@ibm.com header.s=pp1 header.b=gr1HUEKm; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726131AbgHGO0J (ORCPT + 99 others); Fri, 7 Aug 2020 10:26:09 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:15584 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725815AbgHGO0I (ORCPT ); Fri, 7 Aug 2020 10:26:08 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 077E2T5P039928; Fri, 7 Aug 2020 10:26:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=12G63m6nNUgCxJtOgPkzXIunifSEIVC0Gdm1Kr5ju1s=; b=gr1HUEKms1mv9AqL8ggWBTQ58s6WG7idRLg+G/5EbIth69Vzb1RwDBvx7GuBVAvIAc2e jyrbQs+u23QTMTB+B9TmkEB82i89neQl2WmuvneCBAM0oj3S2bVoj7Js4P4HevHYaEzG /2/k6PU1irClBB47uqMWftd5uG63SjV4BGaunLzN9U6YvY1PcZ56UeMzlWXneEqLk9FP NlbovIg0e/R1hSDtymap1SjMxOWMzlq9TXpaQ38yOELsJPbj2xD1Wo/yQe+2O7bm3iua 9zPo2X2wBvNs8qvF74Hl1WF26G21yLm4qDFAmrU6eXnTGmWY1XYi8cCNyOwoQJ3+0PSr BA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 32rjd9xnkx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Aug 2020 10:26:06 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 077E2iMk041530; Fri, 7 Aug 2020 10:26:05 -0400 Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com with ESMTP id 32rjd9xnjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Aug 2020 10:26:05 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 077EPlOT020463; Fri, 7 Aug 2020 14:26:02 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma02fra.de.ibm.com with ESMTP id 32n018c4tg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Aug 2020 14:26:02 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 077EPxl326214762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Aug 2020 14:26:00 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD1AE42042; Fri, 7 Aug 2020 14:25:59 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 51C974203F; Fri, 7 Aug 2020 14:25:59 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.47.252]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 7 Aug 2020 14:25:59 +0000 (GMT) Subject: Re: [PATCH v1 0/1] s390: virtio-ccw: PV needs VIRTIO I/O device protection To: Cornelia Huck Cc: linux-kernel@vger.kernel.org, pasic@linux.ibm.com, borntraeger@de.ibm.com, frankja@linux.ibm.com, mst@redhat.com, jasowang@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.linux-foundation.org References: <1596723782-12798-1-git-send-email-pmorel@linux.ibm.com> <20200806174744.595b9c8c.cohuck@redhat.com> From: Pierre Morel Message-ID: <7a79725f-14d9-5b1a-f0e0-77c3ce596420@linux.ibm.com> Date: Fri, 7 Aug 2020 16:25:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200806174744.595b9c8c.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-07_09:2020-08-06,2020-08-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 mlxlogscore=999 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008070097 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-06 17:47, Cornelia Huck wrote: > On Thu, 6 Aug 2020 16:23:01 +0200 ... > This does work, and I'm tempted to queue this patch, but I'm wondering > whether we need to give up on a cross-architecture solution already > (especially keeping in mind that ccw is the only transport that is > really architecture-specific). > > I know that we've gone through a few rounds already, and I'm not sure > whether we've been there already, but: > > Could virtio_finalize_features() call an optional > arch_has_restricted_memory_access() function and do the enforcing of > IOMMU_PLATFORM? That would catch all transports, and things should work > once an architecture opts in. That direction also shouldn't be a > problem if virtio is a module. Yes thanks, I rework it in this direction. -- Pierre Morel IBM Lab Boeblingen