fix unaligned access in blktap
PATCH 1/1 fix unaligned access in blktap
Hi,
Using a tapdisk on IA64 outputs the following messages.
tapdisk(8027): unaligned access to 0x600000000000c01a, ip=0x40000000000130c0 tapdisk(8027): unaligned access to 0x600000000000c022, ip=0x40000000000130d1 blktapctrl(4036): unaligned access to 0x6000000000008eca, ip=0x40000000000028a0 blktapctrl(4036): unaligned access to 0x6000000000008ed2, ip=0x40000000000028a1
This patch fixes it.
In the struct msg_hdr, uint8_t seems to be enough for type and drivertype though...
Thanks,
Kouya
Signed-off-by Kouya Shimura <[email protected]>
tools/blktap/lib/blktaplib.h +1 -1
@@ -175,7 +175,7 @@ typedef struct msg_hdr {uint16_t drivertype;uint16_t cookie;uint8_t readonly; -} msg_hdr_t; +} __attribute__ ((aligned(sizeof(unsigned long long)))) msg_hdr_t; typedef struct msg_newdev { uint8_t devnum;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel