From ac0b9b71d142f381d39162a1ac52c7d143700a1b Mon Sep 17 00:00:00 2001 From: Matt Delco Date: Thu, 19 Sep 2019 10:30:41 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1873005 Tested-by: kokoro Reviewed-by: Zach Reizner --- tests/plugin.policy | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/plugin.policy') 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 -- cgit 1.4.1