All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 01/16] docs: Fix description of the leaky bucket algorithm in throttle.txt
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 02/16] hw/bt/hci: spelling fix: endianness Michael Tokarev
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alberto Garcia, qemu-trivial, Michael Tokarev

From: Alberto Garcia <berto@igalia.com>

Commit 0bab0ebb17759c926bd48fd396bd8cbb2c8e4a3e was supposed to fix
a mistake in the description of the leaky bucket algorithm, but the
version that finally landed after the review process was incorrect.

This patch solves that problem and hopefully clarifies the description
a bit better.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 docs/throttle.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/throttle.txt b/docs/throttle.txt
index 26d4d51..cd4e109 100644
--- a/docs/throttle.txt
+++ b/docs/throttle.txt
@@ -235,7 +235,10 @@ consider the following values:
   - Water leaks from the bucket at a rate of 100 IOPS.
   - Water can be added to the bucket at a rate of 2000 IOPS.
   - The size of the bucket is 2000 x 60 = 120000
-  - If 'iops-total-max' is unset then the bucket size is 100 x 60.
+  - If 'iops-total-max-length' is unset then it defaults to 1 and the
+    size of the bucket is 2000.
+  - If 'iops-total-max' is unset then 'iops-total-max-length' must be
+    unset as well. In this case the bucket size is 100.
 
 The bucket is initially empty, therefore water can be added until it's
 full at a rate of 2000 IOPS (the burst rate). Once the bucket is full
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 02/16] hw/bt/hci: spelling fix: endianness
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
  2016-09-13 16:04 ` [Qemu-devel] [PULL 01/16] docs: Fix description of the leaky bucket algorithm in throttle.txt Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 03/16] hw/dma/omap: " Michael Tokarev
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/bt/hci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/bt/hci.c b/hw/bt/hci.c
index 351123f..476ebec 100644
--- a/hw/bt/hci.c
+++ b/hw/bt/hci.c
@@ -421,7 +421,7 @@ static void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *dat
 
 /* HCI layer emulation */
 
-/* Note: we could ignore endiannes because unswapped handles will still
+/* Note: we could ignore endianness because unswapped handles will still
  * be valid as connection identifiers for the guest - they don't have to
  * be continuously allocated.  We do it though, to preserve similar
  * behaviour between hosts.  Some things, like the BD_ADDR cannot be
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 03/16] hw/dma/omap: spelling fix: endianness
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
  2016-09-13 16:04 ` [Qemu-devel] [PULL 01/16] docs: Fix description of the leaky bucket algorithm in throttle.txt Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 02/16] hw/bt/hci: spelling fix: endianness Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 04/16] arm: spelling fix: mismatch Michael Tokarev
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/dma/omap_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/dma/omap_dma.c b/hw/dma/omap_dma.c
index 700cd6b..f6f86f9 100644
--- a/hw/dma/omap_dma.c
+++ b/hw/dma/omap_dma.c
@@ -1975,7 +1975,7 @@ static void omap_dma4_write(void *opaque, hwaddr addr,
         ch->endian[1] =(value >> 19) & 1;
         ch->endian_lock[1] =(value >> 18) & 1;
         if (ch->endian[0] != ch->endian[1])
-            fprintf(stderr, "%s: DMA endiannes conversion enable attempt\n",
+            fprintf(stderr, "%s: DMA endianness conversion enable attempt\n",
                             __FUNCTION__);
         ch->write_mode = (value >> 16) & 3;
         ch->burst[1] = (value & 0xc000) >> 14;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 04/16] arm: spelling fix: mismatch
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (2 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 03/16] hw/dma/omap: " Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 05/16] vl: remove unnecessary duplicate call to tpm_cleanup Michael Tokarev
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 target-arm/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index bdb842c..5484c15 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -7498,7 +7498,7 @@ static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address,
          * is unpredictable. Flag this as a guest error.  */
         if (sign != sext) {
             qemu_log_mask(LOG_GUEST_ERROR,
-                          "AArch32: VTCR.S / VTCR.T0SZ[3] missmatch\n");
+                          "AArch32: VTCR.S / VTCR.T0SZ[3] mismatch\n");
         }
     }
     t1sz = extract32(tcr->raw_tcr, 16, 6);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 05/16] vl: remove unnecessary duplicate call to tpm_cleanup
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (3 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 04/16] arm: spelling fix: mismatch Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 06/16] sparc: Use g_memdup() instead of g_new0() + memcpy() Michael Tokarev
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, qemu-trivial, Michael Tokarev

