summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'bonzini/header-dirs' into stagingAnthony Liguori2012-12-20496-1334/+1523
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bonzini/header-dirs: (45 commits) janitor: move remaining public headers to include/ hw: move executable format header files to hw/ fpu: move public header file to include/fpu softmmu: move remaining include files to include/ subdirectories softmmu: move include files to include/sysemu/ misc: move include files to include/qemu/ qom: move include files to include/qom/ migration: move include files to include/migration/ monitor: move include files to include/monitor/ exec: move include files to include/exec/ block: move include files to include/block/ qapi: move include files to include/qobject/ janitor: add guards to headers qapi: make struct Visitor opaque qapi: remove qapi/qapi-types-core.h qapi: move inclusions of qemu-common.h from headers to .c files ui: move files to ui/ and include/ui/ qemu-ga: move qemu-ga files to qga/ net: reorganize headers net: move net.c to net/ ... Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * hw: move executable format header files to hw/Paolo Bonzini2012-12-191-0/+158
| | | | | | | | | | | | Or delete a.out.h which is unused. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * softmmu: move remaining include files to include/ subdirectoriesPaolo Bonzini2012-12-1944-45/+45
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * softmmu: move include files to include/sysemu/Paolo Bonzini2012-12-19200-292/+292
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * misc: move include files to include/qemu/Paolo Bonzini2012-12-19215-263/+263
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * qom: move include files to include/qom/Paolo Bonzini2012-12-192-2/+2
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * migration: move include files to include/migration/Paolo Bonzini2012-12-196-7/+7
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * monitor: move include files to include/monitor/Paolo Bonzini2012-12-1935-35/+35
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * exec: move include files to include/exec/Paolo Bonzini2012-12-19132-146/+146
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * block: move include files to include/block/Paolo Bonzini2012-12-1929-29/+29
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * qapi: move include files to include/qobject/Paolo Bonzini2012-12-1910-12/+12
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * janitor: add guards to headersPaolo Bonzini2012-12-1927-0/+127
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * ui: move files to ui/ and include/ui/Paolo Bonzini2012-12-1953-127/+70Star
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * net: reorganize headersPaolo Bonzini2012-12-1972-98/+71Star
| | | | | | | | | | | | | | | | | | Move public headers to include/net, and leave private headers in net/. Put the virtio headers in include/net/tap.h, removing the multiple copies that existed. Leave include/net/tap.h as the interface for NICs, and net/tap_int.h as the interface for OS-specific parts of the tap backend. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * net: do not include net.h everywherePaolo Bonzini2012-12-1913-12/+1Star
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * net: move Bluetooth stuff out of net.hPaolo Bonzini2012-12-194-4/+4
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * janitor: do not include qemu-char everywherePaolo Bonzini2012-12-199-7/+3Star
| | | | | | | | | | | | | | Touching char/char.h basically causes the whole of QEMU to be rebuilt. Avoid this, it is usually unnecessary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * janitor: do not rely on indirect inclusions of or from qemu-char.hPaolo Bonzini2012-12-1913-0/+14
| | | | | | | | | | | | | | | | | | Various header files rely on qemu-char.h including qemu-config.h or main-loop.h, but they really do not need qemu-char.h at all (particularly interesting is the case of the block layer!). Clean this up, and also add missing inclusions of qemu-char.h itself. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * build: kill libdis, move disassemblers to disas/Paolo Bonzini2012-12-191-1/+1
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * build: move rules from Makefile to */Makefile.objsPaolo Bonzini2012-12-191-0/+2
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * Merge commit '1dd3a74d2ee2d873cde0b390b536e45420b3fe05' into HEADPaolo Bonzini2012-12-17128-273/+260Star
| |\ | | | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| | * pci_bus.h: tweak include guardsMichael S. Tsirkin2012-12-171-3/+3
| | | | | | | | | | | | | | | | | | | | | Now that header has been renamed, tweak include guards to match. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * pci_bus: update commentMichael S. Tsirkin2012-12-171-7/+3Star
| | | | | | | | | | | | | | | | | | | | | Don't ask everyone to desist from including this header, simply recommend using accessors. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * pci: rename pci_internals.h pci_bus.hMichael S. Tsirkin2012-12-1713-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | There are lots of external users of pci_internals.h, apparently making it an internal interface only didn't work out. Let's stop pretending it's an internal header. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * Revert "pci: prepare makefiles for pci code reorganization"Michael S. Tsirkin2012-12-171-1/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 475d67c3bcd6ba9fef917b6e59d96ae69eb1a9b4. Now that all users have been updated, we don't need the makefile hack or the softlink anymore. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * pci: fix path for local includesMichael S. Tsirkin2012-12-1722-62/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | Include dependencies from pci core using the correct path. This is required now that it's in the separate directory. Need to check whether they can be minimized, for now, keep the code as is. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * pci: update all users to look in pci/Michael S. Tsirkin2012-12-1796-153/+153
| | | | | | | | | | | | | | | | | | update all users so we can remove the makefile hack. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * pci: move pci core code to hw/pciMichael S. Tsirkin2012-12-1732-11/+11
| | | | | | | | | | | | | | | | | | | | | Move files and modify makefiles to pick them at the new location. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * pci: prepare makefiles for pci code reorganizationMichael S. Tsirkin2012-12-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | To make it easier to move code around without breaking build at intermedite steps, tweak makefiles to look in pci/ and hw/ for include files, automatically. This will be reverted at the end of the reorganization. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| | * Fixup q35/ich9 LicensesJason Baron2012-12-123-36/+23Star
| | | | | | | | | | | | | | | | | | | | | | | | Cleanup the q35/ich9 license headers. Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | | Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2012-12-185-15/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stefanha/trivial-patches: configure: Earlier pkg-config probe vmmouse_reset(): remove minimal code duplication linux-user/syscall.c: remove wrong forward decl of setgroups() fix build error on ARM due to wrong glibc check gitignore: Add virtfs-proxy-helper arm_gic: Add cpu nr to Raised IRQ message zynq_slcr: Compile time warning fixes. pflash_cfi0x: Send debug messages to stderr pflash_cfi01: qemu_log_mask "unimplemented" msg net, hub: fix the indent in the comments Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | | vmmouse_reset(): remove minimal code duplicationLaszlo Ersek2012-12-181-1/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 069ab0eb added a vmmouse_disable() call to vmmouse_reset(). vmmouse_disable() resets the status already. Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | arm_gic: Add cpu nr to Raised IRQ messagePeter Crosthwaite2012-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the relevant CPU nr to this debug message to make IRQ debugging more informative. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | zynq_slcr: Compile time warning fixes.Peter Crosthwaite2012-12-181-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Few warnings when compiled with debug printfs enabled. Fixed all. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | pflash_cfi0x: Send debug messages to stderrPeter Crosthwaite2012-12-182-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These debug info messages should go to stderr rather than stdout. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | pflash_cfi01: qemu_log_mask "unimplemented" msgPeter Crosthwaite2012-12-181-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This printf is informing the user of unimplemented functionality. It should be re-directed to qemu_log(LOG_UNIMP, ...) accordingly. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
* | | Merge remote-tracking branch 'amit/master' into stagingAnthony Liguori2012-12-181-82/+113
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * amit/master: virtio-serial-bus: assert port is non-null in remove_port() virtio-serial-bus: send_control_msg() should not deal with cpkts virtio-serial: delete timer if active during exit virtio-serial: allocate post_load only at load-time virtio-serial: move active ports loading to separate function virtio-serial: use uint32_t to count ports Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | | virtio-serial-bus: assert port is non-null in remove_port()Amit Shah2012-12-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove_port() is called from qdev's unplug callback, and we're certain the port will be found in our list of ports. Adding an assert() documents this. This was flagged by Coverity, fix suggested by Markus. CC: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial-bus: send_control_msg() should not deal with cpktsAmit Shah2012-12-181-21/+18Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stuff the cpkt before calling send_control_msg(). This function should not be concerned about contents of the buffer it receives. A few code refactorings recently have made making this change easier than earlier. Coverity and clang have flagged this code several times in the past (cpkt->id not set before send_control_event() passed it on to send_control_msg()). This will finally eliminate the false-positive. CC: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: delete timer if active during exitAmit Shah2012-12-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The post_load timer was being freed, but not deleted. This could cause problems when the timer is armed, but the device is hot-unplugged before the callback is executed. Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: allocate post_load only at load-timeAmit Shah2012-12-131-25/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves us a few bytes in the VirtIOSerial struct. Not a big savings, but since the entire structure is used only during a short while after migration, it's helpful to keep the struct cleaner and smaller. Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: move active ports loading to separate functionAmit Shah2012-12-131-41/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The virtio_serial_load() function became too big, split the code that gets the port info from the source into a separate function. Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: use uint32_t to count portsAmit Shah2012-12-131-2/+2
| | |/ | |/| | | | | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* | | Merge remote-tracking branch 'spice/spice.v66' into stagingAnthony Liguori2012-12-181-5/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spice/spice.v66: docs: add spice-port-fqdn.txt spice-qemu-char: register spicevmc ports during qemu_spice_init() spice-qemu-char: keep a list of spice chardev spice-qemu-char: add spiceport chardev spice-qemu-char: factor out CharDriverState creation spice-qemu-char: write to chardev whatever amount it can read qxl+vnc: register a vm state change handler for dummy spice_server qxl: save qemu_create_displaysurface_from result Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | | qxl: save qemu_create_displaysurface_from resultGerd Hoffmann2012-12-171-5/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Spotted by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=885644 Cc: qemu-stable@nongnu.org Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | | Fix compile errors when enabling Xen debug logging.Sander Eikelenboom2012-12-171-2/+3
| | | | | | | | | | | | | | | Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* | | xen: fix trivial PCI passthrough MSI-X bugStefano Stabellini2012-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We are currently passing entry->data as address parameter. Pass entry->addr instead. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Tested-by: Sander Eikelenboom <linux@eikelenboom.it> Xen-devel: http://marc.info/?l=xen-devel&m=135515462613715
* | | xen: implement support for secondary consoles in the console backendStefano Stabellini2012-12-171-7/+21
|/ / | | | | | | | | | | | | | | This patch corresponds to commit 840184a106bc24e745beda5c77e392f6cecd2bc9 from git://xenbits.xensource.com/qemu-xen-unstable.git. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* | exec: refactor cpu_restore_stateBlue Swirl2012-12-161-3/+1Star
| | | | | | | | | | | | | | | | Refactor common code around calls to cpu_restore_state(). tb_find_pc() has now no external users, make it static. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agrafBlue Swirl2012-12-1519-1005/+1023
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: (40 commits) pseries: Increase default NVRAM size target-ppc: Don't use hwaddr to represent hardware state PPC: e500: pci: Export slot2irq calculation PPC: E500plat: Make a lot of PCI slots available PPC: E500: Move PCI slot information into params PPC: E500: Generate dt pci irq map dynamically PPC: E500: PCI: Make IRQ calculation more generic PPC: E500: PCI: Make first slot qdev settable openpic: Accelerate pending irq search openpic: fix minor coding style issues MSI-X: Fix endianness PPC: e500: Declare pci bridge as bridge PPC: e500: Add MSI support openpic: add Shared MSI support openpic: make brr1 model specific openpic: convert to qdev openpic: remove irq_out openpic: rename openpic_t to OpenPICState openpic: convert simple reg operations to builtin bitops openpic: remove unused type variable ...