sdk/emulator/qemu.git
10 years agoweb-viewer: modified server script name(emul to tty.js) 51/29951/1
sungmin ha [Thu, 6 Nov 2014 05:38:26 +0000 (14:38 +0900)]
web-viewer: modified server script name(emul to tty.js)

Change-Id: I51104a3787ca95afd881633bae15d5b96d6b1994
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agopackage: version up(2.0.12) 38/29838/1
sungmin ha [Wed, 5 Nov 2014 06:54:49 +0000 (15:54 +0900)]
package: version up(2.0.12)

Change-Id: I096428228f16a878858d1c4366fe38570e11590e
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agopackage: added install dependency for spice-protocol and spice-vdagent 37/29837/1
sungmin ha [Wed, 5 Nov 2014 06:45:08 +0000 (15:45 +0900)]
package: added install dependency for spice-protocol and spice-vdagent

Change-Id: Ia0f62f5e1090c6374884e0f354b83a42e937f40d
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agoMerge "spice: added thread for rpm package installation and spice-vdagent execution...
SeokYeon Hwang [Mon, 3 Nov 2014 02:19:33 +0000 (18:19 -0800)]
Merge "spice: added thread for rpm package installation and spice-vdagent execution" into tizen

10 years agoMerge "git: add *.dylib, .DS_Store file to .gitignore" into tizen
SeokYeon Hwang [Mon, 3 Nov 2014 01:56:57 +0000 (17:56 -0800)]
Merge "git: add *.dylib, .DS_Store file to .gitignore" into tizen

10 years agoMerge "display: select display type with display options." into tizen
Sangho Park [Fri, 31 Oct 2014 10:28:39 +0000 (03:28 -0700)]
Merge "display: select display type with display options." into tizen

10 years agogit: add *.dylib, .DS_Store file to .gitignore 35/29635/1
GiWoong Kim [Wed, 29 Oct 2014 11:59:50 +0000 (20:59 +0900)]
git: add *.dylib, .DS_Store file to .gitignore

Change-Id: Ief52a55a1542f6dbd933366b1e593baf84df5232
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agospice: added thread for rpm package installation and spice-vdagent execution 94/29594/3
sungmin ha [Thu, 30 Oct 2014 07:36:59 +0000 (16:36 +0900)]
spice: added thread for rpm package installation and spice-vdagent execution

Change-Id: Ib3260b6bc5289eb7eb53fa2fedfa4277d95f8aea
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agoMerge "Check-gl: Modified install script." into tizen
SeokYeon Hwang [Wed, 29 Oct 2014 11:48:16 +0000 (04:48 -0700)]
Merge "Check-gl: Modified install script." into tizen

10 years agoMerge "osutil: Change os dependent variable" into tizen
SeokYeon Hwang [Wed, 29 Oct 2014 11:45:54 +0000 (04:45 -0700)]
Merge "osutil: Change os dependent variable" into tizen

10 years agodisplay: select display type with display options. 22/29522/3
GiWoong Kim [Wed, 29 Oct 2014 04:50:03 +0000 (13:50 +0900)]
display: select display type with display options.

Select display type with display options - DT_MARU_SDL, DT_MARU_SHM.
Clean-up definitions and display type names.

Change-Id: I67a551db1d39e39afa49b92d3ac65ac8b4946b40
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agocheck-gl: remove the error pop-up & exit code 27/29527/1
jinhyung.jo [Tue, 28 Oct 2014 09:22:13 +0000 (18:22 +0900)]
check-gl: remove the error pop-up & exit code

Remove error routine when the GL driver is Gallium.

Change-Id: Ic50b6cbf61e334e3e9c6727356257d436ad11445
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agoMerge "menu: add null checking" into tizen
SeokYeon Hwang [Wed, 29 Oct 2014 06:20:19 +0000 (23:20 -0700)]
Merge "menu: add null checking" into tizen

10 years agoCheck-gl: Modified install script. 98/29498/1
minkee.lee [Tue, 28 Oct 2014 13:00:32 +0000 (22:00 +0900)]
Check-gl: Modified install script.

- Removed /bin/bash's '-e' option to handle the check_gl return value.
  Install script with '-e' option terminates when check_gl return non-zero
  and rest of script become a dead code.

