]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
Allow xen guests to plug disks of 1 TiB or more qemu-xen-4.2.2 qemu-xen-4.2.2-rc2 qemu-xen-4.2.3
authorFelipe Franciosi <felipe.franciosi@citrix.com>
Fri, 5 Apr 2013 15:47:59 +0000 (15:47 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 5 Apr 2013 23:39:54 +0000 (23:39 +0000)
commit59e2fb7252dbdc008a63d144b19be0cd8d873128
tree988820aa4c31b952785d9f2f1d6114d1f142a47e
parent07b882d687dde9bfb97f4ddbde39546f0abecb5f
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.

upstream-commit-id: 9246ce881128df2a69178779c1ef33c83df3c70d

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