Commit graph

8608 commits

Author SHA1 Message Date
David Stevens
48b2b94dee power_monitor: Filter out some power signals
Powerd's PowerSupplyPoll signal gets translated to interrupts on the
goldfish battery device. Although the goldfish device filters out no-op
signals, the powerd signal is still noisier than the guest actually
needs. Add some logic to filter out useless updates from powerd before
passing it to the goldfish device.

BUG=b:322919652
TEST=Boot ARCVM, monitor uevents in the guest

Change-Id: I1e8f936f937635401b6d211a5f4a996650bb61e6
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5380128
Commit-Queue: David Stevens <stevensd@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2024-03-22 02:23:57 +00:00
recipe-roller
7d63b51981 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752806922370135281

recipe_engine:
283d867c3e
  283d867 (mohrr@google.com)
      [python3] Stop using transitional itervalues()

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I4f9b6e29306adc8ded2fd9865d2d3e72fab48496
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5385695
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-22 01:31:43 +00:00
recipe-roller
4e3f1f94db Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752808181152507089

recipe_engine:
a6da06b031
  a6da06b (mohrr@google.com)
      [python3] Stop using transitional iteritems()

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I40c16acbe1337af9bd0e40fbeec68ee8bf1917be
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5386941
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-22 01:07:15 +00:00
Daniel Verkamp
5172710485 devices: vhost-user frontend: make handler required in run_backend_req_handler
Check whether the backend_req_handler is present at the top-level
handler code instead of in the platform-specific
run_backend_request_handler() implementations.

Change-Id: Ida01b797aa07fcda89bed9b548a734452c88bfa4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5385679
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-21 23:40:53 +00:00
Daniel Verkamp
2c0c86bf0c devices: vhost-user frontend: borrow backend_req_handler in worker
Instead of calling .take() on the Option<BackendReqHandler> when
starting the worker, just borrow it with .as_mut().

This will make it possible to recover the BackendReqHandler from the
worker thread when it is stopped.

Change-Id: I7c60500eecdaebd0d4dfad32ea195693547ea978
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5386327
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-03-21 23:06:43 +00:00
A. Cody Schuffelen
288e1fe382 cros_async: Combine platform-specific TaskHandles
This follows the pattern used for IoSource to define a dispatch enum
that selects between implementations which may be on different
platforms.

Bug: b/320603688
Test: tools/presubmit
Change-Id: I8c0b1ddadb17d7f3f5dd45734333a9f6ef596cab
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5207890
Commit-Queue: Cody Schuffelen <schuffelen@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-03-21 20:48:58 +00:00
Daniel Verkamp
89ecb86526 devices: rename VhostUserVirtioDevice -> VhostUserFrontend
This describes what it is more clearly.

Change-Id: I420955e321d52d3badeeb2e997ac891c03d00f7e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5386029
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-03-21 19:54:15 +00:00
Daniel Verkamp
7fb7e46e0c devices: move vhost-user frontend to virtio/
Make it clear that the vhost-user frontend is a virtio device and get
rid of some of the extreme levels of nesting.

This is mostly a clean rename, with a small flattening of the
handler/sys mod into just sys.

Also fix up linux -> unix to match the underlying vmm_vhost cfg checks.

Change-Id: Ic737122151641d4742b9815ebcd2ef71070ca1fa
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5386028
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-03-21 19:54:09 +00:00
Daniel Verkamp
55c3856818 docs: update ChromeOS developer guide links
These have moved back to the www.chromium.org website.

Change-Id: I2e29687a8a074b308249949d4272357ec20af8ba
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5381669
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-21 17:41:27 +00:00
Frederick Mayle
84ce959c20 devices: virtio-user: delete Connection type alias
It has to be equivalent to vmm_vhost::SystemStream, so use that instead.

Change-Id: I3b4b469395f44d16b16d4f4b3950a236b1b8eec8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5383784
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-21 17:39:07 +00:00
recipe-roller
22f3f11cc3 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752880531711844737

depot_tools:
6551a7eb43
  6551a7e (gavinmak@google.com)
      Fetch file contents from Gitiles in parallel

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I2a2765d9b1bd829a99f07d282d4a9666eb97da2a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5385129
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-21 05:56:58 +00:00
recipe-roller
537394529b Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752881789896700049

