|
| 1 | +From 540366f8db6ffaf300d9c50ff45fc3975558bc5e Mon Sep 17 00:00:00 2001 |
| 2 | +From: "Suresh, Prashanth" <prashanth.suresh@intel.com> |
| 3 | +Date: Tue, 5 Nov 2024 22:55:41 +0800 |
| 4 | +Subject: [PATCH] Fix issue with connectors launch in Android. |
| 5 | + |
| 6 | +Signed-off-by: Suresh, Prashanth <prashanth.suresh@intel.com> |
| 7 | +--- |
| 8 | + src/guest/vm_builder_qemu.cc | 18 +++++++++--------- |
| 9 | + 1 file changed, 9 insertions(+), 9 deletions(-) |
| 10 | + |
| 11 | +diff --git a/src/guest/vm_builder_qemu.cc b/src/guest/vm_builder_qemu.cc |
| 12 | +index 5eb6921..9b11b93 100644 |
| 13 | +--- a/src/guest/vm_builder_qemu.cc |
| 14 | ++++ b/src/guest/vm_builder_qemu.cc |
| 15 | +@@ -371,14 +371,6 @@ bool VmBuilderQemu::SetupSriov(void) { |
| 16 | + return false; |
| 17 | + } |
| 18 | + |
| 19 | +- emul_cmd_.append(connector_str); |
| 20 | +- |
| 21 | +- std::string disable_host_input = cfg_.GetValue(kGroupDisplay, kDisableHostInput); |
| 22 | +- if((!disable_host_input.empty()) && disable_host_input.compare("yes") == 0) { |
| 23 | +- LOG(info) << "Disabling host input"; |
| 24 | +- emul_cmd_.append("input=off"); |
| 25 | +- } |
| 26 | +- |
| 27 | + std::string mem_size = cfg_.GetValue(kGroupMem, kMemSize); |
| 28 | + boost::trim(mem_size); |
| 29 | + |
| 30 | +@@ -400,7 +392,7 @@ bool VmBuilderQemu::SetupSriov(void) { |
| 31 | + std::string render_sync = cfg_.GetValue(kGroupDisplay, kRenderSync); |
| 32 | + if((!render_sync.empty()) && render_sync.compare("false") == 0) { |
| 33 | + LOG(info) << "render_sync false"; |
| 34 | +- render_sync = "false"; |
| 35 | ++ render_sync = "false"; |
| 36 | + } |
| 37 | + else { |
| 38 | + LOG(info) << "render_sync true"; |
| 39 | +@@ -452,6 +444,14 @@ bool VmBuilderQemu::SetupSriov(void) { |
| 40 | + LOG(error) << "Please enter a valid value for show_fps."; |
| 41 | + return false; |
| 42 | + } |
| 43 | ++ |
| 44 | ++ emul_cmd_.append(connector_str); |
| 45 | ++ |
| 46 | ++ std::string disable_host_input = cfg_.GetValue(kGroupDisplay, kDisableHostInput); |
| 47 | ++ if((!disable_host_input.empty()) && disable_host_input.compare("yes") == 0) { |
| 48 | ++ LOG(info) << "Disabling host input"; |
| 49 | ++ emul_cmd_.append("input=off"); |
| 50 | ++ } |
| 51 | + } |
| 52 | + return true; |
| 53 | + } |
| 54 | +-- |
| 55 | +2.43.0 |
| 56 | + |
0 commit comments