about python

6 views
Skip to first unread message

charles king

unread,
Nov 23, 2015, 7:11:20 AM11/23/15
to jailho...@googlegroups.com
hi,
    I start to read the code now, and there are some tools scripts in directory of tools,
Do I have to read this files at start?
    Deep learning the code.

best regards
from Xuguo Wang

Henning Schild

unread,
Nov 23, 2015, 7:20:52 AM11/23/15
to charles king, jailho...@googlegroups.com
On Mon, 23 Nov 2015 07:11:20 -0500
charles king <hudd...@gmail.com> wrote:

> hi,
> I start to read the code now, and there are some tools scripts in
> directory of tools,
> Do I have to read this files at start?

They are all helper tools, if they work for you there is no need to
read the code.
If you want to understand how jailhouse works in detail you should
rather start with some of the articles written on jailhouse and then
start looking into the hypervisor code.

Valentine Sinitsyn

unread,
Nov 23, 2015, 7:22:34 AM11/23/15
to charles king, jailho...@googlegroups.com
Hi,

On 23.11.2015 17:11, charles king wrote:
> hi,
> I start to read the code now, and there are some tools scripts in
> directory of tools,
> Do I have to read this files at start?
> Deep learning the code.
The most important file in tools is config file generator.
It's up to you really, but I'd suggest to get acquainted with Jailhouse
internals first, just to understand what bits of information the
generator prodices are for.

Valentine

charles king

unread,
Nov 23, 2015, 7:47:12 AM11/23/15
to Valentine Sinitsyn, jailho...@googlegroups.com
hi,
I find the jailhosue-config-collect.tmpl is used by jailhouse-config-create, is it?
jailhouse-config-create modify the jailhouse-config-collect.tmpl to fit myself computer, and then I can use jailhouse-config-collect to collect my computer's necessary information, yes?
    So I can read the jailhouse first, and when concerning the jailhouse system info, and then go back to see this tools, is it OK?

# required files
  80 inputs['files'].add('/proc/iomem')
  81 inputs['files'].add('/proc/cpuinfo')
  82 inputs['files'].add('/proc/cmdline')
  83 inputs['files'].add('/proc/ioports')
  84 inputs['files'].add('/sys/bus/pci/devices/*/config')
  85 inputs['files'].add('/sys/bus/pci/devices/*/resource')
  86 inputs['files'].add('/sys/devices/system/cpu/cpu*/uevent')
  87 inputs['files'].add('/sys/firmware/acpi/tables/APIC')
  88 inputs['files'].add('/sys/firmware/acpi/tables/MCFG')
  89 # optional files
  90 inputs['files_opt'].add('/sys/class/dmi/id/product_name')
  91 inputs['files_opt'].add('/sys/class/dmi/id/sys_vendor')
  92 inputs['files_opt'].add('/sys/devices/jailhouse/enabled')
  93 # platform specific files
  94 inputs['files_intel'].add('/sys/firmware/acpi/tables/DMAR')
  95 inputs['files_amd'].add('/sys/firmware/acpi/tables/IVRS')

Maybe only modify these list:
filelist="${filelist}"
filelist_opt="${filelist_opt}"
filelist_intel="${filelist_intel}"
filelist_amd="${filelist_amd}"

is these? Can I modify by my Manually? Or something other need else?


best regards
from Xuguo Wang
Reply all
Reply to author
Forward
0 new messages