summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * block: Add coroutine_fn marker to coroutine functionsDong Xu Wang2011-12-053-8/+8
| | | | | | | | | | | | | | | | Looks better when reviewing these source files. Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * hmp/qmp: add block_set_io_throttleZhi Yong Wu2011-12-059-2/+175
| | | | | | | | | | | | Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * block: add I/O throttling algorithmZhi Yong Wu2011-12-053-0/+236
| | | | | | | | | | | | Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * CoQueue: introduce qemu_co_queue_wait_insert_headZhi Yong Wu2011-12-052-0/+14
| | | | | | | | | | | | Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * block: add the blockio limits command line supportZhi Yong Wu2011-12-056-0/+141
| | | | | | | | | | | | Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * block: Use bdrv functions to replace file operation in cow.cLi Zhi Hui2011-12-051-18/+16
| | | | | | | | | | | | | | | | | | Since common file operation functions lack of error detection, so change them to bdrv series functions. Signed-off-by: Li Zhi Hui <zhihuili@linux.vnet.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * xen_disk: remove dead codePaolo Bonzini2011-12-051-84/+2
| | | | | | | | | | | | | | | | Xen_disk.c has support for using synchronous I/O instead of asynchronous, but it is compiled out by default. Remove it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * qed: adjust the way to get nb_sectorsZhi Yong Wu2011-12-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is only to refactor some lines of codes to get better and more robust codes. As you have seen, in qed_read_table_cb() it's nice to use qiov->size because that function doesn't obviously use a single struct iovec. In other two functions, if qiov use more than one struct iovec, the existing way will get wrong nb_sectors. To make the code more robust, it will be nicer to refactor the existing way as below. Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * qcow2: avoid reentrant bdrv_read() in copy_sectors()Stefan Hajnoczi2011-12-051-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A BlockDriverState should not issue requests on itself through the public block layer interface. Nested, or reentrant, requests are problematic because they do I/O throttling and request tracking twice. Features like block layer copy-on-read use request tracking to avoid race conditions between concurrent requests. The reentrant request will have to "wait" for its parent request to complete. But the parent is waiting for the reentrant request to make progress so we have reached deadlock. The solution is for block drivers to avoid the public block layer interfaces for reentrant requests. Instead they should call their own internal functions if they wish to perform reentrant requests. This is also a good opportunity to make copy_sectors() a true coroutine_fn. That means calling bdrv_co_writev() instead of bdrv_write(). Behavior is unchanged but we're being explicit that this executes in coroutine context. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * qcow2: Unlock during COWKevin Wolf2011-12-051-69/+35
| | | | | | | | | | | | | | | | | | | | | | Unlocking during COW allows for more parallelism. One change it requires is that buffers are dynamically allocated instead of just using a per-image buffer. While touching the code, drop the synchronous qcow2_read() function and replace it by a bdrv_read() call. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* | Merge remote-tracking branch 'aneesh/1.0-fixes' into stagingAnthony Liguori2011-12-0514-72/+130
|\ \
| * | hw/9pfs: Use the correct file descriptor in Fsdriver CallbackAneesh Kumar K.V2011-12-045-22/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fsdriver callback that operate on file descriptor need to differentiate between directory fd and file fd. Based on the original patch from Sassan Panahinejad <sassan@sassan.me.uk> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add qdev.reset callback for virtio-9p-pci deviceAneesh Kumar K.V2011-12-043-2/+4
| | | | | | | | | | | | | | | | | | Add the device reset callback Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Reset server state during TVERSIONDeepak C Shetty2011-12-041-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per the 9p rfc, during TVERSION its necessary to clean all the active fids, so that we start the session from a clean state. Its also needed in scenarios where the guest is booting off 9p, and boot fails, and client restarts, without any knowledge of the past, it will issue a TVERSION again so this ensures that we always start from a clean state. Signed-off-by: Deepak C Shetty <deepakcs@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: use migration blockers to prevent live migration when virtfs export ↵Aneesh Kumar K.V2011-12-045-13/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path is mounted Now when you try to migrate with VirtFS export path mounted, you get a proper QMP error: (qemu) migrate tcp:localhost:4444 Migration is disabled when VirtFS export path '/tmp/' is mounted in the guest using mount_tag 'v_tmp' (qemu) Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Improve portability to older systemsAneesh Kumar K.V2011-12-043-35/+4
| |/ | | | | | | | | | | | | | | | | | | handle fs driver require a set of newly added syscalls. Don't Compile handle FS driver if those syscalls are not available. Instead of adding #ifdef for all those syscalls we check for open by handle syscall. If that is available then rest of the syscalls used by the driver should be available. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* | Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2011-12-0551-72/+71
|\ \
| * | fix spelling in main directoryDong Xu Wang2011-12-0215-22/+22
| | | | | | | | | | | | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in block sub directoryDong Xu Wang2011-12-023-5/+5
| | | | | | | | | | | | | | | | | | Cc: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in ui sub directoryDong Xu Wang2011-12-021-2/+2
| | | | | | | | | | | | | | | | | | Cc: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in tests sub directoryDong Xu Wang2011-12-022-3/+3
| | | | | | | | | | | | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in tcg sub directoryDong Xu Wang2011-12-022-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in target sub directoryDong Xu Wang2011-12-0210-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cc: Richard Henderson <rth@twiddle.net> Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: Alexander Graf <agraf@suse.de> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in scripts sub directoryDong Xu Wang2011-12-021-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in QMP sub directoryDong Xu Wang2011-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | Cc: Markus Armbruster <armbru@redhat.com> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in libcacard sub directoryDong Xu Wang2011-12-024-5/+5
| | | | | | | | | | | | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in linux-user sub directoryDong Xu Wang2011-12-025-8/+8
| | | | | | | | | | | | | | | | | | Cc: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | fix spelling in darwin-user sub directoryDong Xu Wang2011-12-023-5/+5
| | | | | | | | | | | | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | darwin-user: Fix format string in debug messageStefan Weil2011-12-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | This was spotted by cppcheck. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | MAINTAINERS: Delete spurious '.'Peter Maydell2011-12-021-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | qxl: Don't convert from size_t to int and back in qxl_cursor()Markus Armbruster2011-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | Just for cleanliness; it would take a truly gigantic cursor to break. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * | sonic: fix typoHervé Poussineau2011-12-021-1/+1
| |/ | | | | | | | | | | Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* | Merge remote-tracking branch 'qemu-kvm/memory/batch' into stagingAnthony Liguori2011-12-05168-2730/+2396
|\ \
| * | omap_l4: rename omap_l4_attach_region() to omap_l4_attach()Avi Kivity2011-11-2811-19/+19
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_l4: remove omap_l4_attach()Avi Kivity2011-11-282-22/+0
| | | | | | | | | | | | | | | | | | No longer used. Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_i2c: convert to memory APIBenoît Canet2011-11-283-23/+31
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_lcdc: convert to memory APIBenoît Canet2011-11-283-21/+21
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_spi: convert to memory APIBenoît Canet2011-11-281-17/+20
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_sx1: convert to memory APIBenoît Canet2011-11-281-54/+45
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_l4: convert to memory APIBenoît Canet2011-11-282-16/+20
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap_dss: convert to memory APIAvi Kivity2011-11-283-77/+95
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap2: convert to memory API (part II)Avi Kivity2011-11-282-40/+49
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | omap2: convert to memory API (part I)Avi Kivity2011-11-281-48/+55
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | sysbus: rename sysbus_init_mmio_region() to sysbus_init_mmio()Avi Kivity2011-11-28111-174/+174
| | | | | | | | | | | | Signed-off-by: Avi Kivity <avi@redhat.com>
| * | sysbus: remove sysbus_init_mmio()Avi Kivity2011-11-282-25/+6
| | | | | | | | | | | | | | | | | | No longer used - replaced by sysbus_init_mmio_region(). Signed-off-by: Avi Kivity <avi@redhat.com>
| * | bonito: convert cop to memory APIBenoît Canet2011-11-281-23/+16
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | bonito: convert ldma to memory APIBenoît Canet2011-11-281-23/+16
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | bonito: convert south bridge pci config to memory APIBenoît Canet2011-11-281-21/+18
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | bonito: convert north bridge pci config to memory APIBenoît Canet2011-11-281-22/+15
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * | bonito: convert north bridge register mapping to memory APIBenoît Canet2011-11-281-22/+21
| | | | | | | | | | | | | | | Signed-off-by: Benoît Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
OpenPOWER on IntegriCloud