Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2404893ybt; Tue, 16 Jun 2020 05:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCCXd16BxjqFeL9XyQNjaalhSJclwFdNj4kjX3yOojkXaJJiQ+fGhvBXQ4IvGNaS8oOwFL X-Received: by 2002:a05:6402:306f:: with SMTP id bs15mr2357613edb.331.1592310268580; Tue, 16 Jun 2020 05:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592310268; cv=none; d=google.com; s=arc-20160816; b=x8TKBAU4G+gqJBoulvCIahWEinFf5H/OyAX0N8f6uXytF6ZJ1pRbU7ZzPQR87y1O6I sGySmx2mms+zvvXw1knL7zK4t8iTojQFwwmi+/3v4RbgUqu4rdhDxtPUQ0hROFJGMbgd dJA3PsIRriyZ6TfFDRXSmqr247If+0fh4J6RcDbKyAgeJ7n3wEeS+CVGVzyHVmSGy+I1 in7zpNJJBgdD5LwXnaj5ZOZyyI4ZDfMVVOVOCZTEHGgo70S65sVdEPYq2nMkc6OD/nLx Da2lZMPrZzM7eFiCdZyBMp75tjwoiFGVp52gVyiFA3EhTZztwozN2rgo9r+MrCuWr9NC SIyA== 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:dkim-signature; bh=00I+rEnL5zfE1rppZBUcq4cMNwu7+BKdrw9mfoX5yzY=; b=eNay9rOiDtWlFiMXMB/UH69aIgdWcSkuXUpVcsl0wStKgU5nmdQw7YXlxTLSbNIP2C xwaxyX4ADyeZxjI2JQuCDg0nVgGHcqf0XnTgImPYpOX50Hx/bIQXJQyktt3VO76jslPP wzNsjqGgu6SYUBnv2P9i3uIBn3F5C29aRViGcY/Wt66YNWCl0k8QNwOSmDXIs7xBVK5w a8lLFtMM4ykVunCAN3LPkFl8JPG2HFYu2vQmBTIcEyY3XSBP5RkxKCwiUp3hvsRWdbjg q7igffMrGeuaWTtbK0ToA9+yopHA03t9nbAizYAJZ1WNCPc0kJBU+V/C5jKKAw4wq62h UYOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iahQORBl; 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 u9si10176925edl.529.2020.06.16.05.24.05; Tue, 16 Jun 2020 05:24:28 -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=@redhat.com header.s=mimecast20190719 header.b=iahQORBl; 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 S1728549AbgFPMU0 (ORCPT + 99 others); Tue, 16 Jun 2020 08:20:26 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:43061 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725901AbgFPMUZ (ORCPT ); Tue, 16 Jun 2020 08:20:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592310024; 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=00I+rEnL5zfE1rppZBUcq4cMNwu7+BKdrw9mfoX5yzY=; b=iahQORBlMM6V4IaSGqpPrHAeHx5CD4ooWE4758TP+vQNLbGODPji3sPUgs73v3+8Bvjtq1 DL2E5MFlxcxMGpS1pCRigUHFt3LssR5hOwWB0ESvuQrvfaf2LChW2P2HcZgQIEAwIE8/Vw R2Md89JSSh6bQrgoD9+XzQ8FRd+l0WA= 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-92-YKyVA7qMMvCdTaMTQoDbVg-1; Tue, 16 Jun 2020 08:20:20 -0400 X-MC-Unique: YKyVA7qMMvCdTaMTQoDbVg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8DD41835B5A; Tue, 16 Jun 2020 12:20:18 +0000 (UTC) Received: from gondolin (ovpn-112-222.ams2.redhat.com [10.36.112.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id CCE957CAA5; Tue, 16 Jun 2020 12:20:12 +0000 (UTC) Date: Tue, 16 Jun 2020 14:20:10 +0200 From: Cornelia Huck To: Pierre Morel Cc: Halil Pasic , linux-kernel@vger.kernel.org, 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, thomas.lendacky@amd.com, David Gibson , Ram Pai , Heiko Carstens , Vasily Gorbik Subject: Re: [PATCH v2 1/1] s390: virtio: let arch accept devices without IOMMU feature Message-ID: <20200616142010.04b7ba19.cohuck@redhat.com> In-Reply-To: References: <1592224764-1258-1-git-send-email-pmorel@linux.ibm.com> <1592224764-1258-2-git-send-email-pmorel@linux.ibm.com> <20200616115202.0285aa08.pasic@linux.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.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Jun 2020 12:52:50 +0200 Pierre Morel wrote: > On 2020-06-16 11:52, Halil Pasic wrote: > > On Mon, 15 Jun 2020 14:39:24 +0200 > > Pierre Morel wrote: > >> @@ -162,6 +163,11 @@ bool force_dma_unencrypted(struct device *dev) > >> return is_prot_virt_guest(); > >> } > >> > >> +int arch_needs_iommu_platform(struct virtio_device *dev) > > > > Maybe prefixing the name with virtio_ would help provide the > > proper context. > > The virtio_dev makes it obvious and from the virtio side it should be > obvious that the arch is responsible for this. > > However if nobody has something against I change it. arch_needs_virtio_iommu_platform()? > > > > >> +{ > >> + return is_prot_virt_guest(); > >> +} > >> + > >> /* protected virtualization */ > >> static void pv_init(void) > >> {