[XenAccess-devel] Xenaccess examples with Windows XP/Vista
Status: Beta
Brought to you by:
bdpayne
From: Matthew D. <ma...@at...> - 2008-01-17 14:33:06
|
Hi, I'm trying to get the Xenaccess examples working with Windows. I ultimately want to use it with Vista but for a first step I'd be happy to get it working with XP SP2. When I try to run the process-list and module-list examples on Vista or XP, it fails during initialization with "failed to init XenAccess library: Bad address". (The full output is below.) For Vista, I changed the constants in process-list.c to be appropriate (determined using windbg). For XP I just used the constants that were already there and verified they were correct. I talked with Jim (I've just started on the project) and he showed me a Windows sysmap(?) file. I included part of that just so you can tell me if I got the format right. I assume it's OK since there isn't an error looking up PsInitialSystemProcess. I'm using Xen 3.1.2 and XenAccess 0.4 on Fedora Core 8. I'm not really sure what to try next. Thanks for the help. -matthew XENACCESS.CONF: winvista { sysmap ="/root/libxa/winvista-exports.txt"; ostype = "Windows"; win_tasks = 0xa0; win_pdbase = 0x18; win_pid = 0x9c; win_peb = 0x188; win_iba = 0x8; win_ph = 0x18; } winxp0 { sysmap ="/root/libxa/winxp-exports.txt"; ostype = "Windows"; win_tasks = 0x88; win_pdbase = 0x18; win_pid = 0x84; win_peb = 0x1b0; win_iba = 0x8; win_ph = 0x18; } SYSMAP (?) SNIPPET: 94 0 000CA3D3 AlpcGetHeaderSize = _AlpcGetHeaderSize@4 95 1 000CA451 AlpcGetMessageAttribute = _AlpcGetMessageAttribute@8 96 2 000CA414 AlpcInitializeMessageAttribute = _AlpcInitializeMessageAttribute@16 97 3 0003273E CcCanIWrite = _CcCanIWrite@16 98 4 001D7530 CcCopyRead = _CcCopyRead@24 PROCESS-LIST OUTPUT FOR XP VM: XenAccess Version 0.4 --got domain info. **set instance->xen_version = 3.1.0 --got domain name from id (4 ==> winxp0). 1 |winvista { 2 | sysmap ="/root/libxa/winvista-exports.txt"; 3 | ostype = "Windows"; 4 | win_tasks = 0xa0; 5 | win_pdbase = 0x18; 6 | win_pid = 0x9c; 7 | win_peb = 0x188; 8 | win_iba = 0x8; 9 | win_ph = 0x18; 10 |} 11 | 12 |winxp0 { 13 | sysmap ="/root/libxa/winxp-exports.txt"; 14 | ostype = "Windows"; 15 | win_tasks = 0x88; 16 | win_pdbase = 0x18; 17 | win_pid = 0x84; 18 | win_peb = 0x1b0; 19 | win_iba = 0x8; 20 | win_ph = 0x18; 21 |} 22 | --got sysmap from config (/root/libxa/winxp-exports.txt). --reading in windows offsets from config file. --got ostype from config (Windows). **set instance->os_type to Windows. **set instance->pae = 1 **set instance->pse = 1 --got memory layout. **set instance->hvm to true (HVM). --MapPFN: Mapping mfn = 1. --MapPFN: Mapping mfn = 2. --MapPFN: Mapping mfn = 3. --MapPFN: Mapping mfn = 4. --MapPFN: Mapping mfn = 5. --MapPFN: Mapping mfn = 6. --MapPFN: Mapping mfn = 7. --MapPFN: Mapping mfn = 8. <snip> --MapPFN: Mapping mfn = 4093. --MapPFN: Mapping mfn = 4094. --MapPFN: Mapping mfn = 4095. failed to init XenAccess library: Bad address |