Change-Id: Ie7369b2b792bdd1459ae9c9102216f9f4cd20d20
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
10 years agoMerge "9pfs: modify variable name because of readability" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 11:41:46 +0000 (04:41 -0700)]
Merge "9pfs: modify variable name because of readability" into tizen

10 years agoosutil: Change os dependent variable 71/29471/1
Munkyu Im [Tue, 28 Oct 2014 09:29:26 +0000 (18:29 +0900)]
osutil: Change os dependent variable

Not use "#define... #endif" but use extern variable.

Change-Id: I4e63ef019bfc42af4d0aaf440257c77bb39a37fe
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
10 years agomenu: add null checking 68/29468/1
GiWoong Kim [Mon, 27 Oct 2014 01:12:37 +0000 (10:12 +0900)]
menu: add null checking

Change-Id: If600835393ed1cca5815bff2c9b77fdc853f84f5
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoMerge "osutil: remove "inline" identifier from sdcard lock functions" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:30:27 +0000 (01:30 -0700)]
Merge "osutil: remove "inline" identifier from sdcard lock functions" into tizen

10 years agoMerge "9pfs: fix compilation errors on Mac OS X." into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:13:33 +0000 (01:13 -0700)]
Merge "9pfs: fix compilation errors on Mac OS X." into tizen

10 years agoMerge "eventcast: fix an infinite loop of notifier routine." into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:13:21 +0000 (01:13 -0700)]
Merge "eventcast: fix an infinite loop of notifier routine." into tizen

10 years agoMerge "hw/i386/pc.c: Remove unused parallel_io and parallel_irq variables" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:10:05 +0000 (01:10 -0700)]
Merge "hw/i386/pc.c: Remove unused parallel_io and parallel_irq variables" into tizen

10 years agoMerge "hw/net/ne2000-isa: Register vmstate struct" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:09:56 +0000 (01:09 -0700)]
Merge "hw/net/ne2000-isa: Register vmstate struct" into tizen

10 years agoMerge "hw/net/eepro100: Implement read-only bits in MDI registers" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:09:46 +0000 (01:09 -0700)]
Merge "hw/net/eepro100: Implement read-only bits in MDI registers" into tizen

10 years agoMerge "slirp: Remove unused zero_ethaddr[] variable" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:09:35 +0000 (01:09 -0700)]
Merge "slirp: Remove unused zero_ethaddr[] variable" into tizen

10 years agoMerge "block/vhdx.c: Mark parent_vhdx_guid variable as unused" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:09:24 +0000 (01:09 -0700)]
Merge "block/vhdx.c: Mark parent_vhdx_guid variable as unused" into tizen

10 years agoMerge "util/qemu-sockets.c: Avoid unused variable warnings" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:09:12 +0000 (01:09 -0700)]
Merge "util/qemu-sockets.c: Avoid unused variable warnings" into tizen

10 years agoMerge "board: remove unused variables" into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:08:59 +0000 (01:08 -0700)]
Merge "board: remove unused variables" into tizen

10 years agoMerge changes I1d5ce226,Ic4d64833 into tizen
SeokYeon Hwang [Tue, 28 Oct 2014 08:08:29 +0000 (01:08 -0700)]
Merge changes I1d5ce226,Ic4d64833 into tizen

* changes:
  target-i386/translate.c: Remove unused tcg_gen_lshift()
  maru_shm: consider unsigned short

10 years ago9pfs: modify variable name because of readability 53/29453/1
Kitae Kim [Tue, 28 Oct 2014 05:27:51 +0000 (13:27 +0800)]
9pfs: modify variable name because of readability

Same variable names are used between char * and V9fsState type.
Even if path is applied to only if-else statement, it could be confusing.

Change-Id: I1a3db3fd366514f48b2c4f693159b5328d04c4e4
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoosutil: remove "inline" identifier from sdcard lock functions 42/29442/1
SeokYeon Hwang [Tue, 28 Oct 2014 04:01:52 +0000 (13:01 +0900)]
osutil: remove "inline" identifier from sdcard lock functions

"make_sdcard_lock_posix()" and "remove_sdcard_lock_posix()" uses DEBUGCH for logging. It can produce compilation warnings because DEBUGCH macro access static variables.