From: Paolo Bonzini <pbonzini@redhat.com>

tpm_cleanup is called from main() and also registered with atexit from
tpm_init.  The function only visits the tpm_backends linked list, and the
atexit registration happens right after tpm_init fills in the list from
-tpmdev options.  Therefore, the direct call is unnecessary.  Remove it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 vl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/vl.c b/vl.c
index ee557a1..82cf85b 100644
--- a/vl.c
+++ b/vl.c
@@ -4620,9 +4620,6 @@ int main(int argc, char **argv, char **envp)
     bdrv_close_all();
     pause_all_vcpus();
     res_free();
-#ifdef CONFIG_TPM
-    tpm_cleanup();
-#endif
 
     /* vhost-user must be cleaned up before chardevs.  */
     net_cleanup();
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 06/16] sparc: Use g_memdup() instead of g_new0() + memcpy()
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (4 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 05/16] vl: remove unnecessary duplicate call to tpm_cleanup Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 07/16] pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP Michael Tokarev
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Thomas Huth, qemu-trivial, Michael Tokarev

From: Thomas Huth <thuth@redhat.com>

There is no need to make sure that the memory is zeroed after the
allocation if we also immediatly fill the whole buffer afterwards
with memcpy(). Thus g_new0 should be g_new instead. But since we
are also doing a memcpy() here, we can also simply replace both
with g_memdup() instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-By: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 target-sparc/cpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target-sparc/cpu.c b/target-sparc/cpu.c
index e4089f2..800a25a 100644
--- a/target-sparc/cpu.c
+++ b/target-sparc/cpu.c
@@ -117,8 +117,7 @@ static int cpu_sparc_register(SPARCCPU *cpu, const char *cpu_model)
         return -1;
     }
 
-    env->def = g_new0(sparc_def_t, 1);
-    memcpy(env->def, def, sizeof(*def));
+    env->def = g_memdup(def, sizeof(*def));
 
     featurestr = strtok(NULL, ",");
     sparc_cpu_parse_features(CPU(cpu), featurestr, &err);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 07/16] pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (5 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 06/16] sparc: Use g_memdup() instead of g_new0() + memcpy() Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 08/16] linux-user, trivial: display "0x%x" instead of "0x%d" Michael Tokarev
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Bruce Rogers, qemu-trivial, Michael Tokarev

From: Bruce Rogers <brogers@suse.com>

Signed-off-by: Bruce Rogers <brogers@suse.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/i386/kvm/i8259.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/kvm/i8259.c b/hw/i386/kvm/i8259.c
index 2b207de..11d1b72 100644
--- a/hw/i386/kvm/i8259.c
+++ b/hw/i386/kvm/i8259.c
@@ -92,7 +92,7 @@ static void kvm_pic_put(PICCommonState *s)
 
     ret = kvm_vm_ioctl(kvm_state, KVM_SET_IRQCHIP, &chip);
     if (ret < 0) {
-        fprintf(stderr, "KVM_GET_IRQCHIP failed: %s\n", strerror(ret));
+        fprintf(stderr, "KVM_SET_IRQCHIP failed: %s\n", strerror(ret));
         abort();
     }
 }
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 08/16] linux-user, trivial: display "0x%x" instead of "0x%d"
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (6 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 07/16] pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 09/16] trace-event: display "%d" " Michael Tokarev
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier, qemu-trivial, Michael Tokarev

From: Laurent Vivier <laurent@vivier.eu>

Display an exception number, generally defined as an hexadecimal
number (for instance, EXCP_HLT is 0x10001).

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 linux-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux-user/main.c b/linux-user/main.c
index 6004ece..3ad70f8 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2030,7 +2030,7 @@ void cpu_loop(CPUPPCState *env)
             /* just indicate that signals should be handled asap */
             break;
         default:
-            cpu_abort(cs, "Unknown exception 0x%d. Aborting\n", trapnr);
+            cpu_abort(cs, "Unknown exception 0x%x. Aborting\n", trapnr);
             break;
         }
         process_pending_signals(env);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 09/16] trace-event: display "%d" instead of "0x%d"
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (7 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 08/16] linux-user, trivial: display "0x%x" instead of "0x%d" Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 10/16] Document that curses usually needs -k option too Michael Tokarev
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier, qemu-trivial, Michael Tokarev

From: Laurent Vivier <lvivier@redhat.com>