depot_tools:
d76c4d6045
  d76c4d6 (qjw@chromium.org)
      metadata: add "structured" field parsing

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I894897af16fa3dde6b75edbada76ff3d10491339
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5385125
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-21 05:43:20 +00:00
Frederick Mayle
358e0eadda devices: merge VhostUserHandler into VhostUserVirtioDevice
The relationship between VhostUserHandler and VhostUserVirtioDevice is
(or has become) unclear. For example, the "handler" is responsible for
starting the worker, but the "device' manages the worker's lifetime. The
division of responsibility for virtio_restore feels somewhat random.
Most of the methods are only forwarding calls to BackendClient.

So, this commit inlines VhostUserHandler into VhostUserVirtioDevice
without any meaningful bevahior changes. In some cases the error
handling is more verbose because some VirtioDevice trait methods don't
return Result.

TEST=started ubuntu VM with a vhost-user block device as the rootfs

Bug: 301269927
Change-Id: Ibc031635f2498fd59d4f868032854da2608c8992
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384324
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-21 03:16:01 +00:00
Frederick Mayle
20742de952 devices: use VhostUserVirtioDevice in vhost-user device test
Prep work for dissolving VhostUserHandler into VhostUserVirtioDevice.

Bug: 301269927
Change-Id: I82fd1a6c47d6b5e51d2716255da2003f00f10422
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384323
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-21 03:15:55 +00:00
Frederick Mayle
25dbced813 devices: reduce the scope of RefCell in VhostUserVirtioDevice
Change-Id: I32ebc0a56b979699abf029dd5364acb451851ab4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384322
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2024-03-21 03:15:48 +00:00
recipe-roller
1e67d02643 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752900664087101057

depot_tools:
2508c6f716
  2508c6f (sokcevic@chromium.org)
      [repo_launcher] Update repo_launcher to v2.45

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I5bf69006693b816b18252f5b2611982359c3de03
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384626
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-21 00:33:52 +00:00
recipe-roller
d278b38c49 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752901921080110209

recipe_engine:
c0fee8dd7b
  c0fee8d (gbeaty@google.com)
      Revert "[recipe_engine/path] Make use of checkout based Paths a...

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I2b7dce8ccc9f72fed1891d20cfe2512665f549ad
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384585
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-21 00:14:58 +00:00
recipe-roller
f0f5ab780a Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752904438677635553

depot_tools:
be47bdd965
  be47bdd (jojwang@google.com)
      Reland "Include host and project in code-owners not enabled err...

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: Ibe5b03d16ae4d6b22bae5e4864245f61120522c9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384320
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 23:37:19 +00:00
recipe-roller
6c3ff6ff46 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752906326395087953

depot_tools:
9e7d3cec55~..9a5440a442fa45299937dd996acfbbddac1f2c00
  9e7d3ce (qjw@chromium.org)
      metadata: sort discovered files and validation messages
  9a5440a (jojwang@chromium.org)
      Revert "Include host and project in code-owners not enabled err...

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I80d70682ebaed53d39cf8673d41109ef4398f265
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5384189
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 23:19:05 +00:00
recipe-roller
633ef9e52c Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752909472539719681

depot_tools:
4d2728b03e
  4d2728b (jojwang@google.com)
      Include host and project in code-owners not enabled error.

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I389e974ee2a01d7e1146cca53a13d0614bf7c0cf
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5382250
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 22:16:24 +00:00
recipe-roller
c8474d82ff Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752914506646022945

recipe_engine:
bae1abb253
  bae1abb (iannucci@chromium.org)
      [recipe_engine/path] Make use of checkout based Paths a hard er...

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I11148e81a58e5e532393f3eca999b7d67b27caca
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5381867
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 20:58:51 +00:00
recipe-roller
5b3e1f3e4d Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752925201152653073

depot_tools:
083ed2e307
  083ed2e (msavigny@google.com)
      Ignore errors on racing cleanup.

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I2a86d1dca27cb4301f230a5c45b6f5779d4a0c10
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5383161
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 18:06:58 +00:00
recipe-roller
0f1f4fb848 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752929603633612849

recipe_engine:
c3067547f5
  c306754 (iannucci@chromium.org)
      [config.Static] Add carve-out for Path objects.

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I48aefc978f9d0c933be6886dbd109ba8b57e39ca
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5381893
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 17:00:03 +00:00
recipe-roller
b1f2caf1fc Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752971757759264929

depot_tools:
13d20527ff
  13d2052 (qjw@chromium.org)
      metadata: use os.walk to speedup metadata file discovery

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I7527ccef980b1dbcebb6fd36b2fbc2c43a60838e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5382023
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-20 05:46:19 +00:00
recipe-roller
30c99df05d Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8752998810858175233

