Commit graph

8986 commits

Author SHA1 Message Date
recipe-roller
df6fc83b25 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/8745864928750035233

depot_tools:
1545a081d8
  1545a08 (jojwang@google.com)
      Only sync non_git_sources for IsEnvCog().

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: I0298f48684477d3f88cbcfe5ff7d75cc751d92ac
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5604645
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-06-06 16:28:57 +00:00
Kaiyi Li
6b3865cf20 hypervisor: test set_interrupt_window_requested
* cli to disable interrupt
* use out to cause a VMEXIT and request an interrupt window
* sti to reenable the interrupt
* test whether we receive a VMEXIT for interrupt window

TEST=./tools/dev_container cargo nextest run --workspace --profile=default -E 'package(hypervisor) & binary(hypervisor_virtualization)' --retries 0
BUG=b:334055761

Change-Id: Idf04a7e3d85dff32b5a5f8d590cbb852bbe58ec9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599545
Reviewed-by: Judson Powers <judsonp@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Kaiyi Li <kaiyili@google.com>
2024-06-06 15:33:12 +00:00
Kaiyi Li
b400fbbcc1 hypervisor: allow intercepting VcpuExit::Intr in the test
It is necessary to test set_interrupt_window_requested on HAXM, which
doesn't distinguish between VcpuExit::Intr and VcpuExit::IrqWindowOpen.

TEST=./tools/dev_container cargo nextest run --workspace --profile=default -E 'package(hypervisor) & binary(hypervisor_virtualization) & test(test_interrupt_injection_when_not_ready)'  --retries 0 --no-capture
BUG=b:334055761

Change-Id: I1969d0bb25c7580a14de749a99805cdf9d96e48d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599544
Reviewed-by: Judson Powers <judsonp@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Kaiyi Li <kaiyili@google.com>
2024-06-06 15:33:02 +00:00
Hung Nguyen
b097bfb940 devices: pmem: Allow no timer VMA device
From local testing, there are less browser janks when ARCVM has a guest
swap pmem device with no timer, compared to a pmem device with 1 second
swap interval. Adding some pmem code to handle not create a timer when
the interval is 0 to allow experiment with this option.

BUG=b:329310285
TEST=./tools/dev_container ./tools/presubmit
TEST=crosvm run with 0 swap interval, verify no swap activities

Change-Id: I163ff8c20b9ceb041914ae9531449349f58ca2c5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5601346
Commit-Queue: Hung Nguyen <hungmn@google.com>
Reviewed-by: Brian Geffon <bgeffon@chromium.org>
Reviewed-by: Alexandre Marciano Gimenez <raging@google.com>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
2024-06-06 04:46:52 +00:00
Daniel Verkamp
e1be790cc2 swap: remove unused struct PagesizeShift
Fixes clippy unused code warning.

BUG=b:344974550
TEST=tools/clippy

Change-Id: I60003e959c343dc4b1713e109f2af197a9179d1f
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599146
Commit-Queue: Shin Kawamura <kawasin@google.com>
Auto-Submit: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Shin Kawamura <kawasin@google.com>
2024-06-06 03:37:56 +00:00
Daniel Verkamp
35bfbb7403 usb_util: fix clippy::unnecessary_get_then_check
Fixes new clippy warning with Rust 1.77

BUG=b:344974550
TEST=tools/clippy

Change-Id: I531655a78f31e94ab6745339186af5c44e95d50d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599120
Reviewed-by: Morg <morg@google.com>
Commit-Queue: Morg <morg@google.com>
Auto-Submit: Daniel Verkamp <dverkamp@chromium.org>
2024-06-06 00:54:51 +00:00
Daniel Verkamp
c691a7fb4d devices: virtio-snd: only specify FusedFuture supertrait
FusedFuture implies Future, which triggers a new Rust 1.74+ warning,
clippy::implied_bounds_in_impls. Remove the redundant Future to fix it.

BUG=b:344974550
TEST=tools/clippy

