-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

HW42:
> Marek Marczykowski-Górecki:
>> On Tue, May 31, 2016 at 05:39:20AM +0200, HW42 wrote:
>>> Marek Marczykowski-Górecki:
>>>> On Sun, May 29, 2016 at 04:48:18AM +0200, HW42 wrote:
>>>>> Andrew David Wong:
>>>>>> On 2016-05-28 11:16, HW42 wrote:
>>>>>>> Hi,
>>>>>>
>>>>>>> with Xen 4.6.1-15.fc20 (which got recently uploaded to the testing
>>>>>>> repo) VMs with attached PCI devices don't boot anymore (at least on
>>>>>>> my machine).
>>>>>>
>>>>>>> When I try to boot a VM with attached PCI devices it crashes 
>>>>>>> immediately. Attached the xen dmesg log of a crash.
>>>>>>
>>>>>>> Both dom0 and the VM are running the 4.1.24-9.pvops.qubes kernel.
>>>>
>>>> Exactly the same versions works fine for me...
>>>>
>>>> Do you have anything in console log of that VM? If not, try starting it
>>>> in debug mode (this enables earlyprintk).
> 
>>> Even with debug mode nothing on console.
> 
>>> Interestingly attaching during runtime seems to work.
> 
>> Even when no device was attached at startup at all? 
> 
> Yes. But I forgot to mention that to actually work I needed to change
> the kernel options. When booting without any attached device and the
> default kernel options I got this error when attaching a device at
> runtime:
> 
>   kernel: xen:swiotlb_xen: Warning: only able to allocate 1 MB for software 
> IO TLB
>   kernel: xen:swiotlb_xen: Cannot allocate Xen-SWIOTLB buffer
>            (rc:-12)
> 
> So I added the 'iommu=soft swiotlb=8192' manually. Then I could attach
> the device at runtime and it worked.
> 
>> Try booting with attached device, but with empty kernel options (remove
>> default "iommu=soft swiotlb=8192").
> 
> Crashes like with the default options.
> 
>> If this doesn't help, try Xen 4.6.1-15.56.fc20 from unstable repo, it
>> has e820_host option disabled (almost the only change between those
>> packages, besides Xen version itself). Sources are here:
>> https://github.com/marmarek/qubes-vmm-xen/tree/bug2038
> 
> This version works!

When upgrading to R3.2 I discovered that this problem only seems to
exists when booting with AEM. I.e.:

AEM, pci_e820_host=True  => doesn't work
AEM, pci_e820_host=False => works
without AEM              => works
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXdEB4AAoJEOSsySeKZGgWSWAP/R9JE9kNeGwSCHJI8OwF1GEz
PEdmZjWm0c9jgGDL+C9hYurajaknrFKgkcdvtG4crowPPE8+0tVbSssL9FelvwJ1
yxvc2Ow/EC+UkP/EV1xMI+/wocMEOgiG1YCkxYJx1pndsL9yX5folK08PbKVsVyF
V+6MCvQj/jEPqLULwk/iNLkNfAsk9udwvRslTUUjhTgZoWfEUsoaCD5jWOTmDgNk
urmNVSUN/BCQDjWup4/t8SX6vc7k9KsP+v3aMITs5IFRxL8JpPx/6r8JDMQz56sh
4htAUSr6Nhqie1v4rSVaUk3VI3uWRckASvtE8+6bmKfQjhjMk5XNXAxMsZ95uGuq
OpVCkutgcJwbl9h1kBNuz1kbCoQbXl9J5i2kY79ZME0n3hRXkvUfGC5aStpSpNSu
u+khuGMaNWS+Soypir/4XmvhvzJ15gznrsh+bO1T2r/aOiFmQkiOb+wqalIjBdUo
zRLaqVe0uMiFEWpomRnByivh0rDulzzXvQcGdnQa6I9V9g0rRuekOUEiAcLN0Zrm
9uxnWqHUkaKyC/7ImnOmv12Jh5K+s23q7F5h/mh62AC/FHJt+AcArQrMkDY6sWbG
rZD6qdRo323IS0/vamrINaUEruwWThaCGQ3lrNI74nHUBY1wKOWqam4Guiclzrl9
ytex3m/94fKjyjOt54ZH
=HsFV
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/b34bb224-5ba1-4950-7057-1eb43449e109%40ipsumj.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to