summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* virtio-balloon: fix dynamic properties.KONRAD Frederic2013-04-152-0/+70
| | | | | | | | | | To keep compatibility with the old virtio-balloon-x, add the dynamic properties to virtio-balloon-pci and virtio-balloon-ccw. Cc: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Message-id: 1365941220-8114-1-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Merge remote-tracking branch 'bonzini/hw-dirs' into stagingAnthony Liguori2013-04-15102-113/+1756
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bonzini/hw-dirs: exec: remove useless declarations from memory-internal.h memory: move core typedefs to qemu/typedefs.h include: avoid useless includes of exec/ headers sysemu: avoid proliferation of include/ subdirectories tpm: reorganize headers and split hardware part configure: fix TPM logic acpi.h: make it self contained acpi: move declarations from pc.h to acpi.h hw: Add lost ARM core again Fix failure to create q35 machine Add linux-headers to QEMU_INCLUDES arm: fix location of some include files Conflicts: configure aliguori: trivial conflict in configure output Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * include: avoid useless includes of exec/ headersPaolo Bonzini2013-04-155-5/+2
| | | | | | | | | | | | | | Headers in include/exec/ are for the deepest innards of QEMU, they should almost never be included directly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * sysemu: avoid proliferation of include/ subdirectoriesPaolo Bonzini2013-04-1549-50/+50
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * tpm: reorganize headers and split hardware partPaolo Bonzini2013-04-156-0/+1644
| | | | | | | | | | | | | | | | | | | | | | | | | | The TPM subsystem does not have a full front-end/back-end separation. The sole available backend, tpm_passthrough, depends on the data structures of the sole available frontend, tpm_tis. However, we can at least try to split the user interface (tpm.c) from the implementation (hw/tpm). The patches makes tpm.c not include tpm_int.h, which is shared between tpm_tis.c and tpm_passthrough.c; instead it moves more stuff to tpm_backend.h. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * acpi: move declarations from pc.h to acpi.hMichael S. Tsirkin2013-04-152-0/+2
| | | | | | | | | | | | | | | | Functions defined in acpi/ should be declared in acpi.h Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * arm: fix location of some include filesPeter Maydell2013-04-1545-60/+60
| | | | | | | | | | | | | | | | | | | | | | The recent rearrangement of include files had some minor errors: devices.h is not ARM specific and should not be in arm/ arm.h should be in arm/ Move these two headers to correct this. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* | qdev: Fix QOM unrealize behaviorAndreas Färber2013-04-151-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 249d41720b7dfbb5951b430b9eefdbee7464f515 (qdev: Prepare "realized" property) setting realized = true would register the device's VMStateDescription, but realized = false would not unregister it. Fix that. Moving the code from unparenting also revealed that we were calling DeviceClass::init through DeviceClass::realize as interim solution but DeviceClass::exit still at unparenting time with a realized check. Make this symmetrical by implementing DeviceClass::unrealize to call it, while we're setting realized = false in the unparenting path. The only other unrealize user is mac_nvram, which can safely override it. Thus, mark DeviceClass::exit as obsolete, new devices should implement DeviceClass::unrealize instead. Cc: qemu-stable@nongnu.org Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Andreas Färber <afaerber@suse.de> Message-id: 1366043650-9719-1-git-send-email-afaerber@suse.de Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial: cleanup: remove qdev field.KONRAD Frederic2013-04-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-8-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial: cleanup: use QOM casts.KONRAD Frederic2013-04-151-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | As the virtio-serial-pci and virtio-serial-s390 are switched to the new API, we can use QOM casts. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-7-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial: cleanup: init and exit functions.KONRAD Frederic2013-04-151-73/+21
| | | | | | | | | | | | | | | | | | | | | | | | This remove old init and exit function as they are no longer needed. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-6-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial-ccw: switch to the new API.KONRAD Frederic2013-04-152-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here the virtio-serial-ccw is modified for the new API. The device virtio-serial-ccw extends virtio-ccw-device as before. It creates and connects a virtio-serial during the init. The properties are not modified. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-5-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial-s390: switch to the new API.KONRAD Frederic2013-04-152-11/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here the virtio-serial-s390 is modified for the new API. The device virtio-serial-s390 extends virtio-s390-device as before. It creates and connects a virtio-serial during the init. The properties are not modified. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-4-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial-pci: switch to the new API.KONRAD Frederic2013-04-152-67/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here the virtio-serial-pci is modified for the new API. The device virtio-serial-pci extends virtio-pci. It creates and connects a virtio-serial during the init. The properties are not changed. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-3-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | virtio-serial: add the virtio-serial device.KONRAD Frederic2013-04-154-12/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | Create virtio-serial which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1365512016-21944-2-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | ide: refuse WIN_READ_NATIVE_MAX on empty deviceStefan Hajnoczi2013-04-151-0/+4
|/ | | | | | | | | | | | | | | | | What is the highest addressable sector on an empty CD-ROM? Nothing is addressable so produce an error. This patch prevents a divide-by-zero in ide_set_sector() since s->sectors and s->heads would be 0. Not to mention that a sector=-1 argument would be nonsense. Note that WIN_READ_NATIVE_MAX can be triggered using hdparm -N 1024 /dev/cdrom. The LBA bit will be set to 1 though, so the only easy way to go down the ide_set_sector() CHS code path which divides by zero is to comment out the s->select & 0x40 case for testing. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
* sh7750: Change cpu field type to SuperHCPUAndreas Färber2013-04-133-50/+51
| | | | | | | | | | | | This brings us a step closer to QOM'ified SH7750 SoC and fixes b350ab75 (target-sh4: Move PVR/PRR/CVR into SuperHCPUClass) assuming SuperHCPU type for SUPERH_CPU_GET_CLASS(). Fix Coding Style issues while at it (indentation, braces). Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* shix: Catch CPU initialization errorsAndreas Färber2013-04-131-0/+4
| | | | | | | Print an error message as done for the r2d machine and exit. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Typo, spelling and grammatical fixesPeter Maydell2013-04-125-7/+7
| | | | | | | Minor fixes to documentation and code comments. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
* virtio-9p: Fix virtio-9p no longer building after hw-dirs branch mergeHans de Goede2013-04-091-1/+1
| | | | | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com> Message-id: 1365495755-10902-1-git-send-email-hdegoede@redhat.com Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Merge remote-tracking branch 'bonzini/hw-dirs' into stagingAnthony Liguori2013-04-08992-176668/+161033
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Paolo Bonzini # Via Paolo Bonzini * bonzini/hw-dirs: (35 commits) hw: move private headers to hw/ subdirectories. MAINTAINERS: update for source code movement hw: move last file to hw/arm/ hw: move hw/kvm/ to hw/i386/kvm hw: move ARM CPU cores to hw/cpu/, configure with default-configs/ hw: move other devices to hw/misc/, configure with default-configs/ hw: move NVRAM interfaces to hw/nvram/, configure with default-configs/ hw: move GPIO interfaces to hw/gpio/, configure with default-configs/ hw: move interrupt controllers to hw/intc/, configure with default-configs/ hw: move DMA controllers to hw/dma/, configure with default-configs/ hw: move VFIO and ivshmem to hw/misc/ hw: move PCI bridges to hw/pci-* or hw/ARCH hw: move SD/MMC devices to hw/sd/, configure with default-configs/ hw: move timer devices to hw/timer/, configure with default-configs/ hw: move ISA bridges and devices to hw/isa/, configure with default-configs/ hw: move char devices to hw/char/, configure via default-configs/ hw: move more files to hw/xen/ hw: move SCSI controllers to hw/scsi/, configure via default-configs/ hw: move SSI controllers to hw/ssi/, configure via default-configs/ hw: move I2C controllers to hw/i2c/, configure via default-configs/ ... Message-id: 1365442249-18259-1-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * hw: move private headers to hw/ subdirectories.Paolo Bonzini2013-04-08141-169/+169
| | | | | | | | | | | | | | Many headers are used only in a single directory. These can be kept in hw/. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move last file to hw/arm/Paolo Bonzini2013-04-082-5/+1
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move hw/kvm/ to hw/i386/kvmPaolo Bonzini2013-04-089-5/+2
| | | | | | | | | | | | Peter requested the KVM GIC to be in hw/intc. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move ARM CPU cores to hw/cpu/, configure with default-configs/Paolo Bonzini2013-04-085-2/+4
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move other devices to hw/misc/, configure with default-configs/Paolo Bonzini2013-04-0827-26/+24
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move NVRAM interfaces to hw/nvram/, configure with default-configs/Paolo Bonzini2013-04-083-5/+1
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move GPIO interfaces to hw/gpio/, configure with default-configs/Paolo Bonzini2013-04-084-2/+4
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move interrupt controllers to hw/intc/, configure with default-configs/Paolo Bonzini2013-04-0829-28/+23
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move DMA controllers to hw/dma/, configure with default-configs/Paolo Bonzini2013-04-0810-10/+11
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move VFIO and ivshmem to hw/misc/Paolo Bonzini2013-04-084-10/+6
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move PCI bridges to hw/pci-* or hw/ARCHPaolo Bonzini2013-04-0831-26/+17
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move SD/MMC devices to hw/sd/, configure with default-configs/Paolo Bonzini2013-04-086-3/+6
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move timer devices to hw/timer/, configure with default-configs/Paolo Bonzini2013-04-0825-17/+30
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move ISA bridges and devices to hw/isa/, configure with default-configs/Paolo Bonzini2013-04-085-2/+4
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move char devices to hw/char/, configure via default-configs/Paolo Bonzini2013-04-0823-19/+23
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move more files to hw/xen/Paolo Bonzini2013-04-088-3/+4
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move SCSI controllers to hw/scsi/, configure via default-configs/Paolo Bonzini2013-04-083-1/+2
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move SSI controllers to hw/ssi/, configure via default-configs/Paolo Bonzini2013-04-086-6/+5
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move I2C controllers to hw/i2c/, configure via default-configs/Paolo Bonzini2013-04-085-3/+5
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move display devices to hw/display/, configure via default-configs/Paolo Bonzini2013-04-0824-23/+33
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move audio devices to hw/audio/, configure via default-configs/Paolo Bonzini2013-04-087-3/+6
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move block devices to hw/block/, configure via default-configs/Paolo Bonzini2013-04-087-3/+5
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move NICs to hw/net/, configure via default-configs/Paolo Bonzini2013-04-0815-10/+12
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move MC146818RTC to hw/timer/, configure via default-configs/Paolo Bonzini2013-04-088-9/+3
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move watchdogs to hw/watchdog, configure via default-configs/Paolo Bonzini2013-04-083-2/+2
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: make all of hw/pci/ configurable via default-configs/Paolo Bonzini2013-04-083-2/+4
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: make all of hw/usb/ configurable via default-configs/Paolo Bonzini2013-04-082-1/+2
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: make all of hw/ide/ configurable via default-configs/Paolo Bonzini2013-04-083-2/+3
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * hw: move virtio devices to hw/ subdirectoriesPaolo Bonzini2013-04-0823-6/+14
| | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
OpenPOWER on IntegriCloud