]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
Introduce 64 bit integer write interface to xenstore
authorFelipe Franciosi <felipe.franciosi@citrix.com>
Fri, 5 Apr 2013 15:37:32 +0000 (15:37 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 5 Apr 2013 23:38:50 +0000 (23:38 +0000)
commit07b882d687dde9bfb97f4ddbde39546f0abecb5f
tree097510bbc6217ef93e2eacc09e22c6cf27fd8cc9
parentc9861482e4671dd790a4798f7bafb2a2d22d43b2
Introduce 64 bit integer write interface to xenstore

The current implementation of xen_backend only provides 32 bit integer
functions to write to xenstore. This patch adds two functions that
allow writing 64 bit integers (one generic function and another for
the backend only).

This patch also fixes the size of the char arrays used to represent
these integers as strings (originally 32 bytes, however no more than
12 bytes are needed for 32 bit integers and no more than 21 bytes are
needed for 64 bit integers).

upstream-commit-id: 10bb3c623478117aee5117c312736f10833decc2

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