Change-Id: I9bc0d670d0751dd971b070e3a3ad8d2acbff97f4
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agohw/i386/pc.c: Remove unused parallel_io and parallel_irq variables 41/29441/1
Peter Maydell [Thu, 29 May 2014 11:01:49 +0000 (12:01 +0100)]
hw/i386/pc.c: Remove unused parallel_io and parallel_irq variables

The variables parallel_io and parallel_irq are unused; delete them.

Change-Id: Idfe0a89c5c48e6000f717d883b2e27c69bfe676f
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
10 years agohw/net/ne2000-isa: Register vmstate struct 40/29440/1
Peter Maydell [Sat, 7 Jun 2014 16:53:11 +0000 (17:53 +0100)]
hw/net/ne2000-isa: Register vmstate struct

The ne2000-isa device defines a VMState struct for migration, but
we forgot to actually register it. Correct this deficiency by
setting dc->vmsd.

Change-Id: I6f82f7cdb0de1f52e64fb80a7a8cb22e5aa23761
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
10 years agohw/net/eepro100: Implement read-only bits in MDI registers 39/29439/1
Peter Maydell [Mon, 9 Jun 2014 15:03:08 +0000 (16:03 +0100)]
hw/net/eepro100: Implement read-only bits in MDI registers

Although we defined an eepro100_mdi_mask[] array indicating which bits
in the registers are read-only, we weren't actually doing anything with
it. Make the MDI register-write code use it rather than manually making
register 1 read-only and leaving the rest as reads-as-written. (The
special-case handling of register 0 remains as before since its mask is
all-zeros and the special casing happens before we apply the masking.)

Change-Id: I28b6ee4691f5e8c325430eb429bee1b06c9a818e
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1402159924-13853-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
10 years agoslirp: Remove unused zero_ethaddr[] variable 38/29438/1
Peter Maydell [Thu, 29 May 2014 10:59:26 +0000 (11:59 +0100)]
slirp: Remove unused zero_ethaddr[] variable

The zero_ethaddr[] array is never used; delete it.

Change-Id: I20b166d01b3203f4370ebe66db8c659a1f8ea9c0
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
10 years agoblock/vhdx.c: Mark parent_vhdx_guid variable as unused 37/29437/1
Peter Maydell [Sun, 14 Sep 2014 19:29:59 +0000 (20:29 +0100)]
block/vhdx.c: Mark parent_vhdx_guid variable as unused

The parent_vhdx_guid variable is defined but never used, which provokes
complaints from newer versions of clang. Since the variable definition
is here acting as documentation of the image format, mark it with the
'unused' attribute to keep the compiler happy rather than simply
deleting it.

Change-Id: I9748b3b20922666e5f2efceb80e37e99ea3430ce
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
10 years agoutil/qemu-sockets.c: Avoid unused variable warnings 36/29436/1
Peter Maydell [Sat, 7 Jun 2014 16:48:03 +0000 (17:48 +0100)]
util/qemu-sockets.c: Avoid unused variable warnings

The 'on' variable is never used, and 'off' is only used
if IPV6_V6ONLY is defined; delete 'on' and move 'off' to
the point where it is used. This avoids warnings from
clang 3.4.

Change-Id: Ia886bd9b95c0b019d5808834cf704bc97a3cd312
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
10 years agoboard: remove unused variables 35/29435/1
GiWoong Kim [Tue, 28 Oct 2014 02:36:59 +0000 (11:36 +0900)]
board: remove unused variables

Change-Id: I65b217e2c3a54750d8bb25cf17af3df9869049a1
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years ago9pfs: fix compilation errors on Mac OS X. 32/29432/2
Kitae Kim [Tue, 28 Oct 2014 01:52:53 +0000 (10:52 +0900)]
9pfs: fix compilation errors on Mac OS X.

in case of Mac OS X, mode_t type is unsigned short.
So, -1 cannot be compared to mode_t type.

Change-Id: Iad1e4a1049e14de0575ed6da11b339ed9045b12d
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agotarget-i386/translate.c: Remove unused tcg_gen_lshift() 31/29431/1
Peter Maydell [Sat, 7 Jun 2014 17:04:55 +0000 (18:04 +0100)]
target-i386/translate.c: Remove unused tcg_gen_lshift()

The function tcg_gen_lshift() is unused; remove it.

