#941576 qemu: Cant use virtio-gpu with some hardware

#941576#5
Date:
2019-10-02 10:11:06 UTC
From:
To:
Dear Maintainer,

I cannot use libvirt and virtio-gpu together, after search it often appearr
with amd gpu.
I have tested that a patch from fedora can solve it.
https://koji.fedoraproject.org/koji/fileinfo?rpmID=17131016&filename=0001-qemu-
seccomp-dont-kill-process-for-resource-contro.patch

#941576#10
Date:
2019-10-02 10:20:30 UTC
From:
To:
02.10.2019 13:11, wk wrote:

From the name of the patch (unfortunately the patch itself isn't available on
the named site) I assume the problem is due to seccomp jumping on the way.
If that's the case, just disable seccomp on the guest using virtio-gpu and it
should work. Seccomp has very little value for qemu since majority of syscalls
are allowed anyway, but it has quite significant impact on maintenance, as you
can see in this very issue.

Thanks,

/mjt

#941576#19
Date:
2019-10-02 10:20:30 UTC
From:
To:
02.10.2019 13:11, wk wrote:

From the name of the patch (unfortunately the patch itself isn't available on
the named site) I assume the problem is due to seccomp jumping on the way.
If that's the case, just disable seccomp on the guest using virtio-gpu and it
should work. Seccomp has very little value for qemu since majority of syscalls
are allowed anyway, but it has quite significant impact on maintenance, as you
can see in this very issue.

Thanks,

/mjt

#941576#24
Date:
2019-10-02 11:14:34 UTC
From:
To:
Thans for reply and sorry for the wrong link.

the correct patch link is here.And it can diretly used in debian qemu src.
https://src.fedoraproject.org/rpms/qemu/blob/35213eae677b3a6a98ef2f048ca72fe38d61e2fc/f/0011-seccomp-don-t-kill-process-for-resource-control-sysc.patch

I have disable secomp on libvirt config file, but when I start virt-manager
it not work.May gui client lile virt-manager and gnome-boxes force to use
secomp. It will be helpful if the patch can be added in next debian point
release.

Michael Tokarev <mjt@tls.msk.ru> 于2019年10月2日周三 下午6:20写道:

#941576#29
Date:
2019-10-02 11:14:34 UTC
From:
To:
Thans for reply and sorry for the wrong link.

the correct patch link is here.And it can diretly used in debian qemu src.
https://src.fedoraproject.org/rpms/qemu/blob/35213eae677b3a6a98ef2f048ca72fe38d61e2fc/f/0011-seccomp-don-t-kill-process-for-resource-control-sysc.patch

I have disable secomp on libvirt config file, but when I start virt-manager
it not work.May gui client lile virt-manager and gnome-boxes force to use
secomp. It will be helpful if the patch can be added in next debian point
release.

Michael Tokarev <mjt@tls.msk.ru> 于2019年10月2日周三 下午6:20写道: