xsa46-4.2.patch breaks PCI passthrough?
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
I added this patch in xen-4.2.1-6 of my RPMs (http://xen.crc.id.au) and the reporter has built the same SRPM with xsa46 patch removed and PCI passthrough works as intended.
Reapplying the XSA46 patch causes it to break again.
The bug report and logs can be found here:
http://xen.crc.id.au/bugs/view.php?id=5
Has anyone come across this?
Signature · 6 lines
Steven Haigh Email: [email protected] Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299
Quoted 12 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
I added this patch in xen-4.2.1-6 of my RPMs (http://xen.crc.id.au) and the reporter has built the same SRPM with xsa46 patch removed and PCI passthrough works as intended.
Quoted 7 lines
Reapplying the XSA46 patch causes it to break again.
The bug report and logs can be found here:
http://xen.crc.id.au/bugs/view.php?id=5Has anyone come across this?
XSA-46 was to do with PCI passthrough of PV domains, and in particular changing some of the rules regarding interrupts.
One thing which is not clear from the bug report so far is what exactly is failing with an EINVAL. The implication is that it is the toolstack which is bailing before the VM is created.
I will take a closer look at the two log files.
~Andrew
Quoted 27 lines · Andrew Cooper
Quoted 12 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
I added this patch in xen-4.2.1-6 of my RPMs (http://xen.crc.id.au) and the reporter has built the same SRPM with xsa46 patch removed and PCI passthrough works as intended.
Quoted 7 lines
Reapplying the XSA46 patch causes it to break again.
The bug report and logs can be found here:
http://xen.crc.id.au/bugs/view.php?id=5Has anyone come across this?
XSA-46 was to do with PCI passthrough of PV domains, and in particular changing some of the rules regarding interrupts.
One thing which is not clear from the bug report so far is what exactly is failing with an EINVAL. The implication is that it is the toolstack which is bailing before the VM is created.
Quoted 8 lines
I will take a closer look at the two log files.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Ok - please ignore my previous email somewhat.
Xend is failing a xc.domain_irq_permission() call. As the toolstack side of things have not changed, it must be the changed in the hypervisor which are causing the issues.
Can you please try the attached patch, and pass along xl dmesg in the failing case?
~Andrew
xen/common/domctl.c +2 -0
@@ -902,6 +902,8 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)else ret =pirq_deny_access (d, pirq); +printk ("**DBG perms { %u, %d } = %d\n" , pirq, allow, ret); +rcu_unlock_domain (d); }break ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
Quoted 15 lines · Andrew Cooper
Quoted 14 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
I added this patch in xen-4.2.1-6 of my RPMs (http://xen.crc.id.au) and the reporter has built the same SRPM with xsa46 patch removed and PCI passthrough works as intended.
Reapplying the XSA46 patch causes it to break again.
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
The bug report and logs can be found here:
http://xen.crc.id.au/bugs/view.php?id=5Has anyone come across this?
XSA-46 was to do with PCI passthrough of PV domains, and in particular changing some of the rules regarding interrupts.
This was misguiding me - I somehow concluded that the problems here are being observed with PV domains, but considering the second report we got as well as looking through the log files I'm now rather guessing that the problem is (only) with HVM domains. That in turn would match up with the code in pciif.py:
if not self.vm.info.is_hvm() and dev.irq:
rc = xc.physdev_map_pirq(domid = fe_domid,
index = dev.irq,
pirq = dev.irq)
if rc < 0:
raise VmError(('pci: failed to map irq on device '+
'%s - errno=%d')%(dev.name,rc))
if dev.irq>0:
log.debug('pci: enabling irq %d'%dev.irq)
rc = xc.domain_irq_permission(domid = fe_domid, pirq = dev.irq,
allow_access = True)
if rc<0:
raise VmError(('pci: failed to configure irq on device '+
'%s - errno=%d')%(dev.name,rc))
i.e. the first portion of the setup is only being done for PV guests. I have no idea why this is so (irqif.py doesn't special case the guest kind, nor does libxl). Quite likely dropping that check would be sufficient, but of course that should be confirmed by someone knowing that code (and ideally also knowing why this was being special cased in the first place) - Ian, Ian?
(Oddly enough, the first check also does "dev.irq != 0) while the second uses "dev.irq > 0" - I wouldn't expect negative values to ever appear here, but it's another hint at there being unnecessary inconsistencies here.)
Jan
Quoted 46 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
Quoted 15 lines · Andrew Cooper
Quoted 14 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
I added this patch in xen-4.2.1-6 of my RPMs (http://xen.crc.id.au) and the reporter has built the same SRPM with xsa46 patch removed and PCI passthrough works as intended.
Reapplying the XSA46 patch causes it to break again.
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
The bug report and logs can be found here:
http://xen.crc.id.au/bugs/view.php?id=5Has anyone come across this?
XSA-46 was to do with PCI passthrough of PV domains, and in particular changing some of the rules regarding interrupts.
This was misguiding me - I somehow concluded that the problems here are being observed with PV domains, but considering the second report we got as well as looking through the log files I'm now rather guessing that the problem is (only) with HVM domains. That in turn would match up with the code in
pciif.py:if not
self.vm.info.is_hvm()and dev.irq:
rc = xc.physdev_map_pirq(domid =fe_domid,
index = dev.irq,
pirq = dev.irq)
if rc < 0:
raise VmError(('pci: failed to map irq on device '+
'%s - errno=%d')%(dev.name,rc))
if dev.irq>0:
log.debug('pci: enabling irq %d'%dev.irq)
rc = xc.domain_irq_permission(domid =fe_domid, pirq = dev.irq,
allow_access= True)
if rc<0:
raise VmError(('pci: failed to configure irq on device '+
'%s - errno=%d')%(dev.name,rc))
Quoted 7 lines
i.e. the first portion of the setup is only being done for PV guests. I have no idea why this is so (
irqif.pydoesn't special case the guest kind, nor does libxl). Quite likely dropping that check would be sufficient, but of course that should be confirmed by someone knowing that code (and ideally also knowing why this was being special cased in the first place) - Ian, Ian?
If you are asking me why xend behaves this way then I have no clue. Finding someone who does is probably a big ask, unless the changelog offers any clues, the commit in question seems to be:
commit 345fbe6cb410fb43c7b269a54d1c60e1e025f393
Author: Keir Fraser <[email protected]>
Date: Mon Sep 7 08:38:39 2009 +0100
xend: passthrough: fix physdev_map_pirq invocation
For those devices not having INTx (like VFs), avoid calling map_pirq, otherwise the guest cannot be started successfully.
Also avoid calling this hypercall for hvm guest, this is done in the device model.
Seems like "For those devices" is the "and dev.irq" bit and the "Also avoid" is the "is_hvm()" bit. I have no idea about the validity of any of that reasoning though...
Ian.
Quoted 48 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 25 lines · Jan Beulich
Quoted 3 lines
Quoted 3 lines
Quoted 1 line · Andrew Cooper
XSA-46 was to do with PCI passthrough of PV domains, and in particular changing some of the rules regarding interrupts.
This was misguiding me - I somehow concluded that the problems here are being observed with PV domains, but considering the second report we got as well as looking through the log files I'm now rather guessing that the problem is (only) with HVM domains. That in turn would match up with the code in
pciif.py:if not
self.vm.info.is_hvm()and dev.irq:
rc = xc.physdev_map_pirq(domid =fe_domid,
index = dev.irq,
pirq = dev.irq)
if rc < 0:
raise VmError(('pci: failed to map irq on device '+
'%s - errno=%d')%(dev.name,rc))
if dev.irq>0:
log.debug('pci: enabling irq %d'%dev.irq)
rc = xc.domain_irq_permission(domid =fe_domid, pirq = dev.irq,
allow_access= True)
if rc<0:
raise VmError(('pci: failed to configure irq on device '+
'%s - errno=%d')%(dev.name,rc))Quoted 7 lines
i.e. the first portion of the setup is only being done for PV guests. I have no idea why this is so (
irqif.pydoesn't special case the guest kind, nor does libxl). Quite likely dropping that check would be sufficient, but of course that should be confirmed by someone knowing that code (and ideally also knowing why this was being special cased in the first place) - Ian, Ian?If you are asking me why xend behaves this way then I have no clue. Finding someone who does is probably a big ask, unless the changelog offers any clues, the commit in question seems to be:
commit
345fbe6cb410fb43c7b269a54d1c60e1e025f393
Author: Keir Fraser <[email protected]>
Date: Mon Sep 7 08:38:39 2009 +0100xend: passthrough: fix
physdev_map_pirqinvocationFor those devices not having INTx (like VFs), avoid calling
map_pirq, otherwise the guest cannot be started successfully.
Quoted 8 lines
Also avoid calling this hypercall for hvm guest, this is done in the device model.
Signed-off-by Qing He <[email protected]>Seems like "For those devices" is the "and dev.irq" bit and the "Also avoid" is the "
is_hvm()" bit. I have no idea about the validity of any of that reasoning though...
I think I agree with this interpretation, and on that basis I just went through the involved hypervisor side code path - afaict there should be no problem with this being done in xend and then a second time in the device model. Therefore I think we ought to see whether the suggested adjustment actually works for the reporters of the problem, and just go with it if so.
Jan
Quoted 7 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
Have you tried this with xen-unstable tip? That would be a blocker bug for the 4.3 release.
-George
Quoted 11 lines · George Dunlap
Quoted 7 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
Have you tried this with xen-unstable tip? That would be a blocker bug for the 4.3 release.
Hi George,
It hasn't been tried it against anything other than 4.2.1 & 4.2.2 as yet. As I'm not the end user with the problem here, I need to wait for feedback.
I have passed the patch provided by Andrew to the bug author - when I've got feedback on this I'll be able to provide more information. I think when we've got a root cause for this then it should be simple to verify it on 4.3.
Signature · 6 lines
Steven Haigh Email: [email protected] Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299
Quoted 13 lines · Steven Haigh
Quoted 10 lines · George Dunlap
Quoted 7 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
Have you tried this with xen-unstable tip? That would be a blocker bug for the 4.3 release.
Hi George,
Quoted 9 lines
It hasn't been tried it against anything other than 4.2.1 & 4.2.2 as yet. As I'm not the end user with the problem here, I need to wait for feedback.
I have passed the patch provided by Andrew to the bug author - when I've got feedback on this I'll be able to provide more information. I think when we've got a root cause for this then it should be simple to verify it on 4.3.
I have been investigating this issue on XenServer.
On XenServer, PCIPassthrough to a SLES11SP1 guest is working correctly, even with the XSA-46 patch applied.
When passing through physical devices, my hypervisor debugging is being triggered, but the actions of XEN_DOMCTL_irq_permission appear to be correct, given sensible input from the Xapi toolstack. When passing through an SRIOV virtual function, no hypervisor debugging is being triggered.
At a preliminary guess, I would say that XM looks to be doing something stupid which it used to be getting away with, but is not now given the changed in the hypervisor.
I suspect that it will be hard to progress this issue until Gordan applied my debugging patch and gets back with the results.
~Andrew
Quoted 34 lines · Andrew Cooper
Quoted 13 lines · Steven Haigh
Quoted 10 lines · George Dunlap
Quoted 7 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
Have you tried this with xen-unstable tip? That would be a blocker bug for the 4.3 release.
Hi George,
Quoted 9 lines
It hasn't been tried it against anything other than 4.2.1 & 4.2.2 as yet. As I'm not the end user with the problem here, I need to wait for feedback.
I have passed the patch provided by Andrew to the bug author - when I've got feedback on this I'll be able to provide more information. I think when we've got a root cause for this then it should be simple to verify it on 4.3.
I have been investigating this issue on XenServer.
On XenServer, PCIPassthrough to a SLES11SP1 guest is working correctly, even with the XSA-46 patch applied.
When passing through physical devices, my hypervisor debugging is being triggered, but the actions of
XEN_DOMCTL_irq_permissionappear to be correct, given sensible input from the Xapi toolstack. When passing through an SRIOV virtual function, no hypervisor debugging is being triggered.
Quoted 7 lines
At a preliminary guess, I would say that XM looks to be doing something stupid which it used to be getting away with, but is not now given the changed in the hypervisor.
I suspect that it will be hard to progress this issue until Gordan applied my debugging patch and gets back with the results.
Hi Andrew,
Got a reply from Gordon -> http://xen.crc.id.au/bugs/view.php?id=5
The 'xm dmesg' output shows the following:
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 4bc435: c=c000000000000002 t=7400000000000001 (XEN) **DBG perms { 16, 1 } = 0
(XEN) **DBG perms { 34, 1 } = -22
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 4be230: c=c000000000000002 t=7400000000000001 (XEN) **DBG perms { 16, 1 } = 0
(XEN) **DBG perms { 34, 1 } = -22
The full dmesg is attached to the bug report.
--
Steven Haigh
Quoted 56 lines · Steven Haigh
Quoted 34 lines · Andrew Cooper
Quoted 13 lines · Steven Haigh
Quoted 10 lines · George Dunlap
Quoted 7 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
Have you tried this with xen-unstable tip? That would be a blocker bug for the 4.3 release.
Hi George,
Quoted 9 lines
It hasn't been tried it against anything other than 4.2.1 & 4.2.2 as yet. As I'm not the end user with the problem here, I need to wait for feedback.
I have passed the patch provided by Andrew to the bug author - when I've got feedback on this I'll be able to provide more information. I think when we've got a root cause for this then it should be simple to verify it on 4.3.
I have been investigating this issue on XenServer.
On XenServer, PCIPassthrough to a SLES11SP1 guest is working correctly, even with the XSA-46 patch applied.
When passing through physical devices, my hypervisor debugging is being triggered, but the actions of
XEN_DOMCTL_irq_permissionappear to be correct, given sensible input from the Xapi toolstack. When passing through an SRIOV virtual function, no hypervisor debugging is being triggered.Quoted 7 lines
At a preliminary guess, I would say that XM looks to be doing something stupid which it used to be getting away with, but is not now given the changed in the hypervisor.
I suspect that it will be hard to progress this issue until Gordan applied my debugging patch and gets back with the results.
Hi Andrew,
Got a reply from Gordon -> http://xen.crc.id.au/bugs/view.php?id=5
The 'xm dmesg' output shows the following:
(XEN) sh error:sh_remove_all_mappings(): can't find all mappings of mfn 4bc435: c=c000000000000002 t=7400000000000001
(XEN) **DBG perms { 16, 1 } = 0
(XEN) **DBG perms { 34, 1 } = -22
(XEN) sh error:sh_remove_all_mappings(): can't find all mappings of mfn 4be230: c=c000000000000002 t=7400000000000001
(XEN) **DBG perms { 16, 1 } = 0
(XEN) **DBG perms { 34, 1 } = -22
Quoted 4 lines
The full dmesg is attached to the bug report.
--
Steven Haigh
Unrelated to the PCI passthrough problem, those spurious sh errors are fixed by
http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=0984c2b63a7c3e9dfa770b29dac51a5124aecaab
Quoted 1 line
From Gordon's log, it appears pirq 34 is the one causing problems.
Can he please try the latest attached debugging patch which should provide rather more information in the failure case.
Also, can he boot with "loglvl=all" on the Xen command line, and also issue "xm debug-keys izq" before capturing xm dmesg. The debug keys should dump loads on information into the dmesg buffer to do with interrupts etc.
Thanks,
~Andrew
xen/common/domctl.c +10 -0
@@ -908,6 +908,16 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)else ret =pirq_deny_access (d, pirq); +printk ("**DBG perms { %u, %d } = %ld\n" , pirq, allow, ret); +if ( ret ) + { +printk (" Domain %" PRId16", nr_pirqs %d\n" , + d->domain_id, d->nr_pirqs); +printk (" dom_pirq_to_irq(%d) = %d\n" , + pirq,domain_pirq_to_irq (d, pirq)); +rangeset_domain_printk (d); + } +rcu_unlock_domain (d); }break ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 67 lines · Andrew Cooper
Quoted 56 lines · Steven Haigh
Quoted 34 lines · Andrew Cooper
Quoted 13 lines · Steven Haigh
Quoted 10 lines · George Dunlap
Quoted 7 lines · Steven Haigh
Hi all,
I've had a report lodged against my packages that the patch provided for XSA46 against Xen 4.2.1 causes PCI passthru to break.
It seems that 4.2.1 *without* the XSA46 patch works perfectly. 4.2.2 does not work.
Have you tried this with xen-unstable tip? That would be a blocker bug for the 4.3 release.
Hi George,
Quoted 9 lines
It hasn't been tried it against anything other than 4.2.1 & 4.2.2 as yet. As I'm not the end user with the problem here, I need to wait for feedback.
I have passed the patch provided by Andrew to the bug author - when I've got feedback on this I'll be able to provide more information. I think when we've got a root cause for this then it should be simple to verify it on 4.3.
I have been investigating this issue on XenServer.
On XenServer, PCIPassthrough to a SLES11SP1 guest is working correctly, even with the XSA-46 patch applied.
When passing through physical devices, my hypervisor debugging is being triggered, but the actions of
XEN_DOMCTL_irq_permissionappear to be correct, given sensible input from the Xapi toolstack. When passing through an SRIOV virtual function, no hypervisor debugging is being triggered.Quoted 7 lines
At a preliminary guess, I would say that XM looks to be doing something stupid which it used to be getting away with, but is not now given the changed in the hypervisor.
I suspect that it will be hard to progress this issue until Gordan applied my debugging patch and gets back with the results.
Hi Andrew,
Got a reply from Gordon -> http://xen.crc.id.au/bugs/view.php?id=5
The 'xm dmesg' output shows the following:
(XEN) sh error:sh_remove_all_mappings(): can't find all mappings of mfn 4bc435: c=c000000000000002 t=7400000000000001
(XEN) **DBG perms { 16, 1 } = 0
(XEN) **DBG perms { 34, 1 } = -22
(XEN) sh error:sh_remove_all_mappings(): can't find all mappings of mfn 4be230: c=c000000000000002 t=7400000000000001
(XEN) **DBG perms { 16, 1 } = 0
(XEN) **DBG perms { 34, 1 } = -22Quoted 4 lines
The full dmesg is attached to the bug report.
--
Steven HaighUnrelated to the PCI passthrough problem, those spurious sh errors are fixed by
http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=0984c2b63a7c3e9dfa770b29dac51a5124aecaabFrom Gordon's log, it appears pirq 34 is the one causing problems.
Quoted 7 lines
Can he please try the latest attached debugging patch which should provide rather more information in the failure case.
Also, can he boot with "loglvl=all" on the Xen command line, and also issue "xm debug-keys izq" before capturing xm dmesg. The debug keys should dump loads on information into the dmesg buffer to do with interrupts etc.
Debug log is now attached to the bug report. Its a little large to attach here.
http://xen.crc.id.au/bugs/file_download.php?file_id=13&type=bug
--
Steven Haigh
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Steven Haigh
Debug log is now attached to the bug report. Its a little large to attach here.
http://xen.crc.id.au/bugs/file_download.php?file_id=13&type=bug
(XEN) **DBG perms { 16, 1 } = 0
I'm surprised by this if the test was done without the xend adjustment, whereas this
Quoted 3 lines
(XEN) **DBG perms { 34, 1 } = -22
(XEN) Domain 2,nr_pirqs80
(XEN)dom_pirq_to_irq(34)= 0
is expected without a prior physdev_map_pirq() invocation. I'm meanwhile guessing that there might be a second place in xend where under some condition that call is being issued - that could also explain the -EEXIST observed with the xend adjustment in place.
Jan
Quoted 15 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Steven Haigh
Debug log is now attached to the bug report. Its a little large to attach here.
http://xen.crc.id.au/bugs/file_download.php?file_id=13&type=bug
(XEN) **DBG perms { 16, 1 } = 0
I'm surprised by this if the test was done without the xend adjustment, whereas this
Quoted 3 lines
(XEN) **DBG perms { 34, 1 } = -22
(XEN) Domain 2,nr_pirqs80
(XEN)dom_pirq_to_irq(34)= 0
Quoted 5 lines
is expected without a prior
physdev_map_pirq()invocation. I'm meanwhile guessing that there might be a second place in xend where under some condition that call is being issued - that could also explain the-EEXISTobserved with the xend adjustment in place.
I'll be the first to admit that this is beyond my knowledge in Xen at this low a level... Is there anything I can do to help debugging progress?
Is there any more information you need from the original bug reporter?
Signature · 6 lines
Steven Haigh Email: [email protected] Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Steven Haigh
Quoted 15 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Steven Haigh
Debug log is now attached to the bug report. Its a little large to attach here.
http://xen.crc.id.au/bugs/file_download.php?file_id=13&type=bug
(XEN) **DBG perms { 16, 1 } = 0
I'm surprised by this if the test was done without the xend adjustment, whereas this
Quoted 3 lines
(XEN) **DBG perms { 34, 1 } = -22
(XEN) Domain 2,nr_pirqs80
(XEN)dom_pirq_to_irq(34)= 0
Quoted 8 lines
Quoted 5 lines
is expected without a prior
physdev_map_pirq()invocation. I'm meanwhile guessing that there might be a second place in xend where under some condition that call is being issued - that could also explain the-EEXISTobserved with the xend adjustment in place.I'll be the first to admit that this is beyond my knowledge in Xen at this low a level... Is there anything I can do to help debugging progress?
See the other thread ("PCI passthrough problems after legacy update of xen 4.1") about the same problem. Andreas had put together a debugging patch that helped narrow it, but it's still unclear where the conflicting hypercalls originate. Perhaps continuing the discussion centrally in that other thread (which has made better progress) would help keep all information together.
Jan