Change-Id: I1d5ce226649ee2f576698ad7639f7606c3861198
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
10 years agoeventcast: fix an infinite loop of notifier routine. 30/29430/1
Kitae Kim [Mon, 27 Oct 2014 05:11:03 +0000 (14:11 +0900)]
eventcast: fix an infinite loop of notifier routine.

Whenever a client connects to a server, notifier function is registered to notifier_list repeatedly.
It makes emulator become infinite loop state when emulator is terminated.

Change-Id: Ib7c92c03bb659290df5434c17822db08b2fa60a8
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agomaru_shm: consider unsigned short 07/29407/1
GiWoong Kim [Mon, 27 Oct 2014 11:34:13 +0000 (20:34 +0900)]
maru_shm: consider unsigned short

Change-Id: Ic4d64833a9ca1c57a59136d23fd3de4e97f4f618
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoecs: Size up location data buffer 18/29318/1
Munkyu Im [Fri, 24 Oct 2014 07:00:55 +0000 (16:00 +0900)]
ecs: Size up location data buffer

location data needs more buffer size.

Change-Id: I63570b9f424d8e2d624b60b696486dbd909c4f04
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
10 years agoosutil: add #ifdef, #endif 17/29317/2
Munkyu Im [Fri, 24 Oct 2014 06:21:59 +0000 (15:21 +0900)]
osutil: add #ifdef, #endif

This caused compilation error on Windows.
So surround with #ifdef and #endif

Change-Id: Idd42249fc26c9bb0c619505241be667a2253e88d
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
10 years agoMerge "sdcard: Allow only one attach for the same sdcard image" into tizen
SeokYeon Hwang [Fri, 24 Oct 2014 05:14:52 +0000 (22:14 -0700)]
Merge "sdcard: Allow only one attach for the same sdcard image" into tizen

10 years agosdcard: Allow only one attach for the same sdcard image 85/29185/6
Munkyu Im [Wed, 22 Oct 2014 09:45:38 +0000 (18:45 +0900)]
sdcard: Allow only one attach for the same sdcard image

Implemented file locking when attach/detach sdcard.
During one user attach a image, other user cannot attach it.

Change-Id: I6f0a971c8114048412583acc3daec0f7ac6dc965
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
10 years agoMerge "enable yagl/vigs support independently of enabling maru" into tizen
Sangho Park [Thu, 23 Oct 2014 14:23:39 +0000 (07:23 -0700)]
Merge "enable yagl/vigs support independently of enabling maru" into tizen

10 years agoMerge "ecs: bug fixed of header include in windows" into tizen
SeokYeon Hwang [Thu, 23 Oct 2014 09:21:40 +0000 (02:21 -0700)]
Merge "ecs: bug fixed of header include in windows" into tizen

10 years agoenable yagl/vigs support independently of enabling maru 91/29091/2
Ewan Le Bideau-Canévet [Tue, 21 Oct 2014 08:28:54 +0000 (10:28 +0200)]
enable yagl/vigs support independently of enabling maru

Change-Id: I44ff9220c1627be8fcbae9f7b71177832db3339d
Signed-off-by: Ewan Le Bideau-Canévet <ewan.lebideau-canevet@open.eurogiciel.org>
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
10 years agoMerge "menu: add null checking" into tizen
SeokYeon Hwang [Thu, 23 Oct 2014 07:31:51 +0000 (00:31 -0700)]
Merge "menu: add null checking" into tizen

10 years agomenu: add null checking 32/29232/1
GiWoong Kim [Thu, 23 Oct 2014 02:33:36 +0000 (11:33 +0900)]
menu: add null checking

Change-Id: Ie775be73ace5a5270745c43384c746c49d767b19
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoecs: bug fixed of header include in windows 31/29231/1
Jinhyung Choi [Thu, 23 Oct 2014 05:30:16 +0000 (14:30 +0900)]
ecs: bug fixed of header include in windows

Change-Id: I53b84583336897221b7f5e9e8f081581ec05e63c
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
10 years agobrillcodec: initialized AVPacket variable. 28/29228/1
Kitae Kim [Tue, 21 Oct 2014 01:42:14 +0000 (10:42 +0900)]
brillcodec: initialized AVPacket variable.

there is a case when AVPacket variable can be used without initialization.

Change-Id: I973cb1f39ae2c7c5fc40cefe99751587a33373d5
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoemulator_option: fix resource leak. 27/29227/1
Kitae Kim [Thu, 23 Oct 2014 02:09:57 +0000 (11:09 +0900)]
emulator_option: fix resource leak.

it did not close file handle when returning value.

Change-Id: I6d0defdfa8ca1fb5e477f5b8b1f44ad82124ba5b
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoMerge "VIGS & YaGL: Fixed the incorrect condition" into tizen
SeokYeon Hwang [Wed, 22 Oct 2014 04:31:23 +0000 (21:31 -0700)]
Merge "VIGS & YaGL: Fixed the incorrect condition" into tizen

10 years agoMerge "Check-GL: Added check-gl pop-up when install SDK in Ubuntu." into tizen
SeokYeon Hwang [Tue, 21 Oct 2014 11:22:04 +0000 (04:22 -0700)]
Merge "Check-GL: Added check-gl pop-up when install SDK in Ubuntu." into tizen

10 years agoVIGS & YaGL: Fixed the incorrect condition 73/29073/1
jinhyung.jo [Tue, 21 Oct 2014 04:27:16 +0000 (13:27 +0900)]
VIGS & YaGL: Fixed the incorrect condition

Fix a wrong variable name, dobj -> wqobj.

Change-Id: I7dbd5e110e747343aeefb29c23ab4d28d35c873b
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agoCheck-GL: Added check-gl pop-up when install SDK in Ubuntu. 26/29026/3
minkee.lee [Mon, 20 Oct 2014 10:21:06 +0000 (19:21 +0900)]
Check-GL: Added check-gl pop-up when install SDK in Ubuntu.

Change-Id: Ic79803a622d397ad52ce79fcce0aff1afe8b63cb
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
10 years agocheck-gl: Modified check-gl 33/29033/2
jinhyung.jo [Mon, 20 Oct 2014 11:48:55 +0000 (20:48 +0900)]
check-gl: Modified check-gl

Add the routine to check GL driver vendor on Ubuntu

Change-Id: I373dcbbf61e6d0a71ec33fd968771ff526481341
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agoMerge "configure: remove --disable-coroutine-pool on Windows" into tizen
SeokYeon Hwang [Mon, 20 Oct 2014 08:59:08 +0000 (01:59 -0700)]
Merge "configure: remove --disable-coroutine-pool on Windows" into tizen

10 years agoMerge "coroutine-win32.c: Add noinline attribute to work around gcc bug" into tizen
SeokYeon Hwang [Mon, 20 Oct 2014 08:58:53 +0000 (01:58 -0700)]
Merge "coroutine-win32.c: Add noinline attribute to work around gcc bug" into tizen

10 years agoMerge changes I9c02562a,I49a29543,I3a3b2a36 into tizen
SeokYeon Hwang [Mon, 20 Oct 2014 08:51:48 +0000 (01:51 -0700)]
Merge changes I9c02562a,I49a29543,I3a3b2a36 into tizen

* changes:
  eventcast: fix build error on Mac OS X.
  virtio-9p: improve error message routine.
  maru_err_table: prevent double free case.

10 years agoMerge "hds: added "Host Directory Sharing" feature" into tizen
SeokYeon Hwang [Mon, 20 Oct 2014 08:31:47 +0000 (01:31 -0700)]
Merge "hds: added "Host Directory Sharing" feature" into tizen

10 years agoMerge "eventcast: add evencast_ define" into tizen
SeokYeon Hwang [Mon, 20 Oct 2014 08:28:46 +0000 (01:28 -0700)]
Merge "eventcast: add evencast_ define" into tizen

10 years agoconfigure: remove --disable-coroutine-pool on Windows 03/29003/1
SeokYeon Hwang [Mon, 20 Oct 2014 06:44:09 +0000 (15:44 +0900)]
configure: remove --disable-coroutine-pool on Windows

Change-Id: I02c3e4c787a79164fc3ce3fd32679182f5d47b94
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agocoroutine-win32.c: Add noinline attribute to work around gcc bug 02/29002/1
Peter Maydell [Mon, 23 Jun 2014 14:55:03 +0000 (15:55 +0100)]
coroutine-win32.c: Add noinline attribute to work around gcc bug

A gcc codegen bug in x86_64-w64-mingw32-gcc (GCC) 4.6.3 means that
non-debug builds of QEMU for Windows tend to assert when using
coroutines. Work around this by marking qemu_coroutine_switch
as noinline.

If we allow gcc to inline qemu_coroutine_switch into
coroutine_trampoline, then it hoists the code to get the
address of the TLS variable "current" out of the while() loop.
This is an invalid transformation because the SwitchToFiber()
call may be called when running thread A but return in thread B,
and so we might be in a different thread context each time
round the loop. This can happen quite often.  Typically.
a coroutine is started when a VCPU thread does bdrv_aio_readv:

     VCPU thread

     main VCPU thread coroutine      I/O coroutine
        bdrv_aio_readv ----->
                                     start I/O operation
                                       thread_pool_submit_co
                       <------------ yields
        back to emulation

Then I/O finishes and the thread-pool.c event notifier triggers in
the I/O thread.  event_notifier_ready calls thread_pool_co_cb, and
the I/O coroutine now restarts *in another thread*:

     iothread

     main iothread coroutine         I/O coroutine (formerly in VCPU thread)
        event_notifier_ready
          thread_pool_co_cb ----->   current = I/O coroutine;
                                     call AIO callback

But on Win32, because of the bug, the "current" being set here the
current coroutine of the VCPU thread, not the iothread.

noinline is a good-enough workaround, and quite unlikely to break in
the future.

(Thanks to Paolo Bonzini for assistance in diagnosing the problem
and providing the detailed example/ascii art quoted above.)

Change-Id: I4a5f4960be4691f6e5d5ad7de7731e14ab594312
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1403535303-14939-1-git-send-email-peter.maydell@linaro.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
10 years agoeventcast: fix build error on Mac OS X. 30/28930/1
Kitae Kim [Fri, 17 Oct 2014 07:50:53 +0000 (16:50 +0900)]
eventcast: fix build error on Mac OS X.

CONFIG_SHM is not defined. It causes duplicated symbol declaration.

Change-Id: I9c02562a709089a59cd2a3231a0c19aa106818f6
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agonew_debug_ch: Extended length of channel name 12/28812/2
jinhyung.jo [Thu, 16 Oct 2014 09:34:24 +0000 (18:34 +0900)]
new_debug_ch: Extended length of channel name

Extend length to name field of channel structure to prevent an incorrect reference.
Even if a channel name is max length(15), it is always null terminated.

Change-Id: I7a82837ab091670e3a24418f1b6cca1a23bfc013
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agovirtio-9p: improve error message routine. 88/28788/1
Kitae Kim [Thu, 16 Oct 2014 07:28:10 +0000 (16:28 +0900)]
virtio-9p: improve error message routine.

Register error message routine to show the message as a dialog,
because local_init function on Windows and Mac OS X does not check virtfs parameters.

Change-Id: I49a295433631b76473adce179bba665fc9823991
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agomaru_err_table: prevent double free case. 80/28780/1
Kitae Kim [Thu, 16 Oct 2014 05:19:31 +0000 (14:19 +0900)]
maru_err_table: prevent double free case.

Duplicate source path to avoid double free case
becuase the path might be released at caller side.

Change-Id: I3a3b2a3605c4c4fbca13c6496c898a0f8e268348
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoeventcast: add evencast_ define 77/28777/1
Kitae Kim [Wed, 15 Oct 2014 10:26:44 +0000 (19:26 +0900)]
eventcast: add evencast_ define

add those macros to avoid redundant declarations

Change-Id: I524d94abacfcb7ab191f2707d07321d460a9a60e
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agohds: added "Host Directory Sharing" feature 43/28743/2
Jinhyung Choi [Wed, 15 Oct 2014 09:37:01 +0000 (18:37 +0900)]
hds: added "Host Directory Sharing" feature

Change-Id: I362464b392c41709590756383cca8fc4fdbcd1a6
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
10 years agoMerge "eventcast: fix build errors" into tizen
SeokYeon Hwang [Wed, 15 Oct 2014 06:52:30 +0000 (23:52 -0700)]
Merge "eventcast: fix build errors" into tizen

10 years agoMerge "build: remove gcc dependency on Mac OS X." into tizen
SeokYeon Hwang [Wed, 15 Oct 2014 06:51:46 +0000 (23:51 -0700)]
Merge "build: remove gcc dependency on Mac OS X." into tizen

10 years agobuild: remove gcc dependency on Mac OS X. 78/28578/4
Kitae Kim [Fri, 10 Oct 2014 01:28:47 +0000 (10:28 +0900)]
build: remove gcc dependency on Mac OS X.