Change-Id: Ib22e3c7d3eb1c3dbe8a7c8bd2ddc421288a7e3db
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599143
Reviewed-by: David Stevens <stevensd@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-06-06 00:39:21 +00:00
Daniel Verkamp
40f767d28a e2e_tests: console: simplify reading of output file
Incidentally fixes a clippy warning about OpenOptions with both write()
and append().

BUG=b:344974550
TEST=tools/clippy
TEST=tools/dev_container tools/presubmit

Change-Id: Ic941fb0b05d83259dd0ac36c975fb51645a2a8a6
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599144
Auto-Submit: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Commit-Queue: Dmitry Torokhov <dtor@chromium.org>
2024-06-05 22:55:10 +00:00
Daniel Verkamp
94e948dd77 Cargo.lock: update uuid v1.3.0 -> v1.8.0
Fixes a clippy warning inside the uuid!() macro:

error: index is out of bounds
    --> src/crosvm/config.rs:2073:18
     |
2073 |             Some(uuid!("12e474af-2cc1-49d1-b0e5-d03a3e03ca03"))
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

BUG=b:344974550
TEST=tools/clippy

Change-Id: Ib043053144201787c65c5ed53334ab94aec88582
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5601345
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-06-05 22:42:58 +00:00
recipe-roller
4730d8f9df 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/8745936649567178577

depot_tools:
ad3ad021d9
  ad3ad02 (iannucci@chromium.org)
      [gerrit_util] Invert Authenticator model.

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: Ib2eb78d29c0ac4854bbdf0fe8ea5ac4d26cffc11
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599142
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-06-05 21:31:01 +00:00
recipe-roller
d3c760f005 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/8746003341407647697

