14 lines
722 B
Diff
14 lines
722 B
Diff
Index: xen-3.3.1-testing/tools/ioemu-remote/block-vpc.c
|
|
===================================================================
|
|
--- xen-3.3.1-testing.orig/tools/ioemu-remote/block-vpc.c
|
|
+++ xen-3.3.1-testing/tools/ioemu-remote/block-vpc.c
|
|
@@ -156,7 +156,7 @@ static inline int seek_to_sector(BlockDr
|
|
if (pagetable_index > s->pagetable_entries || s->pagetable[pagetable_index] == 0xffffffff)
|
|
return -1; // not allocated
|
|
|
|
- bitmap_offset = 512 * s->pagetable[pagetable_index];
|
|
+ bitmap_offset = 512 * (uint64_t) s->pagetable[pagetable_index];
|
|
block_offset = bitmap_offset + 512 + (512 * pageentry_index);
|
|
|
|
// printf("sector: %" PRIx64 ", index: %x, offset: %x, bioff: %" PRIx64 ", bloff: %" PRIx64 "\n",
|