From: Alyssa Ross <alyssa.ross@unikie.com>
To: devel@spectrum-os.org
Cc: Ville Ilvonen <ville.ilvonen@unikie.com>
Subject: Re: [RFC PATCH nixpkgs 7/9] cloud-hypervisor: add virtio-gpu support
Date: Thu, 29 Sep 2022 08:53:38 +0000 [thread overview]
Message-ID: <20220929085338.lazjtztmryniskz2@x220.qyliss.net> (raw)
In-Reply-To: <20220928170128.1583791-8-alyssa.ross@unikie.com>
[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]
On Wed, Sep 28, 2022 at 05:01:26PM +0000, Alyssa Ross wrote:
> The virtio-bindings changes update the bindings for recent kernels,
> and the vhost change is cherry-picked from crosvm's fork of the crate
> to add support for their custom extensions.
>
> Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
Known issue: cloud-hypervisor with a GPU device doesn't work if the
seccomp sandbox is enabled. Workaround is --seccomp log, or the
following additional diff, which I'll include in the next version of
this series when I submit it:
diff --git c/virtio-devices/src/seccomp_filters.rs w/virtio-devices/src/seccomp_filters.rs
index 45a27750..a1ec89d8 100644
--- c/virtio-devices/src/seccomp_filters.rs
+++ w/virtio-devices/src/seccomp_filters.rs
@@ -170,7 +170,11 @@ fn virtio_vhost_fs_thread_rules() -> Vec<(i64, Vec<SeccompRule>)> {
}
fn virtio_vhost_gpu_thread_rules() -> Vec<(i64, Vec<SeccompRule>)> {
- vec![(libc::SYS_getcwd, vec![])]
+ vec![
+ (libc::SYS_getcwd, vec![]),
+ (libc::SYS_recvmsg, vec![]),
+ (libc::SYS_sendmsg, vec![]),
+ ]
}
fn virtio_vhost_net_ctl_thread_rules() -> Vec<(i64, Vec<SeccompRule>)> {
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-09-29 8:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-28 17:01 [RFC PATCH nixpkgs 0/9] virtio-gpu with crosvm and cloud-hypervisor Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 1/9] crosvm: switch back to old git repo URL Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 2/9] crosvm.updateScript: update release branch format Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 3/9] crosvm: 104.0 -> 106.2 Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 4/9] crosvm.updateScript: don't vendor Cargo.lock Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 5/9] crosvm: add fixes for cloud-hypervisor virtio-gpu Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 6/9] rustPlatform: forward unpack hooks to cargo fetch Alyssa Ross
2022-09-28 17:01 ` [RFC PATCH nixpkgs 7/9] cloud-hypervisor: add virtio-gpu support Alyssa Ross
2022-09-29 8:53 ` Alyssa Ross [this message]
2022-09-28 17:01 ` [RFC PATCH nixpkgs 8/9] ocamlPackages.wayland: 1.0 -> unstable-2022-05-07 Alyssa Ross
2022-09-28 17:09 ` sternenseemann
2022-09-28 17:17 ` Alyssa Ross
2022-09-29 12:35 ` sternenseemann
2022-09-28 17:01 ` [RFC PATCH nixpkgs 9/9] wayland-proxy-virtwl: unstable-2021-12-05 -> unstable-2022-08-06 Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220929085338.lazjtztmryniskz2@x220.qyliss.net \
--to=alyssa.ross@unikie.com \
--cc=devel@spectrum-os.org \
--cc=ville.ilvonen@unikie.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).