Skip to content

Commit 358f35e

Browse files
authored
Merge branch 'google:main' into rpm-build
2 parents 53ad22a + 793292a commit 358f35e

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

base/cvd/cuttlefish/host/commands/cvd/cli/parser/instance/cf_graphics_configs.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ Result<std::string> GenerateDisplayFlag(const EnvironmentSpecification& cfg) {
6767
} else {
6868
out_display.set_refresh_rate_hertz(CF_DEFAULTS_DISPLAY_REFRESH_RATE);
6969
}
70+
for (const auto& overlay_entry : in_display.overlays()) {
71+
DisplayOverlay* overlay_proto = out_display.add_overlays();
72+
overlay_proto->set_vm_index(overlay_entry.vm_index());
73+
overlay_proto->set_display_index(overlay_entry.display_index());
74+
}
7075
}
7176
}
7277

base/cvd/cuttlefish/host/commands/cvd/cli/parser/load_config.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ message Display {
8686
optional uint32 height = 2;
8787
optional uint32 dpi = 3;
8888
optional uint32 refresh_rate_hertz = 4;
89+
repeated DisplayOverlay overlays = 5;
8990
}
9091

9192
message Disk {
@@ -155,3 +156,8 @@ message DeviceState {
155156
message Metrics {
156157
optional bool enable = 1;
157158
}
159+
160+
message DisplayOverlay {
161+
int32 vm_index = 1;
162+
int32 display_index = 2;
163+
}

base/cvd/cuttlefish/host/commands/run_cvd/boot_state_machine.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,15 @@ class CvdBootStateMachine : public SetupFeature, public KernelLogPipeConsumer {
511511
if (!read_result.ok()) {
512512
return;
513513
}
514+
if ((*read_result)->event == monitor::Event::BootCompleted) {
515+
LOG(INFO) << "Virtual device rebooted successfully";
516+
if (!instance_.vcpu_config_path().empty()) {
517+
auto res = WattsonRebalanceThreads(instance_.id());
518+
if (!res.ok()) {
519+
LOG(ERROR) << res.error().FormatForEnv();
520+
}
521+
}
522+
}
514523
}
515524
}
516525
}

base/debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ override_dh_installinit:
2222

2323
# the `--workspace_status_command` flag path depends on the current working directory of base/cvd
2424
override_dh_auto_build:
25-
cd cvd && bazel build --linkopt="-Wl,--build-id=sha1" 'cuttlefish/package:cvd' --spawn_strategy=local --workspace_status_command=../../tools/buildutils/stamp_helper.sh --build_tag_filters=-clang-tidy
25+
cd cvd && bazel build --linkopt="-Wl,--build-id=sha1" 'cuttlefish/package:cvd' --spawn_strategy=local --workspace_status_command=../stamp_helper.sh --build_tag_filters=-clang-tidy
2626
dh_auto_build
2727

File renamed without changes.

0 commit comments

Comments
 (0)