From: Wei Wang2 <wei.wang2@amd.com>
To: Sander Eikelenboom <linux@eikelenboom.it>
Cc: "Przywara, Andre" <Andre.Przywara@amd.com>,
Joerg Roedel <joro@8bytes.org>,
"Huang2, Wei" <Wei.Huang2@amd.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: AMD iommu , pci passthrough problems assigning devices to HVM
Date: Wed, 11 Aug 2010 12:11:58 +0200 [thread overview]
Message-ID: <201008111212.01455.wei.wang2@amd.com> (raw)
In-Reply-To: <11610190890.20100810142614@eikelenboom.it>
Hi,
In your debug output I saw:
(XEN) AMD-Vi: Fail to find iommu for device04:00.0
This means no iommu attached to 04:00.0, so it cannot be assigned to any hvm
guest. What is this device in your system? An add-on device or on board
device? It looks like BIOS failed to create an IVRS entry for this device.
Wei
On Tuesday 10 August 2010 14:26:14 Sander Eikelenboom wrote:
> Hi,
>
> I'm running a machine with:
> - Hypervisor: xen-unstable
> - Dom0: xen/next-2.6.32.17 commit c3f5aba942c7516a5c76c47345ff0a473daf2542
>
> Hardware:
> -MSI 890FXA-GD70 with AMD IOMMU
> -Phenom X6
>
> I'm trying to do PCI passthrough to a HVM, this fails with:
>
> Error: Failed to assign device to IOMMU
> (0000:04:00.0@100,msitranslate=1,power_mgmt=0) Error: pci: to avoid
> potential security issue, 0000:08:00.0 is not allowed to be assigned to
> guest since it is behind PCIe switch that does not support or enable ACS.
>
>
> I have found this thread https://bugzilla.redhat.com/show_bug.cgi?id=526713
> regarding the ACS problem, which says the pci bridges need these
> capabilities: ScrValid+, ReqRedir+, CmpltRedir+, and UpstreamFwd+
>
> When i do a lspci -vvv on my system i see these capabilities, but i do see
> some disturbing debug message on boot when amd_iommu_debug is on.
>
> Attached:
> - xm info
> - xm dmesg (booted with amd_iommu_debug on)
> - dmesg
> - lspci -vvv
>
> --
> Sander
next prev parent reply other threads:[~2010-08-11 10:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-10 12:26 AMD iommu , pci passthrough problems assigning devices to HVM Sander Eikelenboom
2010-08-10 20:51 ` Rose, Gregory V
2010-08-11 10:11 ` Wei Wang2 [this message]
2010-08-11 11:26 ` Sander Eikelenboom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008111212.01455.wei.wang2@amd.com \
--to=wei.wang2@amd.com \
--cc=Andre.Przywara@amd.com \
--cc=Wei.Huang2@amd.com \
--cc=joro@8bytes.org \
--cc=linux@eikelenboom.it \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.