Commit graph

6910 commits

Author SHA1 Message Date
Daniel Verkamp
ce5a78e83b clippy fixes for Rust 1.70 and 1.71
Change-Id: If86c6cd531b854293a93208de5254664f5ee6bec
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4637612
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-07-13 20:29:05 +00:00
recipe-roller
dc231864fe 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/8775657490156128401

depot_tools:
4e87f5bfe2
  4e87f5b (iannucci@chromium.org)
      [git-freeze] Ignore submodules when freezing.

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: If7bc843630de8075202fc3572f526e96acf1cec8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4684767
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>
2023-07-13 20:07:58 +00:00
Daniel Verkamp
587d5fab3d vm_control: move send_recv_event test to base
This test is unrelated to vm_control; it is testing base::Event and
base::Tube functionality, so move it next to the existing Tube tests.

The test module was also in the middle of the file for some reason,
which caused clippy warnings in Rust 1.71.

Change-Id: I52858e71df8aa3e092b3b7d12e1232454b61c4d4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4684827
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-07-13 19:59:28 +00:00
Daniel Verkamp
14b7dda9f9 vfio_sys: clean up wildcard re-exports
Change-Id: I055ebf6772ce23d54e0526b8bbcf4f699e26eb8e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4637611
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2023-07-13 19:59:28 +00:00
Daniel Verkamp
7827e4688d devices: virtio: minimize number of write_obj in add_used
Write the whole virtq_used_elem with one write_obj call instead of
writing id and len separately.

This reduces the number of GuestMemory lookups (and IOMMU translations
if IOMMU is in use).

BUG=None
TEST=

Change-Id: I7f9520b0057ffcaa9fa1c00f40c848e9d5423451
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679852
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zihan Chen <zihanchen@google.com>
2023-07-13 19:48:36 +00:00
Dennis Kempin
d9fa331cea Partial revert: crosvm: Deprecate DataInit
This is a partial revert of c244741015

data_init in ChromeOS is pinned to an old revision and p9 is not.
This makes is hard to make cross-crate changes between the two.

BUG=None
TEST=CQ

Change-Id: I5f7618e468ebe9655ccb432516e4166c2a11e61b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4684826
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-07-13 19:07:08 +00:00
recipe-roller
2895eb1101 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/8775700270981910305

recipe_engine:
16f5bc3c21
  16f5bc3 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from eb883663277d to 243d76fe545e

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: Ic852655a63d2de0c1e6b1e29cfd09c3c1248e42c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4681275
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>
2023-07-13 08:49:41 +00:00
recipe-roller
a99f777d9d 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/8775725438443705233

recipe_engine:
d618ee7d7f
  d618ee7 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from cbb83a2485a1 to 1b0aa1222dd6

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: Ia8541191d60313e32e7bd7b5381dd06b144f7f85
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4681271
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>
2023-07-13 02:08:27 +00:00
Daniel Verkamp
21054548e5 devices: virtio: do not check index in add_used()
Since the caller must pass a DescriptorChain now (rather than a raw
descriptor index), and DescriptorChain can only be constructed inside
the Queue implementation, it is not necessary to validate the queue
index in add_used(). Leave a debug-only check so that programming
mistakes can be caught in unit tests/fuzzers/... without negatively
impacting release build performance.

BUG=None
TEST=cargo build --release; observe SplitQueue::add_used asm

Change-Id: I69672758f63304c3ea59c0fc1c0780ef36fa4cdd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679851
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-07-12 23:24:29 +00:00
Daniel Verkamp
b9c9f6c381 devices: virtio: avoid overflow check in wrap_queue_index
We know that self.size is >= 1, so subtracting 1 will never overflow.
Use wrapping_sub() to convince the compiler not to emit an overflow
check.

BUG=None
TEST=cargo build --release, check add_used() assembly

Change-Id: Ia7c933f5edf2a136dcd324ff8c9fca5c4f14ce8a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679850
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zihan Chen <zihanchen@google.com>
2023-07-12 23:18:14 +00:00
Daniel Verkamp
b714d56d3e vm_memory: make unchecked_add actually unchecked
GuestAddress::unchecked_add() previously used a normal + operator to add
the two values, which got converted into a checked addition even in
release mode due to our use of `overflow-checks = true`. Explicitly call
the wrapping_add() function instead to ensure we get the natural binary
integer behavior, which can be compiled into a simple add instruction
without any extra checks.

Additionally, mark the function as #[inline] - even though the function
body is quite small, in practice, I observed the compiler emitting a
call instead of simply inlining the single instruction (at least in
non-LTO release builds).