recipe_engine:
c5e2f2ce07
  c5e2f2c (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 93a586d53955 to 0e7802b85394

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: I05ce7de4eb5a9d3ae451d7281de670f09075c593
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599141
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-06-05 03:51:50 +00:00
Gurchetan Singh
d66e99ecfb rutabaga_gfx/ffi: fix warning
Fixes

warning: unused return value of `Box::<T>::from_raw` that must be used
   --> src/lib.rs:285:18
    |
285 |         unsafe { Box::from_raw(*ptr) };

BUG=344998548
TEST=compilet

Change-Id: Ibb75410519f447c9ef19e1eff3ec79d01ab03c34
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599140
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2024-06-05 00:35:59 +00:00
Gurchetan Singh
704bec9aea rutabaga_gfx/ffi: add meson build
This is somewhat more modern than the Makefile.  Both just invoke
cargo under the hood.  The proper solution may come when Meson
starts supporting external crates:

https://github.com/mesonbuild/meson/issues/2173

Right now, this is a just a minimal version for developers.  A known
issue is modifying dependent crates (rutabaga_gfx) doesn't cause
a rebuild.  A solution is just `touch src/lib.rs` in ffi.

Also, `ninja -C build/ clean` isn't recommended.  Just do cargo
clean.

BUG=344998548
TEST=meson setup build
     ninja -C build/ install

Change-Id: Id5a142cc5cb5a8001198afc4d1cdbe800ec2ec23
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5599139
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2024-06-05 00:35:53 +00:00
Daniel Verkamp
642f9640b8 metrics: tests: replace .get(N).unwrap() with array indexing
This is more concise and accomplishes the same thing. It also
incidentally avoids a clippy warning about using .get(0) instead of
.first().

BUG=b:344974550
TEST=tools/clippy

Change-Id: Ie8575f63ca7aacd91123c81a6f533b4a2d1408d2
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5598299
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2024-06-04 23:47:08 +00:00
Daniel Verkamp
24d6063a2d hypervisor: tests: clean up infallible try_from conversions
These don't need to be try_from(), since the destination type can
represent all possible values of the source type.

Fixes upcoming clippy infallible conversion warnings.

BUG=b:344974550
TEST=tools/clippy

Change-Id: I6fab70ef0888a66c0d5464a64f9daf28d4e3741e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5597966
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2024-06-04 23:38:18 +00:00
Oystein Eftevaag
8f9f37a78c Set GDT segment flags in a more readable and configurable way for long mode
Change-Id: Icf99a405d84fddde5ca890c6879a894227fc7918
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5586419
Reviewed-by: Judson Powers <judsonp@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Oystein Eftevaag <oysteine@chromium.org>
2024-06-04 23:23:46 +00:00
recipe-roller
a1ee3c6b55 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/8746024102583413697

recipe_engine:
d307486ec0~..14d21dc9acafdff1a69bc240a0f993801e1d8c57
  d307486 (mohrr@google.com)
      [recipe.warnings] Move back api.json.read() deadline
  14d21dc (mohrr@google.com)
      OWNERS: Let anyone approve expectation-only changes

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: Ie27baa1f1b97a6622ef18262ea1e36215e26665e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5597968
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-06-04 22:22:49 +00:00
Noah Gold
2e24140d8b vendor/generic/metrics: document API methods.
BUG=b:331214555
TEST=presubmit

Change-Id: Iaa5db4b4e30d981848ccdac9966b51cf826d2518
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5588285
Commit-Queue: Noah Gold <nkgold@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-06-04 21:46:46 +00:00
Daniel Verkamp
8a4df3ac57 cros_async: replace .map(Arc::clone) with .clone()
Fixes upcoming clippy::map_clone warnings in Rust 1.78, and it's simpler
as well.

BUG=b:344974550
TEST=tools/clippy

Change-Id: Ibde9321b834687123785d68b37d5f490534ad894
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5598838
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-06-04 21:44:08 +00:00
Elie Kheirallah
3db2d8de3f devices: pl030: Suspendable impl
BUG=b:274145255
TEST=run_tests

Change-Id: I8d4b618681f769330dc13a844e1fea4c67f97fec
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5585669
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Elie Kheirallah <khei@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-06-04 17:16:16 +00:00
Daniel Verkamp
79ef282a5f devices: virtio-snd: fix process_pcm_ctrl argument order
The stream_id and card_index arguments were unintentionally swapped.

BUG=b:342187194
TEST=ChromeOS CQ

Fixes: 6ab9a0bcf2 ("vhost user snd: Append card_index to logs")
Change-Id: I5dc29d88e537880d84203b45d477d5f3034b0f71
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5595314
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Commit-Queue: Chih-Yang Hsia <paulhsia@chromium.org>
2024-06-04 01:57:37 +00:00
recipe-roller
c327cd9191 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/8746132945928969937

recipe_engine:
d35238406e
  d352384 (mohrr@google.com)
      [buildbucket] Remove deprecated APIs

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: I2e5c8d5f1affe05a9b94fff96207173c0dc6fbe0
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5593478
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-06-03 17:29:17 +00:00
recipe-roller
8dced88da2 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/8746389001890180065

depot_tools:
840e538154
  840e538 (iannucci@chromium.org)
      [gerrit_util] Add stronger type annotations around CreateHttpConn.

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: I70265263ca7836e44fdd9ae346c8dc6bf230307d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5590071
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-05-31 21:37:40 +00:00
recipe-roller
c4953d33ae 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/8746397180374070017

depot_tools:
3963cc6399
  3963cc6 (gregorynisbet@google.com)
      [gerrit_util.py] Remove unnecessary imports from gerrit_util.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: Ic5cd0e6397860f7ea4eed43054ca683207f5ccb5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5588288
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-05-31 19:28:18 +00:00
Richard Zhang
e99fb9ce35 virtio-snd: windows: assign audio_client_guid from StreamInfoBuilder
BUG=b:342181161
TEST=builds and runs downstream

Change-Id: I06f10eb5df587d2bf63d0736f8fb731cce8fcc02
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5582032
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Richard Zhang <rizhang@google.com>
2024-05-31 19:20:57 +00:00
Noah Gold
c8194324ab metric_events & src: add metric for VcpuShutdown.
Add a metric to report VcpuShutdowns.

BUG=b:340719884
TEST=builds

Change-Id: I70115458167fe487696fdc64657c745a93e4c36a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5585672
Commit-Queue: Noah Gold <nkgold@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-05-31 18:25:50 +00:00
recipe-roller
220731b686 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/8746404106733271665

depot_tools:
9428cf648b
  9428cf6 (sokcevic@chromium.org)
      [clang_format] Update clang 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: Id97fcabb761d72571720c428540c6b4c7d7fd06b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5587423
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-05-31 17:44:42 +00:00
Mu-Le Lee
ec39c307da Implement virtio-snd aaudio stream to support audio in android
This change introduces feature audio_aaudio on top of the support of
virtio-snd-multiple-backend. The android_audio uses the Android
AAudio NDK library to play audio. A libaaudio_stub is provided for
building and testing on non-android environment.

Bug=b:325930215
Test=Play Youtube video on panther
Test=./tools/dev_container
Test=cargo build
Test=cargo build -F audio_aaudio,libaaudio_stub
Test=./tools/run_tests
Test=./tools/presubmit

Change-Id: I7c275433bf94d4a347720ce0ffa9127ffcb66a1e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5556704
Reviewed-by: Jiyong Park <jiyong@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
Auto-Submit: Mu-Le Lee <mulelee@google.com>
Commit-Queue: Mu-Le Lee <mulelee@google.com>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
2024-05-31 05:32:38 +00:00
Wang Ningyuan
4ec0d1e011 crosvm: Withheld hotplug request until slot ready
After [crrev/c/5579863](http://crrev/c/5579863), a slot would reject any
hotplug requests until it is ready. To accomodate this, The manager adds
EmptyNotReady and OccupiedNotReady states to a slot, and waits for port
ready notification to send requests. Unit tests added. e2e tests are not
feasible since the current test VM does not accept commands until the
guest is ready.

TEST=presubmit tests
TEST=manual test: Add device before PCI enumeration, then remove and add
BUG=b:331529292

Change-Id: I7769667a9838fe8869b8855bc6b080d6e451fad2
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5578630
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Ningyuan Wang <ningyuan@google.com>
2024-05-31 04:09:34 +00:00
Wang Ningyuan
ed8f19ef62 devices: Add notification for PCI slot ready
This CL adds a notification event when a PCI slot is enabled by the
guest, and is ready for accepting hot plug events.

TEST=presubmit tests
BUG=b:331529292

Change-Id: I69cda392eb7bdfec5a4b731990c0c3816e8359ad
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5578629
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Ningyuan Wang <ningyuan@google.com>
2024-05-31 04:04:37 +00:00
Wang Ningyuan
3a431fc3b4 devices: pcie: reject hot plug request until port enabled
When a PCIe slot is initiated, the power indicator defaults to OFF.
However, as a device behind the bridge can be added and initiated by
flipping PCIE_SLTSTA_PDS, then discovered by PCI enumeration, the power
indicator does not match the status of the card. Such an inconsistency
is problematic for subsequent hot plug requests. As a result, no hot
plug events shall be made until the port is enabled by the guest.

TEST=presubmit tests
BUG=b:331529292

Change-Id: Id1cee16ed97a2f13fca842d8b3437023968257c1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5579863
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Ningyuan Wang <ningyuan@google.com>
2024-05-31 03:50:43 +00:00
Noah Gold
f34ff36b13 crosvm: add idanr@ to OWNERS
idanr@ has been writing and reviewing CLs in CrosVM & a downstream
product for over a year. In addition to his primary work, Idan has
completed a key refactoring project in upstream CrosVM where he
unified the GPU device stack (vhost-user/plain virtio), and has
upstreamed significant GPU code. Over the past month, he has been
consistently reviewing CLs in upstream CrosVM as is expected for
OWNERS. Idan regularly demonstrates good technical judgment for
changes in CrosVM, and has a holistic view of the codebase.

I believe the requirements for global CrosVM OWNERS have been
satisfied, and as such nominate idanr@ for the role.

BUG=none
TEST=idanr@ has been writing & reviewing code in CrosVM for some time
with good results.

Change-Id: I66b50034d6f481ba94d38fba07c03b6723bc31e4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5582033
Reviewed-by: Idan Raiter <idanr@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Noah Gold <nkgold@google.com>
2024-05-31 00:11:01 +00:00
recipe-roller
707fbfc293 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/8746481492719653985

depot_tools:
6427b94bc2
  6427b94 (iannucci@chromium.org)
      [git_cl] Refactor EnsureAuthenticated.

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: I264dfc7abb1fae0baf75f6beac210ccf17ae51aa
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5585343
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-05-30 21:08:44 +00:00
recipe-roller
c74540b894 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/8746490929307206673

depot_tools:
8ff5d0caee
  8ff5d0c (ddoman@chromium.org)
      [depot_tools] auto correct url always

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: Idc63caa89a3caad598d1c2ef9373f30e6fe4efc4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5584284
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-05-30 18:44:47 +00:00
recipe-roller
cd7213fb3a 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/8746494073563308513

depot_tools:
0a4852e19d
  0a4852e (sokcevic@chromium.org)
      Add clank/orderfile to deletion blocklist

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: Icacfe4170baee56b7b0103fb1d5ae6b11c10a2cb
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5585737
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-05-30 17:46:14 +00:00
Richard Zhang
6ab9a0bcf2 vhost user snd: Append card_index to logs
BUG=b:342187194
TEST=builds and presubmits

Change-Id: Ifb85a13766ff024add9ee921f1c7062219bef6ca
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5571097
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Commit-Queue: Richard Zhang <rizhang@google.com>
2024-05-30 17:40:23 +00:00
Keiichi Watanabe
b319fff090 pmem: Add a reference for alignment rules
Add a comment linking to a GitHub issue that explains why 128MiB alignment is
added at the initial CL [1].

[1]: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1605517/comment/c10e60b9_328b4337/

BUG=none
TEST=none

Change-Id: Ia7f8e7ba27ceaf9f157c02786e4fd2ead17befe5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5569435
Auto-Submit: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
2024-05-30 07:35:43 +00:00
recipe-roller
903cba2a74 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/8746552585136325137

depot_tools:
da5e2f948a
  da5e2f9 (ukai@google.com)
      autoninja: fix for no args

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: I6a46f9a5430f6d0f5b59c7962a5819a017912bc2
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5583396
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-05-30 02:17:11 +00:00
recipe-roller
3f5656ad0a 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/8746563281844702961

depot_tools:
e99a4f1cf1
  e99a4f1 (sokcevic@chromium.org)
      Add instrumented libraries to denylist

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: Ia4ee36c785ee8c3210b22672982f494a9828621f
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5583195
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-05-29 23:26:45 +00:00
recipe-roller
e101ce34dc 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/8746565167765051857

depot_tools:
c57b7ed364
  c57b7ed (iannucci@chromium.org)
      [gerrit_util] Change Authenticator API to return proxy info.

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: I07006024479f94cb2c942e5a18d46c050db65d83
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5583192
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-05-29 23:03:21 +00:00
recipe-roller
dc56f2076e 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/8746568942499882705

depot_tools:
11ed5e0222
  11ed5e0 (sokcevic@chromium.org)
      Reland "[gclient] Delete GCS output_dir on download"

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: I803805c0cdab4e8f84f6bcf60f1625b3255b8b9d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5581108
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-05-29 21:59:57 +00:00
Gurchetan Singh
c636d01275 rutabaga_gfx: uses_vulkan --> uses_vulkano
error[E0599]: no method named `uses_vulkano` found for struct `RutabagaGrallocBackendFlags` in the current scope
   --> external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/gralloc.rs:280:18
    |
29  | pub struct RutabagaGrallocBackendFlags(pub u32);
    | -------------------------------------- method `uses_vulkano` not found for this struct
...
280 |         if flags.uses_vulkano() {
    |                  ^^^^^^^^^^^^ help: there is a method with a similar name: `uses_vulkan`

BUG=336291294
TEST=cuttlefish_fastboot_flashing_test

Change-Id: Ie57505e576f948d7fe30a56733da3bbddbb8e2ac
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5581104
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Auto-Submit: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-05-29 20:27:26 +00:00
Wang Ningyuan
a47ec016f9 devices: Remove unused PciDeviceError variants
This CL removes unused variants from PciDeviceError.

BUG=NONE
TEST=presubmit tests

Change-Id: I578f7f96c31f44035ee28afb8cb589dbeaf9ad46
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5579857
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-05-29 19:44:50 +00:00
recipe-roller
48aaf75ec7 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/8746580897346729729

depot_tools:
2377dbfdbc
  2377dbf (mohrr@google.com)
      [recipes] Migrate away from deprecated post_process checks

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: I3b2f89246b890682c783a114ae01993215bf8b4e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5582031
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-05-29 18:46:42 +00:00
Daniel Verkamp
c3a2322f1a hypervisor: whpx: replace unsound WHV_UINT128 conversion
Transmuting from [u8; 16] to [u32; 4] was undefined behavior, since the
alignment of u32 is larger than that of u8.

Replace this conversion, as well as the corresponding conversion back to
an array, as `from_ne_bytes()` and `to_ne_bytes()` functions as wrappers
around the standard `u128` functions by the same names, and implement
`u128` <-> `WHV_UINT128` conversions in a safe, straightforward way
with casts of the union fields to the appropriate native types and
shifting.

BUG=None
TEST=tools/presubmit_clippy_mingw64 # with whpx feature

Change-Id: I4e3fa84ade61c7da6e66f3dbf6a110e81bf8b1fa
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5577447
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2024-05-29 18:42:29 +00:00
Dennis Kempin
37e40ac2f1 OWNERS_COUNCIL: Update council reviewers
Remove some members that are no longer working on
crosvm, add others to fill the void.

Change-Id: Ieb5f769be5678dde199f2f5f183c0dc4ec09332d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5577440
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Elie Kheirallah <khei@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-05-29 18:36:55 +00:00
Gurchetan Singh
8d633edf60 rutabaga_gfx: gralloc: don't always start Vulkano
RutabagaGralloc is used for two things:

   1) Allocating swapchain buffers
   2) Using Vulkan to map buffers via hypervisor-specific syscalls

(2) is done in the main crosvm process, and could be sensitive
to performance considerations.  The "cuttlefish_fastboot_flashing_test"
seems to fail when Vulkano is initialized.  Maybe initializing Vulkan
takes too long, who knows.

Only Windows uses (2), and Linux doesn't really need it right now.
All Linux platforms could benefit from (1), so modify
RutabagaGralloc initialization so Vulkan is available for (1) but
not (2) on Linux.

BUG=336291294
TEST=cuttlefish_fastboot_flashing_test

Change-Id: Ic753298230f05e4c314f65b3efbb362c76e21cd9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5577398
Reviewed-by: Frederick Mayle <fmayle@google.com>
Auto-Submit: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2024-05-29 18:30:54 +00:00
recipe-roller
d203c9a282 Added hypervisor utils and test for entering long mode
BUG=342012892
Test=Yes it is

Change-Id: I6a412e7936bc6f84c4d7a2ea21636a520d6ac5d7
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5560443
Reviewed-by: Noah Gold <nkgold@google.com>
Reviewed-by: Judson Powers <judsonp@google.com>
Commit-Queue: Oystein Eftevaag <oysteine@chromium.org>
2024-05-29 18:05:45 +00:00
recipe-roller
0ed505f3db 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/8746587186341002641

depot_tools:
58c6521691~..499342211b3b767b06347d8470d36b98c9099f0c
  58c6521 (jwata@google.com)
      Add per-file autoninja_test.py=file://BUILD_OWNERS to tests/OWNERS
  4993422 (sokcevic@chromium.org)
      [GCS] Add prefix option to upload_to_gs_f_c

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: Ibd84cdae672caf27cfe3c697e3b9affac3d071d5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5582030
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-05-29 17:08:53 +00:00
Kaiyi Li
f7ed066999 hypervisor: add tests for ready_for_interrpt with FLAGS.IF set and unset
Hypervisors should always not allow interrupt interception if FLAGS.IF
is not set.

TEST= ./tools/dev_container cargo nextest run --workspace --profile=default -E 'package(hypervisor) & binary(hypervisor_virtualization) & test(test_interrupt_ready_when_interrupt_enable_flag_not_set)' --retries 0 --no-capture
BUG=b:334055761

Change-Id: Idb70572afe0472ffda76c3d7e4c043f4024c4ce7
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5577442
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Kaiyi Li <kaiyili@google.com>
2024-05-29 16:28:10 +00:00