- Oct 11, 2011
-
-
Justin M. Forbes authored
Signed-off-by:
Justin M. Forbes <jforbes@redhat.com>
-
- Oct 05, 2011
-
-
Stefan Hajnoczi authored
QED's metadata caching strategy allows two parallel requests to race for metadata lookup. The first one to complete will populate the metadata cache and the second one will drop the data it just read in favor of the cached data. There is a use-after-free in qed_read_l2_table_cb() and qed_commit_l2_update() where l2_table->offset was used after the l2_table may have been freed due to a metadata lookup race. Fix this by keeping the l2_offset in a local variable and not reaching into the possibly freed l2_table. Reported-by:
Amit Shah <amit.shah@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- Oct 03, 2011
-
-
Jan Kiszka authored
Just like the monitor does, we need to clear no_shutdown before calling qemu_system_shutdown_request on quit requests. Otherwise, QEMU just stops the VM. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Kevin Wolf authored
On signals such as SIGTERM qemu should exit instead of just stopping the VM even with -no-shutdown. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Brad Smith authored
Signed-off-by:
Brad Smith <brad@comstyle.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Brad Smith authored
OpenBSD / FreeBSD and some other OS's require the use of cc -pthread to link threaded programs so have QEMU's configure script check for the presence of the flag and use it if so. Signed-off-by:
Brad Smith <brad@comstyle.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Brad Smith authored
Allow overriding the location of Samba's smbd. Pretty much every OS I look at has some means of changing this path (patching) so lets just make it easier for OS developers creating packages and/or end users to override the location. Signed-off-by:
Brad Smith <brad@comstyle.com> Reviewed-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Gerd Hoffmann authored
Remove PROVIDE_HIDDEN and ONLY_IF_{RO,RW} from linker scripts to make them work with older binutils versions. Fixes *-bsd-user build on OpenBSD 4.9 which ships binutils 2.15. Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Brad Smith authored
Fix install(1) usage to be compatible with OpenBSD's install(1). When creating a directory via the -d flag the -p flag cannot be used at the same time. Also in the context of installing QEMU it doesn't make sense to use the -p flag anyway so use the [default] -c flag instead. Signed-off-by:
Brad Smith <brad@comstyle.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Jan Kiszka authored
"\/" is supposed to be decoded as "/", but there is no need to encode "/" via escape. Fix the existing test and add a second one expressing this. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Acked-by:
Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
Luiz Capitulino authored
The QDict unit-tests (check-qdict) will fail when ran on a different build directory. That's, it only works when ran on the source dir. This happens because its data file (qdict-test-data.txt) is not copied to the build dir. Fix it. Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Conflicts: configure
-
- Aug 31, 2011
-
-
Jamie Iles authored
Commit c62f6d1d (monitor: fix build breakage with --disable-vnc) conditionalised some VNC setup code but left an unused variable. Move the variable into the conditional code to fix the build breakage. Cc: Luiz Capitulino <lcapitulino@redhat.com> Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by:
Jamie Iles <jamie@jamieiles.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
TeLeMan authored
The breakage was introduced by the commit 13661089 Signed-off-by:
TeLeMan <geleman@gmail.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Brad Smith authored
Fix forcing multicast msgs to loopback on OpenBSD. e.g. $ sudo qemu -m 128 -no-fd-bootchk \ -hda virtual.img -boot n -nographic \ -net nic,vlan=0,model=rtl8139,macaddr=52:54:00:12:34:03 \ -net user -tftp /usr/src/sys/arch/i386/compile/TEST -bootp pxeboot \ -net nic,vlan=1,model=rtl8139,macaddr=52:54:00:23:03:01 \ -net tap,vlan=1,script=no \ -net nic,vlan=3,model=rtl8139,macaddr=52:54:00:23:03:03 \ -net socket,vlan=3,mcast=230.0.0.1:10003 setsockopt(SOL_IP, IP_MULTICAST_LOOP): Invalid argument qemu: -net socket,vlan=3,mcast=230.0.0.1:10003: Device 'socket' could not be initialized Signed-off-by:
Brad Smith <brad@comstyle.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- Aug 14, 2011
-
-
git://git.qemu.org/qemuJustin M. Forbes authored
-
- Aug 08, 2011
-
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- Aug 05, 2011
-
-
Kevin Wolf authored
When loading an internal snapshot whose L1 table is smaller than the current L1 table, the size of the current L1 would be shrunk to the snapshot's L1 size in memory, but not on disk. This lead to incorrect refcount updates and eventuelly to image corruption. Instead of writing the new L1 size to disk, this simply retains the bigger L1 size that is currently in use and makes sure that the unused part is zeroed. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Tested-by:
Philipp Hahn <hahn@univention.de> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 35d7ace7)
-
- Aug 04, 2011
-
-
git://git.qemu.org/qemuJustin M. Forbes authored
-
Anthony Liguori authored
This reverts commit 7d905f71. The use of subsections by this commit are broken because of a fundamental limitations of subsections in the current protocol. Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Richard Henderson authored
The system emulation code was not merged before the branch. Let's leave that work for the next release. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Wolfgang Mauerer authored
vhost.c uses __sync_fetch_and_and(), which is only available for -march=i486 and above (see https://bugzilla.redhat.com/show_bug.cgi?id=624279 ). Signed-off-by:
Wolfgang Mauerer <wolfgang.mauerer@siemens.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> (cherry picked from commit 023367e6)
-
Michael Roth authored
QAPI will require glib/python, but for now the guest agent is the only user. For now, make these dependencies an explicit guest agent one, and give users the option to disable it if need be. Once QAPI is adopted in core QEMU code, we would basically revert this patch. Signed-off-by:
Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Peter Maydell authored
The code which prints the debug usage message on '-d ?' for *-user has to come before the check for "not enough arguments", so that "qemu-foo -d ?" prints the list of possible debug log items rather than the generic usage message. (This was inadvertently broken in commit c235d738.) Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Michael Walle authored
The QEMU keyboard and mouse reports themselves as full speed devices, though they are actually low speed devices. Until this is fixed, claim that we are supporting full speed devices. Acked-by:
Gerd Hoffmann <kraxel@redhat.com> Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
- Aug 02, 2011
-
-
Peter Maydell authored
The code which prints the debug usage message on '-d ?' for *-user has to come before the check for "not enough arguments", so that "qemu-foo -d ?" prints the list of possible debug log items rather than the generic usage message. (This was inadvertently broken in commit c235d738.) Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
- Jul 31, 2011
-
-
Michael Roth authored
This fixes a build issue with make -j6+ due to qapi-generated files being built before $(GENERATED_HEADERS) have been created. Tested-by:
Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by:
Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Anthony Liguori authored
-
- Jul 30, 2011
-
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- Jul 29, 2011
-
- Jul 28, 2011
-
-
Amit Shah authored
Migrating after unplugging a virtio-balloon device resulted in an error message on the destination: Unknown savevm section or instance '0000:00:04.0/virtio-balloon' 0 load of migration failed Fix this by unregistering the section on device unplug. Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com>
-
Amit Shah authored
Add an exit handler that will free up RAM after a virtio-balloon device is unplugged. Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com>
-
Amit Shah authored
Negative balloon values don't make sense, reject them and throw a qerror with QERR_INVALID_PARAMETER_VALUE. Reported-by:
Mike Cao <bcao@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com>
-
Amit Shah authored
Multiple balloon registrations are not allowed; check if the registration with the qemu balloon api succeeded. If not, fail the device init. Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com>
-
Amit Shah authored
Multiple balloon devices don't make sense; disallow more than one registration attempt to register handlers. Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com>
-
- Jul 27, 2011
-
-
Peter Maydell authored
VCVTT/VCVTB with bit 8 set is UNPREDICTABLE; we choose to UNDEF. This avoids a TCG assert later when the VCVTT/VCVTB code tries to use a source register that wasn't ever set up. We pull the check for the presence of the half-precision extension up in to this common code as well. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Peter Maydell authored
Handle the UNDEF and UNPREDICTABLE cases for VLDM and VSTM. In particular, we now generate an undef exception for overlarge imm8 values rather than generating 1000+ TCG ops and hitting an assertion. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Peter Maydell authored
ARMv6 implemented various operations as special cases of cp15 accesses which are true instructions in v7; this includes barriers (DMB, DSB, ISB). Catch this special case at translate time, so that it works in linux-user mode (which doesn't provide a functional get_cp15 helper) as well as system mode. Includes minor cleanup of the existing cases (single switch statement, and doing the "OK in user mode?" test explicitly rather than hiding it in cp15_user_ok()). Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
- Jul 26, 2011
-
-
Peter Maydell authored
The 1136r1 is actually a v6K core (unlike the 1136r0); mark it as such, thus enabling the TLS registers, NOP hints, CLREX, half and byte wide exclusive load/stores, etc. The VA-to-PA translation registers are not present on 1136r1, so introduce a new feature flag for them, which is enabled on 11MPCore and all v7 cores. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Amit Shah authored
Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
Amit Shah authored
Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-