Option iommu=1 causes hypervisor to start debugger
Hi,
In changeset 19130:c8962b24fb50, when using iommu=1, it goes into the hypervisor debugger. Why is this so? Thanks.
-Alex
Perhaps the VT-d hardware/BIOS on your system causes Xen to crash and hence drop itself into the debugger environment?
-- Keir
Quoted 11 lines · Alexia Benington
Hi,
In changeset 19130:c8962b24fb50, when using iommu=1, it goes into the hypervisor debugger. Why is this so? Thanks.
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
At this moment, I'm not really sure. I'm using Intel DQ45CB with Bios CBQ4510H.86A.0073.2009.0122.1353. Is anybody else using the same board and having trouble with the I/O passthrough?
I've attached the connected console's output, can't really pick up anything abnormal though, except that it just stops as you see it.
-Alex
Quoted 4 lines · Keir Fraser
Perhaps the VT-d hardware/BIOS on your system causes Xen to crash and hence drop itself into the debugger environment?
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I didn't see any error in that log file. How can you tell it is trapped into debugger?
Thanks,
Neo
Quoted 21 lines · Alexia Benington
At this moment, I'm not really sure. I'm using Intel DQ45CB with Bios CBQ4510H.86A.0073.2009.0122.1353. Is anybody else using the same board and having trouble with the I/O passthrough?
I've attached the connected console's output, can't really pick up anything abnormal though, except that it just stops as you see it.
-Alex
Quoted 4 lines · Keir Fraser
Perhaps the VT-d hardware/BIOS on your system causes Xen to crash and hence drop itself into the debugger environment?
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Apologies, I should have clarified that it didn't automatically step into the debugger, but hang at the last line of the output I attached earlier. Pressing 'h' would show the list of installed handlers.
Thanks.
-Alex
Quoted 36 lines · Neo Jia
I didn't see any error in that log file. How can you tell it is trapped into debugger?
Thanks,
NeoQuoted 13 lines · Alexia Benington
At this moment, I'm not really sure. I'm using Intel DQ45CB with Bios CBQ4510H.86A.0073.2009.0122.1353. Is anybody else using the same board and having trouble with the I/O passthrough?
I've attached the connected console's output, can't really pick up anything abnormal though, except that it just stops as you see it.
-Alex
Quoted 3 lines · Keir Fraser
Perhaps the VT-d hardware/BIOS on your system causes Xen to crash and hence drop itself into the debugger environment?
Quoted 8 lines
Quoted 1 line
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
It's needed for passing through physical devices to HVM guests.
-- Keir
Quoted 10 lines · Alexia Benington
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Thanks Keir. Perhaps I should try with Yu Zhao's patch and see if that fixes the problem.
-Alex
Quoted 19 lines · Keir Fraser
It's needed for passing through physical devices to HVM guests.
-- Keir
Quoted 10 lines · Alexia Benington
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Which patch are you talking about? Since we can't get any clue from your log, can you please send us the output of `lspci -vvv'?
Thanks,
Yu
Quoted 29 lines · Alexia Benington
Thanks Keir. Perhaps I should try with Yu Zhao's patch and see if that fixes the problem.
-Alex
Quoted 18 lines · Keir Fraser
It's needed for passing through physical devices to HVM guests.
-- Keir
Quoted 10 lines · Alexia Benington
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I was referring to the fix titled "ioemu: fix PCI ROM handling problem in passthrough". Seriously, I don't even know if the problem is related. Just trying something because I'm totally clueless now.
I've attached the lspci. Let me know if you need more info. Will be glad to provide.
Thanks guys.
- Alex
Quoted 41 lines · Yu
Which patch are you talking about? Since we can't get any clue from your log, can you please send us the output of `lspci -vvv'?
Thanks,
YuQuoted 32 lines · Alexia Benington
Thanks Keir. Perhaps I should try with Yu Zhao's patch and see if that fixes the problem.
-Alex
Quoted 19 lines · Keir Fraser
It's needed for passing through physical devices to HVM guests.
-- Keir
Quoted 10 lines · Alexia Benington
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Can you please apply the attached patch and grab the log again?
Thanks,
Yu
Quoted 11 lines
-----Original Message-----
From: Alexia Benington [mailto:[email protected]]
Sent: Wednesday, February 04, 2009 10:27 AM
To: Zhao, Yu
Cc: Keir Fraser; [email protected]
Subject: Re: [Xen-devel] Option iommu=1 causes hypervisor to start debuggerI was referring to the fix titled "ioemu: fix PCI ROM handling problem in passthrough". Seriously, I don't even know if the problem is related. Just trying something because I'm totally clueless now.
Quoted 49 lines
I've attached the lspci. Let me know if you need more info. Will be glad to provide.
Thanks guys.
- Alex
Quoted 41 lines · Yu
Which patch are you talking about? Since we can't get any clue from your log, can you please send us the output of `lspci -vvv'?
Thanks,
YuQuoted 32 lines · Alexia Benington
Thanks Keir. Perhaps I should try with Yu Zhao's patch and see if that fixes the problem.
-Alex
Quoted 19 lines · Keir Fraser
It's needed for passing through physical devices to HVM guests.
-- Keir
Quoted 10 lines · Alexia Benington
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
xen/drivers/passthrough/vtd/iommu.c Wed Feb 04 05:47:08 2009 -0500 renamed from xen/drivers/passthrough/vtd/iommu.c Thu Jan 22 14:05:23 2009 -0500 +13 -0
@@ -1039,6 +1039,7 @@ ASSERT(spin_is_locked(&pcidevs_lock)); spin_lock(&iommu->lock); + gdprintk(XENLOG_INFO VTDPREFIX, "domain_context_mapping_one: 1\n"); maddr = bus_to_context_maddr(iommu, bus); context_entries = (struct context_entry *)map_vtd_domain_page(maddr); context = &context_entries[devfn];
@@ -1054,6 +1055,7 @@ res = -EINVAL; unmap_vtd_domain_page(context_entries); spin_unlock(&iommu->lock); + gdprintk(XENLOG_INFO VTDPREFIX, "domain_context_mapping_one: 2\n"); return res; }
@@ -1066,6 +1068,7 @@ else { spin_lock(&hd->mapping_lock); + gdprintk(XENLOG_INFO VTDPREFIX, "domain_context_mapping_one: 3\n"); /* Ensure we have pagetables allocated down to leaf PTE. */ if ( hd->pgd_maddr == 0 )
@@ -1077,6 +1080,7 @@ spin_unlock(&hd->mapping_lock); spin_unlock(&iommu->lock); unmap_vtd_domain_page(context_entries); + gdprintk(XENLOG_INFO VTDPREFIX, "domain_context_mapping_one: 4\n"); return -ENOMEM; } }
@@ -1120,6 +1124,7 @@ set_bit(iommu->index, &hd->iommu_bitmap); unmap_vtd_domain_page(context_entries); + gdprintk(XENLOG_INFO VTDPREFIX, "domain_context_mapping_one: 5\n"); return 0; }
@@ -1268,12 +1273,16 @@ secdevfn = devfn; devfn = bus2bridge[bus].devfn; bus = bus2bridge[bus].bus; + gdprintk(XENLOG_INFO VTDPREFIX, + "domain_context_mapping:bus2bridge: bdf = %x:%x.%x\n", + bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); ret = domain_context_mapping_one(domain, drhd->iommu, bus, devfn); if ( ret ) return ret; } if ( (secbus != bus) && (secdevfn != 0) ) + { /* * The source-id for transactions on non-PCIe buses seem * to originate from devfn=0 on the secondary bus behind
@@ -1281,7 +1290,11 @@ * these scanarios is not particularly well documented * anywhere. */ + gdprintk(XENLOG_INFO VTDPREFIX, + "domain_context_mapping:secbus: bdf = %x:%x.%x\n", + secbus, 0, 0); ret = domain_context_mapping_one(domain, drhd->iommu, secbus, 0); + } break; default:
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Here it is. Thanks.
-Alex
Quoted 66 lines · Yu
Can you please apply the attached patch and grab the log again?
Thanks,
YuQuoted 60 lines
-----Original Message-----
From: Alexia Benington [mailto:[email protected]]
Sent: Wednesday, February 04, 2009 10:27 AM
To: Zhao, Yu
Cc: Keir Fraser; [email protected]
Subject: Re: [Xen-devel] Option iommu=1 causes hypervisor to start debuggerI was referring to the fix titled "ioemu: fix PCI ROM handling problem in passthrough". Seriously, I don't even know if the problem is related. Just trying something because I'm totally clueless now.
I've attached the lspci. Let me know if you need more info. Will be glad to provide.
Thanks guys.
- Alex
Quoted 41 lines · Yu
Which patch are you talking about? Since we can't get any clue from your log, can you please send us the output of `lspci -vvv'?
Thanks,
YuQuoted 32 lines · Alexia Benington
Thanks Keir. Perhaps I should try with Yu Zhao's patch and see if that fixes the problem.
-Alex
Quoted 19 lines · Keir Fraser
It's needed for passing through physical devices to HVM guests.
-- Keir
Quoted 10 lines · Alexia Benington
If I do not include the iommu option, I/O virtualisation is disabled. I never thought that iommu is a necessary prerequisite for I/O virt, or am I mistaken?
-Alex
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel