summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* Sparc32: improve interrupt handlingBlue Swirl2009-08-252-32/+47
| | | | | | | | | | | | | | | | | Level 15 interrupts are broadcast to all CPUs, each CPU can clear the interrupt using the local Clear Pending register. Update intbit_to_level table. Don't try to raise level 0 interrupts. Calculate pending interrupts based on the separate inputs from master register. Setting or resetting the pending level isn't correct because of overlap of levels. Level 14 is always used for CPU timer interrupts, remove the property. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Make CPURead/WriteFunc structure 'const'Blue Swirl2009-08-25141-538/+538
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Make the e1000 the default network adapter for the pc target.Anthony Liguori2009-08-241-2/+2
| | | | | | | | | | | | | | The ne2k is an ancient card that performs pretty terribly under QEMU. In many modern OSes, there is no longer drivers available for the ne2k. Switch the default network adapter to e1000. This card is more widely suppported and performs rather well under QEMU. There may be very old OSes that had a ne2k driver but not an e1000 driver but I think this is likely the exception. I think the average user is better served with an e1000 vs ne2k. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* virtio-blk: add msi support.Gerd Hoffmann2009-08-242-2/+10
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qdev/prop: convert isa-bus to helper macros.Gerd Hoffmann2009-08-241-12/+3
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* unify popen/fopen qemu wrappersPaolo Bonzini2009-08-241-1/+1
| | | | | | | | | While reading Chris's code for fd migration I noticed the duplication between QEMUFilePopen and QEMUFileStdio. This fixes it, and makes qemu_fopen more similar qemu_popen. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Unbreak large mem support by removing kqemuAnthony Liguori2009-08-241-11/+1
| | | | | | | | | | | | | | | | | | | | | | kqemu introduces a number of restrictions on the i386 target. The worst is that it prevents large memory from working in the default build. Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on the TSC as a time source which will not be reliable on a multiple processor system in userspace. Since most modern processors are multicore, this severely limits the utility of kqemu. kvm is a viable alternative for people looking to accelerate qemu and has the benefit of being supported by the upstream Linux kernel. If someone can implement work arounds to remove the restrictions introduced by kqemu, I'm happy to avoid and/or revert this patch. N.B. kqemu will still function in the 0.11 series but this patch removes it from the 0.12 series. Paul, please Ack or Nack this patch. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Route IOAPIC interrupts via ISA busAvi Kivity2009-08-244-26/+13
| | | | | | | | Instead of calling the IOAPIC from the PIC, raise IOAPIC irqs via the ISA bus. As a side effect, IOAPIC lines 16-23 are enabled. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Route PC irqs to ISA bus instead of i8259 directlyAvi Kivity2009-08-241-15/+31
| | | | | | | | | | | A PC has its motherboard IRQ lines connected to both the PIC and IOAPIC. Currently, qemu routes IRQs to the PIC which then calls the IOAPIC, an incestuous arrangement. In order to clean this up, create a new ISA IRQ abstraction, and have devices raise ISA IRQs (which in turn raise the i8259 IRQs as usual). Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QEMU set irq0override in fw_cfgJes Sorensen2009-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Hi, After discussing the issue with Avi, Gleb and a couple others on irq, we came to the conclusion that it is preferred to have QEMU request features from the BIOS, rather than notifying the BIOS that it is running on QEMU or KVM. This way memory ranges can change etc. and an older BIOS will continue to work on newer QEMU if it receives the info as a fw_cfg value. This one also matches what qemu-kvm does for irq0override, except I haven't made it configurable. I leave that as an exercise for whoever would be interested in switching off irq0override. Thanks, Jes Set irq0 override in fw_cfg, informing the BIOS that QEMU expects override on irq0. This matches qemu-kvm, and will help sharing a single BIOS binary. Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* SMART ATA FunctionalityBrian Wheeler2009-08-241-5/+200
| | | | | | | | | For the lulz I implemented basic SMART functionality in ide.c. smartctl on linux recognizes it just fine and starting self tests with it complete successfully. Signed-off-by: Brian Wheeler <bdwheele@indiana.edu> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* make vga screen_dump use DisplayState properlyStefano Stabellini2009-08-241-69/+21
| | | | | | | | | | | | | | Hi all, currently the vga screen_dump code doesn't use the DisplayState interface properly and tries to replace it temporarily while taking the screenshot. A better approach is to register a DisplayChangeListener, call vga_hw_update, and finally write the ppm in the next call from dpy_update. Testing is appreciated. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Restore consistent formattingmalc2009-08-241-5/+5
| | | | Signed-off-by: malc <av1474@comtv.ru>
* es1370: Remove unused indirection of PCIES1370State and ES1370StateJuan Quintela2009-08-241-21/+10
| | | | Signed-off-by: Juan Quintela <quintela@redhat.com>
* Revert my commit c00a9de060124a988bd9847c095e5836488c6f01Andrzej Zaborowski2009-08-231-3/+3
| | | | was incorrect.
* Fix segfault of qemu-system-arm with PXA targetTorsten Duwe2009-08-231-1/+1
| | | | | | | | | qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target, e.g. -M tosa. The reason is fairly obvious: Signed-off-by: Torsten Duwe <duwe@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* Use corect depth from DisplaySurface in vmware_vga.cReimar Döffinger2009-08-231-3/+3
| | | | | | | | | | Hello, for what I can tell, there is no way for vmware_vga to work correctly right now. It assumes that the framebuffer bits-per-pixel and the one from the DisplaySurface are identical (it uses directly the VRAM from vga.c), but it always assumes 3 bytes per pixel, which is never possible with the current version of DisplaySurface. Attached patch fixes that by using ds_get_bits_per_pixel.
* Remove the unnecessary and only global in musicpal.cAndrzej Zaborowski2009-08-231-2/+1
|
* Merge with balrog@git.sv.gnu.org:/srv/git/qemu.gitAndrzej Zaborowski2009-08-235-19/+39
|\
| * Sparc32: fix monitor commands 'info pic' and 'info irq'Blue Swirl2009-08-233-14/+19
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
| * Rearrange to suppress gcc 3.3.5 warning about unused variableBlue Swirl2009-08-231-3/+6
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
| * ESP: implement Transfer PadBlue Swirl2009-08-221-0/+7
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
| * ESP: Implement select without ATN, fix commentsBlue Swirl2009-08-221-2/+7
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Make musicpal.c use the I2C device and the Marvell 88w8618 audio deviceAndrzej Zaborowski2009-08-231-387/+40
| | | | | | | | | | Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* | Extract the Marvell 88w8618 audio device from musicpal.cAndrzej Zaborowski2009-08-231-0/+274
| | | | | | | | | | Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* | Extract musicpal.c I2C bitbanging code and make it gpio awareAndrzej Zaborowski2009-08-231-0/+179
| | | | | | | | | | Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* | Musicpal qdev conversion: gpio (except I2C part), keyboard and lcdBenoit Canet2009-08-231-84/+230
|/ | | | | Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* Remove unneded ac97 indirection accessing its stateJuan Quintela2009-08-221-43/+24
| | | | | | | | | | | Searching for "inspiration" to convert another device to qdev, I got ac97. Once I understood a bit of qdev, found that ac97 used a not needed indirection. To protect the unaware, just fixed it. Later, Juan. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
* Replace REGX with PRIx64Blue Swirl2009-08-161-2/+4
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Replace local ADDRX/PADDRX macros with TARGET_FMT_lx/plxBlue Swirl2009-08-165-66/+91
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Replace always_inline with inlineBlue Swirl2009-08-163-20/+17
| | | | | | We define inline as always_inline. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* PPC: clean up ppc405Blue Swirl2009-08-158-349/+79
| | | | | | | | Rely on the subpage system instead of the local version. Make most functions "static". Fix wrong parameter passed to ppc4xx_pob_reset. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix migration for ide devicesAnthony Liguori2009-08-131-0/+1
| | | | | | | | | | | | commit 93c8cfd9e67a62711b86f4c93747566885eb7928 Author: Gleb Natapov <gleb@redhat.com> Date: Sun Aug 2 11:36:47 2009 +0300 make windows notice media change Broke save/restore by loading a new field but not saving it. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Unbreak Sparc64Blue Swirl2009-08-131-0/+2
| | | | | | EBus is a sort of ISA bus. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Unbreak Sparc32 and PPCBlue Swirl2009-08-132-5/+10
| | | | | | Convert qdev ptr type to chr, allow a NULL pointer. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix virtio-blkAnthony Liguori2009-08-101-1/+1
| | | | | Reported-by: Christoph Hellwig Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* rename "info qdrv" to "info qdm"Gerd Hoffmann2009-08-102-2/+4
| | | | | | | | As requested by avi: driver != device model. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* fix qdev_print_devinfo()Gerd Hoffmann2009-08-101-8/+16
| | | | | | | | | | | snprintf returns number of bytes needed for the output, not the number of bytes actually written. Thus the math is wrong ... Spotted by Markus Armbruster. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert xilinx_timer.c to helper macros.Gerd Hoffmann2009-08-101-12/+3
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert xilinx_intc.c to helper macros.Gerd Hoffmann2009-08-101-6/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert xilinx_ethlite.c to helper macros.Gerd Hoffmann2009-08-101-12/+3
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert virtio-pci.c to helper macros.Gerd Hoffmann2009-08-101-23/+8
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert vga.c to helper macros.Gerd Hoffmann2009-08-102-12/+5
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert tcx.c to helper macros.Gerd Hoffmann2009-08-101-27/+6
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert syborg_timer.c to helper macros.Gerd Hoffmann2009-08-101-6/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert syborg_serial.c to helper macros.Gerd Hoffmann2009-08-101-7/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert syborg_pointer.c to helper macros.Gerd Hoffmann2009-08-101-12/+3
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert syborg_keyboard.c to helper macros.Gerd Hoffmann2009-08-101-7/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert syborg_interrupt.c to helper macros.Gerd Hoffmann2009-08-101-7/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: convert syborg_fb.c to helper macros.Gerd Hoffmann2009-08-101-10/+3
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
OpenPOWER on IntegriCloud