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
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 -
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
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,
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
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
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.
--
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