-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
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.
This version works!
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJXTlnpAAoJEOSsySeKZGgWbWgQAIY4i+DNtf9/0FMVdPNeoHH2
t2t+MKEjVyvGsVJ1xndOXW1InyvFxjZOeXDj+P2JMjekhVBdfI58MdEyC3eUEZHH
8aFyqsZUKvZYx0JvqkflrjYeKH6YS9LxWIRjVOdTBmSO/uHZ/8C9msIpTGeZWPR6
A2inFd7DP0h/3/nh5qLG3ThHEN8M0yIXugGnMIezeE3ScbUPakDu8NHM//tO1VJl
Z3TNG9llUrGgw8twTsIXALBJhG7y8j8tJ/cQnFTOZuPDJaOJNR6OAtfYqJ8+v9rc
yyBvd7oE+ZS9YstkMUfo2S6JfGNdcXvwbohXoGzJH9YZ5kuftNxdWFVJortURvbU
vVV7OBZdng9D3IId2YOh6kpK2kP/MBnqUo+GgCTgrJs623CEwBSk2mGp8ENwOdxo
YRWnJQgRXKUFPjDdC3b/5aHbxMJmAbtuJsVzBo+Y7KmV8RFyHqKZv9v5YaDCAuFU
SQa11PglYszcAWpHnLesyqjtYaBYeD1FkdrOv/DEfbjH9oy0S7i6GKUpxB//AG2P
FwCzbAfFkpClFihLY9s7IWmokPUMm+XjdQSU3vNa7zrXsPlgMgh6Z164jLcUaauw
jQJ3Xg6kIdAtZ4VEGyMrWtzB7RbJzzWjdiB277exrELRF2zci7c8Pu1iFTJxmlU+
5ZFfYU3w8FFmHyipB3KO
=C5QA
-----END PGP SIGNATURE-----