Display the slot number of mhp_pc_dimm_assigned_slot()
using "%d" without the "0x".

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/i386/trace-events | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/trace-events b/hw/i386/trace-events
index 7735e46..5b99eba 100644
--- a/hw/i386/trace-events
+++ b/hw/i386/trace-events
@@ -8,7 +8,7 @@ xen_pv_mmio_read(uint64_t addr) "WARNING: read from Xen PV Device MMIO space (ad
 xen_pv_mmio_write(uint64_t addr) "WARNING: write to Xen PV Device MMIO space (address %"PRIx64")"
 
 # hw/i386/pc.c
-mhp_pc_dimm_assigned_slot(int slot) "0x%d"
+mhp_pc_dimm_assigned_slot(int slot) "%d"
 mhp_pc_dimm_assigned_address(uint64_t addr) "0x%"PRIx64
 
 # hw/i386/x86-iommu.c
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 10/16] Document that curses usually needs -k option too
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (8 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 09/16] trace-event: display "%d" " Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 11/16] maint: Ignore generated version file Michael Tokarev
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Samuel Thibault, qemu-trivial, Michael Tokarev

From: Samuel Thibault <samuel.thibault@ens-lyon.org>

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index 70dfe98..cde4a05 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -303,7 +303,7 @@ STEXI
 @findex -k
 Use keyboard layout @var{language} (for example @code{fr} for
 French). This option is only needed where it is not easy to get raw PC
-keycodes (e.g. on Macs, with some X11 servers or with a VNC
+keycodes (e.g. on Macs, with some X11 servers or with a VNC or curses
 display). You don't normally need to use it on PC/Linux or PC/Windows
 hosts.
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 11/16] maint: Ignore generated version file
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (9 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 10/16] Document that curses usually needs -k option too Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 12/16] timer.h: fix typo Michael Tokarev
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Eric Blake, qemu-trivial, Michael Tokarev

From: Eric Blake <eblake@redhat.com>

Commit 67a1de0d created a generated version file, and, in some
circumstances, also a temporary file.  Make sure 'git add .'
won't check them into the repository.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitignore b/.gitignore
index 88ec249..5ffc84b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,6 +53,8 @@
 /qemu-bridge-helper
 /qemu-monitor.texi
 /qemu-monitor-info.texi
+/qemu-version.h
+/qemu-version.h.tmp
 /qmp-commands.txt
 /vscclient
 /fsdev/virtfs-proxy-helper
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 12/16] timer.h: fix typo
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (10 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 11/16] maint: Ignore generated version file Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 13/16] timer.h: fix inconsistency between comment and function prototype Michael Tokarev
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cao jin, qemu-trivial, Michael Tokarev

From: Cao jin <caoj.fnst@cn.fujitsu.com>

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 include/qemu/timer.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/qemu/timer.h b/include/qemu/timer.h
index 309f3d0..41e8325 100644
--- a/include/qemu/timer.h
+++ b/include/qemu/timer.h
@@ -179,7 +179,7 @@ int64_t qemu_clock_deadline_ns_all(QEMUClockType type);
  * qemu_clock_get_main_loop_timerlist:
  * @type: the clock type
  *
- * Return the default timer list assocatiated with a clock.
+ * Return the default timer list associated with a clock.
  *
  * Returns: the default timer list
  */
@@ -509,7 +509,7 @@ static inline void timer_init_ms(QEMUTimer *ts, QEMUClockType type,
  * @cb: the callback to be called when the timer expires
  * @opaque: the opaque pointer to be passed to the callback
  *
- * Creeate a new timer and associate it with @timer_list.
+ * Create a new timer and associate it with @timer_list.
  * The memory is allocated by the function.
  *
  * This is not the preferred interface unless you know you
@@ -534,7 +534,7 @@ static inline QEMUTimer *timer_new_tl(QEMUTimerList *timer_list,
  * @cb: the callback to be called when the timer expires
  * @opaque: the opaque pointer to be passed to the callback
  *
- * Creeate a new timer and associate it with the default
+ * Create a new timer and associate it with the default
  * timer list for the clock type @type.
  *
  * Returns: a pointer to the timer
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 13/16] timer.h: fix inconsistency between comment and function prototype
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (11 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 12/16] timer.h: fix typo Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 14/16] timer/cpus: fix some typos and update some comments Michael Tokarev
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cao jin, qemu-trivial, Michael Tokarev