This probably has very little impact in practice, but it should slightly
improve codegen in some critical paths for virtio descriptor processing.

BUG=None
TEST=tools/dev_container tools/presubmit
TEST=cargo build --release and observe no call in SplitQueue::add_used

Change-Id: Idad5acccf56b4428f8db890576e37e470e61584d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679849
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-07-12 23:15:54 +00:00
Daniel Verkamp
800f2bec5f data_model: inline endian conversions
The Le16/Le32/Le64 <-> u16/u32/u64 conversions should be no-ops on
little endian platforms, and even the big-endian conversions can be
efficiently implemented with a single byte-swap or MOVBE instruction in
most cases, so it should almost always be beneficial to inline the
conversion functions.

BUG=None
TEST=cargo build --release; view SplitQueue::add_used assembly

Change-Id: Ia028670e99f93754e729b3ff1fbdae2bcef74917
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679848
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-07-12 23:10:51 +00:00
Frederick Mayle
49794f44da virtio: block: flush disk image as part of sleep
This is mainly for qcow2, which doesn't immediately write all mutations
to file. It is important that all writes be sent to the OS so that
snapshots taken while asleep do not lose information.

BUG=b:266514327
TEST=patched into AOSP and manually ran snapshot-restore flow

Change-Id: I2a9f24120d51fd053ff1440d0e1750e9bbebf379
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679843
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Elie Kheirallah <khei@google.com>
2023-07-12 22:26:17 +00:00
Braden Kell
3343aec3b1 rutabaga_gfx: Add riscv64 cfg to fix test targets
This change fixes compiler errors that occur when building crosvm test
targets for riscv64 Android.

BUG=b:286142463
TEST=Copied patch to Android, built crosvm_test_src_main

Change-Id: I9729b084a0784c23133248752fdf41f8b8b3cee4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4682168
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-07-12 22:01:03 +00:00
Changyuan Lyu
9c8f539695 x86_64: add a null GDT entry for 64-bit protocol
Based on https://docs.kernel.org/arch/x86/boot.html#id1, this patch
adds a null GDT entry to match the Linux 64-bit Boot Protocol. With
this patch, CS is 0x10, DS, ES, and SS are 0x18.

Booted a bzImage and an ELF kernel, no issues observed.

TEST=cargo test -p x86_64
BUG=None

Change-Id: I234e9c43598fd5edb9d4e1b0fed1ba67f06a1845
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680287
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Changyuan Lyu <changyuanl@google.com>
2023-07-12 21:35:27 +00:00
Zihan Chen
c244741015 crosvm: Deprecate DataInit
- The remaning DataInit are all left due to limitations of the
current stable version of zerocopy
- Only 5 files still use DataInit
- DataInit is marked as deprecated to prevent future introduction
- Other mentions of DataInit across the repository are cleaned up

TEST=CQ

BUG=b:204409584
FIXED=b:204409584

Change-Id: Id7126e58cff63eaa67138de429375382a3ffbc55
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680289
Auto-Submit: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2023-07-12 21:34:20 +00:00
recipe-roller
8205b4c121 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/8775743052227207025

depot_tools:
15d9af9d86
  15d9af9 (iannucci@chromium.org)
      [gclient_utils] Make git tools set `gitcommit` modeline in vim.

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: I8168c27a7b39882414d976e1ae4ef0b122e390ea
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4682169
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>
2023-07-12 21:32:28 +00:00
Zihan Chen
7b0b071cba third_party/vmm_vhost: Remove all DataInit besides VhostUserMsgHeader
VhostUserMsgHeader is a generic type and requires updated zerocopy
to be able to derive AsBytes. Everything else in this folder is
cleaned up.

TEST=CQ

BUG=b:204409584

Change-Id: Ic86dd577969cb79648898fa3071a262824faeef7
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679845
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Auto-Submit: Zihan Chen <zihanchen@google.com>
2023-07-12 20:45:13 +00:00
Daniel Verkamp
0c29eac704 devices: virtio: factor Queue into QueueConfig+Queue
This change creates a new type (QueueConfig) that represents a queue
configuration before it has been activated. The QueueConfig::activate
function serves the same purpose as the previous Queue::activate, but
now it also returns the Queue type, which now always represents an
actively running queue.

BUG=b:290268617
TEST=tools/dev_container tools/presubmit