depot_tools:
3155d7d074
  3155d7d (iannucci@chromium.org)
      [luci-auth] Release 1.4.0.

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I2bab0ae45c76e1b34fa3f3177a3b374ce1b6e683
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5381663
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-19 22:44:02 +00:00
recipe-roller
9b163bca69 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753014540025495809

depot_tools:
03ee6d950d
  03ee6d9 (joshber@meta.com)
      Fix use of deprecated LOGGER.warn in gerrit test

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I066788b2cdbedb708add69dba4fcf4e3e9b51b67
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5380945
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-19 18:31:11 +00:00
recipe-roller
f3cbaa6529 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753015799172332785

depot_tools:
16e7252be4
  16e7252 (kimstephanie@google.com)
      Add is_first_class_gcs migration file

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: Id64282e2954a0f07b1847fc9d66a0856ee99eeaf
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5380944
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-19 18:03:55 +00:00
Daniel Verkamp
4e55a26ac9 vmm_vhost: remove leftover upstream config files
The .cargo/config file enables a workaround for a problem we don't have,
and the .github and .buildkite configs aren't necessary for us either.

Change-Id: Idf816ac8ad4a90bbc37c4cdd1e759590a29ae33e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5372380
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2024-03-19 18:01:28 +00:00
recipe-roller
57d65a8f3f Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753074304685534465

recipe_engine:
f832e90ab5
  f832e90 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from bf9e72499498 to 7dd3e0506c60

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: Ibb5a1141a74b2f9bb325b5befdbaeddd5b86af3a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5379253
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-19 02:38:45 +00:00
Federico 'Morg' Pareschi
2ce370f8ac crosvm_control: Add security key attach command
BUG=b:326838992
TEST=presubmit
TEST=tested manually on a brya DUT with the equivalent vmc patches

Change-Id: I7b62ffeb5e03e6dabc328693a94ab3d16e70567c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5364552
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Auto-Submit: Morg <morg@google.com>
Commit-Queue: Morg <morg@google.com>
2024-03-19 00:46:07 +00:00
recipe-roller
935bb5fc18 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753085633571165249

depot_tools:
715d94600f
  715d946 (gavinmak@google.com)
      Add --generate_diff flag to presubmit_support.py

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: Ib605b34fe2557f1690e5ef24b19d3f9f1132732c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5379251
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-18 23:46:43 +00:00
recipe-roller
d9eb224cab Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753087521615242225

depot_tools:
9782552ca4
  9782552 (gavinmak@google.com)
      Add presubmit_diff.py

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I19788ca03152d2d4e598a86ae70d99afe6f59f38
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5379244
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-18 23:12:46 +00:00
Dennis Kempin
0cb1b01c1c Add crosvm-reviews as first code owners
The email will automatically pick a reviewer. This should be the
first choice for reviewer selection unless a subject matter OWNER
is available.

Change-Id: I0b21ea77b9b32436b65f917369ef5d5fe30e8653
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5378900
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2024-03-18 23:05:45 +00:00
recipe-roller
5894c671b6 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753090666076398529

recipe_engine:
2be32b5967~..9ed27cdfb226b1d6d2498bd6cba8ce119fce3fe4
  2be32b5 (vadimsh@chromium.org)
      [swarming] Use swarming pRPC CLI tool everywhere.
  9ed27cd (chanli@chromium.org)
      [recipes_module/buildbucket] switch the order of getting swarmi...

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I47cbff2f68ba1dbe6b56a14dfd795a8dcc59840a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5378018
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-18 22:19:30 +00:00
Frederick Mayle
a53111b3a2 vmm_vhost: misc master/slave -> frontend/backend renaming
This covers everything remaining in the `devices` and `vmm_vhost` crates
that are easy to find with grep.

BUG=b:233830719

Change-Id: I47a741ef9d54ff19213ded45b207b71777ac4ef1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5378015
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-18 21:44:24 +00:00
Frederick Mayle
c4561c03b5 vmm_vhost: rename Master/SlaveReq -> Frontend/BackendReq
Bug: 233830719
Change-Id: If12e55b9ec9af4903f15fffe1ad48ddb150e52c8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5378014
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-18 21:15:56 +00:00
Frederick Mayle
7d29cd82d7 devices: vhost-user: shuffle trait names
rename VhostUserDevice  -> VhostUserDeviceBuilder
rename VhostUserBackend -> VhostUserDevice

vmm_vhost now has a "Backend" type that would probably be confused for
VhostUserBackend. VhostUserBackend is very similar to VirtioDevice, so
it would be nice to call it VhostUserDevice to make that relationship
clearer. However, we already have a VhostUserDevice. It isn't a device
as much as it is an intermediary step in creating a device, so we rename
it to VhostUserDeviceBuilder.

