Adds the input region to the layout file
Bug: 67895611
Test: Local boot
Change-Id: Ia60fe8473b5683c153225d9d940cb7389d62aeeb
diff --git a/host/ivserver/vsoc_mem.json b/host/ivserver/vsoc_mem.json
index 92a60d4..62ebdc0 100644
--- a/host/ivserver/vsoc_mem.json
+++ b/host/ivserver/vsoc_mem.json
@@ -1,6 +1,23 @@
{
"vsoc_device_regions" : [
{
+ "device_name" : "vsoc_input",
+ "__comment" : "Send input events to the guest",
+ "current_version" : 1,
+ "min_compatible_version" : 1,
+ "region_size" : 4096,
+
+ "guest_to_host_signal_table" : {
+ "__comment" : "sizeof each node is based on common/libs/shm_compatible/lock.h",
+ "num_nodes_lg2" : 0
+ },
+
+ "host_to_guest_signal_table" : {
+ "num_nodes_lg2" : 0
+ }
+ },
+
+ {
"device_name" : "hwcomposer",
"__comment" : "HWComposer related",
"current_version" : 1,
diff --git a/host/ivserver/vsocsharedmem.cc b/host/ivserver/vsocsharedmem.cc
index cdc5541..af5a991 100644
--- a/host/ivserver/vsocsharedmem.cc
+++ b/host/ivserver/vsocsharedmem.cc
@@ -306,6 +306,12 @@
}
}
+ if (name_to_region_idx.count(VSOC_INPUT_REGION_DEVICE_NAME) == 0) {
+ LOG(INFO) << "No input region specified (name = "
+ << VSOC_INPUT_REGION_DEVICE_NAME
+ << "): VSoC input unavailable";
+ }
+
// Pass 2: Resolve the managed_by_references
for (const auto &it : managed_by_references) {
if (!name_to_region_idx.count(it.second)) {