Change-Id: I1ffa24aafe9fbdfddcb72e4d0ae4bf4e52ef2b87
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoeventcast: fix build errors 56/28656/2
Kitae Kim [Mon, 13 Oct 2014 12:50:14 +0000 (21:50 +0900)]
eventcast: fix build errors

- add missing Makefile.objs.
- modify header path.
- add stub function in case of disable-sdl and disable-shm.

Change-Id: Ib35650c14681317e0f1c6b892c318fcfaea5727f
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoeventcast: rename tethering to eventcast 77/28577/2
Kitae Kim [Wed, 8 Oct 2014 08:13:45 +0000 (17:13 +0900)]
eventcast: rename tethering to eventcast

naming tethering might be confusing to users.

Change-Id: I154e59aefd932728cb3b73ece6c14d4223cc03de
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agopackage: version up(2.0.11) 32/28232/2
sungmin ha [Wed, 1 Oct 2014 05:28:36 +0000 (14:28 +0900)]
package: version up(2.0.11)

up to 2.0.11

Change-Id: If2f315c3d5c2490e38f859fb9ba9e93bbdc3db73
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agoweb-viewer: added init and shutdown logic of nodejs and websocket 04/28204/12
sungmin ha [Tue, 30 Sep 2014 08:22:53 +0000 (17:22 +0900)]
web-viewer: added init and shutdown logic of nodejs and websocket

Change-Id: Ib9c9f99be49f6e40f51cb16506adc9d61bb66f1a
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agomenu: modified SDB shell command 66/27866/3
GiWoong Kim [Sat, 20 Sep 2014 03:02:50 +0000 (12:02 +0900)]
menu: modified SDB shell command

To close a factory gnome-terminal after the SDB session period,
suicide command should be reserved by host shell on Ubuntu.

Change-Id: I090e64733834fd7a95b060fb7ebb1219ec34e950
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoskin: add Timer for shell closing 41/27741/2
GiWoong Kim [Thu, 18 Sep 2014 10:19:46 +0000 (19:19 +0900)]
skin: add Timer for shell closing

Change-Id: I169713e7667c1983a672c0eafdde2634abbb05ee
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoMerge "bug fixed: status of earjack & usb" into tizen
SeokYeon Hwang [Mon, 22 Sep 2014 10:19:07 +0000 (03:19 -0700)]
Merge "bug fixed: status of earjack & usb" into tizen

10 years agoMerge "skin: added wearable-360x480-1btn skin" into tizen
SeokYeon Hwang [Mon, 22 Sep 2014 10:18:01 +0000 (03:18 -0700)]
Merge "skin: added wearable-360x480-1btn skin" into tizen

10 years agoMerge changes I31aed8e7,Ibdbd63ea,I48d413bb into tizen
SeokYeon Hwang [Mon, 22 Sep 2014 10:17:19 +0000 (03:17 -0700)]
Merge changes I31aed8e7,Ibdbd63ea,I48d413bb into tizen

* changes:
  brillcodec: source clean-up
  configure: modify libav configuration
  brillcodec: use parser APIs to fix broken images in case of mpegts.

10 years agoMerge "tethering: remove build depedency." into tizen
SeokYeon Hwang [Mon, 22 Sep 2014 10:16:50 +0000 (03:16 -0700)]
Merge "tethering: remove build depedency." into tizen

10 years agoMerge "emulator: add null-terminated to string" into tizen
SeokYeon Hwang [Mon, 22 Sep 2014 10:16:06 +0000 (03:16 -0700)]
Merge "emulator: add null-terminated to string" into tizen

10 years agobug fixed: status of earjack & usb 97/27497/2
Jinhyung Choi [Mon, 15 Sep 2014 04:45:28 +0000 (13:45 +0900)]
bug fixed: status of earjack & usb

Change-Id: If5ba70014d67859366792eb7349082559a03e6bf
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
10 years agoskin: added wearable-360x480-1btn skin 44/27644/2
GiWoong Kim [Tue, 16 Sep 2014 09:02:24 +0000 (18:02 +0900)]
skin: added wearable-360x480-1btn skin