The result of buildings a VhostUserDeviceBuilder is actually a Backend,
not a VhostUserDevice thought. I think we can resolve that migrating the
vhost-user vhost-vsock device to VhostUserDevice. The virtio vhost-vsock
device uses VirtioDevice, so it is unlikely there is a technical
limitation.

Bug: 233830719
Change-Id: Ie8b566515537bb2078d359c57f975221b4ef9074
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373918
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2024-03-18 20:13:04 +00:00
Daniel Verkamp
63a1a2d57b config: add feature check for balloon-related fields
One more layer of dead code removal if the balloon feature is not
enabled.

BUG=None
TEST=cargo build --no-default-features

Change-Id: I130d95f4347943adbbc67519a68d93df13cabc73
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5372633
Reviewed-by: maciek swiech <drmasquatch@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-18 18:16:58 +00:00
recipe-roller
66de0b0c2e Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753107653571829185

depot_tools:
d71daa7bd8
  d71daa7 (kimstephanie@google.com)
      Require size_bytes for first class GCS dep

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I2d63eb7bc71a4f47fa8a9bdc670e7e5fe3f422ad
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5378011
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-18 17:48:07 +00:00
Noah Gold
b63c3f4d76 vm_control: add snapshot encryption.
Introduces a new switch/option on snapshot commands/IPCs that turns on
encryption using the crypto crate.

BUG=b:286345300
TEST=builds upstream; tested end to end downstream.

Change-Id: Ia04074bb23332274d4e6b99eb242c84b0af7a8a9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5371444
Reviewed-by: Frederick Mayle <fmayle@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Noah Gold <nkgold@google.com>
2024-03-18 17:33:29 +00:00
Frederick Mayle
ea572e18a9 vmm_vhost: simplify FrontendServer setup
Change-Id: I460d9a195df37cc0c757708cbe1588d85d8f854a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5369235
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-15 23:17:49 +00:00
recipe-roller
4f8cc9c98c Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8753359940138440177

recipe_engine:
f0398dfe93
  f0398df (chanli@chromium.org)
      [recipe_modules/buildbucket] get parent_run_id from tags

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=denniskempin@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: If3d42928f6a162be5fa42f044d25aea03c0b3c5b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373176
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2024-03-15 22:54:53 +00:00
Frederick Mayle
d7705e9c80 devices: delete unused VhostUserDevice::executor_kind method
Was once used by the block device, but now that device creates its own
executor.

Change-Id: I986188cfdee1d939aa03e58f6377ebf2b8941c68
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373175
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-15 21:33:53 +00:00
Daniel Verkamp
77eca4258c devices: vhost-user: remove max_queue_num() from VhostUserDevice
The return value of this function was not used anymore.

Change-Id: I179f5fafdb4d2b8445220ee6aac739623ab57245
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373913
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-15 21:18:58 +00:00
Daniel Verkamp
d3acc4a9b2 devices: vhost-user: remove max_num_queues from VhostUserListener
The value of this parameter is unused in all implementations.

Change-Id: I3f802777546be02fff22786b294694bb69df59d5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5367763
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-15 21:10:32 +00:00
Frederick Mayle
fc6b451f50 vmm_vhost: rename MasterReqHandler -> FrontendServer
Bug: 233830719
Change-Id: I87b1f4091957578d498d7536da3ae3be79970eac
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373171
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2024-03-15 18:55:09 +00:00
Frederick Mayle
c15835df6b vmm_vhost: rename VhostUserMasterReqHandler -> Frontend
Bug: 233830719
Change-Id: I37ea260af7b22c59dbe45d55549c55e92849b726
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373170
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-03-15 18:55:04 +00:00
Frederick Mayle
771969389b vmm_vhost: rename Slave -> FrontendClient
Bug: 233830719
Change-Id: If953a0eb266ec6f16d2687da3e1db58d3eea965b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373169
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2024-03-15 18:54:58 +00:00
Frederick Mayle
18debe587f vmm_vhost: rename DummySlaveReqHandler -> TestBackend
Bug: 233830719
Change-Id: I7c1376e39ebaa2a9a33e8fb2a525272fc15efb40
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373168
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2024-03-15 18:54:53 +00:00
Frederick Mayle
e4e322cbb2 vmm_vhost: rename SlaveReqHandler -> BackendServer
Bug: 233830719
Change-Id: I90fa12a2a157db16eabbb88757f2eb46c3e5c7cd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5373167
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2024-03-15 18:54:48 +00:00