summaryrefslogtreecommitdiff
path: root/block/raw-win32.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-06w32: Fix access to host devices (regression)Stefan Weil1-7/+29
QEMU failed to open host devices like \\.\PhysicalDrive0 (first hard disk) since some time (commit 8a79380b8ef1b02d2abd705dd026a18863b09020?). Those devices use hdev_open which did not use the latest API for options. This resulted in a fatal runtime error: Block protocol 'host_device' doesn't support the option 'filename' Duplicate code from raw_open to fix this. Cc: qemu-stable@nongnu.org Reported-by: David Brenner <david.brenner3@gmail.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-07-15qemu: fixed compile warnings.unknown1-6/+10
Signed-off-by: unknown <kt@kt-PC.(none)>
2013-07-12qemu: modified wrong return value and source clean-up.Kitae Kim1-56/+59
Changed position of variable declaration because it causes compile warnings. Change-Id: I5473f5806ceac48087d0e213f3c9b21f6f734d89 Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
2013-07-12Fix compilation error on windows.SeokYeon Hwang1-1/+1
Change-Id: Ib689d1efbb855a14fbe512e65e5fe89d84005208 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2013-07-04merge and resolve soucre conflicts.Kitae Kim1-47/+15
Change-Id: I51a12628b4b36c5756988221e9f3cf411ff3c822 Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
2013-07-02Merge 'qemu 1.5.1' into tizen_qemu_1.5.1test1-60/+265
Conflicts: Makefile arch_init.h block/raw-win32.c blockdev.c configure console.h cpu-defs.h cpu-exec.c cpus.c default-configs/arm-softmmu.mak exec-all.h exec.c fpu/softfloat.h hw/9pfs/virtio-9p-device.c hw/Makefile.objs hw/acpi_piix4.c hw/apic_common.c hw/arm/Makefile.objs hw/exynos4210.c hw/exynos4210.h hw/exynos4210_fimd.c hw/exynos4210_gic.c hw/exynos4210_uart.c hw/pc.c hw/pc_sysfw.c hw/pci-hotplug.c hw/pci.c hw/pci.h hw/pl050.c hw/ps2.c hw/qdev-properties.c hw/qdev.c hw/qdev.h hw/vga-pci.c hw/vga-pci.h hw/vga_int.h hw/virtio-balloon.c hw/virtio-balloon.h hw/virtio-blk.c hw/virtio-blk.h hw/virtio-net.c hw/virtio-net.h hw/virtio-pci.c hw/virtio-pci.h hw/virtio-serial-bus.c hw/virtio-serial.h hw/virtio.c hw/virtio.h input.c kvm.h main-loop.c main-loop.h os-win32.c oslib-posix.c oslib-win32.c qemu-char.c qemu-options.hx qemu-sockets.c softmmu_defs.h softmmu_template.h sysemu.h tcg/i386/tcg-target.c tcg/tcg.c tcg/tcg.h vl.c
2013-06-28block: change default of .has_zero_init to 0Peter Lieven1-6/+1
.has_zero_init defaults to 1 for all formats and protocols. this is a dangerous default since this means that all new added drivers need to manually overwrite it to 0 if they do not ensure that a device is zero initialized after bdrv_create(). if a driver needs to explicitly set this value to 1 its easier to verify the correctness in the review process. during review of the existing drivers it turned out that ssh and gluster had a wrong default of 1. both protocols support host_devices as backend which are not by default zero initialized. this wrong assumption will lead to possible corruption if qemu-img convert is used to write to such a backend. vpc and vmdk also defaulted to 1 altough they support fixed respectively flat extends. this has to be addresses in separate patches. both formats as well as the mentioned ssh and gluster are turned to the default of 0 with this patch for safety. a similar problem with the wrong default existed for iscsi most likely because the driver developer did oversee the default value of 1. Signed-off-by: Peter Lieven <pl@kamp.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-04-22block: Remove filename parameter from .bdrv_file_open()Kevin Wolf1-4/+2
It is unused now in all block drivers. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
2013-04-22raw-win32: Use bdrv_open options instead of filenameKevin Wolf1-10/+47
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
2013-03-25block: Add options QDict to bdrv_file_open() prototypes (fix MinGW build)Stefan Weil1-2/+4
The new parameter is unused yet. This part was missing in commit 787e4a8500020695eb391e2f1cc4767ee071d441. Cc: Kevin Wolf <kwolf@redhat.com> Cc: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-03-15threadpool: drop global thread poolStefan Hajnoczi1-1/+3
Now that each AioContext has a ThreadPool and the main loop AioContext can be fetched with bdrv_get_aio_context(), we can eliminate the concept of a global thread pool from thread-pool.c. The submit functions must take a ThreadPool* argument. block/raw-posix.c and block/raw-win32.c use aio_get_thread_pool(bdrv_get_aio_context(bs)) to fetch the main loop's ThreadPool. tests/test-thread-pool.c must be updated to reflect the new thread_pool_submit() function prototypes. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
2013-01-02block/raw-win32: Fix compiler warnings (wrong format specifiers)Stefan Weil1-2/+2
Commit fbcad04d6bfdff937536eb23088a01a280a1a3af added fprintf statements with wrong format specifiers. GetLastError() returns a DWORD which is unsigned long, so %lu must be used. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2012-12-19misc: move include files to include/qemu/Paolo Bonzini1-3/+3
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2012-12-19block: move include files to include/block/Paolo Bonzini1-2/+2
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2012-12-11Fix error code checking for SetFilePointer() callFabien Chouteau1-3/+14
An error has occurred if the return value is invalid_set_file_pointer and getlasterror doesn't return no_error. Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
2012-10-31raw-win32: implement native asynchronous I/OPaolo Bonzini1-5/+37
With the new support for EventNotifiers in the AIO event loop, we can hook a completion port to every opened file and use asynchronous I/O on them. Wine's support is extremely inefficient, also because it really does the I/O synchronously on regular files. (!) But it works, and it is good to keep the Win32 and POSIX ports as similar as possible. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2012-10-31raw-win32: add emulated AIO supportPaolo Bonzini1-49/+138
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2012-10-08Merge tag 'v1.2.0' into tizen-armEvgeny Voevodin1-3/+3
Tag for 1.2.0
2012-09-24block: do not parse BDRV_O_CACHE_WB in block driversJeff Cody1-3/+0
Block drivers should ignore BDRV_O_CACHE_WB in .bdrv_open flags, and in the bs->open_flags. This patch removes the code, leaving the behaviour behind as if BDRV_O_CACHE_WB was set. Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-09-24block: move open flag parsing in raw block drivers to helper functionsJeff Cody1-20/+23
Code motion, to move parsing of open flags into a helper function. Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-09-04[Title]fix not truncating kernel log problem and remove annotaionsmunkyu.im1-7/+0
[Type]Bugfix [Module] [Priority] [CQ#]S1-8252 [Redmine#] [Problem] [Cause] [Solution]add O_TRUNC option when file open [TestCase]
2012-08-15block: Convert close calls to qemu_closeCorey Bryant1-1/+1
This patch converts all block layer close calls, that correspond to qemu_open calls, to qemu_close. Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-08-15block: Convert open calls to qemu_openCorey Bryant1-2/+2
This patch converts all block layer open calls to qemu_open. Note that this adds the O_CLOEXEC flag to the changed open paths when the O_CLOEXEC macro is defined. Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-07-25Squashed commit of the following:jihye kim1-19/+82
commit 133a7eef3e6b40aa990f4f348cfb98913e0d2fd3 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 25 17:45:35 2012 +0900 [Title] include "config-host.h" [Type] bugfix [Module] Emulator [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 295862ff9f77c22403fedfa6207dc0cec51de498 Author: kt <kt@ubuntu.(none)> Date: Wed Jul 25 01:20:10 2012 -0700 [Title] modify dibs build script and configure for x86_64 [Type] enhancement [Module] emulator / dibs [Priority] normal [CQ#] [Redmine#] [Problem] JAVA_HOME env variable has to be set before building package. [Cause] [Solution] [TestCase] commit 8ddd8eff7de63c67a0c3ef34b35047cb05231109 Merge: cc2823e 0599c4f Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Wed Jul 25 16:55:49 2012 +0900 Merge "[Title] Modify build.xml to use JAVA_HOME env [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 0599c4faae22bb4542b604497eade77197e56585 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Wed Jul 25 16:51:36 2012 +0900 [Title] Modify build.xml to use JAVA_HOME env [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit cc2823e3d63e2c14c2f2d11a9c15dde464e64411 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 25 16:28:11 2012 +0900 [Title] changed the file permissions [Type] [Module] Emulator [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] chmod -x [TestCase] commit 25c782c438963092045955f4ee06ada712a9e67d Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 25 16:21:39 2012 +0900 [Title] disable multitouch in qemu side when USE_SHM & etc [Type] feature [Module] Emulator [Priority] major [Jira#] [Redmine#] [Problem] [Cause] supprot mac [Solution] [TestCase] commit 3f52a3ec9e07f21c4eaaa2dd6c1a1c8b1e5f5157 Merge: a5988e8 bc04a66 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Wed Jul 25 16:15:17 2012 +0900 Merge "[Title] Add JNI compilation roution to ant script [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit bc04a66d928766cc4d98b9310a499cd8280172c6 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Wed Jul 25 16:06:05 2012 +0900 [Title] Add JNI compilation roution to ant script [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit a5988e8bee8997072bd70da3b90bf7477a76a2a3 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 25 14:26:35 2012 +0900 [Title] added mac configuration & etc [Type] feature [Module] Emualtor [Priority] major [Jira#] [Redmine#] [Problem] [Cause] support mac [Solution] [TestCase] commit c797da84a5b4671e8bbecc619b34f24eeff0e6b3 Author: jinhyung.jo <jinhyung.jo@samsung.com> Date: Wed Jul 25 11:58:30 2012 +0900 [Title] fixed a bug does not open the camera device on Windows XP [Type] Bug Fix [Module] Emulator / Camera [Priority] Minor [CQ#] N_SE-4727 [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit d35892e9e4bcbd0d4b0240e7d2916739471455ab Author: munkyu.im <munkyu.im@samsung.com> Date: Tue Jul 24 16:38:04 2012 +0900 [Title] fix proxy server setting [Type] Bugfix [Module] Emulator / network [Priority] [Jira#] [Redmine#] [Problem]when try to set the same proxy to every proxy server on windows [Cause] [Solution] [TestCase] commit 972a600be9fbccd8ca29e958e22e0eb5931d99fc Author: giwoong.kim <giwoong.kim@samsung.com> Date: Tue Jul 24 15:30:33 2012 +0900 [Title] added EmulatorSdlSkin & EmulatorShmSkin [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] supprot mac [Solution] [TestCase] commit a13d9bd51bd2437ef092d24d4079d426b2d62885 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Tue Jul 24 15:28:37 2012 +0900 [Title] define USE_SHM for shared memory [Type] feature [Module] Emulator / vga [Priority] major [Jira#] [Redmine#] [Problem] [Cause] support mac [Solution] [TestCase] commit 1afeecd45eb3d518ea411a8fd08bf52f827bfd22 Author: munkyu.im <munkyu.im@samsung.com> Date: Mon Jul 23 21:01:20 2012 +0900 [Title]apply ftp, socket and https proxy server on windows and ubuntu [Type]Enhancement [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit a400d7711047399f2a7f834265ed02ded963e5d5 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Mon Jul 23 20:03:05 2012 +0900 [Title] disintegration of maruskin_display_init() [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 4a167aa9cea3c78b2f407c1a1ce1247dd7eb11fc Author: giwoong.kim <giwoong.kim@samsung.com> Date: Mon Jul 23 15:38:59 2012 +0900 [Title] define DT_MARU for display type [Type] [Module] Emulator / display [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 69ba32e0f78ba1ae9880c23bd4e82d1638c48bad Author: giwoong.kim <giwoong.kim@samsung.com> Date: Mon Jul 23 11:54:27 2012 +0900 [Title] added jni files [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 1ecbeba4ff932af0607b3e9c835c16954db2247d Author: giwoong.kim <giwoong.kim@samsung.com> Date: Mon Jul 23 11:29:29 2012 +0900 [Title] extract some codes which platform comparing [Type] feature [Module] Emulator / skin [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 2f65d6464f3024b0708dc09526c7de7341313023 Author: jihye kim <jihye1128.kim@samsung.com> Date: Mon Jul 23 11:32:21 2012 +0900 [Title] change 'CreateFile' to 'qemu-open' for windows path error [Type] work [Module] qemu(emulator-x86) [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 97268175bec845d2c63f7fb10be07af8237df17e Author: giwoong.kim <giwoong.kim@samsung.com> Date: Sat Jul 21 13:31:34 2012 +0900 [Title] modified log [Type] [Module] Emulator [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit ad310a6fcd39ca65e1962c11a6608ce3436bf034 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Sat Jul 21 10:15:21 2012 +0900 [Title] host gl screen off [Type] [Module] Emulator / skin [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit d7249dcc88aecb2a6e6b5d34d91462e8dc6204c1 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 21:26:39 2012 +0900 [Title] Fix several build issues on Mac [Type] [Module] Emulator [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit ed7bac1606f36fc0cb0f5ea9400869297f8623e6 Author: Jun Tian <jun.j.tian@intel.com> Date: Thu Jun 14 14:42:58 2012 +0800 [Title] Fix conflicting types for uint16 on Mac [Type] [Module] Emulator [Priority] normal [Jira#] [Redmine#] [Problem] [Cause] [Solution] It's an upstream bug on Mac. It resolved by defining _UINT16, then int16_t will be defined in other header file. [TestCase] commit dc2f79a381a913144a9c8a48a46b02db3a13f6e6 Author: Jun Tian <jun.j.tian@intel.com> Date: Thu Jun 14 11:16:06 2012 +0800 [Type] Fix AT_EMPTY_PATH undefined issue on Ubuntu 12.04 [Module] Emulator [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] It's bug on Ubuntu 12.04, this patch is picked from Ubuntu qemu [TestCase] commit 68e744bd906e286fb65ecc4e10acb80230b913df Author: jihye kim <jihye1128.kim@samsung.com> Date: Fri Jul 20 20:12:11 2012 +0900 [Title] copy <GL/wglext.h> to "GL/wglext.h" (file does not exist to the mingw) [Type] work [Module] emulator [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 7c3fe49109d074f6860c08210aac04b16d6a9f60 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 18:08:58 2012 +0900 [Title] delete ffmpeg binary when make distclean [Type] enhancement [Module] Emulator / build [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 6dc34b00bacf67a51b373acfc3c4e51fa16cddf1 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 16:44:11 2012 +0900 [Title] version up [Type] release [Module] Emulator [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] 1.3.4 [TestCase] commit 59bb7888db135bd2931d36773cd45223b1e7f68f Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 16:41:11 2012 +0900 [Title] renamed skin folder [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 2972b3d19bcdca5493d1468bfe9b7483e5d5cb06 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 15:51:53 2012 +0900 [Title] version up [Type] release [Module] Emulator [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] 1.3.3 [TestCase] commit 851c8ebafe9340dc4f015b23741dd7925cb8f9a9 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 15:48:51 2012 +0900 [Title] deleted skin files of 3key & added dbi version [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit e6fe1d80d029a9d77d6ff586dc58cea684f85c5f Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 20 14:55:36 2012 +0900 [Title] redefine arch macro in some line [Type] [Module] Emulator [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 1954f00deb2415486b0193cafd7a8c32c9f5913d Author: syeon.hwang <syeon.hwang@samsung.com> Date: Fri Jul 20 13:04:11 2012 +0900 [Title] Align indentation in dibs script [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 84f5cad8c96e5160b88931318891f6a2c421a081 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Fri Jul 20 13:01:44 2012 +0900 [Title] Fix some path related bugs, fix mis-cleaning in build.xml [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 02de445e8e5b6668699ee9664082570712c15954 Merge: 5dd3fae 9cd6edf Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 19 21:48:06 2012 +0900 Merge "[Title]fixed mistake code [Type]Bugfix [Module]qemu [Priority]Major [Jira#] // Jira Issue Number [Redmine#] // Redmine Isuue Number [Problem] // Problem Description [Cause] // Cause Description [Solution] // Solution Description [TestCase] // Executed the test-target (How to)" into develop commit 9cd6edf763985737ba7fc9ec41959826316fef5e Author: sungmin ha <sungmin82.ha@samsung.com> Date: Thu Jul 19 21:42:46 2012 +0900 [Title]fixed mistake code [Type]Bugfix [Module]qemu [Priority]Major [Jira#] // Jira Issue Number [Redmine#] // Redmine Isuue Number [Problem] // Problem Description [Cause] // Cause Description [Solution] // Solution Description [TestCase] // Executed the test-target (How to) commit 5dd3fae199d3b8da460bf7be379c11e1b83b064d Merge: 05cc176 0b76d7a Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 19 21:28:11 2012 +0900 Merge "[Title] remove redundant configure. [Type] [Module] emulator / dibs [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 0b76d7ad0a047e8b0cef872a22bf1ca86d8f3f97 Author: Kitae Kim <kt920.kim@samsung.com> Date: Thu Jul 19 21:25:43 2012 +0900 [Title] remove redundant configure. [Type] [Module] emulator / dibs [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 05cc176a0ca0432d956b28c55c2c68306884ed8a Merge: 2fd2271 7c919e5 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 19 21:24:47 2012 +0900 Merge "[Title] modify build scripts. [Type] [Module] emulator / build [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 2fd227161f3a9b260b503c52529946ca8848bc34 Merge: 2ffa841 4589dc3 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 19 21:24:38 2012 +0900 Merge "[Title] bounds checking when multi-touch B [Type] bugfix [Module] Emulator / touch [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 7c919e5c8187e38d6231edbf8df06a2ab6096e6f Author: Kitae Kim <kt920.kim@samsung.com> Date: Thu Jul 19 21:22:28 2012 +0900 [Title] modify build scripts. [Type] [Module] emulator / build [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 4589dc30bfcc4010535192651cb289d3b2ac54bc Author: giwoong.kim <giwoong.kim@samsung.com> Date: Thu Jul 19 21:22:02 2012 +0900 [Title] bounds checking when multi-touch B [Type] bugfix [Module] Emulator / touch [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 2ffa841fd47ea6052b2c8fe6ec35a22d11dc8038 Author: sungmin ha <sungmin82.ha@samsung.com> Date: Thu Jul 19 21:12:42 2012 +0900 [Title]modified for changed sdcard path [Type]Enhancement [Module]qemu [Priority]Major [Jira#] // Jira Issue Number [Redmine#] // Redmine Isuue Number [Problem] // Problem Description [Cause] // Cause Description [Solution] // Solution Description [TestCase] // Executed the test-target (How to) commit 89fdc97eeab3b9fd3482b3ba27d8b71c189366f4 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Thu Jul 19 17:35:16 2012 +0900 [Title] emulator host lcd screen surface support gl [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 5cc7a15dbf1593821dda40426fc3855fa99fb024 Author: Kitae Kim <kt920.kim@samsung.com> Date: Thu Jul 19 15:50:31 2012 +0900 [Title] Modify OS name for dibs script beause the rules have been changed. [Type] [Module] emulator / dibs [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit db29dda25c27a48c1cf0a24f107533aeaab6f37a Author: syeon.hwang <syeon.hwang@samsung.com> Date: Thu Jul 19 13:32:35 2012 +0900 [Title] Modify build.xml, Makefiles, dibs build scripts to remove swt.jar [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 3102370c83830531bae85e45857e50ebeade7c65 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Thu Jul 19 12:48:41 2012 +0900 [Title] Modify classpath for eclispe development support [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 36fa20eab7c21b1bc09a2974a64e55f6930c6ae3 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Thu Jul 19 12:46:50 2012 +0900 [Title] Remove swt.jar from git [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 912f064d6626cd920e6d3293f2d35acdc63f8652 Author: Kitae Kim <kt920.kim@samsung.com> Date: Thu Jul 19 12:10:01 2012 +0900 [Title] modify dibs script because dibs rules have been changed. [Type] [Module] emulator / dibs [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit dc13b0be7bd221051f4509f808ddbe0a1491267d Merge: 4c97ac2 f38b03d Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 19 00:07:42 2012 +0900 Merge "[Title] modify build script for dibs to support new sdk dirs. [Type] [Module] emulator / dibs [Priority] normal [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit f38b03d35254e21314716187d028aa5c7d768170 Author: Kitae Kim <kt920.kim@samsung.com> Date: Wed Jul 18 23:09:36 2012 +0900 [Title] modify build script for dibs to support new sdk dirs. [Type] [Module] emulator / dibs [Priority] normal [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 4c97ac2e6168715621671e203315e819b7ed09b0 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 23:41:34 2012 +0900 [Title] rollback skinPath [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit d85392c624366c538a273e42202dec02f3fd650a Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 22:38:03 2012 +0900 [Title] modified getSdbPath() for mac [Type] bugfix [Module] Emulator / menu [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit c865090b62eb6cf59367d057fe23d959985d1767 Merge: e54cf7a 11a85df Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Wed Jul 18 22:29:49 2012 +0900 Merge "[Title] off OpenGl screen [Type] bugfix [Module] Emulator / lcd [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit e54cf7a10d6124f674d9442f96d396aac345148b Merge: 71786a0 89d5f2c Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Wed Jul 18 22:28:32 2012 +0900 Merge "[Title] Add i386 and x86_64 to .gitignore [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 11a85df6478b74c856ccffed6b6e7cb48bf8df22 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 22:20:52 2012 +0900 [Title] off OpenGl screen [Type] bugfix [Module] Emulator / lcd [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 89d5f2c86fedd958e5d531c43d9d2ba30ae1bd5f Author: syeon.hwang <syeon.hwang@samsung.com> Date: Wed Jul 18 22:12:33 2012 +0900 [Title] Add i386 and x86_64 to .gitignore [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 71786a0ff374d4a0dbea12550f14d002b96f7125 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 21:56:47 2012 +0900 [Title] modified default skin path [Type] feature [Module] Emulator / skin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] tizen-sdk/platforms/tizen1.0/emulator-resources/skins [TestCase] commit edb4347e67e23232d02b552b790d847d686530e7 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 21:27:16 2012 +0900 [Title] modified pakage script [Type] release [Module] Emulator [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit a79de7e34e52ec4f4a3d3a988812579bac806926 Merge: bcf8248 7f1e276 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Wed Jul 18 22:02:40 2012 +0900 Merge "[Title] Modify build related files for SDK refactoring [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 7f1e276bd3b403aabff5b70c8e2bb6c92f342835 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Wed Jul 18 21:58:40 2012 +0900 [Title] Modify build related files for SDK refactoring [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit bcf8248538791cf46e7c90edf0bed19c025277ac Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 20:52:16 2012 +0900 [Title] changed sdb path [Type] feature [Module] Emulator / menu [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] tizen-sdk/tools/sdb [TestCase] commit 93aa708edb0939cda65fab3b8ed44238c2c5f1e4 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Wed Jul 18 20:45:37 2012 +0900 [Title] set initial value to touchscreen buf [Type] bugfix [Module] Emultor / touch [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit b1175bcc82a2f800f831dc47359e1a881f9eb7a9 Author: Kitae Kim <kt920.kim@samsung.com> Date: Wed Jul 18 17:55:04 2012 +0900 [Title] remove FFmpeg binaries and change FFmpeg configure for static linking on Windows. [Type] [Module] emulator / codec [Priority] normal [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 364904a80c4666210b2b2a7845ca9d43612836af Author: giwoong.kim <giwoong.kim@samsung.com> Date: Tue Jul 17 22:40:19 2012 +0900 [Title] added doxgen to code of touchscreen device [Type] [Module] Emulator / touch [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 648695cb95ef0f030118b474f3389c4b72cdf491 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Mon Jul 16 20:35:47 2012 +0900 [Title] check the capability of gl before lcd drawing [Type] enhancement [Module] Emulator / skin [Priority] [Jira#] [Redmine#] [Problem] [Cause] support [Solution] [TestCase] commit 2652af870093e901653cc6776016d61125d8efd8 Author: jihye kim <jihye1128.kim@samsung.com> Date: Mon Jul 16 16:03:18 2012 +0900 [Title] add open gl for windows [Type] enhancement [Module] emulator [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit af2acacf591776c142d9d09f2fcfbaf909ab3568 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Mon Jul 16 14:50:18 2012 +0900 [Title] removed dependency on sdl in HW key event handling [Type] [Module] Emulator [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] using mloop [TestCase] commit d16036035bab100fb7f19821f0f327a8f8d725c5 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 13 21:24:43 2012 +0900 [Title] clear multi-touch when sdl init [Type] enhancement [Module] Emulator / touch [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 011e4976f7d8fcd0020ccdac430fb6be45894d66 Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 13 20:58:20 2012 +0900 [Title] changed padding size of multi-touch point region as proportionally emulator window scale [Type] enhancement [Module] Emulator / touch [Priority] major [Jira#] [Redmine#] [Problem] [Cause] usability [Solution] [TestCase] commit f7961be82371a98b7e2c1a787094c1c4706d5dd1 Author: Kitae Kim <kt920.kim@samsung.com> Date: Fri Jul 13 17:49:04 2012 +0900 [Title] source clean up for codec module and add error pop-up routine when host sharing path was missing. [Type] bug fix [Module] emulator / codec,error handle [Priority] normal [CQ#] [Redmine#] [Problem] emulator is not launched. It seem that emulator-manager has a problem to run emulator. [Cause] when host sharing path you selected is missing, emulator is terminated during booting without any pop-up message. [Solution] An error messsage will be popped up. [TestCase] commit 55497975935ee2d7892c7f0ae8fc49bd0a902ee6 Merge: 61484bd 7669fc9 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Fri Jul 13 15:08:36 2012 +0900 Merge "[Title] version update to 1.2.107 [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 7669fc9cbf9ce2632fd14a373b0f89146a07fc42 Author: Sooyoung Ha <yoosah.ha@samsung.com> Date: Fri Jul 13 14:54:06 2012 +0900 [Title] version update to 1.2.107 [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 61484bde2aa4e874ea6a2b4eb46a267c3658360f Author: giwoong.kim <giwoong.kim@samsung.com> Date: Fri Jul 13 14:41:33 2012 +0900 [Title] convert sdl surface to opengl surface [Type] enhancement [Module] Emulator / skin [Priority] major [Jira#] BOT-821, N_SE-1482, S1-4376 [Redmine#] [Problem] [Cause] anti-aliasing [Solution] using OpenGL [TestCase] commit 3c6f8aaa4b7b15afe130ca2dd6a6e52c29b899a8 Merge: 7ea7033 d159f17 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 12 20:31:57 2012 +0900 Merge "[Title] Add DNS support for host has local DNS cache/DNS server [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit d159f17042a3fffb4a753f84fd6fce235f40a8a0 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Thu Jul 12 20:28:09 2012 +0900 [Title] Add DNS support for host has local DNS cache/DNS server [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 7ea7033398f63a5da47ff3c6fee881be67198dcc Merge: 05d8d07 dced2b3 Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 12 20:18:29 2012 +0900 Merge "[Title] Fix build failure on some new ubuntu host [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit 05d8d07c8a61e393b4fbda68a24729b3fbec969c Merge: f91792a 957874b Author: yeongkyoon lee <yeongkyoon.lee@samsung.com> Date: Thu Jul 12 20:17:52 2012 +0900 Merge "[Title] Fixed some bugs for camera on Windows. [Type] Bug Fix [Module] Emulatorj / Multimedia / Camera [Priority] Major [CQ#] N_SE-3228, N_SE-1664 [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop commit dced2b31122a0d0809acb7f4529af5a3c9d82fac Author: syeon.hwang <syeon.hwang@samsung.com> Date: Thu Jul 12 20:12:23 2012 +0900 [Title] Fix build failure on some new ubuntu host [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 957874bf4f6e782d0ae08d21cb0833b0d9b35206 Author: jinhyung.jo <jinhyung.jo@samsung.com> Date: Thu Jul 12 20:06:37 2012 +0900 [Title] Fixed some bugs for camera on Windows. [Type] Bug Fix [Module] Emulatorj / Multimedia / Camera [Priority] Major [CQ#] N_SE-3228, N_SE-1664 [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit f91792a428670beb389fc336b7504fa6461095b8 Author: syeon.hwang <syeon.hwang@samsung.com> Date: Thu Jul 12 20:03:35 2012 +0900 [Title] Apply SSE2 instruction patch from QEMU 1.1 [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] commit 4b7ace653cdb65bf05e52d8be31b1d7b01c9c02f Author: giwoong.kim <giwoong.kim@samsung.com> Date: Thu Jul 12 10:49:38 2012 +0900 [Title] sdl init refactoring [Type] enhancement [Module] Emulator / sdl [Priority] minor [Jira#] [Redmine#] [Problem] [Cause] prepare to OpenGL conditions [Solution] [TestCase]
2012-03-20[Title]fix #define of CreateFile()munkyu.im1-2/+12
[Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
2012-03-19[Title]fix sdb for avoiding port miss match and add CONFIG_MARUmunkyu.im1-0/+4
[Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
2012-03-07[Title]convert utf8 to cp949 (CreateFile)munkyu.im1-2/+4
[Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
2011-11-11block: Rename bdrv_co_flush to bdrv_co_flush_to_diskKevin Wolf1-6/+9
There are two different types of flush that you can do: Flushing one level up to the OS (i.e. writing data to the host page cache) or flushing it all the way down to the disk. The existing functions flush to the disk, reflect this in the function name. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-11-11block: Rename bdrv_co_flush to bdrv_co_flush_to_diskKevin Wolf1-6/+9
There are two different types of flush that you can do: Flushing one level up to the OS (i.e. writing data to the host page cache) or flushing it all the way down to the disk. The existing functions flush to the disk, reflect this in the function name. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-10-21block: change flush to co_flushPaolo Bonzini1-2/+2
Since coroutine operation is now mandatory, convert all bdrv_flush implementations to coroutines. For qcow2, this means taking the lock. Other implementations are simpler and just forward bdrv_flush to the underlying protocol, so they can avoid the lock. The bdrv_flush callback is then unused and can be eliminated. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-10-21block: change flush to co_flushPaolo Bonzini1-2/+2
Since coroutine operation is now mandatory, convert all bdrv_flush implementations to coroutines. For qcow2, this means taking the lock. Other implementations are simpler and just forward bdrv_flush to the underlying protocol, so they can avoid the lock. The bdrv_flush callback is then unused and can be eliminated. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-08-22w32: Fix qemu_ftruncate64Stefan Weil1-2/+6
SetFilePointer returns INVALID_SET_FILE_POINTER when it fails. In addition, GetLastError must be checked. The first call of SetFilePointer did not use INVALID_SET_FILE_POINTER, the second call used wrong error handling. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-08-22w32: Fix qemu_ftruncate64Stefan Weil1-2/+6
SetFilePointer returns INVALID_SET_FILE_POINTER when it fails. In addition, GetLastError must be checked. The first call of SetFilePointer did not use INVALID_SET_FILE_POINTER, the second call used wrong error handling. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-08-01block/raw-win32: Drop disabled code for removable host devicesMarkus Armbruster1-35/+0
It's been disabled since the start (commit 19cb3738, Aug 2006), and has been untouched except for spelling fixes and such. I don't feel like dragging it along any further. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-08-01block/raw-win32: Drop disabled code for removable host devicesMarkus Armbruster1-35/+0
It's been disabled since the start (commit 19cb3738, Aug 2006), and has been untouched except for spelling fixes and such. I don't feel like dragging it along any further. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-07-19block: add bdrv_get_allocated_file_size() operationFam Zheng1-0/+29
qemu-img.c wants to count allocated file size of image. Previously it counts a single bs->file by 'stat' or Window API. As VMDK introduces multiple file support, the operation becomes format specific with platform specific meanwhile. The functions are moved to block/raw-{posix,win32}.c and qemu-img.c calls bdrv_get_allocated_file_size to count the bs. And also added VMDK code to count his own extents. Signed-off-by: Fam Zheng <famcool@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-07-19block: add bdrv_get_allocated_file_size() operationFam Zheng1-0/+29
qemu-img.c wants to count allocated file size of image. Previously it counts a single bs->file by 'stat' or Window API. As VMDK introduces multiple file support, the operation becomes format specific with platform specific meanwhile. The functions are moved to block/raw-{posix,win32}.c and qemu-img.c calls bdrv_get_allocated_file_size to count the bs. And also added VMDK code to count his own extents. Signed-off-by: Fam Zheng <famcool@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-06-08block: clarify the meaning of BDRV_O_NOCACHEChristoph Hellwig1-6/+6
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>
2011-06-08block: clarify the meaning of BDRV_O_NOCACHEChristoph Hellwig1-6/+6
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>
2011-01-31raw-win32: Fix bdrv_flush return valueKevin Wolf1-1/+1
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-01-31raw-win32: Fix bdrv_flush return valueKevin Wolf1-1/+1
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-11-07Fix win32 buildBlue Swirl1-1/+1
Fix a return value change missed by 205ef7961f781496366e0a93a4ec621ad3724bd7. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-11-07Fix win32 buildBlue Swirl1-1/+1
Fix a return value change missed by 205ef7961f781496366e0a93a4ec621ad3724bd7. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-11-04block: Allow bdrv_flush to return errorsKevin Wolf1-1/+8
This changes bdrv_flush to return 0 on success and -errno in case of failure. It's a requirement for implementing proper error handle in users of bdrv_flush. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2010-11-04block: Allow bdrv_flush to return errorsKevin Wolf1-1/+8
This changes bdrv_flush to return 0 on success and -errno in case of failure. It's a requirement for implementing proper error handle in users of bdrv_flush. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2010-08-03block: Fix bdrv_has_zero_initKevin Wolf1-0/+6
Assuming that any image on a block device is not properly zero-initialized is actually wrong: Only raw images have this problem. Any other image format shouldn't care about it, they initialize everything properly themselves. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-08-03block: Fix bdrv_has_zero_initKevin Wolf1-0/+6
Assuming that any image on a block device is not properly zero-initialized is actually wrong: Only raw images have this problem. Any other image format shouldn't care about it, they initialize everything properly themselves. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-05-03block: Open the underlying image file in generic codeKevin Wolf1-2/+2
Format drivers shouldn't need to bother with things like file names, but rather just get an open BlockDriverState for the underlying protocol. This patch introduces this behaviour for bdrv_open implementation. For protocols which need to access the filename to open their file/device/connection/... a new callback bdrv_file_open is introduced which doesn't get an underlying file opened. For now, also some of the more obscure formats use bdrv_file_open because they open() the file themselves instead of using the block.c functions. They need to be fixed in later patches. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-05-03block: Open the underlying image file in generic codeKevin Wolf1-2/+2
Format drivers shouldn't need to bother with things like file names, but rather just get an open BlockDriverState for the underlying protocol. This patch introduces this behaviour for bdrv_open implementation. For protocols which need to access the filename to open their file/device/connection/... a new callback bdrv_file_open is introduced which doesn't get an underlying file opened. For now, also some of the more obscure formats use bdrv_file_open because they open() the file themselves instead of using the block.c functions. They need to be fixed in later patches. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-05-03block: separate raw images from the file protocolChristoph Hellwig1-5/+7
We're running into various problems because the "raw" file access, which is used internally by the various image formats is entangled with the "raw" image format, which maps the VM view 1:1 to a file system. This patch renames the raw file backends to the file protocol which is treated like other protocols (e.g. nbd and http) and adds a new "raw" image format which is just a wrapper around calls to the underlying protocol. The patch is surprisingly simple, besides changing the probing logical in block.c to only look for image formats when using bdrv_open and renaming of the old raw protocols to file there's almost nothing in there. For creating images, a new bdrv_create_file is introduced which guesses the protocol to use. This allows using qemu-img create -f raw (or just using the default) for both files and host devices. Converting the other format drivers to use this function to create their images is left for later patches. The only issues still open are in the handling of the host devices. Firstly in current qemu we can specifiy the host* format names on various command line acceping images, but the new code can't do that without adding some translation. Second the layering breaks the no_zero_init flag in the BlockDriver used by qemu-img. I'm not happy how this is done per-driver instead of per-state so I'll prepare a separate patch to clean this up. There's some more cleanup opportunity after this patch, e.g. using separate lists and registration functions for image formats vs protocols and maybe even host drivers, but this can be done at a later stage. Also there's a check for protocol in bdrv_open for the BDRV_O_SNAPSHOT case that I don't quite understand, but which I fear won't work as expected - possibly even before this patch. Note that this patch requires various recent block patches from Kevin and me, which should all be in his block queue. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>