Change-Id: I502ac6b29bf9f0cfc33ef15f6fb7fe482214eafd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4111872
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Yuan Yao <yuanyaogoog@chromium.org>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
2023-07-12 20:21:02 +00:00
Elliot Berman
479cb9c89a aarch64: Fix size prop in swiotlb
Devicetree bindings for restricted-dma-pool say that *either* "size" or
"reg" property should be used (but do not allow for both).

  Each child node may either use a 'reg' property ... or a 'size'
  property ...

Presently, "size" property is added even when fixed swiotlb region is
used. Apply the "size" property only when using dynamically allocated
swiotlb.

BUG=b:244630071

Fixes: 653f62a4a3 ("aarch64: static swiotlb allocation")
Change-Id: I1c88c9be043133e698e1da9072e5353ad7419e27
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680283
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
2023-07-12 20:18:39 +00:00
Elie Kheirallah
ff80c3f9c8 tools: example_simple: fix command for installing packages
Fixing small typo in command to install multiple packages. A comma is
required, and not a space.

BUG=N/A
TEST=mdbook build

Change-Id: I8a7032b3e767d1dc072cf593131f5cbddaf57ff8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680286
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Elie Kheirallah <khei@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Auto-Submit: Elie Kheirallah <khei@google.com>
2023-07-12 20:06:51 +00:00
recipe-roller
ece63aeba0 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/8775751233392145041

depot_tools:
d78d8ab771
  d78d8ab (iannucci@chromium.org)
      [gclient] Export CONFIG_CTX for other modules to extend.

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: I0297a2f950abadd6c54c764f8ebc9099f741e272
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4682067
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>
2023-07-12 19:19:31 +00:00
recipe-roller
aef3d6cbc1 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/8775752491548704449

depot_tools:
e7a7a90a24
  e7a7a90 (sokcevic@chromium.org)
      Fix gclient read submodule path

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: I41c101849ec8e4c18aad142d6cd38f3b871c9ab3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4681795
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>
2023-07-12 19:00:49 +00:00
recipe-roller
bef2babaf8 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/8775755631290875889

depot_tools:
7c59d27873
  7c59d27 (iannucci@chromium.org)
      [git-reparent-branch] Keep empty branches when doing rebase-upd...

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: I1748aa5a13974334163115106a16a1249af516f2
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4681794
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>
2023-07-12 18:07:26 +00:00
recipe-roller
68c7cfb14c 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/8775795903092556609

depot_tools:
018e46c03d
  018e46c (jojwang@google.com)
      Set managed:True for infra_superproject configs.

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: I51d575bfd36f1f88e4e19f399e9195878334ade0
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680901
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>
2023-07-12 07:25:57 +00:00
recipe-roller
7989b9bc77 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/8775809743178826065

