summary refs log tree commit diff stats
path: root/hw (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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>
* | i8259: Clean up pic_ioport_readJan Kiszka2011-10-161-2/+1
| | | | | | | | | | | | | | Drop redundant local address variable. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Fix poll commandJan Kiszka2011-10-161-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | This was probably never used so far: According to the spec, polling means ack'ing the pending IRQ and setting its corresponding bit in isr. Moreover, we have to signal a pending IRQ via bit 7 of the returned value, and we must not return a spurious IRQ if none is pending. This implements the poll command without the help of pic_poll_read which is left untouched as pic_intack_read is still using it. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Switch to per-PIC IRQ updateJan Kiszka2011-10-161-40/+21
| | | | | | | | | | | | | | | | | | This converts pic_update_irq to work against a single PIC instead of the complete cascade. Along this change, the required update after pic_set_irq1 is now moved into that function. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Clear ELCR on resetJan Kiszka2011-10-161-5/+10
| | | | | | | | | | | | | | | | | | | | The ELCR is actually part of the chipset but we model it here for simplicity reasons. The PIIX3 clears the ELCR on reset, which was once broken by 4dbe19e181. Fix this by splitting up pic_init_reset from pic_reset and clearing the register in the latter. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Update IRQ state after resetJan Kiszka2011-10-161-2/+1
| | | | | | | | | | | | | | | | | | | | MIPS and PPC users of the i8259 output signal expect us to report state updates also after reset. As no consumer (including the master PIC) can misinterpret the deassert as an activation event, it is safe to simply update the IRQ state after reset. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Reorder intack in pic_read_irqJan Kiszka2011-10-161-4/+6
| | | | | | | | | | | | | | | | | | As we want to move the IRQ update to pic_intack, ordering matters: the slave ack must be executed before the master ack to avoid missing further pending slave IRQs. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Do not update IRQ output after spurious pic_poll_readJan Kiszka2011-10-161-1/+0
| | | | | | | | | | | | | | | | If pic_poll_read finds no pending IRQ and return a spurious one instead, no PIC state is changed, thus we do not need to call pic_update_irq. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8239: Introduce per-PIC output interruptJan Kiszka2011-10-161-9/+12
| | | | | | | | | | | | | | | | | | As a first step towards more generic master-slave support, remove parent_irq in favor of a per-PIC output interrupt line. The slave's line is attached to IRQ2 of the master, but it remains unused for now. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Move pic_set_irq1 after pic_update_irqJan Kiszka2011-10-161-26/+29
| | | | | | | | | | | | | | We are about to call the latter from the former. No functional changes. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Drop obsolete prototypesJan Kiszka2011-10-161-2/+0
| | | | | | | | | | Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | i8259: Remove premature inline function attributesJan Kiszka2011-10-161-3/+3
| | | | | | | | | | | | | | The compiler is smarter in choosing the right optimization. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | pc: Fix and clean up PIC-to-APIC IRQ pathJan Kiszka2011-10-164-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The master PIC is connected to the LINTIN0 of the APICs. As the APIC currently does not track the state of that line, we have to ask the PIC to reinject its IRQ after the CPU picked up an event from the APIC. This introduces pic_get_output to read the master PIC IRQ line state without changing it. The APIC uses this function to decide if a PIC IRQ should be reinjected on apic_update_irq. This reflects better how the real hardware works. The patch fixes some failures of the kvm unit tests apic and eventinj by allowing to enable the proper CPU IRQ deassertion when the guest masks some pending IRQs at PIC level. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | pc: Convert GSIState::i8259_irq into arrayJan Kiszka2011-10-162-2/+4
| | | | | | | | | | | | | | | | Will be required when we no longer let i8259_init allocate the PIC IRQs but convert that chips to qdev. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | pc: Generalize ISA IRQs to GSIsJan Kiszka2011-10-165-31/+42
| | | | | | | | | | | | | | | | | | The ISA bus IRQ range is 0..15. What isa_irq_handler and IsaIrqState are actually dealing with are the Global System Interrupts. Refactor the code to clarify this. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | pc: Drop useless test from isa_irq_handlerJan Kiszka2011-10-161-3/+2
| | | | | | | | | | | | | | | | | | IsaIrqState::ioapic is always non-NULL. Probably, the concrete qemu_irq was supposed to be tested, but that's already done by qemu_set_irq. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | target-xtensa: add Avnet LX60/LX110/LX200 boardsMax Filippov2011-10-161-0/+233
| | | | | | | | | | | | | | | | | | | | | | These boards carry similar hardware: SDRAM (48M for LX110, 64M for LX60, 96M for LX200), 16 Mbyte FLASH, FPGA, 10/100 Mbps Ethernet PHY and 16550 UART. FPGA may be loaded with almost any Tensilica processor. It is also used to implement Ethernet MAC, e.g. OpenCores 10/100 Mbps Ethernet MAC and LED/DIP switches access. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | hw: add OpenCores 10/100 Mbps Ethernet controllerMax Filippov2011-10-161-0/+728
| | | | | | | | | | | | | | | | | | This is OpenCores Ethernet MAC + subset of National Semiconductors DP83838C PHY. OpenCores Ethernet MAC project: http://opencores.org/project,ethmac Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | target-xtensa: rename dc232b board to simMax Filippov2011-10-161-13/+13
| | | | | | | | | | | | | | This is to get aligned with the linux name for this machine. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>