From owner-freebsd-virtualization@freebsd.org Tue Nov 14 12:19:16 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AABADBCCB0 for ; Tue, 14 Nov 2017 12:19:16 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E747C7C0AB for ; Tue, 14 Nov 2017 12:19:15 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f53.google.com with SMTP id a132so22058083lfa.7 for ; Tue, 14 Nov 2017 04:19:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9W3x897ojDTH+hqhJbQsof60RT3xpzOkTmOCk4234FI=; b=YIAEQqJ2mfcs7NlCC9JvLdN/5p/E1ud18uU09E2J8A+zOuCyTOhp3I1c1use/HKJ+6 snVKrwEl6HjH8mSg0whYgfrjkfZeeAAgOuxvlZFG4YB3zTp0PGnOy3OUL5hHr6FNEmx6 /aSdqSqjZFkfKjhA+Yyrjkr6Gth2KOxuKZsoQ4UmVnLiWOq54iUx/+WAn+6zi2RFmld6 QfZOuEyJQ21yMKJ1ICQDyYV49ISqAjOB2Ot/z48gHoonqn+Y1UPiqBrjDjDlDuAGl87V zHq59H1qf5oKfwBQLOf+SzwAzZCUfSEdiofJAYN+JM9/b+w20Q8+YPmLlbIJw+TJUCUs UrEw== X-Gm-Message-State: AJaThX4kDVH6P/HTa/D0kcBBmA1abQQUEQOusaBH6Z+pVbrQCiW1VbaW ILw7sh8Ae8BxOqAM/OBQ5PH41CMi X-Google-Smtp-Source: AGs4zMZ4VnUGQpgEITgxKAM8JKGU8FofpHgyRltwvHGAzJ06HaSHj0PWn8spfzkOC6m47cHR6S4LhA== X-Received: by 10.46.80.16 with SMTP id e16mr4960769ljb.165.1510661444053; Tue, 14 Nov 2017 04:10:44 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id p66sm3271024lfp.45.2017.11.14.04.10.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 04:10:43 -0800 (PST) Subject: Re: problem with pass-through on amd To: Anish Cc: "freebsd-virtualization@freebsd.org" References: From: Andriy Gapon Message-ID: Date: Tue, 14 Nov 2017 14:10:41 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2017 12:19:16 -0000 On 14/11/2017 06:22, Anish wrote: > Hi Andriy, > Newer AMD IOMMU has EFR capability which is missing here, something like: > ivhd0: PCI cap 0x190b640f@0x40 feature:19 > > Is this an old chipset? Yes, this is an old 900 series chipset (990X). > Also ivhd has fault interrupt enabled which is very > helpful in debugging: > > [root@ryzen /home/anish/FreeBSD/head]# vmstat -ia |grep ivh > irq256: ivhd0:fault                    0          0 > irq257: ivhd1:fault                    0          0 irq256: ivhd0:fault 0 0 > Another thing to worth checking is PCI config space of ivhd/IOMMU if you have not already done so. For what should I look there? -- Andriy Gapon