summary refs log tree commit diff
path: root/tests/plugin.policy
diff options
context:
space:
mode:
authorMatt Delco <delco@chromium.org>2019-09-19 10:30:41 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-31 06:18:09 +0000
commitac0b9b71d142f381d39162a1ac52c7d143700a1b (patch)
treee9a6cabc3feae921b0514354fc3e86dbb778c853 /tests/plugin.policy
parent5bff67d485f22fcbd391231dad1666cc849deb36 (diff)
downloadcrosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.tar
crosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.tar.gz
crosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.tar.bz2
crosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.tar.lz
crosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.tar.xz
crosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.tar.zst
crosvm-ac0b9b71d142f381d39162a1ac52c7d143700a1b.zip
crosvm: pre-cache answers to plugin get calls
This change tries to improve the performance of a plugin-based VM
by adding a hint API that allows crosvm to proactively push cpu
state to the plugin when certain ports for hypercalls are accessed
by the VM.

BUG=None
TEST=build and run. See performance increase significantly.

Change-Id: I71af24ebc034095ffea42eedb9ffda0afc719cd6
Signed-off-by: Matt Delco <delco@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1873005
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'tests/plugin.policy')
-rw-r--r--tests/plugin.policy2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/plugin.policy b/tests/plugin.policy
index a3ab2f7..19e7102 100644
--- a/tests/plugin.policy
+++ b/tests/plugin.policy
@@ -8,6 +8,7 @@ dup2: 1
 execve: 1
 exit_group: 1
 futex: 1
+kill: 1
 lseek: 1
 mprotect: 1
 munmap: 1
@@ -22,6 +23,7 @@ write: 1
 eventfd2: 1
 poll: 1
 getpid: 1
+getppid: 1
 # Allow PR_SET_NAME only.
 prctl: arg0 == 15
 access: 1