Document that curses usually needs -k option too
A message that is not in the archive (sent off-list or not yet received): [email protected]
From: Samuel Thibault <[email protected]>
--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +1 -1
@@ -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.
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 16/16] hw/net/e1000e: Fix compiler warning
In reply to a message not in the archiveFrom: Changlong Xie <[email protected]>
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.ohw/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
--- hw/net/e1000e_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/e1000e_core.c +1 -1
@@ -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
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 12/16] timer.h: fix typo
In reply to a message not in the archiveFrom: Cao jin <[email protected]>
--- include/qemu/timer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/qemu/timer.h +3 -3
@@ -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
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 03/16] hw/dma/omap: spelling fix: endianness
In reply to a message not in the archive--- hw/dma/omap_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/dma/omap_dma.c +1 -1
@@ -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 ;
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 01/16] docs: Fix description of the leaky bucket algorithm in throttle.txt
In reply to a message not in the archiveFrom: Alberto Garcia <[email protected]>
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.
--- docs/throttle.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
docs/throttle.txt +4 -1
@@ -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
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 13/16] timer.h: fix inconsistency between comment and function prototype
In reply to a message not in the archiveFrom: Cao jin <[email protected]>
--- include/qemu/timer.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-)
include/qemu/timer.h +11 -6
@@ -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. *
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 14/16] timer/cpus: fix some typos and update some comments
In reply to a message not in the archiveFrom: Cao jin <[email protected]>
--- cpus.c | 6 +++--- include/qemu/timer.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
cpus.c +3 -3
@@ -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 ) {
include/qemu/timer.h +1 -1
@@ -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;
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 08/16] linux-user, trivial: display "0x%x" instead of "0x%d"
In reply to a message not in the archiveFrom: Laurent Vivier <[email protected]>
Display an exception number, generally defined as an hexadecimal number (for instance, EXCP_HLT is 0x10001).
--- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/main.c +1 -1
@@ -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);
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 06/16] sparc: Use g_memdup() instead of g_new0() + memcpy()
In reply to a message not in the archiveFrom: Thomas Huth <[email protected]>
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.
--- target-sparc/cpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
target-sparc/cpu.c +1 -2
@@ -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);
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 09/16] trace-event: display "%d" instead of "0x%d"
In reply to a message not in the archiveFrom: Laurent Vivier <[email protected]>
Display the slot number of mhp_pc_dimm_assigned_slot() using "%d" without the "0x".
--- hw/i386/trace-events | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/trace-events +1 -1
@@ -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
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 11/16] maint: Ignore generated version file
In reply to a message not in the archiveFrom: Eric Blake <[email protected]>
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.
--- .gitignore | 2 ++ 1 file changed, 2 insertions(+)
.gitignore +2 -0
@@ -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
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 02/16] hw/bt/hci: spelling fix: endianness
In reply to a message not in the archive--- hw/bt/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/bt/hci.c +1 -1
@@ -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
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 04/16] arm: spelling fix: mismatch
In reply to a message not in the archive--- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-arm/helper.c +1 -1
@@ -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 );
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 15/16] target-m68k: fix get_mac_extf helper
In reply to a message not in the archiveFrom: Paolo Bonzini <[email protected]>
val is assigned twice; the second one should be combined with "|". Reported by Coverity.
--- target-m68k/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-m68k/helper.c +1 -1
@@ -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;
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 07/16] pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP
In reply to a message not in the archiveFrom: Bruce Rogers <[email protected]>
--- hw/i386/kvm/i8259.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/kvm/i8259.c +1 -1
@@ -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 (); } }
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 05/16] vl: remove unnecessary duplicate call to tpm_cleanup
In reply to a message not in the archiveFrom: Paolo Bonzini <[email protected]>
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.
--- vl.c | 3 --- 1 file changed, 3 deletions(-)
vl.c +0 -3
@@ -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 ();
Signature · 1 line
2.1.4