recipe_engine:
f31d08ced4
  f31d08c (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 2f2ae2fb65eb to 5d9f8239e369

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: Iad34f35359321f79a319393e2de9f2bee40715fd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680900
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>
2023-07-12 03:45:53 +00:00
recipe-roller
645f82fdc4 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/8775822325838873761

depot_tools:
c5dab15050
  c5dab15 (iannucci@chromium.org)
      [git-rebase-update] Ignore submodules when checking tree status.

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: Icf2777999f5b146755c767cba63a684cebb50036
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680078
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>
2023-07-12 00:23:42 +00:00
recipe-roller
a51a738abb 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/8775823584704103633

recipe_engine:
c9447360d2
  c944736 (iannucci@chromium.org)
      Remove NAME from recipe_module_importer.

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: Ice23b9fa7304ba9293dc6835859a1c349c9e1fad
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680077
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>
2023-07-12 00:10:58 +00:00
Zihan Chen
39df0a2550 thirdparty/vmm_vhost: Partially convert DataInit to zerocopy
Previously this effort is blocked by VhostUserInflight having
different type layout (padding) on different bit length archs.
However, unlike i686, armv7 have same data layout and padding
as aarch64 and x86_64, so it's not an issue for our supported
architectures.

bitflags crate is upreved to 2.3.2. New version is already
vendored in cros cargo vet.

TEST=CQ

BUG=b:204409584

Change-Id: I51701550a4cf297dc739344d2895972a9c6f6cc6
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679841
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-07-11 23:47:55 +00:00
Elie Kheirallah
b1dee44a4b devices: vsock: add snapshot/restore support
Add snapshot restore to vsock device.

BUG=b:267691230
TEST=presubmit, e2e_tests
TEST=boot VM with vsock, snapshot, boot restored VM with vsock.

Change-Id: I3ae0c5e5099645f9a4ded6a751bb2df063c0b8e9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4610692
Commit-Queue: Elie Kheirallah <khei@google.com>
Reviewed-by: Richard Zhang <rizhang@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2023-07-11 22:07:40 +00:00
Elie Kheirallah
5f29ce807a devices: bat: add snapshot/restore
Add snapshot/restore to GoldfishBattery.

BUG=b:266513572
TEST=presubmit
TEST=create VM with `battery type=goldfish`, modify battery state,
snapshot, boot restored VM, validate state is restored

Change-Id: Icc31a4c154eeb527887fc03d94943fa076e60431
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4652424
Reviewed-by: Richard Zhang <rizhang@google.com>
Reviewed-by: Steven Moreland <smoreland@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Elie Kheirallah <khei@google.com>
2023-07-11 21:42:08 +00:00
recipe-roller
be1aec8403 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/8775844975805510017

depot_tools:
deff9a27cc
  deff9a2 (victorvianna@google.com)
      [docs] Improve `git cl patch --help`

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: I864a7a7b4df794f9a53d5ddc524e147860d041cf
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4677828
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>
2023-07-11 18:25:31 +00:00
Daniel Verkamp
019d6bace7 devices: virtio: remove SignalableInterrupt trait
Use the concrete Interrupt type in its place, since Interrupt now works
for all virtio and vhost transports.

No functional change intended.

BUG=b:244204463
TEST=tools/dev_container tools/presubmit

Change-Id: Ie08c396b7eee997dfde7ae46a5ab7c728ba3584c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4639203
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
2023-07-11 17:58:11 +00:00
recipe-roller
84cd6de654 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/8775855671936888641

depot_tools:
73558cf434~..7b0a1959033037e58c819a17521d3b50ee05508d
  73558cf (yueshe@google.com)
      [mac_toolchain] Roll mac_toolchain in depot_tools to latest ver...
  7b0a195 (yueshe@google.com)
      [mac_toolchain] Roll mac_toolchain version for builders using o...

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: I0a6ace7f8e2a34ebadd06d90fa4479230177ee56
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4677823
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>
2023-07-11 15:37:07 +00:00
Keiichi Watanabe
3faa079528 config: shared-dir option accept "dax=", not "use_dax="
virtio-fs's --shared-dir option accepts `dax={true,false}` to enable the
DAX feature. This is a follow-up of crrev.com/c/4656598, which made
crosvm accept 'use_dax=...' instead, which broke the existing vm.Fio
tests.

BUG=b:290642425
BUG=b:286382050
TEST=vm.Fio.{block_boot, virtiofs_dax_boot}
TEST=presubmit

Change-Id: I7c6608eed39fe85d9ec92db669c600b4dda02604
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4674483
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
Auto-Submit: Keiichi Watanabe <keiichiw@chromium.org>
2023-07-11 06:00:25 +00:00
Gurchetan Singh
c5c1f01826 rutabaga_gfx/ffi: expose WSI option
For a stable rutabaga API, we should do this.

BUG=b:273555494
TEST=./rutabaga_test

Change-Id: I4cbb35324cff6dd5c1fafc06d91a3826d659cff8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4673245
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2023-07-11 03:20:32 +00:00
Ryan Neph
90b07da368 devices: virtio: wl: use queried shmem fd access mode when mapping
Certain wayland protocols require clients to mmap shmem as PROT_READ
(such as zwp_linux_dmabuf_feedback_v1:event:format_table), but crosvm's
virtio-wl device always assumes PROT_READ | PROT_WRITE. Just mirror the
host fd's access mode to always get it right.

BUG=b:290125852
TEST=glxgears, vkcube, steam in VM

Change-Id: Iffbde2559a796098fa0655aeb1593f36588838cc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4669514
Reviewed-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Ryan Neph <ryanneph@google.com>
2023-07-11 01:10:36 +00:00
recipe-roller
4f93220b38 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/8775912294848522097

recipe_engine:
0b56c1eb34
  0b56c1e (iannucci@chromium.org)
      [CONFIG_CTX] Allow modules to explicitly export their own CONFI...

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: Iab7a9411cb655fbcaff44c217fab60f22fe293da
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4676694
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>
2023-07-11 00:38:31 +00:00
Daniel Verkamp
ad213f44e0 cros_async: port some uring_source tests to io_source
This allows the tests to run on all executor kinds supported by the
generic io_source test harness (io_uring, epoll, and Windows handle).

readmulti is modified to write different data to each region so the test
can verify the correct part of the file is actually read.

fsync is removed since it is already covered by io_source's fsync test.

readwrite_current_file_position is split into two tests that validate
the async io_source behavior using normal non-async File operations
(read_current_file_position and write_current_file_position).

BUG=b:288967124
TEST=tools/dev_container tools/presubmit

Change-Id: I59ce8dd3934135499062fed4cb7e0f54bf446d09
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4655444
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2023-07-10 23:46:14 +00:00
recipe-roller
5b36c50377 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/8775924247129422769

recipe_engine:
f40c149371
  f40c149 (iannucci@chromium.org)
      [test list] Add the ability to filter the list of tests returned.

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: Ib550ac2d245a29709c8858ddd1e81259a1b7a4cc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4675794
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>
2023-07-10 21:23:25 +00:00
Elie Kheirallah
556bae3415 docs: document installing packages with virt-builder
Some examples in the book assume that packages are installed. One
example as such is `Vsock`, where there's an assumption that `ncat` is
installed.
Some examples provide a hint at how packages are installed, but it's not
explicitely formulated. And if you skip the examples page and go
directly to Vsock, you lack the information on how to install `ncat`.
Added more information in the Example Usage on how to install packages,
and added the virt-builder command in vsock.

BUG=N/A
TEST=mdbook build

Change-Id: Id5a07287458ce55538ccb8a9b387dfb4b512042f
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4675702
Commit-Queue: Elie Kheirallah <khei@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2023-07-10 15:51:48 +00:00
recipe-roller
7bde8632e8 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/8775948156011536193

depot_tools:
9d18c9eb65
  9d18c9e (sokcevic@chromium.org)
      Reland "Drop support for py2 presubmit hook win mapping"

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: I7f881a07b18a930c5a47d124b982ca1799e69d00
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4675523
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>
2023-07-10 15:07:47 +00:00
David Stevens
53dbfeaaf3 crosvm_control: Remove temporary swap disable API
Delete temporary crosvm_client_swap_disable_vm2 API.

BUG=None
TEST=None

Change-Id: I10f9166e3f5f12d11b0618582ee959e82000900d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4664190
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
2023-07-10 04:36:31 +00:00
recipe-roller
12f7f8b7fb 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/8776187859753664241

depot_tools:
247429efd9
  247429e (iannucci@chromium.org)
      [git_cl] Remove config from git_cl module.

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: I1e58ebdf16178380d6524c5fdf8cf94fe56224c1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4671480
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>
2023-07-07 23:37:56 +00:00
recipe-roller
4a4af111b1 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/8776201702025932785

depot_tools:
4303140531~..11d847f07bd10fdc952ed11278998dd6fc0f7c68
  4303140 (aredulla@google.com)
      [ssci] Added Shipped field to READMEs
  11d847f (aravindvasudev@google.com)
      Fix setdep to run git command only for submodules is enabled

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: I9c2ce393e406d642e913df4cf8fe475f026f7cd9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4671479
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>
2023-07-07 19:58:21 +00:00
Gurchetan Singh
70e260527b rutabaga_gfx/ffi: win32 fix
A forward declaration should be enough and not clash with other
self-defintions.  Similiar to what gfxstream does.

BUG=b:273555494
TEST=compile

Change-Id: Ib5dae74f0590337977466f8e5921111db713517f
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4673244
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2023-07-07 18:56:07 +00:00
Gurchetan Singh
46827e1984 rutabaga_gfx/ffi: fix gfxstream capset names
Recent capset name changes have caused test to
fail.  Fix this.

BUG=b:273555494
TEST=./rutabaga_test

Change-Id: I875f8a6350970f90ae127eaeb527f3264db54236
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4673243
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-07-07 18:56:01 +00:00
Gurchetan Singh
4d712914d2 rutabaga_gfx/ffi: fix cross domain test
Recent protocol changes have caused test to fail.
Fix this.

BUG=b:273555494
TES=./rutabaga_test

Change-Id: I5f344a16d3bc7a6edcb4bb217e842477b6bdd637
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4673242
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2023-07-07 18:55:37 +00:00
Gurchetan Singh
b52492660a rutabaga_gfx/ffi: clang-format virtgpu cross domain protocol
We should do this.

BUG=b:273555494
TEST=./rutabaga_test

Change-Id: I8fc3a7d0bd3802df8c57e3b15eb0bb3fd1371366
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4673241
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2023-07-07 18:55:31 +00:00
David Stevens
f3bc60560e crosvm_control: Update primary swap disable API
Update crosvm_client_swap_disable_vm to the new argument format. The
temporary crosvm_client_swap_disable_vm2 function will be removed in a
followup change, after downstream clients stop using it.

BUG=None
TEST=None

Change-Id: Ice624eaaacec7910a00e09a4b6e94a0635ecf7dd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4664189
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
2023-07-07 05:23:20 +00:00