patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: colbyt <colby@colbyt.com>
To: devel@spectrum-os.org
Cc: colbyt <colby@colbyt.com>
Subject: [PATCH 6/6] start-vmm: test GPU socket configuration
Date: Thu, 25 Jun 2026 10:48:49 -0700	[thread overview]
Message-ID: <224290f466a5b2ba9b7bf864cc1ad542d1c6c90b.1782409229.git.colby@colbyt.com> (raw)
In-Reply-To: <cover.1782409229.git.colby@colbyt.com>

Extend the basic VM command test to assert that GPU configuration
includes the expected crosvm vhost-user GPU socket path.

This adds coverage for the generated GPU service wiring without
requiring a full VM boot.

Signed-off-by: colbyt <colby@colbyt.com>
---
 tools/start-vmm/tests/vm_command-basic.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/start-vmm/tests/vm_command-basic.rs b/tools/start-vmm/tests/vm_command-basic.rs
index 2e9ad0c..80937ef 100644
--- a/tools/start-vmm/tests/vm_command-basic.rs
+++ b/tools/start-vmm/tests/vm_command-basic.rs
@@ -32,6 +32,11 @@ fn main() -> std::io::Result<()> {
     let expected =
         "/run/service/vm-services/instance/testvm/data/service/vhost-user-fs/env/virtiofsd.sock";
     assert_eq!(fs1.socket, expected);
+    assert_eq!(config.gpu.len(), 1);
+    let gpu1 = &config.gpu[0];
+    let expected =
+        "/run/service/vm-services/instance/testvm/data/service/vhost-user-gpu/env/crosvm.sock";
+    assert_eq!(gpu1.socket, expected);
     assert_eq!(PathBuf::from(config.payload.kernel), kernel_path);
     #[cfg(target_arch = "x86_64")]
     assert_eq!(config.payload.cmdline, "console=ttyS0 root=PARTLABEL=root");
-- 
2.54.0


  parent reply	other threads:[~2026-06-25 17:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25 17:48 [PATCH 0/6] cloud-hypervisor v52 and VM runtime fixes colbyt
2026-06-25 17:48 ` [PATCH 1/6] pkgs/skaware: vendor backported patches colbyt
2026-06-26 13:39   ` Alyssa Ross
2026-06-25 17:48 ` [PATCH 2/6] pkgs/cloud-hypervisor: update GPU patchset to v52 colbyt
2026-06-26 14:06   ` Alyssa Ross
2026-06-25 17:48 ` [PATCH 3/6] vm: use vhost-user networking for crosvm colbyt
2026-06-26 14:45   ` Alyssa Ross
2026-07-02  9:07   ` Alyssa Ross
2026-06-25 17:48 ` [PATCH 4/6] Documentation: use crosvm GPU socket-path option colbyt
2026-06-26 14:18   ` Alyssa Ross
2026-06-25 17:48 ` [PATCH 5/6] installer: suppress boot console status noise colbyt
2026-06-26 14:46   ` Alyssa Ross
2026-06-26 19:09     ` colby
2026-07-02 11:44       ` Alyssa Ross
2026-06-25 17:48 ` colbyt [this message]
2026-06-26 14:18   ` [PATCH 6/6] start-vmm: test GPU socket configuration 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=224290f466a5b2ba9b7bf864cc1ad542d1c6c90b.1782409229.git.colby@colbyt.com \
    --to=colby@colbyt.com \
    --cc=devel@spectrum-os.org \
    /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).