phantomuserland
phantomuserland copied to clipboard
kernel state in persistent data
There must be persistent state kernel can get and use after persistent memory is up and running.
? but before virt machine is ready?
? is a part of virt machine start?
- hostname
- syslog/nntp server addresses
- console/stats win pos/z order, other windows? how? Some (string) window id? uuid?
See issue #23
Take a look at stat_set_persistent_storage()
stat_set_persistent_storage() is not a good way, it uses just binary array. for other components we must use object directory and store named per-variable objects
The question is how to feed with persistent data components which are starting before object land. Such kernel components can leave hooks to be called when obj land is accessible.
phantom_read_persistent_string( "kernel/net/hostname", (void*)(const char *value) );
see #368