Change-Id: I89dc63b803f4318caa399af720487ffe377a43e6
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoemulator: add null-terminated to string 43/27643/2
GiWoong Kim [Mon, 15 Sep 2014 12:36:08 +0000 (21:36 +0900)]
emulator: add null-terminated to string

Change-Id: I6a8616b584b9a122c6c078723c7957be0c52be26
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agotethering: remove build depedency. 61/27661/1
Kitae Kim [Wed, 17 Sep 2014 05:03:10 +0000 (14:03 +0900)]
tethering: remove build depedency.

when --disable-sdl or --disable-shm on Mac OS X,
encode_fb module get compilation errors because of depedencies.

Change-Id: I0a312acb9ba4b0ec77de5df960de852b8c55a890
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agopackage: version up(2.0.10) 01/27501/1
sungmin ha [Mon, 15 Sep 2014 05:39:40 +0000 (14:39 +0900)]
package: version up(2.0.10)

Change-Id: I23cac2be426c6592789236f1da4c5a273d02c31b
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agospice: modified default scale 1/2 00/27500/1
sungmin ha [Mon, 15 Sep 2014 05:30:06 +0000 (14:30 +0900)]
spice: modified default scale 1/2

Change-Id: I792b4f393ce120808cb2aa2eaae85b6eb79847a1
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agobrillcodec: source clean-up 90/27190/7
Kitae Kim [Sat, 6 Sep 2014 07:47:38 +0000 (16:47 +0900)]
brillcodec: source clean-up

remove duplicated sources when resampling audio buffer.

Change-Id: I31aed8e705c3eb7fa76b67c247efbe2d733abf4e
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoconfigure: modify libav configuration 89/27189/3
Kitae Kim [Sat, 6 Sep 2014 07:21:33 +0000 (16:21 +0900)]
configure: modify libav configuration

add --disable-libav option. in case of libav configure failure,
brillcodec module will not be compiled.

Change-Id: Ibdbd63ea57c22b02e3244d7d7441103d26e43ce8
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agobrillcodec: use parser APIs to fix broken images in case of mpegts. 08/26708/7
Kitae Kim [Thu, 28 Aug 2014 05:54:51 +0000 (14:54 +0900)]
brillcodec: use parser APIs to fix broken images in case of mpegts.

Some decoders are required to use parsers, especially mpeg2video
and parser APIs help them to fix broken frame issue.

Change-Id: I48d413bbd57fafd52db3e810313f308ced3d89e8
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agopackage: version up (2.0.9) 56/27156/1
jinhyung.jo [Fri, 5 Sep 2014 09:35:25 +0000 (18:35 +0900)]
package: version up (2.0.9)

maru_camera:
    Modified the query control logic
    Bug fix that missing fd close on error condition

Change-Id: I0e1584da43c3db4d579e22ea0907da6098409c67
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agomaru_camera: Modified the query control logic 55/27155/1
jinhyung.jo [Wed, 3 Sep 2014 09:43:40 +0000 (18:43 +0900)]
maru_camera: Modified the query control logic

Insert the prevent code for when queries default value of controls

Change-Id: I3f995645d0f4857e5e2a8d8873fd6eefb835e175
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agomaru_camera: Bug fix 54/27154/1
jinhyung.jo [Tue, 19 Aug 2014 08:16:33 +0000 (17:16 +0900)]
maru_camera: Bug fix

missing fd close on error condition

Change-Id: I9146550121654de8c70846edebcbd67690eac364
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
10 years agopackage: version up(2.0.8) 97/27097/1
sungmin ha [Thu, 4 Sep 2014 12:19:56 +0000 (21:19 +0900)]
package: version up(2.0.8)

up to 2.0.8

Change-Id: I5f51d8fd3daf6e79111ebbc3e05e7c9e43f0b2ab
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agospice-server: added auto port setting for tizen 01/27001/3
sungmin ha [Wed, 3 Sep 2014 06:12:57 +0000 (15:12 +0900)]
spice-server: added auto port setting for tizen

Change-Id: Ifff5499cbc30b2f5d6571d33881773bd1f131e34
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
10 years agopackage: version up(2.0.7) 09/26909/1
jinhyung.jo [Mon, 1 Sep 2014 09:23:02 +0000 (18:23 +0900)]
package: version up(2.0.7)

up to 2.0.7

Change-Id: Ifd210d8c78b01ececc56b1c4efcb46dacd5e06c4
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>