patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag
@ 2024-11-08 18:12 Dom Rodriguez
  2024-11-10 19:52 ` Alyssa Ross
  2024-11-10 19:55 ` Alyssa Ross
  0 siblings, 2 replies; 4+ messages in thread
From: Dom Rodriguez @ 2024-11-08 18:12 UTC (permalink / raw)
  To: devel

crosvm was producing warnings when using `--vhost-user-gpu` and
`--vhost-user-fs`, of which the former is fixable, but the latter
requires some more work. The latter will be patched later on.

To mitigate the former, I have adjusted the `crosvm` invocations to look
something like `--vhost-user $DEVICE,socket=$PATH`, where `$DEVICE` is,
in this case, `gpu`, and `$PATH` is the path to the Unix socket.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
---

The typo gremlins snuck into that last v3 patch, but hopefully v4 will
fix it.

 img/app/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/img/app/Makefile b/img/app/Makefile
index 2aa78a0..d914cab 100644
--- a/img/app/Makefile
+++ b/img/app/Makefile
@@ -168,7 +168,7 @@ run-crosvm: $(imgdir)/appvm/blk/root.img start-vhost-user-gpu start-virtiofsd
 	    -p "console=ttyS0 root=PARTLABEL=root" \
 	    --net tap-name=tap0 \
 	    --vhost-user-fs build/virtiofsd.sock:virtiofs0 \
-	    --vhost-user-gpu build/vhost-user-gpu.sock \
+	    --vhost-user gpu,socket=build/vhost-user-gpu.sock \
 	    --vsock cid=3 \
 	    --serial type=file,hardware=serial,path=build/serial.log \
 	    --serial type=stdout,hardware=virtio-console,stdin=true \
-- 
2.44.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag
  2024-11-08 18:12 [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag Dom Rodriguez
@ 2024-11-10 19:52 ` Alyssa Ross
  2024-11-10 19:55 ` Alyssa Ross
  1 sibling, 0 replies; 4+ messages in thread
From: Alyssa Ross @ 2024-11-10 19:52 UTC (permalink / raw)
  To: Dom Rodriguez, devel

This patch has been committed as cd2ccb597b2d3de088b247a9b0ac6bd630c8d3f2,
which can be viewed online at
https://spectrum-os.org/git/spectrum/commit/?id=cd2ccb597b2d3de088b247a9b0ac6bd630c8d3f2.

This is an automated message.  Send comments/questions/requests to:
Alyssa Ross <hi@alyssa.is>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag
  2024-11-08 18:12 [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag Dom Rodriguez
  2024-11-10 19:52 ` Alyssa Ross
@ 2024-11-10 19:55 ` Alyssa Ross
  2024-11-11  1:35   ` Dom Rodriguez
  1 sibling, 1 reply; 4+ messages in thread
From: Alyssa Ross @ 2024-11-10 19:55 UTC (permalink / raw)
  To: Dom Rodriguez; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

Dom Rodriguez <shymega@shymega.org.uk> writes:

> crosvm was producing warnings when using `--vhost-user-gpu` and
> `--vhost-user-fs`, of which the former is fixable, but the latter
> requires some more work. The latter will be patched later on.
>
> To mitigate the former, I have adjusted the `crosvm` invocations to look
> something like `--vhost-user $DEVICE,socket=$PATH`, where `$DEVICE` is,
> in this case, `gpu`, and `$PATH` is the path to the Unix socket.
>
> Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
> ---
>
> The typo gremlins snuck into that last v3 patch, but hopefully v4 will
> fix it.
>
>  img/app/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks!

There's also still the --vhost-user-gpu in
release/checks/wayland/default.nix.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag
  2024-11-10 19:55 ` Alyssa Ross
@ 2024-11-11  1:35   ` Dom Rodriguez
  0 siblings, 0 replies; 4+ messages in thread
From: Dom Rodriguez @ 2024-11-11  1:35 UTC (permalink / raw)
  To: Alyssa Ross; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

On 10.11.2024 20:55, Alyssa Ross wrote:
>Dom Rodriguez <shymega@shymega.org.uk> writes:
>
>> crosvm was producing warnings when using `--vhost-user-gpu` and
>> `--vhost-user-fs`, of which the former is fixable, but the latter
>> requires some more work. The latter will be patched later on.
>>
>> To mitigate the former, I have adjusted the `crosvm` invocations to look
>> something like `--vhost-user $DEVICE,socket=$PATH`, where `$DEVICE` is,
>> in this case, `gpu`, and `$PATH` is the path to the Unix socket.
>>
>> Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
>> ---
>>
>> The typo gremlins snuck into that last v3 patch, but hopefully v4 will
>> fix it.
>>
>>  img/app/Makefile | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>Thanks!
>
>There's also still the --vhost-user-gpu in
>release/checks/wayland/default.nix.

Sharp eyes, as always! Patch submitted.


Best wishes,
--
Dom Rodriguez

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-11  8:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-08 18:12 [PATCH v4] crosvm: Rename `--vhost-user-gpu` flag Dom Rodriguez
2024-11-10 19:52 ` Alyssa Ross
2024-11-10 19:55 ` Alyssa Ross
2024-11-11  1:35   ` Dom Rodriguez

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).