From patchwork Mon Nov 28 15:51:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aviv B.D." X-Patchwork-Id: 9449723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2FB67600CB for ; Mon, 28 Nov 2016 15:54:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E59A27D7F for ; Mon, 28 Nov 2016 15:54:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12F0A27DA4; Mon, 28 Nov 2016 15:54:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C0B6627D7F for ; Mon, 28 Nov 2016 15:54:22 +0000 (UTC) Received: from localhost ([::1]:59601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBOG5-000174-SS for patchwork-qemu-devel@patchwork.kernel.org; Mon, 28 Nov 2016 10:54:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBOFR-00013D-Hu for qemu-devel@nongnu.org; Mon, 28 Nov 2016 10:53:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBOFQ-0008Tm-Pz for qemu-devel@nongnu.org; Mon, 28 Nov 2016 10:53:41 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:34623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBOFQ-0008TI-Jd for qemu-devel@nongnu.org; Mon, 28 Nov 2016 10:53:40 -0500 Received: by mail-wj0-f195.google.com with SMTP id xy5so14629577wjc.1 for ; Mon, 28 Nov 2016 07:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lrkNJz0HpJHInITqHjb+JvybanHlk4exadoLzBNT294=; b=Rw9xT/wIhC4AOLssaylh+IngiizqnLUiIJyWjrcXAsGXxHKFbKDLEcerT+i/MwYiMF zccZDYboAHphdTum9+y5AZJW90ldUWVlOu67yCdiO5xreCtCyIzKb+VkshqQGT9NlMdH W+q0g4ip2GIDhEaZHaqmlXGtU/UnDTLZjLqnNZDidWdQmVr6vFXxz4uXt2wtTBIHXjPv 4pnisi5XhDxDr2Hh4sOVcv7U9jZOL/Ghc09Dng1wqpEl+dectUeVz6WpebYpQzvx8xAE 85D71eGneOY5bi52a3JTCHxbJbDHsgu2PtIkVGzLRoW6Z3X+iBNUYQ8TPV5deBK4M33L ++4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lrkNJz0HpJHInITqHjb+JvybanHlk4exadoLzBNT294=; b=KOxQnRjf9qskT9nct6VSb/j1jUo1wgU6SODcTnXusylD5h39FBHAzreNyRO5nNwr13 JVPqQ7kZayoBhc3jmL3eZz6AOJVmJX2Fqt23RKosqytzITOmOF2aRor0NNLVYyzmSOnd xRWk3SfxwvXSuAttssYfB/S5yEg1PsqHLy1I+vhUy852sfzgf9QXzCaYlF+de8USc9ce 0QGSFklw9wndM0gPsFYotllrEwaiKKPwU5rh99JSHZw3uSzSz0vHpaiPmr/EaslYWG42 FcpsC80URg64bufacoGxz4nF6PNxkOtNq5aFxU7QTI6Yv0qB3rkRZUrBzIi7ZvPmBeZc igAg== X-Gm-Message-State: AKaTC016Hp7njSqYMremLBYjPVwOFD1bMmpQGFjYj7pNQU7baOxlgzxf9y7ERrNGda+0jg== X-Received: by 10.194.98.208 with SMTP id ek16mr22931228wjb.94.1480348359408; Mon, 28 Nov 2016 07:52:39 -0800 (PST) Received: from tapuz2.cslcs.technion.ac.il (tapuz2.cslcs.technion.ac.il. [132.68.206.212]) by smtp.gmail.com with ESMTPSA id jm6sm63173534wjb.27.2016.11.28.07.52.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Nov 2016 07:52:38 -0800 (PST) From: "Aviv B.D" To: qemu-devel@nongnu.org Date: Mon, 28 Nov 2016 17:51:55 +0200 Message-Id: <1480348315-13332-6-git-send-email-bd.aviv@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480348315-13332-1-git-send-email-bd.aviv@gmail.com> References: <1480348315-13332-1-git-send-email-bd.aviv@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.210.195 Subject: [Qemu-devel] [PATCH v7 5/5] IOMMU: add specific null implementation of iommu_replay to intel_iommu X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Michael S. Tsirkin" , Jan Kiszka , Aviv Ben-David , Peter Xu , Alex Williamson , Jason Wang Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Aviv Ben-David" Currently the implementation preventing VFIO to work together with intel_iommu. Signed-off-by: Aviv Ben-David --- hw/i386/intel_iommu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index d872969..0787714 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -2453,6 +2453,12 @@ VTDAddressSpace *vtd_find_add_as(IntelIOMMUState *s, PCIBus *bus, int devfn) return vtd_dev_as; } +static void vtd_iommu_replay(MemoryRegion *mr, IOMMUNotifier *n, + bool is_write){ + error_report("VFIO use with intel_iommu is currently not supported."); + exit(1); +} + /* Do the initialization. It will also be called when reset, so pay * attention when adding new initialization stuff. */ @@ -2467,6 +2473,7 @@ static void vtd_init(IntelIOMMUState *s) s->iommu_ops.translate = vtd_iommu_translate; s->iommu_ops.notify_flag_changed = vtd_iommu_notify_flag_changed; + s->iommu_ops.replay = vtd_iommu_replay; s->root = 0; s->root_extended = false; s->dmar_enabled = false;