[Qemu-devel] [PATCHv3] Reducing stack frame size in stream_process_mem2s()

2016-10-06 Thread rutu . shah . 26
From: Rutuja Shah This patch allocates memory for txbuf in struct Stream rather than the stack. As a result, the stack frame size is reduced of stream_process_mem2s(). Signed-off-by: Rutuja Shah Reviewed-by: Edgar E. Iglesias Reviewed-by: Stefan Hajnoczi Reviewed-by: Alistair Francis --- hw

[Qemu-devel] [PATCHv2] Reducing stack frame size in stream_process_mem2s()

2016-10-04 Thread rutu . shah . 26
From: Rutuja Shah Hi, This patch allocates memory for txbuf in struct Stream rather than the stack. As a result, the stack frame size is reduced of stream_process_mem2s(). Signed-off-by: Rutuja Shah --- hw/dma/xilinx_axidma.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

[Qemu-devel] [PATCH] Reducing stack frame size in stream_process_mem2s()

2016-10-03 Thread rutu . shah . 26
From: Rutuja Shah This patch allocates memory for txbuf array on the heap rather than the stack. As a result, the stack frame size is reduced. Signed-off-by: Rutuja Shah --- hw/dma/xilinx_axidma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/dma/xilinx_axidma.c b/h

[Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-21 Thread rutu . shah . 26
From: Rutuja Shah Hi, This patch replaces get_ticks_per_sec() calls to NANOSECONDS_PER_SECOND. Also, as there are no callers, get_ticks_per_sec() has been removed. Replacement imporves readability and understandability of code. Example given by Paolo Bonzini, timer_mod(fdctrl->result_timer,

[Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-20 Thread rutu . shah . 26
From: Rutuja Shah Signed-off-by: Rutuja Shah --- audio/audio.c | 3 +-- audio/noaudio.c | 8 audio/spiceaudio.c| 4 ++-- audio/wavaudio.c | 2 +- backends/baum.c | 2 +- block/qed.c | 2 +- cpus.c

[Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-20 Thread rutu . shah . 26
Example given by Paolo Bonzini, timer_mod(fdctrl->result_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (get_ticks_per_sec() / 50)); NANOSECONDS_PER_SECOND makes it obvious that the timer will expire in 1/50th of a second. --- audio/audio.c | 3 +-- audio/noaudio.c

[Qemu-devel] [PATCH] Added NULL check for qemu_find_file()

2016-03-12 Thread rutu . shah . 26
From: Rutuja Shah This patch adds NULL check for return value from qemu_find_file(), where it is missing. It avoids unnecessary function calls with NULL parameter which in turn return -1. Especially, incase of load_uimage(), two functions are called which return -1 on passing NULL filename. --

[Qemu-devel] [PATCH] Replacing (and removing) get_ticks_per_sec() function with NANOSECONDS_PER_SECOND Signed-off-by: Rutuja Shah

2016-03-10 Thread rutu . shah . 26
From: Rutuja Shah --- audio/audio.c | 2 +- audio/noaudio.c | 4 ++-- audio/spiceaudio.c| 2 +- audio/wavaudio.c | 2 +- backends/baum.c | 2 +- block/qed.c | 2 +- cpus.c| 6 +++--- hw/acpi/core.c