...
Code Block | ||
---|---|---|
| ||
struct dd_batmap_hdr { char cookie[8]; /* should contain "tdbatmap" */ u64 batmap_offset; /* byte offset to batmap */ <--- This is the offset to where the allocation tables reside after this struct u32 batmap_size; /* batmap size in sectors */ u32 batmap_version; /* version of batmap */ u32 checksum; /* batmap checksum -- 1's complement of batmap */ /* We add extra stuffs here like the keyhash but the batmap_offset is adjusted to skip them */ }; |
GDB and QEMU
Running QEMU in GDB has proven to be very helpful. Simply copy the gdb binaries (gdb, gdbserver, and gdbtui) on to your OpenXT machine and replace the /usr/lib/xen/bin/qemu-system-i386 script with:
...