[XenAccess-devel] Configurable offsets
Status: Beta
Brought to you by:
bdpayne
From: <hi...@cc...> - 2007-08-21 18:17:12
|
My next message is a patch that allows one to specify memory offsets within the configuration file. Previously, those values were hardcoded within xa_private.h. Those values now are ints declared as extern within xa_private.h and are defined (with the default values intact), within (linux|windows)_memory.c. The variable names are no longer capitalized (e.g. XALINUX_TASKS_OFFSET becomes xalinux_tasks_offset). My new configuration file looks like: Fedora7 { sysmap =3D "/home/hinoue/research/xenaccess/syms/fedora.syms"; ostype =3D "Linux"; linux_tasks =3D 268; linux_mm =3D 276; linux_pid =3D 312; linux_name =3D 548; linux_pgd =3D 40; linux_addr =3D 132; } I have moved the windows offsets into the config file as well. Those would be win_tasks, etc. The config parser required a few changes. There's now a union of structs within the config_entry struct which store these values. =20 Also, the configuration options have been added as keywords within the =20 parser. DomU names must now begin with a letter. Previously, they could begin with a number. Numbers can be specified in hex or dec. -Jim |