summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* hw/9pfs: Add fs driver specific details to fscontextAneesh Kumar K.V2011-09-228-52/+99
| | | | | | | | Add a new context flag PATHNAME_FSCONTEXT and indicate whether the fs driver track fid using path names. Also add a private pointer that help us to track fs driver specific values in there Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* hw/9pfs: Add init callback to fs driverAneesh Kumar K.V2011-09-222-2/+12
| | | | | | This call back can be used to do fs driver specific initialization. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* hw/9pfs: Move fid pathname tracking to seperate data type.Aneesh Kumar K.V2011-09-228-281/+520
| | | | | | | This enables us to add handles to track fids later. The V9fsPath added is similar to V9fsString except that the size include the NULL byte also. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* hw/9pfs: Use read-write lock for protecting fid path.Aneesh Kumar K.V2011-09-228-87/+155
| | | | | | | On rename we take the write lock and this ensure path doesn't change as we operate on them. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* hw/9pfs: Make v9fs_string* functions non-staticAneesh Kumar K.V2011-09-222-5/+10
| | | | | | We will use them later in other files Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* Merge remote-tracking branch 'kwolf/for-anthony' into stagingAnthony Liguori2011-09-224-3/+76
|\
| * ahci: add port I/O index-data pairDaniel Verkamp2011-09-214-3/+76
| | | | | | | | | | | | | | | | | | | | | | | | Implement an I/O space index-data register pair as defined by the AHCI spec, including the corresponding SATA PCI capability and BAR. This allows real-mode code to access the AHCI registers; real-mode code cannot address the memory-mapped register space because it is beyond the first megabyte. Signed-off-by: Daniel Verkamp <daniel@drv.nu> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* | Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2011-09-222-3/+0
|\ \
| * | Drop unneeded pthread.h inclusionsJan Kiszka2011-09-212-3/+0
| |/ | | | | | | | | Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* | Merge remote-tracking branch 'qemu-kvm-tmp/memory/batch' into stagingAnthony Liguori2011-09-2212-655/+705
|\ \ | |/ |/|
| * omap1: convert to memory API (part VI)Avi Kivity2011-09-213-10/+11
| | | | | | | | | | | | | | Easy RAM stuff. Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * soc_dma: drop soc_dma_port_add_mem_ram()Avi Kivity2011-09-213-12/+8
| | | | | | | | | | | | | | | | | | It's a trivial wrapper for soc_dma_port_add_mem(), which makes the memory API conversion more difficult because it takes a ram addr_t. Drop. Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * omap_lcdc: remove imif, emiff from structureAvi Kivity2011-09-213-10/+3
| | | | | | | | | | | | | | Not used. Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * omap1: convert to memory API (part V)Avi Kivity2011-09-211-6/+8
| | | | | | | | | | | | | | Tricky aliases. Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * omap1: convert to memory API (part IV)Avi Kivity2011-09-212-34/+48
| | | | | | | | | | Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * omap1: convert to memory API (part III)Avi Kivity2011-09-212-94/+123
| | | | | | | | | | Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * omap1: convert to memory API (part II)Avi Kivity2011-09-212-91/+111
| | | | | | | | | | Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * omap1: convert to memory API (part I)Avi Kivity2011-09-214-154/+203
| | | | | | | | | | Acked-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
| * musicpal: convert to memory APIAvi Kivity2011-09-181-144/+99
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * mips_r4k: convert to memory APIAvi Kivity2011-09-181-24/+15
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * mips_mipssim: convert to memory APIAvi Kivity2011-09-181-7/+8
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * mips_malta: convert to memory APIAvi Kivity2011-09-181-27/+26
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * mips_jazz: convert to memory APIAvi Kivity2011-09-181-45/+45
| | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge remote-tracking branch 'mst-tmp/for_anthony' into stagingAnthony Liguori2011-09-2014-96/+110
|\ \
| * | pci_bridge: simplify memory regions some moreMichael S. Tsirkin2011-09-202-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | replace alloc/free with struct members. todo: smash with initial implementation after testing. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * | pci: implement bridge filteringMichael S. Tsirkin2011-09-194-76/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support bridge filtering on top of the memory API as suggested by Avi Kivity: Create a memory region for the bridge's address space. This region is not directly added to system_memory or its descendants. Devices under the bridge see this region as its pci_address_space(). The region is as large as the entire address space - it does not take into account any windows. For each of the three windows (pref, non-pref, vga), create an alias with the appropriate start and size. Map the alias into the bridge's parent's pci_address_space(), as subregions. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * | pci_bridge: use parent bus's address spaceWen Congyang2011-09-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The switch to the new memory API caused the following problem: The pci device may call pci_register_bar() to use PCI bus's address space. But we don't init PCI bus's address space if it is not bus 0. A crash was reported: http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02243.html More work will be needed to make bridge filtering work correctly with the memory API. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * | pci: Remove unused mem_base from PCIBusJan Kiszka2011-09-191-1/+0
| | | | | | | | | | | | | | | | | | | | | Obsoleted by f64e02b6cc. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * | pci: interrupt pin documentation updateMichael S. Tsirkin2011-09-1910-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix up some erroneous comments in code: interrupt pins are named A-D, the interrupt pin register is always readonly and isn't zeroed out on reset. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * | pci: Remove unused pci_reserve_capabilityJan Kiszka2011-09-192-8/+0
| |/ | | | | | | | | | | | | eepro100 was the last user. Now pci_add_capability is powerful enough. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* | Merge remote-tracking branch 'kwolf/for-anthony' into stagingAnthony Liguori2011-09-206-60/+64
|\ \
| * | scsi: fix sign extension problemsPaolo Bonzini2011-09-201-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When assigning a 32-bit value to cmd->xfer (which is 64-bits) it can be erroneously sign extended because the intermediate 32-bit computation is signed. Fix this by standardizing on the ld*_be_p functions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | AHCI Port Interrupt Enable register cleaning on soft resetAlexander Motin2011-09-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've found that FreeBSD AHCI driver doesn't work with AHCI hardware emulation of QEMU 0.15.0. I believe the problem is on QEMU's side. As I see, it clears port's Interrupt Enable register each time when reset of any level happens. Is is reasonable for the global controller reset. It is probably not good, but acceptable for FreeBSD driver for the port hard reset. But it is IMO wrong for the device soft reset. None of real hardware I know behaves that way. Signed-off-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | scsi-disk: lazily allocate bounce bufferPaolo Bonzini2011-09-201-11/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | It will not be needed for reads and writes if the HBA provides a sglist. In addition, this lets scsi-disk refuse commands with an excessive allocation length, as well as limit memory on usual well-behaved guests. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | scsi-disk: commonize iovec creation between reads and writesPaolo Bonzini2011-09-201-24/+18
| | | | | | | | | | | | | | | | | | | | | Also, consistently use qiov.size instead of iov.iov_len. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | dma-helpers: rename is_write to to_devPaolo Bonzini2011-09-192-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | scsi-generic: do not disable FUAPaolo Bonzini2011-09-191-6/+0
| |/ | | | | | | | | | | | | | | | | I found no rationale for this in the logs, and it is quite bad because it will make scsi-generic unsafe WRT power failures. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* | Merge remote-tracking branch 'qmp/queue/qmp' into stagingAnthony Liguori2011-09-2011-17/+21
|\ \ | |/ |/|
| * Drop the vm_running global variableLuiz Capitulino2011-09-153-3/+3
| | | | | | | | | | | | Use runstate_is_running() instead, which is introduced by this commit. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * Replace the VMSTOP macros with a proper state typeLuiz Capitulino2011-09-1510-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Today, when notifying a VM state change with vm_state_notify(), we pass a VMSTOP macro as the 'reason' argument. This is not ideal because the VMSTOP macros tell why qemu stopped and not exactly what the current VM state is. One example to demonstrate this problem is that vm_start() calls vm_state_notify() with reason=0, which turns out to be VMSTOP_USER. This commit fixes that by replacing the VMSTOP macros with a proper state type called RunState. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* | sun4u: don't set up isa_mem_baseBlue Swirl2011-09-181-1/+0
| | | | | | | | | | | | | | | | | | | | Since we use memory API in sun4u.c, after 71579cae30b53c910cd6c47ab4e683f647d36519, setting up isa_mem_base puts vga.chain4 outside of the physical address space. Fix by removing obsolete isa_mem_base set up. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | trace: add virtio_set_status() trace eventStefan Hajnoczi2011-09-172-8/+11
| | | | | | | | | | | | | | | | | | | | The virtio device lifecycle can be observed by looking at the sequence of set status operations. This is especially important for catching the reset operation (status value 0), which resets the device and all virtqueues. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | qdev: print bus properties tooGerd Hoffmann2011-09-161-0/+6
| | | | | | | | | | | | | | | | | | Make qdev_device_help print both device and bus properties. Helps libvirt to figure whenever bus properties such as PCI.multifunction are supported present or not. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | vga: Respect isa_mem_base when registering chain4 aliasJan Kiszka2011-09-161-0/+1
| | | | | | | | | | | | | | | | This does not yet unbreak PPC (which has its own problems) but potentially other non-x86 systems where isa_mem_base is != 0. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | hw/integratorcp: Fix bugs in writes to CM_CTRL system registerPeter Maydell2011-09-161-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a number of bugs in the implementation of writes to the CM_CTRL system register: * write to cm_ctrl, not cm_init ! * an '&' vs '^' typo meant we would write the inverse of the bits * handling the LED via printf() meant we spew lots of output to stdout when Linux uses the LED as a heartbeat indicator * we would hw_error() if a reset was requested rather than actually resetting Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | vga: Fix text mode screendumpsJan Kiszka2011-09-161-4/+3
| | | | | | | | | | | | | | | | | | In text mode, even a full refresh of the screen takes multiple updates. As we reset the dump file pointer after the first call, we only wrote the first line. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Remove blanks before \n in output stringsStefan Weil2011-09-167-28/+28
|/ | | | | | | | | | | | | | Those blanks violate the coding conventions, see scripts/checkpatch.pl. Blanks missing after colons in the changed lines were added. This patch does not try to fix tabs, long lines and other problems in the changed lines, therefore checkpatch.pl reports many violations. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Merge remote-tracking branch 'aneesh/for-upstream-4' into stagingAnthony Liguori2011-09-152-0/+130
|\
| * hw/9pfs: add 9P2000.L unlinkat operationAneesh Kumar K.V2011-09-092-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unlinkat - Remove a directory entry size[4] Tunlinkat tag[2] dirfid[4] name[s] flag[4] size[4] Runlinkat tag[2] older Tremove have the below request format size[4] Tremove tag[2] fid[4] The remove message is used to remove a directory entry either file or directory The remove opreation is actually a directory opertation and should ideally have dirfid, if not we cannot represent the fid on server with anything other than name. We will have to derive the directory name from fid in the Tremove request. NOTE: The operation doesn't clunk the unlink fid. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * hw/9pfs: add 9P2000.L renameat operationAneesh Kumar K.V2011-09-092-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename - change name of file or directory size[4] Trenameat tag[2] olddirfid[4] oldname[s] newdirfid[4] newname[s] size[4] Rrenameat tag[2] older Trename have the below request format size[4] Trename tag[2] fid[4] newdirfid[4] name[s] The rename message is used to change the name of a file, possibly moving it to a new directory. The rename opreation is actually a directory opertation and should ideally have olddirfid, if not we cannot represent the fid on server with anything other than name. We will have to derive the old directory name from fid in the Trename request. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud