summary refs log tree commit diff stats
path: root/hw/sh_timer.c
diff options
context:
space:
mode:
authorFelipe Franciosi <felipe.franciosi@citrix.com>2013-04-05 15:47:59 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-04-05 15:47:59 +0000
commit9246ce881128df2a69178779c1ef33c83df3c70d (patch)
tree9a8736d0038552518c67346f22498b0c8b8749b4 /hw/sh_timer.c
parent10bb3c623478117aee5117c312736f10833decc2 (diff)
downloadfocaccia-qemu-9246ce881128df2a69178779c1ef33c83df3c70d.tar.gz
focaccia-qemu-9246ce881128df2a69178779c1ef33c83df3c70d.zip
Allow xen guests to plug disks of 1 TiB or more
The current xen backend driver implementation uses int64_t variables
to store the size of the corresponding backend disk/file. It also uses
an int64_t variable to store the block size of that image. When writing
the number of sectors (file_size/block_size) to xenstore, however, it
passes these values as 32 bit signed integers. This will cause an
overflow for any disk of 1 TiB or more.

This patch changes the xen backend driver to use a 64 bit integer write
xenstore function.

Signed-off-by: Felipe Franciosi <felipe@paradoxo.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

Diffstat (limited to 'hw/sh_timer.c')
0 files changed, 0 insertions, 0 deletions