summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* pc: Fix floppy drives with if=noneKevin Wolf2011-10-215-16/+38
| | | | | | | | | | | | | Commit 63ffb564 broke floppy devices specified on the command line like -drive file=...,if=none,id=floppy -global isa-fdc.driveA=floppy because it relies on drive_get() which works only with -fda/-drive if=floppy. This patch resembles what we're already doing for IDE, i.e. remember the floppy device that was created and use that to extract the BlockDriverStates where needed. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
* fdc: Fix floppy port I/OKevin Wolf2011-10-211-0/+2
| | | | | | | | | The floppy device was broken by commit 212ec7ba (fdc: Convert to isa_register_portio_list). While the old interface provided the port number relative to the floppy drive's io_base, the new one provides the real port number, so we need to apply a bitmask now to get the register number. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* xen_disk: Always set feature-barrier = 1Kevin Wolf2011-10-211-3/+2
| | | | | | | | The synchronous .bdrv_flush callback doesn't exist any more and a device really shouldn't poke into the block layer internals anyway. All drivers are supposed to have a correctly working bdrv_flush, so let's just hard-code this. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* hw/arm_gic.c: Fix save/load of irq_target arrayDmitry Koshelev2011-10-211-8/+8
| | | | | | | | | irq_target array saving/loading is in the wrong loop. Version bump. Signed-off-by: Dmitry Koshelev <karaghiozis@gmail.com> Acked-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
* hw/omap2: Wire up the IRQ for the 2430's fifth GPIO modulePeter Maydell2011-10-211-0/+5
| | | | | | | | | The OMAP2430 version of the omap-gpio device has five GPIO modules, not four like the other OMAP2 versions; wire up the fifth module's IRQ line correctly. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
* Merge remote-tracking branch 'quintela/migration-pull' into stagingAnthony Liguori2011-10-202-14/+18
|\
| * migration: rename qemu_file_has_error to qemu_file_get_errorJuan Quintela2011-10-201-1/+1
| | | | | | | | | | | | | | Now the function returned errno, so it is better the new name. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
| * migration: change has_error to contain errno valuesJuan Quintela2011-10-201-1/+1
| | | | | | | | | | | | We normally already have an errno value. When not, abuse EIO. Signed-off-by: Juan Quintela <quintela@redhat.com>
| * ds1225y: Use stdio instead of QEMUFileJuan Quintela2011-10-201-12/+16
| | | | | | | | | | | | | | | | | | QEMUFile * is only intended for migration nowadays. Using it for anything else just adds pain and a layer of buffers for no good reason. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge remote-tracking branch 'qemu-kvm-tmp/memory/batch' into stagingAnthony Liguori2011-10-2022-649/+544
|\ \
| * | tcx: convert to memory APIAvi Kivity2011-10-171-67/+85
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | tc63963xb: convert to memory APIAvi Kivity2011-10-173-51/+25
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | syborg: convert to memory APIAvi Kivity2011-10-171-3/+5
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | sun4u: convert to memory APIAvi Kivity2011-10-171-9/+13
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | sun4m: convert to memory APIAvi Kivity2011-10-171-17/+32
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | strongarm: convert to memory APIAvi Kivity2011-10-173-106/+75
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | spitz: convert to memory APIAvi Kivity2011-10-171-30/+18
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | spapr: convert to memory APIAvi Kivity2011-10-171-3/+6
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | sm501: convert to memory APIAvi Kivity2011-10-171-73/+70
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | s390-virtio: convert to memory APIAvi Kivity2011-10-171-3/+5
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | realview: convert to memory APIAvi Kivity2011-10-171-28/+26
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | r2d: convert to memory APIAvi Kivity2011-10-171-20/+15
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | ppcr500_mpc8544ds: convert to memory APIAvi Kivity2011-10-171-2/+3
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | pci: simplify memory region registrationAvi Kivity2011-10-171-11/+2
| | | | | | | | | | | | | | | | | | | | | The two code paths (for ADDRESS_SPACE_IO and ADDRESS_SPACE_MEM) are identical. Unify them. Signed-off-by: Avi Kivity <avi@redhat.com>
| * | pxa2xx: convert to memory API (part II)Avi Kivity2011-10-172-87/+66
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | pxa2xx: convert to memory API (part I)Avi Kivity2011-10-172-68/+49
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | ppc_prep: convert to memory APIAvi Kivity2011-10-171-66/+41
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | ppc_oldworld: convert to memory APIAvi Kivity2011-10-171-5/+8
| |/ | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge remote-tracking branch 'aneesh/for-upstream-6' into stagingAnthony Liguori2011-10-2012-773/+439
|\ \ | |/ |/| | | | | Conflicts: trace-events
| * hw/9pfs: Use export flag for indicating security modelAneesh Kumar K.V2011-10-152-50/+33
| | | | | | | | | | | | This helps to remove some of the structure members Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Rename fstype to fsdriver to make it consistent across VirtFS codeAneesh Kumar K.V2011-10-151-1/+1
| | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Use export_flag for indicating whether fs driver use path names.Aneesh Kumar K.V2011-10-155-9/+8
| | | | | | | | | | | | This allows us to remove another member from the struct Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Use fs driver specific lstatM. Mohan Kumar2011-10-151-10/+23
| | | | | | | | | | | | | | Use file system driver specific lstat instead of generic lstat. Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Remove virtio-9p-debug.* infra to be replaced by Qemu Tracing.Harsh Prateek Bora2011-10-153-660/+0
| | | | | | | | | | | | | | | | | | Removing the existing debug infrastrucure as proposed to be replaced by Qemu Tracing infrastructure. Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Introduce tracing for 9p pdu handlersHarsh Prateek Bora2011-10-151-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plan is to replace the existing debug infrastructure with Qemu tracing infrastructure so that user can dynamically enable/disable trace events and therefore a meaningful trace log can be generated which can be further filtered using an analysis script. Note: Because of current simpletrace limitations, the trace events are logging at max 6 args, however, once the more args are supported, we can change trace events to log more info as well. Also, This initial patch only provides a replacement for existing debug infra. More trace events to be added later for newly added handlers and sub-routines. Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Add st_gen support for handle based fs driverHarsh Prateek Bora2011-10-151-0/+51
| | | | | | | | | | Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Add st_gen support in getattr replyHarsh Prateek Bora2011-10-155-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch use file system specific ioctl for getting i_generation value. Not all file system support the ioctl. So we add an export specific extended operation and assign right callback for the file system that support i_generation ioctl ["M. Mohan Kumar" <mohan@in.ibm.com> we can do ioctl only for regular files and directories on the server] Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Add open flag mappingM. Mohan Kumar2011-10-152-1/+76
| | | | | | | | | | | | | | | | | | | | Some of the flags are OS/arch dependent we need to use 9P defined value on wire, Based on the original patch from Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Ensure an error is reported to user if 9pfs mount tag is too longDaniel P. Berrange2011-10-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | If the 9pfs mount tag is longer than MAX_TAG_LEN bytes, rather than silently truncating the tag which will likely break the guest OS, report an immediate error and exit QEMU * hw/9pfs/virtio-9p-device.c: Report error & exit if mount tag is too long Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * virtio-9p: Use 9P specific Lock constantsM. Mohan Kumar2011-10-152-1/+6
| | | | | | | | | | | | | | Use 9P specific lock constants instead of arch specific lock constants. Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Fix build error on platform that don't support futimensAneesh Kumar K.V2011-10-151-28/+24
| | | | | | | | | | | | | | Also don't do glibc version check to find handle support. Instead do handle syscall support in configure. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Add new virtfs option writeout=immediate skip host page cacheAneesh Kumar K.V2011-10-124-10/+48
| | | | | | | | | | | | | | writeout=immediate implies the after pwritev we do a sync_file_range. Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: Use ioeventfd for 9pAneesh Kumar K.V2011-10-123-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With ioeventfd: [root@qemu-img-64 storage]# dd if=/dev/zero of=/storage/testx bs=8k count=131072 oflag=direct 131072+0 records in 131072+0 records out 1073741824 bytes (1.1 GB) copied, 26.767 s, 40.1 MB/s Without: [root@qemu-img-64 storage]# dd if=/dev/zero of=/storage/testx bs=8k count=131072 oflag=direct 131072+0 records in 131072+0 records out 1073741824 bytes (1.1 GB) copied, 65.3361 s, 16.4 MB/s Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* | monitor: Restrict pic/irq_info to supporting targetsJan Kiszka2011-10-1613-77/+12
| | | | | | | | | | | | | | This allows to drop various stubs and move the i8359 into hwlib. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Fix coding styleJan Kiszka2011-10-161-20/+34
| | | | | | | | | | | | | | No functional changes. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Convert to qdevJan Kiszka2011-10-161-57/+100
| | | | | | | | | | | | | | | | | | | | | | This key cleanup step requires to move the IRQ debugging bit from i8259_set_irq directly to the per-PIC pic_set_irq, to pass the PIC parameters (I/O base, ELCR address and mask, master/slave mode) as qdev properties, and to interconnect the PICs with their environment via GPIO pins. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | qdev: Add HEX8 propertyJan Kiszka2011-10-162-0/+32
| | | | | | | | | | | | Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Eliminate PicState2Jan Kiszka2011-10-162-35/+34
| | | | | | | | | | | | | | | | | | | | Introduce a reference to the slave PIC for the few cases we need to access it without a proper pointer at hand and drop PicState2. We could even live without slave_pic if we had a better way of modeling the cascade bus the PICs are attached to (in addition to the ISA bus). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Replace PicState::pics_state with master flagJan Kiszka2011-10-161-9/+9
| | | | | | | | | | | | | | | | | | This reflects how real PICs indentify their role (in non-buffered mode): Pass the state of the /SP input on pic_init and use it instead of pics_state to differentiate between master and slave mode. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: PREP: Replace pic_intack_read with pic_read_irqJan Kiszka2011-10-163-41/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | There is nothing in the i8259 spec that justifies the special pic_intack_read. At least the Linux PREP kernels configure the PICs properly so that pic_read_irq returns identical values, and setting read_reg_select in PIC0 cannot be derived from any special i8259 mode. So switch ppc_prep to pic_read_irq and drop the now unused PIC code. CC: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
OpenPOWER on IntegriCloud