Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp391319ybt; Wed, 17 Jun 2020 03:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0keyUBtXWTCEGoFRHHAa+agcjPZp3fY9d8Oj4yn8URu4eiitYL1PS4x4Zp54r3TEY5HcZ X-Received: by 2002:a05:6402:221b:: with SMTP id cq27mr6501021edb.302.1592390988553; Wed, 17 Jun 2020 03:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592390988; cv=none; d=google.com; s=arc-20160816; b=vMjMNjiOz3e4ku6PrOvquwnUj9ymKt5BZX5I9Fjh3qQn8QSo1ap6p9UCxTZBhQ9p70 ZPugIrlZhYXBxnhbIIC5I3T2sC77Y2TW8FMJ8XhmTLF8QRK9Tax7jPfnEzNuipqAlXbl meLQZckvtLTyVbTbGhEFj4nUnOS5d88tSK2JfNhEp7fDfNt7Vyk4ORN2/XQDpSgxRXLC mZipsf+/lEcQUwrzMfvOCOE+aj0tG895RPER1af9stwDg8CYflpP4Il5k2qcFGgmDbJD bJh8E6HSn5hhsCUrV0AXl9G96ZjJOauPrQtBzxLWB8Uje+V3lEo/3mLkEpjJ2DCl3qt6 8lTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=J4a9qoyt/TBDGOUuRPZM2RLK05MGqDEKMZlbDTDXShE=; b=wrf16VaSRwrT+JHseBGJySmcuhXRLnuTwv9JvDvULLPLQLQ3Spo+z0uH1/ynB5zxYC /6Wjee36ntMPKdWO/ZmrxJham1SC3nLLZOOYV1ovLE+dioL3vEjaejl+Ev1Y7CfhTIJv AxWMF2OugNarATHF4mDcJw6pX3a5v7+QG8wwOIWq63daQ1+v8OOQ9eUSX5skOKT7c/tG TTB3W6FQMzYHRTSLOmkjGi8mDzPlvsUc7oVIoJVRBKwQUAyG1NcE6PFRt5L1AaObm+dD yPcQkTNzxiOKgN7k3BTzRsebDZLGMwcT+TR6Cko19IDz4MqC1c/pWODecYRwDJOtLph1 b16g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 y14si12375662edu.550.2020.06.17.03.49.26; Wed, 17 Jun 2020 03:49:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbgFQKoN (ORCPT + 99 others); Wed, 17 Jun 2020 06:44:13 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:11084 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgFQKoM (ORCPT ); Wed, 17 Jun 2020 06:44:12 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05HAY1sx006314; Wed, 17 Jun 2020 06:44:05 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31q6j3hjdr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jun 2020 06:44:05 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05HAYdrw008682; Wed, 17 Jun 2020 06:44:04 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 31q6j3hjcq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jun 2020 06:44:04 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05HAZkY4002574; Wed, 17 Jun 2020 10:44:02 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 31q6ch8v48-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jun 2020 10:44:02 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05HAhxAv47448264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jun 2020 10:43:59 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 57E9D52051; Wed, 17 Jun 2020 10:43:59 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.186.32]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 78A9E5204E; Wed, 17 Jun 2020 10:43:58 +0000 (GMT) From: Pierre Morel To: linux-kernel@vger.kernel.org Cc: pasic@linux.ibm.com, borntraeger@de.ibm.com, frankja@linux.ibm.com, mst@redhat.com, jasowang@redhat.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.linux-foundation.org, thomas.lendacky@amd.com, david@gibson.dropbear.id.au, linuxram@us.ibm.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com Subject: [PATCH v3 0/1] s390: virtio: let arch choose to accept devices without IOMMU feature Date: Wed, 17 Jun 2020 12:43:56 +0200 Message-Id: <1592390637-17441-1-git-send-email-pmorel@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-17_03:2020-06-17,2020-06-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 phishscore=0 clxscore=1015 cotscore=-2147483648 suspectscore=1 spamscore=0 mlxscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=577 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006170083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org An architecture protecting the guest memory against unauthorized host access may want to enforce VIRTIO I/O device protection through the use of VIRTIO_F_IOMMU_PLATFORM. Let's give a chance to the architecture to accept or not devices without VIRTIO_F_IOMMU_PLATFORM. Pierre Morel (1): s390: virtio: let arch accept devices without IOMMU feature arch/s390/mm/init.c | 6 ++++++ drivers/virtio/virtio.c | 22 ++++++++++++++++++++++ include/linux/virtio.h | 2 ++ 3 files changed, 30 insertions(+) -- 2.25.1 Changelog to v3: - add warning (Connie, Christian) - add comment (Connie) - change hook name (Halil, Connie) to v2: - put the test in virtio_finalize_features() (Connie) - put the test inside VIRTIO core (Jason) - pass a virtio device as parameter (Halil)