- Apr 17, 2012
-
-
Marc-André Lureau authored
Combine output volume with Master and PCM registers values. Use default values in mixer_reset (). Set volume on post-load to update backend values. v4,v5: - fix some code style Signed-off-by:
Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by:
malc <av1474@comtv.ru>
-
Marc-André Lureau authored
It's a case by case (see Table 66. AC ?97 Baseline Audio Register Map) Signed-off-by:
Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by:
malc <av1474@comtv.ru>
-
Marc-André Lureau authored
That code doesn't compile. The interesting bits for volume control are going to be rewritten in the following patch. Signed-off-by:
Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by:
malc <av1474@comtv.ru>
-
Marc-André Lureau authored
If the audio backend is capable of volume control, don't apply software volume (mixeng_volume ()), but instead, rely on backend volume control. This will allow guest to have full range volume control. Signed-off-by:
Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by:
malc <av1474@comtv.ru>
-
Marc-André Lureau authored
Add a new PCM control operation to update the stream volume on the audio backend. The argument given is a SWVoiceOut/SWVoiceIn. v4: - verified other backends didn't fail/assert on this new control they randomly return 0 or -1, but we ignore return value. Signed-off-by:
Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by:
malc <av1474@comtv.ru>
-
- Apr 16, 2012
-
-
Peter Portante authored
Basically, the main wait loop calls qemu_run_all_timers() unconditionally. The first thing this routine used to do is to see if a timer had been serviced, and then reset the loop timeout to the next deadline. However, the new deadlines had not been calculated at that point, as qemu_run_timers() had not been called yet for each of the clocks. So qemu_rearm_alarm_timer() would end up with a negative or zero deadline, and default to setting a 250us timeout for the loop. As qemu_run_timers() is called for each clock, the real deadlines would be put in place, but because a loop timeout was already set, the loop timeout would not be changed. Once that 250us timeout fired, the real deadline would be used for the subsequent timeout. For idle VMs, this effectively doubles the number of times through the loop, doubling the number of select() system calls, timer calls, etc. putting added scheduling pressure on the kernel. And under cgroups, this really causes a big problem because the cgroup code does not scale well. By simply running the timers before trying to rearm the timer, we always rearm with a non-zero deadline, effectively halving the number of system calls. Signed-off-by:
Peter Portante <pportant@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Anthony Liguori authored
* kiszka/queues/pending: vapic: Disable for pre-1.1 machines Kick io-thread on qemu_chr_accept_input pcnet: Properly handle TX requests during Link Fail pcnet: Clear ERR in CSR0 on stop signrom: Rewrite as python script Conflicts: hw/pc_piix.c Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Anthony Liguori authored
* mst/tags/for_anthony: pci: fix corrupted pci conf index register by unaligned write acpi: explicitly account for >1 device per slot acpi_piix4: Re-define PCI hotplug eject register read acpi_piix4: Remove PCI_RMV_BASE write code acpi_piix4: Fix PCI hotplug race acpi_piix4: Disallow write to up/down PCI hotplug registers virtio-pci: change virtio balloon PCI class code ivshmem: add missing msix calls vhost: readd assert statement vhost: Fix size of dirty log sync on resize pc: reduce duplication in compat machine types piix_pci: fix typo in i400FX chipset init code
-
Anthony Liguori authored
* sstabellini/for_anthony: xen: introduce an event channel for buffered io event notifications xen-mapcache: don't unmap locked entry during mapcache invalidation Xen, mapcache: Fix the compute of the size of bucket. xen: handle backend deletion from xenstore Xen: Add xen-apic support and hook it up. Xen: basic HVM MSI injection support.
-
Jan Kiszka authored
The kvmvapic was not present in older QEMU versions, thus must be disabled in compat machines. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com>
-
Jan Kiszka authored
Once a chr frontend is able to receive input again, we need to inform the io-thread about this fact. Otherwise, main_loop_wait may continue to select without the related backend file descriptor in its set. This can cause high input latencies if only low-rate events arrive otherwise. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com>
-
Jan Kiszka authored
As long as we have no link and we aren't in internal loopback mode, no packet must be sent. Instead, LCAR needs to be set in any active TX descriptor and also CERR in CSR0. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com>
-
Jan Kiszka authored
pcnet_stop already clears any reason (BABL, CERR, MISS, MERR) why ERR (bit 15) should be set in CRS0. So we have to clear that bit as well. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com>
-
Jan Kiszka authored
Now that we have a hard dependency on python anyway, we can replace the slow shell script to calculate the option ROM checksum with a fast AND portable python version. Tested both with python 2.7 and 3.1. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com>
-
- Apr 15, 2012
-
-
git://qemu.weilnetz.de/qemuBlue Swirl authored
* 'w64' of git://qemu.weilnetz.de/qemu: w64: Fix time conversion for some versions of MinGW-w64 nbd: Fix compiler warning (w64) disas: Replace 'unsigned long' by 'uintptr_t' cpu-exec: Remove non-portable type cast and fix format string target-mips: Fix type cast for w64 (uintptr_t) w64: Fix type cast in os_host_main_loop_wait w64: Fix data types in softmmu*.h w64: Use uintptr_t in exec.c softmmu: Use uintptr_t for physaddr and rename it w64: Fix struct CPUTLBEntry w64: Fix definition of setjmp w32: Move defines for socket specific errors to qemu-os-win32.h w64: Use larger alignment for section with generated code w64: Fix data types in cpu-all.h, exec.c w64: Fix type casts used in some macros in cpu-all.h tcg/i386: Add support for w64 ABI tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
-
Andreas Färber authored
Move code from cpu_alpha_init() into a CPU initializer. Signed-off-by:
Andreas Färber <afaerber@suse.de> Acked-by:
Richard Henderson <rth@twiddle.net>
-
Andreas Färber authored
Embed CPUAlphaState as first member of AlphaCPU. Signed-off-by:
Andreas Färber <afaerber@suse.de> Acked-by:
Richard Henderson <rth@twiddle.net>
-
Stefan Weil authored
tb.time is a time value, but not necessarily of the same size as time_t: while time_t is 64 bit for w64, tb.time still is 32 bit only. Therefore we need en explicit conversion. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
Portable printing of dev_offset (data type off_t) needs a type cast. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
This is needed for w64. It changes nothing for other hosts. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
This change is needed for w64, but also changes the code for other hosts. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
This changes nothing for other hosts. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
Casting a pointer to an integer must use (DWORD_PTR) instead of (DWORD). This also matches the definition of 'fd' (gint for w32, gint64 for w64). Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
w64 requires uintptr_t. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
Replace all type casts to 'long' or 'unsigned long' by 'intptr_t' or 'uintptr_t'. For type casts which are only used to extract the lower bits of an address or to modify those bits, signedness does not matter. There I always use 'uintptr_t'. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
Variable physaddr is a host address which should be represented by data type 'uintptr_t'. This is needed for w64 and changes nothing for other hosts. v2: Rename physaddr -> hostaddr (suggested by Blue Swirl). Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
For w64, some entries need 'uintptr_t' instead of 'unsigned long'. For other host systems, both data types are identical, so nothing changes. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
The default definition of setjmp which is implemented in MinGW-w64 cannot be used with programs like QEMU which call longjmp from code without structured exception handling (SEH). This code therefore disables stack unwinding. We could also implement SEH for QEMU's generated JIT code, but that is much more difficult. Stack unwinding would also cost execution time. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
As those defines are only used for w32, they should be in the header file for w32. All files which include slirp.h or qemu_socket.h also include qemu-os-win32.h. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
The MinGW-w64 compiler allows __attribute__((aligned (32)). Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
w64 needs uintptr_t instead of unsigned long. For other hosts, nothing changes. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
Instead of type casts to long, w64 needs type casts to intptr_t. For other hosts, this changes nothing. Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
w64 uses the registers rcx, rdx, r8 and r9 for function arguments, so it needs a different declaration of tcg_target_call_iarg_regs. rax, rcx, rdx, r8, r9, r10 and r11 may be changed by function calls. rbx, rbp, rdi, rsi, r12, r13, r14 and r15 remain unchanged by function calls. Reviewed-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
Stefan Weil authored
Not all i386 / x86_64 hosts use ELF. Ask the compiler whether ELF is used. On w64, gdb crashes when ELF_HOST_MACHINE is defined. Cc: Blue Swirl <blauwirbel@gmail.com> Acked-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
git://repo.or.cz/qemu/agrafBlue Swirl authored
* 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: pseries: Fix reset of VIO network device pseries: Reset vscsi properly pseries: Correctly use the device model reset hooks pseries: Remove old hcalls hook stub pseries: Remove old debug leftovers from spapr_vscsi pseries: Fix RTAS based config access target-ppc/machine.c: Drop unnecessary ifdefs target-ppc: Init dcache and icache size for e500 user mode target-ppc: Fix type casts for w64 (uintptr_t) target-ppc: QOM'ify CPU reset target-ppc: Start QOM'ifying CPU init target-ppc: QOM'ify CPU target-ppc: Add hooks for handling tcg and kvm limitations target-ppc: Drop cpu_ppc_close() pseries: Consolidate hack for RTAS display-character usage pseries: Remove unused fields from VIOsPAPRBus structure pseries: Implement RTAS system-reboot call pseries: Fix bug with reset of VIO CRQs pseries: Clean up hcall_dprintf() debugging messages PPC: Fix TLB invalidation bug within the PPC interrupt handler.
-
David Gibson authored
Currently, the PAPR VIO network device does not have a reset handler. This means that after a hard reset, H_REGISTER_LOGICAL_LAN will return an error when the new guest boot attempts to initialize the device. This patch corrects this, adding a suitable reset hook. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Andreas Färber <afaerber@suse.de>
-
David Gibson authored
Currently the PAPR vscsi implementation does not properly clear its table of request tags when the system is reset. This patch adds a reset hook to do so. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Andreas Färber <afaerber@suse.de>
-
David Gibson authored
Recently we added code to properly clean away VIO CRQs on reset However, this directly uses qemu_register, rather than the existing device model reset callbacks. This patch cleans this up by adding proper use of the reset hook to the VIO bus model. The existing CRQ reset code is converted to the new method. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Andreas Färber <afaerber@suse.de>
-
David Gibson authored
Some time ago we removed all use of the 'hcalls' callback in the pseries VIO code, which was used to workaround an ordering problem which has since been solved properly. However, the function pointer for the hook remains. This patch cleans it away. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Andreas Färber <afaerber@suse.de>
-
David Gibson authored
The PAPR VSCSI emulation contains a few lines of code which were once used for debug but now do nothing at all. This patch removes them. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Andreas Färber <afaerber@suse.de>
-