From: Cao jin <caoj.fnst@cn.fujitsu.com>

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 include/qemu/timer.h | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/include/qemu/timer.h b/include/qemu/timer.h
index 41e8325..e6c089e 100644
--- a/include/qemu/timer.h
+++ b/include/qemu/timer.h
@@ -431,6 +431,7 @@ void timer_init_tl(QEMUTimer *ts,
 
 /**
  * timer_init:
+ * @ts: the timer to be initialised
  * @type: the clock to associate with the timer
  * @scale: the scale value for the timer
  * @cb: the callback to call when the timer expires
@@ -450,6 +451,7 @@ static inline void timer_init(QEMUTimer *ts, QEMUClockType type, int scale,
 
 /**
  * timer_init_ns:
+ * @ts: the timer to be initialised
  * @type: the clock to associate with the timer
  * @cb: the callback to call when the timer expires
  * @opaque: the opaque pointer to pass to the callback
@@ -468,6 +470,7 @@ static inline void timer_init_ns(QEMUTimer *ts, QEMUClockType type,
 
 /**
  * timer_init_us:
+ * @ts: the timer to be initialised
  * @type: the clock to associate with the timer
  * @cb: the callback to call when the timer expires
  * @opaque: the opaque pointer to pass to the callback
@@ -486,6 +489,7 @@ static inline void timer_init_us(QEMUTimer *ts, QEMUClockType type,
 
 /**
  * timer_init_ms:
+ * @ts: the timer to be initialised
  * @type: the clock to associate with the timer
  * @cb: the callback to call when the timer expires
  * @opaque: the opaque pointer to pass to the callback
@@ -547,8 +551,8 @@ static inline QEMUTimer *timer_new(QEMUClockType type, int scale,
 
 /**
  * timer_new_ns:
- * @clock: the clock to associate with the timer
- * @callback: the callback to call when the timer expires
+ * @type: the clock type to associate with the timer
+ * @cb: the callback to call when the timer expires
  * @opaque: the opaque pointer to pass to the callback
  *
  * Create a new timer with nanosecond scale on the default timer list
@@ -564,8 +568,8 @@ static inline QEMUTimer *timer_new_ns(QEMUClockType type, QEMUTimerCB *cb,
 
 /**
  * timer_new_us:
- * @clock: the clock to associate with the timer
- * @callback: the callback to call when the timer expires
+ * @type: the clock type to associate with the timer
+ * @cb: the callback to call when the timer expires
  * @opaque: the opaque pointer to pass to the callback
  *
  * Create a new timer with microsecond scale on the default timer list
@@ -581,8 +585,8 @@ static inline QEMUTimer *timer_new_us(QEMUClockType type, QEMUTimerCB *cb,
 
 /**
  * timer_new_ms:
- * @clock: the clock to associate with the timer
- * @callback: the callback to call when the timer expires
+ * @type: the clock type to associate with the timer
+ * @cb: the callback to call when the timer expires
  * @opaque: the opaque pointer to pass to the callback
  *
  * Create a new timer with millisecond scale on the default timer list
@@ -691,6 +695,7 @@ bool timer_pending(QEMUTimer *ts);
 /**
  * timer_expired:
  * @ts: the timer
+ * @current_time: the current time
  *
  * Determines whether a timer has expired.
  *
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 14/16] timer/cpus: fix some typos and update some comments
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (12 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 13/16] timer.h: fix inconsistency between comment and function prototype Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 15/16] target-m68k: fix get_mac_extf helper Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 16/16] hw/net/e1000e: Fix compiler warning Michael Tokarev
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cao jin, qemu-trivial, Michael Tokarev

From: Cao jin <caoj.fnst@cn.fujitsu.com>

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 cpus.c               | 6 +++---
 include/qemu/timer.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpus.c b/cpus.c
index 84c3520..0ab4ab1 100644
--- a/cpus.c
+++ b/cpus.c
@@ -229,7 +229,7 @@ static int64_t cpu_get_clock_locked(void)
     return ticks;
 }
 
-/* return the host CPU monotonic timer and handle stop/restart */
+/* return the host CPU monotonic time */
 int64_t cpu_get_clock(void)
 {
     int64_t ti;
@@ -244,7 +244,7 @@ int64_t cpu_get_clock(void)
 }
 
 /* enable cpu_get_ticks()
- * Caller must hold BQL which server as mutex for vm_clock_seqlock.
+ * Caller must hold BQL which serves as mutex for vm_clock_seqlock.
  */
 void cpu_enable_ticks(void)
 {
@@ -260,7 +260,7 @@ void cpu_enable_ticks(void)
 
 /* disable cpu_get_ticks() : the clock is stopped. You must not call
  * cpu_get_ticks() after that.
- * Caller must hold BQL which server as mutex for vm_clock_seqlock.
+ * Caller must hold BQL which serves as mutex for vm_clock_seqlock.
  */
 void cpu_disable_ticks(void)
 {
diff --git a/include/qemu/timer.h b/include/qemu/timer.h
index e6c089e..4bfcd35 100644
--- a/include/qemu/timer.h
+++ b/include/qemu/timer.h
@@ -802,7 +802,7 @@ static inline int64_t get_max_clock_jump(void)
  * Low level clock functions
  */
 
-/* real time host monotonic timer */
+/* get host real time in nanosecond */
 static inline int64_t get_clock_realtime(void)
 {
     struct timeval tv;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 15/16] target-m68k: fix get_mac_extf helper
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (13 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 14/16] timer/cpus: fix some typos and update some comments Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  2016-09-13 16:04 ` [Qemu-devel] [PULL 16/16] hw/net/e1000e: Fix compiler warning Michael Tokarev
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, qemu-trivial, Michael Tokarev

From: Paolo Bonzini <pbonzini@redhat.com>

val is assigned twice; the second one should be combined with "|".
Reported by Coverity.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 target-m68k/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index f52d0e3..89bbe6d 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -812,7 +812,7 @@ uint32_t HELPER(get_mac_extf)(CPUM68KState *env, uint32_t acc)
 {
     uint32_t val;
     val = env->macc[acc] & 0x00ff;
-    val = (env->macc[acc] >> 32) & 0xff00;
+    val |= (env->macc[acc] >> 32) & 0xff00;
     val |= (env->macc[acc + 1] << 16) & 0x00ff0000;
     val |= (env->macc[acc + 1] >> 16) & 0xff000000;
     return val;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Qemu-devel] [PULL 16/16] hw/net/e1000e: Fix compiler warning
       [not found] <cover.1473782118.git.mjt@tls.msk.ru>
                   ` (14 preceding siblings ...)
  2016-09-13 16:04 ` [Qemu-devel] [PULL 15/16] target-m68k: fix get_mac_extf helper Michael Tokarev
@ 2016-09-13 16:04 ` Michael Tokarev
  15 siblings, 0 replies; 16+ messages in thread
From: Michael Tokarev @ 2016-09-13 16:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Changlong Xie, qemu-trivial, Michael Tokarev

From: Changlong Xie <xiecl.fnst@cn.fujitsu.com>

slave:~/.xie/qemu-colo # gcc --version
gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]

slave:~/.xie/qemu-colo # make -j8
CC    hw/net/e1000e_core.o
hw/net/e1000e_core.c:56: warning: ‘e1000e_set_interrupt_cause’ declared inline after being called
hw/net/e1000e_core.c:56: warning: previous declaration of ‘e1000e_set_interrupt_cause’ was here
LINK  x86_64-softmmu/qemu-system-x86_64

Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
Reviewed-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/net/e1000e_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c
index badb1fe..e0bd31c 100644
--- a/hw/net/e1000e_core.c
+++ b/hw/net/e1000e_core.c
@@ -52,7 +52,7 @@
                                      second according to spec 10.2.4.2 */
 #define E1000E_MAX_TX_FRAGS (64)
 
-static void
+static inline void
 e1000e_set_interrupt_cause(E1000ECore *core, uint32_t val);
 
 static inline void
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-09-13 16:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cover.1473782118.git.mjt@tls.msk.ru>
2016-09-13 16:04 ` [Qemu-devel] [PULL 01/16] docs: Fix description of the leaky bucket algorithm in throttle.txt Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 02/16] hw/bt/hci: spelling fix: endianness Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 03/16] hw/dma/omap: " Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 04/16] arm: spelling fix: mismatch Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 05/16] vl: remove unnecessary duplicate call to tpm_cleanup Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 06/16] sparc: Use g_memdup() instead of g_new0() + memcpy() Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 07/16] pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 08/16] linux-user, trivial: display "0x%x" instead of "0x%d" Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 09/16] trace-event: display "%d" " Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 10/16] Document that curses usually needs -k option too Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 11/16] maint: Ignore generated version file Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 12/16] timer.h: fix typo Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 13/16] timer.h: fix inconsistency between comment and function prototype Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 14/16] timer/cpus: fix some typos and update some comments Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 15/16] target-m68k: fix get_mac_extf helper Michael Tokarev
2016-09-13 16:04 ` [Qemu-devel] [PULL 16/16] hw/net/e1000e: Fix compiler warning Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.