Dear Jan, Ralf,

A new version of the patch, which now relies on a wrapper around alloc, 
zalloc(). 
I replaced usage of alloc in inmates/lib, as indicated by Ralf.

I was able to test this on x86, but I didn't have an Arm platform available.
Though I don't expect anything weird, giving a test might be good.

The zalloc implementation should traverse a natural word of the CPU. 
Other than that, I am not familiar with any optimization tricks. 

Any feedback is welcome, 

Thanks, Bram

Bram Hooimeijer (1):
  inmates/lib: Add zeroed alloc, and update usage

 inmates/lib/alloc.c                 | 13 +++++++++++++
 inmates/lib/arm-common/mem.c        |  3 +--
 inmates/lib/include/inmate_common.h |  1 +
 inmates/lib/x86/mem.c               |  4 ++--
 inmates/lib/x86/smp.c               |  2 +-
 5 files changed, 18 insertions(+), 5 deletions(-)

-- 
2.25.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/AS8PR02MB666316084F377A507F418699B6499%40AS8PR02MB6663.eurprd02.prod.outlook.com.

Reply via email to