summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary casts from PCI DMA code in usb-uhciDavid Gibson2011-12-121-10/+7Star
| | | | | | | | | This patch removes some unnecessary casts in the usb-uhci device, introduced by commit fff23ee9a5de74ab111b3cea9eec56782e7d7c50 'usb-uhci: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary casts from PCI DMA code in usb-ehciDavid Gibson2011-12-121-3/+3
| | | | | | | | | This patch removes some unnecessary casts in the usb-ehci device, introduced by commit 68d553587c0aa271c3eb2902921b503740d775b6 'usb-ehci: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary casts from PCI DMA code in rtl8139David Gibson2011-12-121-4/+4
| | | | | | | | | This patch removes some unnecessary casts in the rtl8139 device, introduced by commit 3ada003aee2004d24f23b9cd6f4eda87d9601ddb 'rtl8139: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary casts from PCI DMA code in lsi53c895aDavid Gibson2011-12-121-2/+2
| | | | | | | | | This patch removes some unnecessary casts in the lsi53c895a device, introduced by commit 9ba4524cda1348cbe741535f77815dca6a57da05 'lsi53c895a: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary casts from PCI DMA code in PCI IDEDavid Gibson2011-12-121-2/+2
| | | | | | | | | This patch removes some unnecessary casts in the PCI IDE device, introduced by commit 552908fef5b67ad9d96b76d7cb8371ebc26c9bc8 'PCI IDE: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary casts from PCI DMA code in e1000David Gibson2011-12-121-6/+5Star
| | | | | | | | | This patch removes some unnecessary casts in the e1000 device, introduced by commit 62ecbd353d25e62c4a6c327ea88ba5404e13507a 'e1000: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary casts from PCI DMA code in eepro100David Gibson2011-12-121-4/+3Star
| | | | | | | | | This patch removes some unnecessary casts in the eepro100 device, introduced by commit 16ef60c9a8eeee269f7cbc95219a431b1d7cbf29 'eepro100: Use PCI DMA stub functions'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Merge remote-tracking branch 'pmaydell/arm-devs.for-upstream' into stagingAnthony Liguori2011-12-128-325/+751
|\
| * hw/mpcore.c: Merge with hw/arm11mpcore.cPeter Maydell2011-12-122-138/+129Star
| | | | | | | | | | | | | | | | hw/mpcore.c is now implementing only ARM11MPCore specific peripherals, and is #included only from hw/arm11mpcore.c, so just merge it into that file. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * hw/a9mpcore.c: Implement A9MP peripherals rather than 11MPcore onesPeter Maydell2011-12-121-10/+179
| | | | | | | | | | | | | | | | Implement the A9MP private peripheral region correctly, rather than piggybacking on the 11MPCore code; the two CPUs are not the same in this area. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * hw/mpcore: Clean up mpcore_priv_read/write as they are now SCU onlyPeter Maydell2011-12-121-42/+31Star
| | | | | | | | | | | | | | | | The only code left in mpcore_priv_read and mpcore_priv_write is now the implementation of the SCU registers. Clean up by renaming functions and removing some unnecessary conditionals to make this clearer. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * hw/realview_gic: Use GIC memory region for the CPU interfacePeter Maydell2011-12-121-24/+1Star
| | | | | | | | | | | | | | Use the GIC provided memory region for the CPU interface rather than implementing our own. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * hw/mpcore.c: Use the GIC memory regions for the CPU interfacePeter Maydell2011-12-121-25/+10Star
| | | | | | | | | | | | | | | | Switch to using the GIC memory regions for the CPU interface rather than hand implementing them as a subcase of mpcore_priv_read() and mpcore_priv_write(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * hw/arm_gic: Expose GIC CPU interfaces as sysbus memory regionsPeter Maydell2011-12-121-1/+74
| | | | | | | | | | | | | | Expose the ARM GIC CPU interfaces as memory regions, rather than just providing read and write functions for them. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * hw/arm_mptimer.c: Turn ARM MPcore private timers into qdev devicesPeter Maydell2011-12-123-152/+365
| | | | | | | | | | | | | | | | Turn the ARM MPcore private timer/watchdog blocks into separate qdev devices. This will allow us to share them neatly between 11MPCore and A9MPcore. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * Fix sp804 dual-timerPeter Chubb2011-12-121-6/+35
| | | | | | | | | | | | | | | | | | | | | | Properly implement dual-timer read/write for the sp804 dual timer module. Based on ARM specs at http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html Signed-off-by: Hans Jang <hsjang@ok-labs.com> Signed-off-by: David Mirabito <david.mirabito@nicta.com.au> Signed-off-by: Peter Chubb <peter.chubb@nicta.com.au> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
* | Merge remote-tracking branch 'qmp/queue/qmp' into stagingAnthony Liguori2011-12-1228-716/+2153
|\ \
| * | qapi: Convert migrate_set_speedLuiz Capitulino2011-12-067-16/+28
| | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert migrate_set_downtimeLuiz Capitulino2011-12-067-18/+26
| | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert migrate_cancelLuiz Capitulino2011-12-067-10/+22
| | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert human-monitor-commandLuiz Capitulino2011-12-063-13/+43
| | | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert blockdev_snapshot_syncLuiz Capitulino2011-12-067-39/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, this conversion required an additional change. In the old QMP command, the 'snapshot-file' argument is specified as optional. The idea is to take the snapshot internally if 'snapshot-file' is not passed. However, internal snapshots are not supported yet so the command returns a MissingParamater error if 'snapshot-file' is not passed. Which makes the argument actually required and will cause compatibility breakage if we change that in the future. To fix this the QAPI converted blockdev_snapshot_sync command makes the 'snapshot-file' argument required. Again, in practice it's actually required, so this is not incompatible. If we do implement internal snapshots someday, we'll need a new argument for it. Note that this discussion doesn't affect HMP. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert block_resizeLuiz Capitulino2011-12-067-18/+38
| | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert balloonLuiz Capitulino2011-12-067-31/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | Note that the command being dropped uses the deprecated MONITOR_CMD_ASYNC API, but the new command is a regular synchronous command. There shouldn't be visible differences though, as MONITOR_CMD_ASYNC is internal only. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert block_passwdLuiz Capitulino2011-12-067-19/+56
| | | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert set_linkLuiz Capitulino2011-12-067-13/+37
| | | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert inject-nmiLuiz Capitulino2011-12-067-25/+37
| | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert contLuiz Capitulino2011-12-068-65/+107
| | | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert pmemsaveLuiz Capitulino2011-12-067-43/+66
| | | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Convert memsaveLuiz Capitulino2011-12-067-47/+97
| | | | | | | | | | | | | | | | | | | | | Please, note that the QMP command has a new 'cpu-index' parameter. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | QError: Introduce QERR_IO_ERRORLuiz Capitulino2011-12-062-0/+7
| | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | console: Drop unused prototypesLuiz Capitulino2011-12-061-2/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | Commit e235cec3762d2aa20b548114ea7b172113690463 converted the query-mice command to the QAPI but forgot to remove two prototypes used by the old QAPI. Drop them. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qapi: Complete system_powerdown conversionLuiz Capitulino2011-12-062-14/+1Star
| | | | | | | | | | | | | | | | | | | | | | | | Commit 5bc465e4b1b6f4582a400c0a7033a1c841744278 converted only the HMP part of the system_powerdown command to the QAPI, this commit completes it by converting the QMP part too. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | Drop test-visitorLuiz Capitulino2011-12-062-342/+1Star
| | | | | | | | | | | | | | | | | | | | | It has been superseded by the two previous commits, which introduced the test-qmp-output-visitor and test-qmp-input-visitor tests. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | Introduce test-qmp-input-visitorLuiz Capitulino2011-12-063-2/+275
| | | | | | | | | | | | | | | | | | Contains unit-tests for the QMP input visitor implementation. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | Introduce test-qmp-output-visitorLuiz Capitulino2011-12-064-2/+434
| | | | | | | | | | | | | | | | | | Contains unit-tests for the QMP output visitor implementation. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | configure: Don't mix glib and libcheck testsLuiz Capitulino2011-12-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test-coroutine is listed as a libcheck test in the 'checks' variable. This is not right because 'make check' won't run test-coroutine if libcheck tests are not enabled (either because libcheck isn't detected or because --disable-check-utests is passed). Tests using the glib test framework are independent from libcheck and afaik are always present (although having a configure switch to disable them is probably worth it). Untangle test-coroutine from the libcheck tests by introducing the 'test_progs' variable and using it to generate the test list used by 'make check'. Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | qmp: add test tool for QMPMark Wu2011-12-061-0/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Anthony wrote this quickly to aid in testing. It's similar to qmp-shell with a few important differences: 1) It is not interactive. That makes it useful for scripting. 2) qmp-shell: (QEMU) set_password protocol=vnc password=foo 3) qmp: $ qmp set_password --protocol=vnc --password=foo 4) Extensible, git-style interface. If an invalid command name is passed, it will try to exec qmp-$1. 5) It attempts to pretty print the JSON responses in a shell friendly format such that tools can work with the output. Hope others will also find it useful. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * | docs: Add writing-qmp-commands.txtLuiz Capitulino2011-12-061-0/+642
| | | | | | | | | | | | | | | | | | Explains how to write QMP commands using the QAPI. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* | | cris: Handle conditional stores on CRISv10Stefan Sandstrom2011-12-123-6/+69
| |/ |/| | | | | | | Signed-off-by: Stefan Sandstrom <Stefan.Sandstrom@axis.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* | Merge branch 'master' of git://git.qemu.org/qemumalc2011-12-121-2/+2
|\ \
| * | Update READMEAnthony Liguori2011-12-121-2/+2
| | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | | Merge branch 'master' of git://git.qemu.org/qemumalc2011-12-114-10/+8Star
|\| |
| * | w32: Disable buffering for log fileStefan Weil2011-12-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | W32 does not support line buffering, but it supports unbuffered output. Unbuffered output is better for writing to qemu.log than fully buffered output because it also shows the latest log messages when an application crash occurs. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
| * | w32: QEMU applications with SDL are always GUI applicationsStefan Weil2011-12-101-3/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 1d14ffa97eacd3cb722271eaf6f093038396eac4 (in 2005), QEMU applications on W32 don't use the default SDL compiler flags: Instead of a GUI application, a console application is created. This has disadvantages (there is always an empty console window) and no obvious reason, so this patch removes the strange flag modification. The SDL GUI applications still can be run from a console window and even send stdout and stderr to that console by setting environment variable SDL_STDIO_REDIRECT=no. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
| * | configure: Enable build by default PIE / read-only relocation sections on ↵Brad2011-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenBSD amd64/i386. Enable build by default PIE / read-only relocation sections for the QEMU binaries on OpenBSD amd64/i386. Signed-off-by: Brad Smith <brad@comstyle.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
| * | bsd_user: Fix potential null pointer dereferenceStefan Weil2011-12-102-4/+3Star
| |/ | | | | | | | | | | | | | | | | | | | | | | This bug was spotted by cppcheck. Using g_try_malloc0 (as does the linux-user code) fixes this. v2: Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* / target-i386: fix cmpxchg instruction emulationAndreas Gustafsson2011-12-111-4/+7
|/ | | | | | | | | | | | | When the i386 cmpxchg instruction is executed with a memory operand and the comparison result is "unequal", do the memory write before changing the accumulator instead of the other way around, because otherwise the new accumulator value will incorrectly be used in the comparison when the instruction is restarted after a page fault. This bug was originally reported on 2010-04-25 as https://bugs.launchpad.net/qemu/+bug/569760 Signed-off-by: Andreas Gustafsson <gson@gson.org>
* hw/arm_gic.c: Ignore attempts to complete nonexistent IRQsPeter Maydell2011-12-051-9/+18
| | | | | | | | | | | | | Ignore attempts to complete non-existent IRQs; this fixes a buffer overrun if the guest writes a bad value to the GICC_EOIR register. (This case is UNPREDICTABLE so ignoring it is a valid choice.) Note that doing nothing if the guest writes 1023 to this register is not in fact a change in behaviour: the old code would also always do nothing in this case but in a non-obvious way. (The buffer overrun was noted by Coverity, see bug 887883.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
* configure: Drop armv4l/armv4b distinction in $cpuPeter Maydell2011-12-051-14/+12Star
| | | | | | | | | | | | | Drop the distinction between armv4l/armv4b in the $cpu variable (ie host cpu type) in favour of calling everything 'arm'. This makes it the same as the ARCH setting and removes some special casing. The only thing we were using the distinction for was to decide which endianness to use in cross compilation; do a cpp define check there instead. Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>