Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2090842ybv; Fri, 21 Feb 2020 08:43:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyPOdEuo9JV0Z9q53jZkXWMmNP+u8TpqHqcDz3UKzUNZPbEN9RjRio8Kafgb3zu2NGot12C X-Received: by 2002:a9d:22:: with SMTP id 31mr27228971ota.173.1582303395710; Fri, 21 Feb 2020 08:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582303395; cv=none; d=google.com; s=arc-20160816; b=zrswVbZpK4eyzZaBmL0pzC62Jpk8l111+gk4JKRnkPvJYIAWDUrwRrOv9SpqHtO6JR t17lMUNCB8WTlsbcRQCtYREGQFe5aT5bJ1HFn71tRWZu3qYWnOjicoigtt13qes6w3Ak yKc1JvWczdsa8cXmpH/hy++jJR3HA9uA6a7C556ju3sYvhoJMcLZmjSJz+2CCcreoMqz +NdBsbvgIBm15CWUfCBrgQj1FLxtOM7BcjYTI/coR1YRitrprHUnCoR4raRM+G52RztH HiXUgvSl7Zu8uDjSVpRJBkdwF3jOdJIYyl8xMFp1JpA+lTxWjuU2mYfTfhyUGUy9AQFj dWCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=q7gs2Yev+rmTYi26GmsS0tr1fKtMRL809Za4YZjR210=; b=QLR7UI4KI5S/97Tojs8MOyQ7TKoYoZ1Y/sNJO8jp6gyIlct2dnA6Q5hAmJJjon8H+l oSfGoiA0N6IW32+chfZQsGBhzotCFX/JTXNh8TKrXQHKWGhHhg2dyY+nOE0tcsfz3XTF dO9Iqqvb/Yd2uGWKvnt2N1RLqkq69NA5hGuvR7ls5foLbsEbmIY325a0398XT7eudli9 zf+PpsKo7XrPzeYVADLJ2ZFosaYpPideDBcYE1ZSq6MDH1IIRO0kSSpnlNZnsjREZv1D fyBXt14b7U++1wxP9NtZEU+mgE1yQfXOkTfylE0PDCE3kgeit7X7+L/ZliTnqGJ6K78h LD9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si1590486otg.309.2020.02.21.08.43.03; Fri, 21 Feb 2020 08:43:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbgBUQlz (ORCPT + 99 others); Fri, 21 Feb 2020 11:41:55 -0500 Received: from verein.lst.de ([213.95.11.211]:56431 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgBUQlz (ORCPT ); Fri, 21 Feb 2020 11:41:55 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 8193268BFE; Fri, 21 Feb 2020 17:41:51 +0100 (CET) Date: Fri, 21 Feb 2020 17:41:51 +0100 From: Christoph Hellwig To: "Michael S. Tsirkin" Cc: Halil Pasic , Jason Wang , Marek Szyprowski , Robin Murphy , Christoph Hellwig , linux-s390@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Christian Borntraeger , Janosch Frank , Viktor Mihajlovski , Cornelia Huck , Ram Pai , Thiago Jung Bauermann , David Gibson , "Lendacky, Thomas" , Michael Mueller Subject: Re: [PATCH 0/2] virtio: decouple protected guest RAM form VIRTIO_F_IOMMU_PLATFORM Message-ID: <20200221164151.GD10054@lst.de> References: <20200220160606.53156-1-pasic@linux.ibm.com> <20200220163055-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200220163055-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 20, 2020 at 04:33:35PM -0500, Michael S. Tsirkin wrote: > So it sounds like a host issue: the emulation of s390 unnecessarily complicated. > Working around it by the guest looks wrong ... Yes. If your host (and I don't care if you split hypervisor, ultravisor and megavisor out in your implementation) wants to support a VM architecture where the host can't access all guest memory you need to ensure the DMA API is used. Extra points for simply always setting the flag and thus future proofing the scheme.