Revision tags: qemu-kvm-0.12.1.2-2.190.el6 |
|
#
a61c6782 |
| 12-Sep-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: use common main loop
Using a single main loop for sockets will help yielding from the socket coroutine back to the main loop, and later reentering it.
Signed-off-by: Paolo Bonzini <pbonzi
qemu-nbd: use common main loop
Using a single main loop for sockets will help yielding from the socket coroutine back to the main loop, and later reentering it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
af49bbbe |
| 19-Sep-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: introduce NBDExport
Wrap the common parameters of nbd_trip and nbd_negotiate in a single opaque struct.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
3777b09f |
| 07-Oct-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: remove data_size argument to nbd_trip
The size of the buffer is in practice part of the protocol.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
94607e7a |
| 19-Sep-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: remove offset argument to nbd_trip
The argument is write-only.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
74d33d5c |
| 11-Nov-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote-tracking branch 'kwolf/block-stable' into staging
|
#
802ddc37 |
| 04-Nov-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: open the block device after starting the client thread
This is cleaner, because we do not need to close the block device when there is an error opening /dev/nbdX. It was done this way onl
qemu-nbd: open the block device after starting the client thread
This is cleaner, because we do not need to close the block device when there is an error opening /dev/nbdX. It was done this way only to print errors before daemonizing.
At the same time, use atexit to ensure that the block device is closed whenever we exit.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
f1ef5555 |
| 04-Nov-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: fix socket creation race
Now that the client and server are in the same process, there is no need to race on the creation of the socket. We can open the listening socket before starting t
qemu-nbd: fix socket creation race
Now that the client and server are in the same process, there is no need to race on the creation of the socket. We can open the listening socket before starting the client thread.
This avoids that "qemu-nbd -v -c" prints this once before connecting successfully to the socket:
connect(unix:/var/lock/qemu-nbd-nbd0): No such file or directory
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
c1f8fdc3 |
| 04-Nov-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: print error messages from the daemon through a pipe
In order to get nice error messages, keep the qemu-nbd process running until before issuing NBD_DO_IT and connected to the daemon with a
qemu-nbd: print error messages from the daemon through a pipe
In order to get nice error messages, keep the qemu-nbd process running until before issuing NBD_DO_IT and connected to the daemon with a pipe. This lets the qemu-nbd process relay error messages from the daemon and exit with a nonzero status if appropriate.
Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
a517e88b |
| 04-Nov-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: move client to a thread
This avoids that qemu-nbd uses both forking and threads, which do not behave well together.
qemu-nbd is already Unix only, and there is no qemu_thread_join, so for
qemu-nbd: move client to a thread
This avoids that qemu-nbd uses both forking and threads, which do not behave well together.
qemu-nbd is already Unix only, and there is no qemu_thread_join, so for now use pthreads.
Since the parent and child no longer have separate file descriptors, we can open the NBD device before daemonizing, instead of checking with access(2) and restricting the open to the client only.
Reported-by: Pierre Riteau <pierre.riteau@irisa.fr> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
b32f6c28 |
| 04-Nov-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: rename socket variable
It will be moved to a global variable by the next patch, and it would conflict with the socket function.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-o
qemu-nbd: rename socket variable
It will be moved to a global variable by the next patch, and it would conflict with the socket function.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
bb345110 |
| 04-Nov-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
qemu-nbd: trap SIGTERM
The client process right now uses SIGTERM to interrupt the server side. This does not affect the exit status of "qemu-nbd -v -c" because the server is a child process. This w
qemu-nbd: trap SIGTERM
The client process right now uses SIGTERM to interrupt the server side. This does not affect the exit status of "qemu-nbd -v -c" because the server is a child process. This will change when both sides will be in the same process, and anyway cleaning up things nicely upon SIGTERM is good practice.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
c8af89af |
| 20-Sep-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote-tracking branch 'kwolf/for-anthony' into staging
|
Revision tags: qemu-kvm-0.12.1.2-2.189.el6 |
|
#
b90fb4b8 |
| 08-Sep-2011 |
Paolo Bonzini <pbonzini@redhat.com> |
nbd: support feature negotiation
nbd supports writing flags in bytes 24...27 of the header, and uses that for the read-only flag. Add support for it in qemu-nbd.
Signed-off-by: Paolo Bonzini <pbon
nbd: support feature negotiation
nbd supports writing flags in bytes 24...27 of the header, and uses that for the read-only flag. Add support for it in qemu-nbd.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
da5391ed |
| 09-Sep-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
|
#
5a61cb60 |
| 08-Sep-2011 |
Stefan Weil <weil@mail.berlios.de> |
Fix include statements for qemu-common.h
* qemu-common.h is not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local
Fix include statements for qemu-common.h
* qemu-common.h is not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local include files are checked for changes.
* linux-user/syscall.c included the file twice.
Cc: Riku Voipio <riku.voipio@iki.fi> Cc: Jan Kiszka <jan.kiszka@siemens.com> Acked-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
show more ...
|
Revision tags: qemu-kvm-0.12.1.2-2.188.el6, qemu-kvm-0.12.1.2-2.187.el6, qemu-kvm-0.12.1.2-2.186.el6, qemu-kvm-0.12.1.2-2.185.el6 |
|
#
7267c094 |
| 20-Aug-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
Revision tags: qemu-kvm-0.12.1.2-2.184.el6, qemu-kvm-0.12.1.2-2.183.el6, qemu-kvm-0.12.1.2-2.182.el6, qemu-kvm-0.12.1.2-2.181.el6, qemu-kvm-0.12.1.2-2.180.el6, qemu-kvm-0.12.1.2-2.160.el6_1.8, qemu-kvm-0.12.1.2-2.179.el6, qemu-kvm-0.12.1.2-2.178.el6, qemu-kvm-0.15.0, v0.15.0, v0.15.0-rc2, qemu-kvm-0.12.1.2-2.177.el6, qemu-kvm-0.12.1.2-2.160.el6_1.7, qemu-kvm-0.12.1.2-2.176.el6, qemu-kvm-0.15.0-rc1, v0.15.0-rc1, qemu-kvm-0.12.1.2-2.175.el6, qemu-kvm-0.12.1.2-2.174.el6, qemu-kvm-0.12.1.2-2.173.el6, qemu-kvm-0.15.0-rc0, qemu-kvm-0.12.1.2-2.160.el6_1.6, qemu-kvm-0.12.1.2-2.172.el6, v0.15.0-rc0, qemu-kvm-0.12.1.2-2.160.el6_1.5, qemu-kvm-0.12.1.2-2.160.el6_1.4, qemu-kvm-0.12.1.2-2.171.el6, qemu-kvm-0.12.1.2-2.160.el6_1.3, qemu-kvm-0.12.1.2-2.170.el6, qemu-kvm-0.12.1.2-2.169.el6, qemu-kvm-0.12.1.2-2.168.el6, qemu-kvm-0.12.1.2-2.167.el6, qemu-kvm-0.12.1.2-2.166.el6, qemu-kvm-0.12.1.2-2.160.el6_1.2, qemu-kvm-0.12.1.2-2.160.el6_1, qemu-kvm-0.12.1.2-2.165.el6 |
|
#
befeac45 |
| 14-Jun-2011 |
Michael S. Tsirkin <mst@redhat.com> |
Merge remote-tracking branch 'origin/master' into pci
Conflicts: hw/virtio-pci.c
|
#
22e1e729 |
| 15-Jun-2011 |
Blue Swirl <blauwirbel@gmail.com> |
Merge branch 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber
* 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber: Darwin: Fix compilation warning regarding the deprecated daemon() func
Merge branch 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber
* 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber: Darwin: Fix compilation warning regarding the deprecated daemon() function cocoa: Avoid warning related to multiple handleEvent: definitions cocoa: Revert dependency on VNC cocoa: Provide central qemu_main() prototype Fix libfdt warnings on Darwin configure: Fix check for fdatasync() Remove warning in printf due to type mismatch Cocoa: avoid displaying window when command-line contains '-h' or '-help' Fix compilation warning due to incorrectly specified type cocoa: do not create a spurious window for -version
show more ...
|
Revision tags: qemu-kvm-0.12.1.2-2.164.el6 |
|
#
f97742d0 |
| 06-Jun-2011 |
Alexandre Raymond <cerbere@gmail.com> |
Darwin: Fix compilation warning regarding the deprecated daemon() function
Changes since v1: create a wrapper function named qemu_daemon() in oslib-posix.c instead of putting the OS specific workaro
Darwin: Fix compilation warning regarding the deprecated daemon() function
Changes since v1: create a wrapper function named qemu_daemon() in oslib-posix.c instead of putting the OS specific workaround in qemu-nbd.c directly.
On OSX >= 10.5, daemon() is deprecated, resulting in the following warning: ----8<---- qemu-nbd.c: In function ‘main’: qemu-nbd.c:371: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:289) ----8<----
The following trick, used in mDNSResponder, takes care of this warning: http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-258.18/mDNSPosix/PosixDaemon.c
On OSX, it temporarily renames the daemon() function before including stdlib.h and declares it manually as an extern function. This way, the compiler does not see the declaration from stdlib.h and thus does not display the warning.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
show more ...
|
Revision tags: qemu-kvm-0.12.1.2-2.163.el6 |
|
#
a6599793 |
| 17-May-2011 |
Christoph Hellwig <hch@lst.de> |
block: clarify the meaning of BDRV_O_NOCACHE
Change BDRV_O_NOCACHE to only imply bypassing the host OS file cache, but no writeback semantics. All existing callers are changed to also specify BDRV_
block: clarify the meaning of BDRV_O_NOCACHE
Change BDRV_O_NOCACHE to only imply bypassing the host OS file cache, but no writeback semantics. All existing callers are changed to also specify BDRV_O_CACHE_WB to give them writeback semantics.
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
Revision tags: qemu-kvm-0.12.1.2-2.162.el6, qemu-kvm-0.14.1, v0.14.1, qemu-kvm-0.12.1.2-2.161.el6, RHEL-6.1, qemu-kvm-0.12.1.2-2.160.el6, qemu-kvm-0.12.1.2-2.159.el6, qemu-kvm-0.12.1.2-2.158.el6, qemu-kvm-0.12.1.2-2.157.el6, qemu-kvm-0.12.1.2-2.156.el6, qemu-kvm-0.12.1.2-2.155.el6, qemu-kvm-0.12.1.2-2.154.el6, qemu-kvm-0.12.1.2-2.153.el6, qemu-kvm-0.12.1.2-2.152.el6, qemu-kvm-0.12.1.2-2.151.el6, qemu-kvm-0.12.1.2-2.150.el6, qemu-kvm-0.12.1.2-2.113.el6_0.8, qemu-kvm-0.12.1.2-2.149.el6, qemu-kvm-0.12.1.2-2.148.el6, qemu-kvm-0.12.1.2-2.113.el6_0.7, qemu-kvm-0.14.0, qemu-kvm-0.12.1.2-2.147.el6, v0.14.0, qemu-kvm-0.12.1.2-2.146.el6, qemu-kvm-0.12.1.2-2.145.el6, v0.14.0-rc2, qemu-kvm-0.14.0-rc1, qemu-kvm-0.14.0-rc0, qemu-kvm-0.12.1.2-2.144.el6, v0.14.0-rc1, qemu-kvm-0.12.1.2-2.143.el6, qemu-kvm-0.12.1.2-2.142.el6, qemu-kvm-0.12.1.2-2.141.el6, qemu-kvm-0.12.1.2-2.140.el6, qemu-kvm-0.12.1.2-2.139.el6, qemu-kvm-0.12.1.2-2.138.el6, qemu-kvm-0.12.1.2-2.137.el6, qemu-kvm-0.12.1.2-2.136.el6, qemu-kvm-0.12.1.2-2.135.el6, v0.14.0-rc0, qemu-kvm-0.12.1.2-2.134.el6, qemu-kvm-0.12.1.2-2.133.el6, qemu-kvm-0.12.1.2-2.132.el6, qemu-kvm-0.12.1.2-2.131.el6, qemu-kvm-0.12.1.2-2.130.el6, qemu-kvm-0.12.1.2-2.129.el6, qemu-kvm-0.12.1.2-2.113.el6_0.6, qemu-kvm-0.12.1.2-2.128.el6, qemu-kvm-0.12.1.2-2.127.el6, qemu-kvm-0.12.1.2-2.126.el6 |
|
#
ad717139 |
| 16-Dec-2010 |
Kevin Wolf <kwolf@redhat.com> |
Remove NULL checks for bdrv_new return value
It's an indirect call to qemu_malloc, which never returns an error.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
Revision tags: qemu-kvm-0.12.1.2-2.113.el6_0.5, qemu-kvm-0.12.1.2-2.125.el6, qemu-kvm-0.12.1.2-2.124.el6, qemu-kvm-0.12.1.2-2.123.el6, qemu-kvm-0.12.1.2-2.122.el6, qemu-kvm-0.12.1.2-2.121.el6, qemu-kvm-0.12.1.2-2.120.el6, qemu-kvm-0.12.1.2-2.113.el6_0.4, qemu-kvm-0.12.1.2-2.119.el6, qemu-kvm-0.12.1.2-2.118.el6, qemu-kvm-0.12.1.2-2.117.el6, qemu-kvm-0.13.0, v0.13.0, qemu-kvm-0.12.1.2-2.116.el6, qemu-kvm-0.12.1.2-2.113.el6_0.3, qemu-kvm-0.12.1.2-2.113.el6_0.2, qemu-kvm-0.13.0-rc3, v0.13.0-rc3, v0.13.0-rc2, qemu-kvm-0.12.1.2-2.115.el6, qemu-kvm-0.12.1.2-2.114.el6 |
|
#
e1bb0a1a |
| 21-Sep-2010 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote branch 'kwolf/for-anthony' into staging
|
#
c2e2872b |
| 17-Sep-2010 |
Laurent Vivier <laurent@vivier.eu> |
nbd: correctly manage default port
block/nbd.c: use default port number when none is specified qemu-nbd.c: use IANA-assigned port number: 10809
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Si
nbd: correctly manage default port
block/nbd.c: use default port number when none is specified qemu-nbd.c: use IANA-assigned port number: 10809
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
Revision tags: qemu-kvm-0.12.1.2-2.113.el6_0.1 |
|
#
72aef731 |
| 12-Sep-2010 |
Christoph Hellwig <hch@lst.de> |
use qemu_blockalign consistently
Use qemu_blockalign for all allocations in the block layer. This allows increasing the required alignment, which is need to support O_DIRECT on devices with large b
use qemu_blockalign consistently
Use qemu_blockalign for all allocations in the block layer. This allows increasing the required alignment, which is need to support O_DIRECT on devices with large block sizes.
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
show more ...
|
#
aab2e8f7 |
| 08-Sep-2010 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote branch 'kwolf/for-anthony' into staging
|