summary refs log tree commit diff stats
path: root/hw (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | target-xtensa: implement external interrupt mappingMax Filippov2011-10-161-0/+12
| | | | | | | | | | | | | | | | | | Xtensa cores may have different mapping of external interrupt pins to internal IRQ numers. Implement API to acquire core IRQ by its external interrupt number. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | target-xtensa: remove hand-written xtensa cores implementationsMax Filippov2011-10-161-107/+0
| | | | | | | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | target-xtensa: fix guest hang on masked CCOMPARE interruptMax Filippov2011-10-151-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | QEMU timer is used to post CCOMPARE interrupt when the core is halted. If that CCOMPARE interrupt is masked off then the timer must be rearmed in the callback, otherwise it will be rearmed next time the core goes to halt by the waiti instruction. Add test case into timer testsuite. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Move graphic-related coalesced MMIO flushes to affected device modelsJan Kiszka2011-10-152-0/+8
| | | | | | | | | | | | | | | | | | This is conceptually cleaner and will allow us to drop the nographic timer. Moreover, it will be mandatory to fully exploit future per-device coalesced MMIO rings. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Merge remote-tracking branch 'kwolf/for-anthony' into stagingAnthony Liguori2011-10-143-0/+6
|\ \
| * | scsi: Support I/O statusLuiz Capitulino2011-10-111-0/+2
| | | | | | | | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | ide: Support I/O statusLuiz Capitulino2011-10-111-0/+2
| | | | | | | | | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | virtio: Support I/O statusLuiz Capitulino2011-10-111-0/+2
| |/ | | | | | | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* | Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2011-10-141-1/+1
|\ \
| * | arm_pic: Fix typoAndreas Färber2011-10-141-1/+1
| |/ | | | | | | | | | | | | | | interrput -> interrupt Cc: Paul Brook <paul@codesourcery.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* | Merge remote-tracking branch 'kraxel/usb.28' into stagingAnthony Liguori2011-10-148-20/+68
|\ \
| * | usb-hub: don't trigger assert on packet completion.Gerd Hoffmann2011-10-131-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling usb_packet_complete() recursively when passing up the completion event up the chain for devices connected via usb hub will trigger an assert. So don't do that, make the usb hub emulation call the upstream completion callback directly instead. Based on a patch from Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | usb-hid: activate usb tablet / mouse after migration.Gerd Hoffmann2011-10-131-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qemu uses the ps/2 mouse by default. The usb tablet (or mouse) is activated as soon as qemu sees some guest activity on the device, i.e. polling for HID events. That used to work fine for both fresh boot and migration. Remote wakeup support changed the picture though: There will be no polling after migration in case the guest suspended the usb bus, waiting for wakeup events. Result is that the ps/2 mouse stays active. Fix this by activating the usb tablet / mouse in post_load() in case the guest enabled remote wakeup. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | hw/usb-ohci: Honour endpoint maximum packet sizePeter Maydell2011-10-131-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Honour the maximum packet size for endpoints; this applies when sending non-isochronous data and means we transfer only as much as the endpoint allows, leaving the transfer descriptor on the list for another go next time around. This allows usb-net to work when connected to an OHCI controller model. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | hw/usb-ohci: Fix OHCI_TD_T1 bit position definitionPeter Maydell2011-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The OHCI Transfer Descriptor T (DataToggle) bits are 24 and 25; fix an error which accidentally overlaid them both on the same bit. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | usb: fix port resetGerd Hoffmann2011-10-135-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a removed the implicit detach before (re-)attaching in usb_attach(). Some usb host controllers used that behavior though to do a port reset by a detach+attach sequence. This patch establishes old behavior by adding a new usb_reset() function for port resets and putting it into use, thereby also unifying port reset behavior of all host controllers. The patch also adds asserts to usb_attach() and usb_detach() to make sure the calls are symmetrical. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | usb-hub: need to check dev->attachedGerd Hoffmann2011-10-131-2/+2
| | | | | | | | | | | | | | | | | | | | | commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a did that for all host controllers, the usb hub was left out by accident. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | usb-storage: fix NULL pointer dereference.Gerd Hoffmann2011-10-131-1/+4
| |/ | | | | | | | | | | | | When a usb packet is canceled we need to check whenever we actually have a scsi request in flight before we try to cancel it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | Merge remote-tracking branch 'qemu-kvm-tmp/memory/batch' into stagingAnthony Liguori2011-10-1432-388/+390
|\ \ | |/ |/|
| * isa: Remove isa_init_ioport_range and isa_init_ioportRichard Henderson2011-10-112-16/+5
| | | | | | | | | | | | | | | | All users have been converted to either isa_register_ioport or isa_register_old_portio_list. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * ide: Convert to isa_register_portio_listRichard Henderson2011-10-115-21/+30
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * vmport: Convert to isa_register_ioportRichard Henderson2011-10-111-3/+13
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * pc: Convert port92 to isa_register_ioportRichard Henderson2011-10-111-3/+13
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * vga: Convert to isa_register_portio_listRichard Henderson2011-10-116-49/+59
| | | | | | | | | | | | | | | | | | [jan: fix cut'n'paste errors] [avi: adjust pci variants not to use isa functions] Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * sb16: Convert to isa_register_portio_listRichard Henderson2011-10-111-19/+13
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * parallel: Convert to isa_register_portio_listRichard Henderson2011-10-111-19/+28
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * ne2000: Convert to isa_register_ioportRichard Henderson2011-10-111-4/+1
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * rtc: Convert to isa_register_ioportRichard Henderson2011-10-111-3/+12
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * m48t59: Convert to isa_register_ioportRichard Henderson2011-10-111-3/+12
| | | | | | | | | | | | | | The sysbus interface is as yet unconverted. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * gus: Convert to isa_register_portio_listRichard Henderson2011-10-111-19/+19
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * fdc: Convert to isa_register_portio_listRichard Henderson2011-10-111-30/+4
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * isa: Add isa_register_portio_list()Avi Kivity2011-10-112-1/+47
| | | | | | | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * isa: Tidy support code for isabus_get_fw_dev_pathRichard Henderson2011-10-102-24/+6
| | | | | | | | | | | | | | | | | | The only user of ISADevice.ioports is isabus_get_fw_dev_path, and it only looks at the first entry of the array. Which suggests that this entire array+sort operation can be replaced by a simple minimum. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
| * ppc_newworld: convert to memory APIAvi Kivity2011-10-101-22/+17
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * hw/versatile_pci: Expose multiple sysbus mmio regionsPeter Maydell2011-10-103-38/+28
| | | | | | | | | | | | | | | | | | Clean up versatile_pci to expose the various PCI mmio regions properly as separate mmio regions rather than as a single mmio which uses callbacks to map and unmap everything. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * hw/arm11mpcore: Clean up to avoid using sysbus_mmio_init_cb2Peter Maydell2011-10-101-12/+1
| | | | | | | | | | | | | | | | | | Clean up the initialisation of the realview_mpcore device to avoid using sysbus_init_mmio_cb2(): we can pass through the MemoryRegion of the private arm11mpcore_priv device directly now. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * ppc405_boards: convert to memory APIAvi Kivity2011-10-101-48/+37
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * petalogix_s2adsp1800: convert to memory APIAvi Kivity2011-10-101-8/+10
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * petalogix_ml605: convert to memory APIAvi Kivity2011-10-101-8/+7
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * palm: convert to memory APIAvi Kivity2011-10-101-28/+25
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * hw/lan9118.c: Convert to MemoryRegionPeter Maydell2011-10-101-18/+11
| | | | | | | | | | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge remote-tracking branch 'qmp/queue/qmp' into stagingAnthony Liguori2011-10-104-4/+4
|\ \
| * | RunState: Rename enum values as generated by the QAPILuiz Capitulino2011-10-044-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Next commit will convert the query-status command to use the RunState type as generated by the QAPI. In order to "transparently" replace the current enum by the QAPI one, we have to make some changes to some enum values. As the changes are simple renames, I'll do them in one shot. The changes are: - Rename the prefix from RSTATE_ to RUN_STATE_ - RUN_STATE_SAVEVM to RUN_STATE_SAVE_VM - RUN_STATE_IN_MIGRATE to RUN_STATE_INMIGRATE - RUN_STATE_PANICKED to RUN_STATE_INTERNAL_ERROR - RUN_STATE_POST_MIGRATE to RUN_STATE_POSTMIGRATE - RUN_STATE_PRE_LAUNCH to RUN_STATE_PRELAUNCH - RUN_STATE_PRE_MIGRATE to RUN_STATE_PREMIGRATE - RUN_STATE_RESTORE to RUN_STATE_RESTORE_VM - RUN_STATE_PRE_MIGRATE to RUN_STATE_FINISH_MIGRATE Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* | | Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2011-10-102-7/+8
|\ \ \ | |_|/ |/| |
| * | lsi: Fix tag reference in debug printJan Kiszka2011-10-051-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | gt64xxx.c: remove reference to non-existing ISD_handle fieldAntony Pavlov2011-10-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The commit fc2bf44972349b078d8310466c3866615500e67f removed ISD_handle field from struct GT64120State, so remove the field from DPRINTF too. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | gt64xxx.c: fix length modifier in DPRINTF format stringAntony Pavlov2011-10-051-4/+4
| |/ | | | | | | | | | | | | | | | | | | The commit fc2bf44972349b078d8310466c3866615500e67f changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so we need to change the corresponding length modifier from "%x" to "%" PRIx64. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* | Restore consistent formattingmalc2011-10-093-15/+14
| | | | | | | | Signed-off-by: malc <av1474@comtv.ru>
* | Merge remote-tracking branch 'upstream' into memory/batchAvi Kivity2011-10-0935-474/+2492
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream: (87 commits) target-alpha: Fix compilation errors for 32 bit hosts target-alpha: Add high-resolution access to wall clock and an alarm. target-alpha: Implement HALT IPR. target-alpha: Implement WAIT IPR. target-alpha: Add CLIPPER emulation. target-alpha: Add custom PALcode image for CLIPPER emulation. target-alpha: Honor icount for RPCC instruction. tcg/s390: Remove unused tcg_out_addi() tcg/ia64: Remove unused tcg_out_addi() ARM: fix segfault ppc64: Fix linker script pseries: Implement set-time-of-day RTAS function pseries: Refactor spapr irq allocation PPC: Clean up BookE timer code PPC: booke timers KVM: PPC: Use HIOR setting for -M pseries with PR KVM KVM: Update kernel headers KVM: Update kernel headers PPC: Fix heathrow PIC to use little endian MMIO PPC: Fix via-cuda memory registration ... Conflicts: hw/milkymist-uart.c hw/ppce500_mpc8544ds.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * | target-alpha: Fix compilation errors for 32 bit hostsStefan Weil2011-10-092-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On i386, these errors were reported: qemu/hw/alpha_dp264.c: In function ‘clipper_init’: qemu/hw/alpha_dp264.c:158: error: integer constant is too large for ‘unsigned long’ type qemu/hw/alpha_typhoon.c: In function ‘typhoon_init’: qemu/hw/alpha_typhoon.c:737: error: integer constant is too large for ‘long’ type qemu/hw/alpha_typhoon.c:741: error: integer constant is too large for ‘long’ type qemu/hw/alpha_typhoon.c:745: error: integer constant is too large for ‘long’ type qemu/hw/alpha_typhoon.c:749: error: integer constant is too large for ‘long’ type qemu/hw/alpha_typhoon.c:757: error: integer constant is too large for ‘long’ type qemu/hw/alpha_typhoon.c:767: error: integer constant is too large for ‘long’ type qemu/hw/alpha_typhoon.c:772: error: integer constant is too large for ‘long’ type Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>