From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 698D3C43457 for ; Tue, 20 Oct 2020 08:07:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A77BD2173E for ; Tue, 20 Oct 2020 08:07:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="VziYE4P3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A77BD2173E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BAF316B005C; Tue, 20 Oct 2020 04:07:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B84D36B0062; Tue, 20 Oct 2020 04:07:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9FF766B0068; Tue, 20 Oct 2020 04:07:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0148.hostedemail.com [216.40.44.148]) by kanga.kvack.org (Postfix) with ESMTP id 706DC6B005C for ; Tue, 20 Oct 2020 04:07:34 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0B2A71EE6 for ; Tue, 20 Oct 2020 08:07:34 +0000 (UTC) X-FDA: 77391574428.09.meal00_3f04f262723e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id D3CCE180AD811 for ; Tue, 20 Oct 2020 08:07:33 +0000 (UTC) X-HE-Tag: meal00_3f04f262723e X-Filterd-Recvd-Size: 2765 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Tue, 20 Oct 2020 08:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fgCdhypOjfDbt584ZfkSdLJULkd2bbMgis0CS12tEyw=; b=VziYE4P3JGjqHtlzn0AdaGeJrd McrlNMmB8cf/izSwrVci5qulwjBKLMa5a2Tc1gBCbQBsAPZifvrpqb2y65VsDdsVdouWEwXaFrwJP GYCwdSZJjilnpY4G7W1g104uAhk82dy7JdupJsdV9DK0UYgZacJRxQq6XlHz4fKZEQZUI42xlMZsK jHAy404KiZsZs+3LzhDMr44qv05oJ1l9y2eC3QH1onpuEfue/FfBGTvyDLkP5rFCke9ooJBuRZ7WU 8WpzT1TSJkjsE8R7BVj+YAvQqhUC4vIW13malxk/YAh8dEI3T6e6Dqa3X8Cr/ZARZWL6xDV+j+C/l Ib2iFNzw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUmfa-0005nX-2U; Tue, 20 Oct 2020 08:06:58 +0000 Date: Tue, 20 Oct 2020 09:06:58 +0100 From: Christoph Hellwig To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , David Rientjes , Andrea Arcangeli , Kees Cook , Will Drewry , "Edgecombe, Rick P" , "Kleen, Andi" , Liran Alon , Mike Rapoport , x86@kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [RFCv2 05/16] x86/kvm: Make VirtIO use DMA API in KVM guest Message-ID: <20201020080658.GA21238@infradead.org> References: <20201020061859.18385-1-kirill.shutemov@linux.intel.com> <20201020061859.18385-6-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020061859.18385-6-kirill.shutemov@linux.intel.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: NAK. Any virtio implementation that needs special DMA OPS treatment needs to set the VIRTIO_F_ACCESS_PLATFORM bit. The only reason the Xen hack existst is because it slipped in a long time ago and we can't fix that any more.