Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
acpi,pc,test bug fixes
More small fixes: the issues annoy developers soI thought they are worth fixing quickly.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Merge remote-tracking branch 'remotes/kvm/uq/master' into staging
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
qemu-thread-posix: Fix build against older glibc version
pthread_setname_np was introduced with 2.12.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140310' into staging
target-arm queue: * implement WFE as yield (improves performance with emulated SMP) * fixes to avoid undefined behaviour shifting left into sign bit * libvixl format string fixes for 32 bit hosts...
Merge remote-tracking branch 'remotes/spice/tags/pull-spice-4' into staging
minor spice patches.
Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-5' into staging
input: fixes for the rewrite.
q35: Correct typo BRDIGE -> BRIDGE
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi-build: don't access unaligned addresses
casting an unaligned address to e.g.uint32_t can trigger undefined behaviour in C.Replace cast + assignment with memcpy.
Reported-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi-test: update expected SSDT files
SSDT doesn't have _SUN for non hotpluggable slotsanymore.
configure: don't modify .status on error
./configure --helpmake
will try to re-run configure with --helpwhich isn't what was intended.
The reason is that config.status was writteneven on configure error.Defer writing config.status until configurehas completed successfully....
pc: avoid duplicate names for ROM MRs
Sincecommit 04920fc0faa4760f9c4fc0e73b992b768099be70 loader: store FW CFG ROM files in RAMRAM MRs including ROM files in FW CFGs are createdand named using the file basename.
This becomes problematic if these names are...
Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-1' into staging
vnc dirty tracking optinizations.various vnc bugfixes.
target-i386: bugfix of Intel MPX
The correct size of cpuid 0x0d sub-leaf 4 is 0x40, not 0x10.This is confirmed by Anvin H Peter and Mallick Asit K.
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>Cc: H. Peter Anvin <hpa@zytor.com>Cc: Asit K Mallick <asit.k.mallick@intel.com>...
acpi,pc,pci,virtio,memory bug fixes
This collects several small fixes from all over the place.Additionally, Marcel's changes make acpi unit tests more robust.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>...
s390/kvm: Add Maintainers for s390/kvm
Lets add Conny and myself as maintainers for s390/kvm andrelated code. This does not include any tcg related code,which is maintained by Richard and Alex.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>...
Merge remote-tracking branch 'remotes/riku/linux-user-for-upstream' into staging
Merge remote-tracking branch 'remotes/mcayland/qemu-openbios' into staging
hw/ssi/xilinx_spips.c: Avoid shifting left into sign bit
Add missing 'U' suffix to avoid shifting left into sign bit ofa signed integer.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1392988008-15938-4-git-send-email-peter.maydell@linaro.org
hw/arm/musicpal: Avoid shifting left into sign bit
Add missing 'U' suffixes to avoid shifting left into signbit of a signed integer.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1392988008-15938-5-git-send-email-peter.maydell@linaro.org
target-arm: Implement WFE as a yield operation
Implement WFE to yield our timeslice to the next CPU.This avoids slowdowns in multicore configurations causedby one core busy-waiting on a spinlock which can't possiblybe unlocked until the other core has an opportunity to run....
target-arm: Fix intptr_t vs tcg_target_long
Fixes a build error when these are different, e.g. x32.
Signed-off-by: Richard Henderson <rth@twiddle.net>Message-id: 1394043257-4800-1-git-send-email-rth@twiddle.netSigned-off-by: Peter Maydell <peter.maydell@linaro.org>
libvixl: Fix format strings for several int64_t values
"%d" or "%x" won't work on hosts where int values are smaller than 64 bit.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Message-id: 1394219753-26106-1-git-send-email-sw@weilnetz.deSigned-off-by: Peter Maydell <peter.maydell@linaro.org>
pxa2xx: Don't shift into sign bit
Add missing 'U' suffixes to avoid potentially shifting intothe sign bit of a signed integer.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1392988008-15938-2-git-send-email-peter.maydell@linaro.org
hw/arm/omap1.c: Avoid shifting left into sign bit
Add missing 'U' suffix to avoid shifting left into sign bit.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1392988008-15938-3-git-send-email-peter.maydell@linaro.org
target-arm: Fix incorrect setting of E bit in CPSR
Commit 4cc35614a moved the exception mask bits out of env->uncached_cpsrand into env->daif. However the env->daif contents are AArch64 stylemask bits, which include not just the AArch32 AIF bits but also the...
target-arm: Implements the ARM PMCCNTR register
This patch implements the ARM PMCCNTR register includingthe disable and reset components of the PMCR register.
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>Message-id: bbf405e1feaf352cf39d5db402c9efcbd0f57c78.1393459802.git.alistair.francis@xilinx.com...
configure: Prettify message for hosts without spice support
Instead of
spice support no (/)
configure now prints
spice support no
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
spice: QemuUIInfo windup
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
spice: fix simple display surface handling
input: sdl: fix guest_cursor logic.
Unbreaks relative mouse mode with SDL.
Reported-by: Gabriel L. Somlo <gsomlo@gmail.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
input: map INPUT_BUTTON_WHEEL_{UP,DOWN} to legacy input z axis moves.
Unbreaks mouse wheel.
Reported-by: BALATON Zoltan <balaton@eik.bme.hu>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Merge remote-tracking branch 'remotes/rth/tcg-aarch-6-1' into staging
linux-user: set minimum kernel version to 2.6.32
Popular glibc based distributions1 require minimum2.6.32 as kernel version. For some targets 2.6.18would be enough, but dropping so low would mean somesuboptimal system calls could get used.
Set the minimum kernel advertized to 2.6.32 for...
Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20140308-1' into staging
migration/next for 20140308
vnc: Fix tight_detect_smooth_image() for lossless case
VncTight member uint8_t quality is either (uint8_t)-1 for lossless orless than 10 for lossy.
tight_detect_smooth_image() first promotes it to int, then compareswith -1. Always unequal, so we always execute the lossy code. Reads...
vnc: Fix qemu crashed when vnc client disconnect suddenly
Hi,
When I use RealVNC viewer client (http://www.realvnc.com/) to connect vnc server,the client disconnect suddenly, and I click reconnect button immediately, then the Qemu crashed.
In the function vnc_worker_thread_loop, will call vnc_async_encoding_start...
vnc: fix use-after-free in vnc_update_client_sync
Spotted by Coverity:
876 static int vnc_update_client_sync(VncState *vs, int has_dirty)877 {
(1) Event freed_arg: "vnc_update_client(VncState *, int)" frees "vs". [details]Also see events: [deref_arg]...
ui/vnc: introduce VNC_DIRTY_PIXELS_PER_BIT macro
Signed-off-by: Peter Lieven <pl@kamp.de>Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc: derive cmp_bytes from VNC_DIRTY_PIXELS_PER_BIT
this allows for setting VNC_DIRTY_PIXELS_PER_BIT to differentvalues than 16 if desired.
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>Signed-off-by: Peter Lieven <pl@kamp.de>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc: optimize dirty bitmap tracking
vnc_update_client currently scans the dirty bitmap of each clientbitwise which is a very costly operation if only few bits are dirty.vnc_refresh_server_surface does almost the same.this patch optimizes both by utilizing the heavily optimized...
ui/vnc: optimize clearing in find_and_clear_dirty_height()
The following artifical test (just the bitmap operation part) runningvnc_update_client 65536 times on a 2560x2048 surface illustrates theperformance difference:
All bits clean - vnc_update_client_new: 0.07 secs...
ui/vnc: optimize setting in vnc_dpy_update()
ui/vnc: disable adaptive update calculations if not needed
Signed-off-by: Peter Lieven <pl@kamp.de>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Update OpenBIOS images
Update OpenBIOS images to SVN r1280 built from submodule.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Add a 'name' parameter to qemu_thread_create
If enabled, set the thread name at creation (on GNU systems with pthread_set_np)Fix up all the callers with a thread name
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>Acked-by: Michael S. Tsirkin <mst@redhat.com>...
MAINTAINERS: drop an out of date address
Gleb's address seems to be out of date. Since it stayed like that for awhile now, I'm guessing he's no longer interested in getting mail.
acpi-test: retain both asl and aml files on failure
Updated the error message while at it.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi-test: issue errors instead of warnings when possible
If the expected (offline) acpi tables loaded correctly,it is safe to assume the iasl installation is OK andissue an error if the actual tables failed to load.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>...
pam: partly fix write-only mode
In write-only mode, writes are forwarded to RAM, while reads should not behandled (ie should return 0xff).Assume that in this mode, no read access is ever done, as they shouldn'tgive any sensible result.
So, in write-only mode, alias PAM region to RAM, instead of PCI memory...
pckbd: return 'keyboard enabled' on read input port command
Bit 7 of Input Port is the keyboard inhibit switch.0 means keyboard inhibited, while 1 means keyboard enabled.
Incidentaly, this also fixes an error encountered while bootingan Award BIOS: "Keyboard is locked out - Unlock the key"....
qemu: x86: ignore ioapic polarity
Both QEMU and KVM have already accumulated a significant number ofoptimizations based on the hard-coded assumption that ioapic polaritywill always use the ActiveHigh convention, where the logical andphysical states of level-triggered irq lines always match (i.e.,...
loader: rename in_ram/has_mr
we put copy of ROMs in MR for migration.but the name rom_in_ram makes one think weload it in guest RAM.Rename has_mr to make intent clearer.
acpi-test-data: update expected files
virtio-net: remove function calls from assert
peer_{de,at}tach were called from inside assert().We don't support building without NDEBUG but it's not tidy.Rearrange to attach peer outside assert calls.
Signed-off-by: Joel Stanley <joel@jms.id.au>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>...
memory_region_present: return false if address is not found in child MemoryRegion
Windows XP shows COM2 port as non functional in"Device Manager" although no COM2 port backing deviceis present in QEMU.
This regression is really due to3bb28b7208b349e7a1b326e3c6ef9efac1d462bf?...
PCIE: fix regression with coldplugged multifunction device
PCIE is causing asserts each time a multifunction device is addedon command line (coldplug).
This is caused bycommit a66e657e18cd9b70e9f57ae5512c07faf2bc508f pci/pcie: convert PCIE hotplug to use hotplug-handler API...
Rework --name to use QemuOpts
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>Reviewed-by: Alex Bennée <alex.bennee@linaro.org>Acked-by: Michael S. Tsirkin <mst@redhat.com>Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Add 'debug-threads' suboption to --name
Add flag storage to qemu-thread-* to store the namethreads flag
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>Acked-by: Michael S. Tsirkin <mst@redhat.com>Reviewed-by: Laszlo Ersek <lersek@redhat.com>
acpi-build: append description for non-hotplug
As reported inhttp://article.gmane.org/gmane.comp.emulators.qemu/253987Mac OSX actually requires describing all occupied slotsin ACPI - even if hotplug isn't enabled.
I didn't expect this so I dropped description of all...
tcg-aarch64: Remove the shift_imm parameter from tcg_out_cmp
It was unused. Let's not overcomplicate things before we need them.
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg-aarch64: Use intptr_t apropriately
As opposed to tcg_target_long.
tcg-aarch64: Simplify tcg_out_ldst_9 encoding
At first glance the code appears to be using 1's compliment encoding,a-la AArch32. Except that the constant is "off", creating a complicatedsplit field 2's compliment encoding.
Much clearer to just use a normal mask and shift....
tcg-aarch64: Remove nop from qemu_st slow path
Commit 023261ef851b22a04f6c5d76da870051031757a6 failed to remove anop that's no longer required.
tcg-aarch64: Hoist common argument loads in tcg_out_op
This reduces the code size of the function significantly.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg-aarch64: Don't handle mov/movi in tcg_out_op
tcg-aarch64: Change all ext variables to TCGType
We assert that the values for _I32 and _I64 are 0 and 1 respectively.This will make a couple of functions declared by tcg.c cleaner.
tcg-aarch64: Set ext based on TCG_OPF_64BIT
tcg-aarch64: Remove redundant CPU_TLB_ENTRY_BITS check
Removed from other targets in 56bbc2f967ce185fa1c5c39e1aeb5b68b26242e9.
tcg-aarch64: Enable builtin disassembler
XBZRLE: Fix qemu crash when resize the xbzrle cache
Resizing the xbzrle cache during migration causes qemu-crash,because the main-thread and migration-thread modify the xbzrlecache size concurrently without lock-protection.
Signed-off-by: ChenLiang <chenliang88@huawei.com>...
qemu_file: Fix mismerge of "use fwrite() correctly"
Reviewers accepted v2 of the patch, but what got committed was v1,with the R-bys for v2. This is the v1->v2 followup fix.
[Amit: This fixes commit aded6539d983280212e08d09f14157b1cb4d58cc]
Signed-off-by: Markus Armbruster <armbru@redhat.com>...
vl: add system_wakeup_request tracepoint
It might be useful for tracing migration.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>Signed-off-by: Amit Shah <amit.shah@redhat.com>Signed-off-by: Juan Quintela <quintela@redhat.com>
migration: extend section_start/end traces
This adds @idstr to savevm_section_start and savevm_section_endtracepoints.
Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
Block patches
build: Fix installation of target-dependent files
Pass all the relevant sub-directory make variables.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
xenfb: Fix graphic_console_init() build failure
In commit 5643706a095044d75df1c0588aac553a595b972b (console: add headto index to qemu consoles.) graphic_console_init() was extended to takean additional argument, but xenfb was not updated accordingly. Fix it....
Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-4' into staging
Input handling rewrite.SDL2 support.
Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream' into staging
Patch queue for ppc - 2014-03-05
This pull request includes:
- VSX emulation support - book3s pr/hv selection - some bug fixes - qdev stable numbering - eTSEC emulation...
Merge remote-tracking branch 'remotes/cohuck/tags/virtio-ccw-20140305' into staging
One patch introducing support for adapter interrupts in virtio-ccw.
This improves performance for those guests that issue the newCCW_CMD_SET_IND_ADAPTER channel command....
block: qemu-iotests 085 - live snapshots tests
This adds tests for live snapshots, both through the singlesnapshot command, and the transaction group snapshot command.
The snapshots are done through the QMP interface, using thefollowing commands for snapshots:...
hw/ide/ahci.h: Avoid shifting left into sign bit
Add 'U' suffixes to avoid undefined behaviour shifting left intothe signed bit of a signed integer type. Clang's sanitizer willwarn about this:
hw/ide/ahci.c:1210:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'...
configure: Always build with -fno-common
MacOSX doesn't pull .o files from .a archives if the symbol that itrequires is one which the .o file defines as a common symbol.(Common symbols are those declared without "extern"; the linkerwill merge together common symbols with the same name, so...
configure: Make C++ test work with --enable-werror
gcc's C++ compiler complains about being passed some -W optionswhich make sense for C but not for C++. This means we mustn't trya C++ compile with QEMU_CFLAGS, but only with a filtered versionthat removes the offending options. This filtering was already being...
block: Fix error path segfault in bdrv_open()
Using an invalid option for a block device that is opened withBDRV_O_PROTOCOL led to drv = NULL, and when trying to include the drivername in the error message, qemu dereferenced it:
$ x86_64-softmmu/qemu-system-x86_64 -drive file=/tmp/test.qcow2,file.foo=bar...
qemu-iotests: Test a few blockdev-add error cases
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Benoit Canet <benoit@irqsave.net>
blockdev: Fix NULL pointer dereference in blockdev-add
If aio=native, we check that cache.direct is set as well. If howevercache wasn't specified at all, qemu just segfaulted.
The old condition didn't make any sense anyway because it effectivelyonly checked for the default cache mode case, but not for an explicitly...
blockdev: Fail blockdev-add with encrypted images
Encrypted images need a password before they can be used, and we don'twant blockdev-add to create BDSes that aren't fully initialised. So fornow simply forbid encrypted images; we can come back to it later if we...
block/raw-win32: Strip "file:" prefix on creation
The bdrv_create() implementation of the block/raw-win32 "file" protocoldriver should strip the "file:" prefix from filenames if present.
Signed-off-by: Max Reitz <mreitz@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
block/raw-win32: Implement bdrv_parse_filename()
The "file" protocol driver should strip the "file:" prefix fromfilenames if present.
Signed-off-by: Max Reitz <mreitz@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Reviewed-by: Benoit Canet <benoit@irqsave.net>...
block/raw-posix: Strip "file:" prefix on creation
The bdrv_create() implementation of the block/raw-posix "file" protocoldriver should strip the "file:" prefix from filenames if present.
block/raw-posix: Implement bdrv_parse_filename()
block: Keep "filename" option after parsing
Currently, bdrv_file_open() always removes the "filename" option fromthe options QDict after bdrv_parse_filename() has been (successfully)called. However, for drivers with bdrv_needs_filename, it makes moresense for bdrv_parse_filename() to overwrite the "filename" option and...
block: mirror - remove code cruft that has no function
Originally, this built up the error message with the backing filename,so that errp was set as follows: error_set(errp, QERR_OPEN_FILE_FAILED, backing_filename);
However, we now propagate the local_error from the...
block: make bdrv_swap rebuild the bs graph node list field.
Moving only the node_name one field could lead to some inconsitencies where anode_name was defined on a bs which was not registered in the graph node list.
bdrv_swap between a named node bs and a non named node bs would lead to this....
block: Fix bs->request_alignment assertion for bs->sg=1
For sg backends, bs->request_alignment is meaningless and may be 0.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Benoit Canet <benoit@irqsave.net>Acked-by: Paolo Bonzini <pbonzini@redhat.com>
iscsi: Use bs->sg for everything else than disks
The current iscsi block driver code makes the rather arbitrary decisionthat TYPE_MEDIUM_CHANGER and TYPE_TAPE devices have bs->sg = 1 and allother device types are disks.
Instead of this, check for TYPE_DISK to expose the disk interface and...
gluster: Change licence to GPLv2+
Pipe handling mechanism in gluster driver was based on similar implementationin RBD driver and hence had GPLv2 and associated copyright information.After changing gluster driver to coroutine based implementation, the pipe...
gluster: Remove unused defines and header include
Remove the definitions of GLUSTER_FD_WRITE and GLUSTER_FD_READ which areno longer used. Also sockets.h isn't needed any more.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>Acked-by: Stefan Hajnoczi <stefanha@redhat.com>...
qemu-img convert: Fix progress output
Initialise progress output only when the -p and -q options have alreadybeen parsed, otherwise it's always disabled.
Reported-by: Peter Lieven <pl@kamp.de>Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
1 2 3 ... 316 Next » (1-100/31548) | Per page: 25, 50, 100
Also available in: Atom