]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commitdiff
qemu_get_timer: Provide a comment about the behaviour on ts==NULL
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 8 Dec 2011 16:38:06 +0000 (16:38 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 8 Dec 2011 16:38:06 +0000 (16:38 +0000)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
vl.c

diff --git a/vl.c b/vl.c
index 9e0a5564a386cccf94ef2cbe389a4757c2915a66..be8587a9e8f4fc38ef2db60a8f000f1c899fb374 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1274,6 +1274,8 @@ void qemu_put_timer(QEMUFile *f, QEMUTimer *ts)
 
 void qemu_get_timer(QEMUFile *f, QEMUTimer *ts)
 {
+    /* If ts==NULL, reads the relevant amount of data from the
+       savefile but discards it */
     uint64_t expire_time;
 
     expire_time = qemu_get_be64(f);