sdk/emulator/qemu.git
7 years agopackage: update version (2.6.11)
SeokYeon Hwang [Thu, 24 Nov 2016 07:45:56 +0000 (16:45 +0900)]
package: update version (2.6.11)

Change-Id: If1e22485f0054bdd81a88ebfc76e70421d190586
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoemul_state: choose vm_name specified in conf file
SeokYeon Hwang [Wed, 23 Nov 2016 05:59:52 +0000 (14:59 +0900)]
emul_state: choose vm_name specified in conf file

When "vm_name" that is specified in conf file is different from
image file name, we should choose "vm_name".

Change-Id: Ia234784142808bae787d12ac6d01377b14e4c2bc
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoscreenshot: change button icons
jihye [Thu, 17 Nov 2016 10:47:43 +0000 (19:47 +0900)]
screenshot: change button icons

Change-Id: Idc563dc37942826441e32109b83da0f8e37c3ed7
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agocontextmenu: change menu icon
jihye [Tue, 15 Nov 2016 07:38:31 +0000 (16:38 +0900)]
contextmenu: change menu icon

Change-Id: Ia4a8fe9c329cc382be65e8119b15627bc4cd13fe
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agodisplay: fix off-guide image issues
Jinhyung Jo [Fri, 11 Nov 2016 09:25:45 +0000 (18:25 +0900)]
display: fix off-guide image issues

The off-guide image does not scale and does not rotate
since "ui: reuse resource when it is reusable" commit has been applied.
Now showOffGuideImg() updates the geometry each time it is called.
And delete unnecessary code and clean up the off-guide image code.
The ancestor class of the QLabel, QWidget class, already has similar variable
and manipulation functions for the offGuideShown variable.

Change-Id: I5ae29e12ac2220842f312e3ae2d7cc0b19995d4c
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agohax: fix "hflags" synchronization problem
SeokYeon Hwang [Thu, 3 Nov 2016 13:07:55 +0000 (22:07 +0900)]
hax: fix "hflags" synchronization problem

CPUState synchronization should be done after MSR_EFER is updated.

Change-Id: I904564896d64ec9c31137cd5f2c47738ef2b79fd
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.6.10)
Munkyu Im [Tue, 8 Nov 2016 02:31:06 +0000 (11:31 +0900)]
package: update version (2.6.10)

Change-Id: I507823d8044939815bfe443a1e2832da319d9363
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agokeyboard: change the function to use
Jinhyung Jo [Fri, 4 Nov 2016 02:46:47 +0000 (11:46 +0900)]
keyboard: change the function to use

QMap::take(const Key &key) is more efficient.
Short description for take():
  "Removes the item with the key from the map
   and returns the value associated with it."
For more information, see 'http://doc.qt.io/qt-5/qmap.html#take'.
And the value function is a constant function.

Change-Id: Ibdaf578c6eef49ebfa8beb3a00fc61785e4b74ed
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoemulator: modify VM lock
Munkyu Im [Tue, 1 Nov 2016 07:09:12 +0000 (16:09 +0900)]
emulator: modify VM lock

check whether vm_launch.conf file exist.
skip making lock file if it's failed to create.

Change-Id: I2073d752e7fca9dfcce137b6ac0b6ecffcc0d05d
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoyagl: sync with CPUState on HAX
SeokYeon Hwang [Thu, 3 Nov 2016 11:09:08 +0000 (20:09 +0900)]
yagl: sync with CPUState on HAX

CPUState should contain some special register and state not only KVM but
also HAX. Especially, "HF_LMA_MASK" on hflags is very important flag for
walking page table on 64bit environments.

Change-Id: I432804d684c009de0a7c79d560f5a869918bb1a5
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agohax: sync with recent updates
SeokYeon Hwang [Thu, 3 Nov 2016 11:08:11 +0000 (20:08 +0900)]
hax: sync with recent updates

Some CPU state synchronization has been missing on HAX. So, some logics
are updated. This updates are refered to recent KVM sources and
Intel's updated sources.

Change-Id: I181a3c98076ab114575875f0f566e12db457e267
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoecs: handle device capabilities
Jinhyung Choi [Mon, 24 Oct 2016 06:36:22 +0000 (15:36 +0900)]
ecs: handle device capabilities

* capability values are set by emulator daemon
|-------|          |-----|           |---------|
| emuld | -------> | ECS | --------> | clients |
|-------|   set    |-----|  result   |---------|

* ECS stores the value and send it when ECP requests.
|-----|            |-----|           |---------|
| ECP | -------->  | ECS | --------> | clients |
|-----|  request   |-----|  result   |---------|

check sensor & nfc device status additionally.

Change-Id: Icebefa564f0263afff0f0e1b139335c7c6f2ba3d
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoemulator: "--conf" should be first argument
SeokYeon Hwang [Tue, 1 Nov 2016 00:58:25 +0000 (09:58 +0900)]
emulator: "--conf" should be first argument

"--conf" should be first argument. Do not proceed if it is not.
Print more kind usage if arguments are not valid.

Change-Id: Ifb62075f3b130974b4a54d5900289c66c772dabd
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoui: reuse resource when it is reusable
SeokYeon Hwang [Tue, 25 Oct 2016 02:27:12 +0000 (11:27 +0900)]
ui: reuse resource when it is reusable

Some resources are unique and reusable. So we do not "free" and
"new" them repeatedly.

Change-Id: I2c1c0c15b9162a9f0eed49ed209e7073a102d821
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoui: move Qt5 clean-up codes inside main()
SeokYeon Hwang [Tue, 25 Oct 2016 02:21:23 +0000 (11:21 +0900)]
ui: move Qt5 clean-up codes inside main()

Qt5 resource clean-up in exit handler cause several unexpected
behaviors include segmentation fault. So it is moved inside
main() function, then clean-up is done before main function exit.

Change-Id: I4f53d531261f376de869e9c286bd700f9acbf726
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.6.9)
Munkyu Im [Tue, 25 Oct 2016 09:32:22 +0000 (18:32 +0900)]
package: update version (2.6.9)

Change-Id: Icfae54729c6e7b68e65f3933c790c936af6eca35
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agonet: fix checking tap device
Munkyu Im [Tue, 25 Oct 2016 09:02:25 +0000 (18:02 +0900)]
net: fix checking tap device

nic[i]->peer value is null currently.

Change-Id: I4a4d4fcea1687ed1e924569b7321ef19f686c09f
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoemulator: tighten validation for conf file
SeokYeon Hwang [Tue, 25 Oct 2016 04:53:16 +0000 (13:53 +0900)]
emulator: tighten validation for conf file

Change-Id: Iaae354e0815a568a7685d430959e60f8e5b424b9
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version(2.6.8)
Sooyoung Ha [Thu, 13 Oct 2016 13:09:18 +0000 (22:09 +0900)]
package: update version(2.6.8)

Change-Id: I53e6e26d189819c39611b321f1fe6d7448e7aa2c
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoemulator: respawning when elevated
Munkyu Im [Thu, 13 Oct 2016 13:18:30 +0000 (22:18 +0900)]
emulator: respawning when elevated

In order to prevent potential elevation of privilege attack, lower
privilege processes can't interfere with higher privilege on Windows.
Emulator is usually launched by emulator manager that has high integrity
level, then drag-and-drop from Explorer (mostly medium integrity level)
does not work.

So, when emulator process has elevated integrity level, we try to
respawn emulator with medium integrity level.

Change-Id: I17f29e411252758098304ba25b60219d07aa0d7c
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoutil: modify backtrace feature for Windows
Jinhyung Jo [Tue, 11 Oct 2016 11:06:06 +0000 (20:06 +0900)]
util: modify backtrace feature for Windows

integrate the 32-bit & 64-bit implementation

Change-Id: I7540eeec080ba7fb3f10dcbba663dc4d677b8db9
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agodisplay: remove Qt::AA_X11InitThreads attribute
Jinhyung Jo [Wed, 5 Oct 2016 08:12:21 +0000 (17:12 +0900)]
display: remove Qt::AA_X11InitThreads attribute

The Qt::AA_X11InitThreads attribute is obsolete and has no effect.

Change-Id: I6b0373b08e80b056f7f2a49700f4e07ade366a42
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoscreenshot: fix abnormal exit issue
Jinhyung Jo [Wed, 5 Oct 2016 06:22:40 +0000 (15:22 +0900)]
screenshot: fix abnormal exit issue

If user close the emulator that have opened screenshot dialog,
the emulator becomes abnormal termination.

Change-Id: I0da1eac81ed575c8e1b13270246158a254ea4813
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agodisplay: change QMatrix to QTransform
Jinhyung Jo [Wed, 5 Oct 2016 06:15:30 +0000 (15:15 +0900)]
display: change QMatrix to QTransform

QMatrix class that we use for 2D transformation is obsolete.
QTransform is the recommended transformation class in Qt.

Change-Id: Ib4361575ac8fc519c4947ad927b3fa58b506a3a3
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agopackage: update version(2.6.7)
Jinhyung Jo [Wed, 5 Oct 2016 12:25:25 +0000 (21:25 +0900)]
package: update version(2.6.7)

Change-Id: I921963c6bc6feb7fd98a7d18bbbd4a5c9b76d2cc
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoutil: improve backtrace feature
Jinhyung Jo [Mon, 19 Sep 2016 11:04:13 +0000 (20:04 +0900)]
util: improve backtrace feature

improve & clean up the code:
  - correct coding convention
  - add backtrace feature to Mac OS X
    : remove #ifdef CONFIG_DARWIN ... #endif
      The 'backtarce' family functions first appeared in Mac OS X 10.5
  - modify the Windows code using the APIs in DbgHelp
  - change debug channel: from debug_ch to new_debug_ch
  - remove some lines like redundant/unclear/unwanted/etc.
  - modify output form

Change-Id: I8b57d996fa9daabf990932fcfb82e45a5e453636
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoRevert "display: move display functionality to Qt5 GUI"
Jinhyung Jo [Fri, 30 Sep 2016 12:14:32 +0000 (21:14 +0900)]
Revert "display: move display functionality to Qt5 GUI"

With AMD GPUs,
reverted commit makes a ciritical bug that GUI is invisible.

This reverts commit 99ffcba1997dade13316bd09023f93597db0f2df.

Conflicts:
    tizen/src/ui/displayglwidget.cpp
    tizen/src/ui/qt5_supplement.cpp

Change-Id: Ie5b4655bdf1beb228c788dd7dc874bb6f1cba63c
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agodisplay: fix display rotation failure
Jinhyung Jo [Fri, 30 Sep 2016 11:47:28 +0000 (20:47 +0900)]
display: fix display rotation failure

The degree 0(90) & degree 180(270) have same size of display.
For that reason,
the resize event does not occur when the rotate angle is changed.
So update the status of the rotate & scale before drawing.

Change-Id: I2092a45ad60e65d4ee14ed8bb66def210b28cc68
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agopackage: update version(2.6.6)
jihye [Wed, 28 Sep 2016 02:49:10 +0000 (11:49 +0900)]
package: update version(2.6.6)

Change-Id: Ided4434d646ffe0aaf21e7f451567cb06d512d41
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoMerge "osutil: adjust vm lock module" into develop
Jinhyung Choi [Wed, 28 Sep 2016 02:34:55 +0000 (11:34 +0900)]
Merge "osutil: adjust vm lock module" into develop

7 years agoabout dialog: remove ?(about) button
jihye [Tue, 27 Sep 2016 04:39:48 +0000 (13:39 +0900)]
about dialog: remove ?(about) button

Change-Id: I0041d77d293b7149a93321df2349697055a1dc7a
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoabout: change version from build version to platform version
jihye [Mon, 26 Sep 2016 09:19:00 +0000 (18:19 +0900)]
about: change version from build version to platform version

Change-Id: I4095209a97b751f51ce7c9696a98202399892493
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoosutil: adjust vm lock module
Munkyu Im [Mon, 26 Sep 2016 09:14:21 +0000 (18:14 +0900)]
osutil: adjust vm lock module

- move it to an earlier time.(early launching time)
- make the same lock file(vm.lock) on each host OS.

Change-Id: I80744500bf7c25c536061d2952f7f6552a0406f1
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agopackage: update version (2.6.5)
jihye424.kim [Thu, 22 Sep 2016 04:20:07 +0000 (13:20 +0900)]
package: update version (2.6.5)

Change-Id: I2e9b643c64e385b24f417d008a2440d491b46300
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agodetail dialog: temporarily remove shortcut info in mac
jihye424.kim [Wed, 21 Sep 2016 05:44:04 +0000 (14:44 +0900)]
detail dialog: temporarily remove shortcut info in mac

Change-Id: I5f2b6a8471699c963084e52e3ad0d499b37473c1
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agoui: add missing "break" statement
SeokYeon Hwang [Wed, 21 Sep 2016 04:40:04 +0000 (13:40 +0900)]
ui: add missing "break" statement

Change-Id: Iff825869360222d3beaf3d158de5121c7537b1e9
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version(2.6.4)
jihye424.kim [Wed, 21 Sep 2016 02:09:40 +0000 (11:09 +0900)]
package: update version(2.6.4)

Change-Id: I05290052483fc021d074c4e0529fae937773e177
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agoecs: separate cli vm searching
Jinhyung Choi [Tue, 20 Sep 2016 04:23:05 +0000 (13:23 +0900)]
ecs: separate cli vm searching

cannot find vm between old and later version by ecp cli
- old version: 2.3, 2.3.1
- later version: 2.3.2, 2.4, 3.0

Change-Id: I6833c03063573cb1329c74fce77cdafab12a5e58
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoecp-launch: launch .app file in mac os x
Minkee Lee [Mon, 12 Sep 2016 10:57:09 +0000 (19:57 +0900)]
ecp-launch: launch .app file in mac os x

In mac os x, launch ecp using 'open' command like following

  # open emulator-control-panel.app --args [params ...]

Change-Id: I9dbf1246decd5ef01272cce18a8841b103e311b1
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agodisplay: fix transparency bug
Jinhyung Jo [Mon, 19 Sep 2016 11:22:20 +0000 (20:22 +0900)]
display: fix transparency bug

If the alpha value of the color less than 1.0,
there is a issue that the desktop background is blended
on the offscreen mode. So fixed it.

Change-Id: Ic5c80aa7274a8ce6e9b433dc87e2581b0761619c
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agodetail dialog: remove ?(about) button
jihye424.kim [Tue, 20 Sep 2016 07:19:09 +0000 (16:19 +0900)]
detail dialog: remove ?(about) button

Change-Id: I26c70ba1b868b1a769a37cf973231dc764e78da7
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agonet: use https_proxy as ecp parameter
Munkyu Im [Mon, 12 Sep 2016 02:27:53 +0000 (11:27 +0900)]
net: use https_proxy as ecp parameter

Search box on location tab uses https protocol to communicate with map server.
To access to map server, need https_proxy value.

Change-Id: Ice4847644abc9939d4e7a5c16e10a224d66c5acd
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoMerge branch 'features/newscreen' into develop
Jinhyung Jo [Mon, 12 Sep 2016 05:29:16 +0000 (14:29 +0900)]
Merge branch 'features/newscreen' into develop

Conflicts:
tizen/src/ui/qt5_supplement.cpp

Change-Id: Icd310f98594684aa96142b1a7c1af767d3cb16c5
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agodisplay: add initialization option
Jinhyung Jo [Tue, 26 Jul 2016 07:45:42 +0000 (16:45 +0900)]
display: add initialization option

Add code to run with OpenGL Legacy Profile in Mac OS X.

Change-Id: I23967ccdd33d87d96df858460ceaa688b129d41e
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agodisplay: move display functionality to Qt5 GUI
Jinhyung Jo [Wed, 22 Jun 2016 10:32:42 +0000 (19:32 +0900)]
display: move display functionality to Qt5 GUI

Qt5 GUI paints final display with all processing, not in VIGS.
The followings are in this commit.
 - VIGS: remove the code about display rendering
 - VIGS: modify the code about onscreen rendering server
 - VIGS: add functions to delivery the texture id to Qt5 UI
 - Qt5 UI: change the deprecated classes to the new classes
 - Qt5 UI: add OpenGL rendering functionality
 - Qt5 UI: fix the transparent issue with OpenGL
 - Qt5 UI: bug fix caused by image formats
 - etc. : minor modifications

Change-Id: I39471237b5d526751fac95e9fe88f05f6939142c
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agotablet: fix unexpected termination issue
Jinhyung Jo [Mon, 5 Sep 2016 09:52:34 +0000 (18:52 +0900)]
tablet: fix unexpected termination issue

'Null Pointer Dereference' occurs, the emulator dies unexpectedly.
It is caused by commit f998ca30b51b5c549898763d4bd5041380a60416.
The committer have made a mistake when applying the virtio API modification.
The virtio API has been changed as follows:
    previous: int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem)
    current: void *virtqueue_pop(VirtQueue *vq, size_t sz)

Change-Id: I2c5a20c2741633f855ab0128f7e4dd989404b2b2
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agomonitor: avoid clang shifting negative signed warning
Jinhyung Jo [Wed, 31 Aug 2016 08:30:50 +0000 (17:30 +0900)]
monitor: avoid clang shifting negative signed warning

clang 3.7.0 on x86_64 warns about the following:

  target-i386/monitor.c:38:22: warning: shifting a negative signed value is
undefined [-Wshift-negative-value]
        addr |= -1LL << 48;
                ~~~~ ^

Change-Id: I0885a0fbadc0273b09e58ef756fea34208ca7230
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoRevert "yagl: fix the display broken issue"
Vasiliy Ulyanov [Wed, 24 Aug 2016 12:12:32 +0000 (15:12 +0300)]
Revert "yagl: fix the display broken issue"

This reverts commit fcc44797b6faa635424e142a10870370948ee57d.

Currently tizen 2.4 platform does not include the patches needed for 64
bit addresses support in yagl package. Until it is fixed, there is a
need to handle two host/target communication protocol versions at qemu
side. In order to avoid modification of autogenerated files, the
function yagl_transport_get_out_uintptr_t now takes care of different
pointer sizes.

In general, this patch does not completely fix the compatibility problem
with various platfrom versions. I.e. if more API calls are added, there
is a need to make sure they are appended at the end of the funcs array
and the existing calls preserve their ID numbers. Otherwise backward
compatibility will be broken.

Change-Id: I9bb3c118d44f46d72c87d90c08aa34b85d4ab008
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
7 years agovirtio: rewrite with new virtio API
Sooyoung Ha [Tue, 16 Aug 2016 09:33:23 +0000 (18:33 +0900)]
virtio: rewrite with new virtio API

Change-Id: I935332a83e44f49ddb3fc5717b3da7a68b953e88
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: update version (2.6.3)
SeokYeon Hwang [Tue, 23 Aug 2016 06:42:16 +0000 (15:42 +0900)]
package: update version (2.6.3)

Change-Id: I69d103e682574fcb9b2b0198844d38834d3b3e5c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoinput: fix null pointer dereference before device realizing
SeokYeon Hwang [Tue, 23 Aug 2016 06:38:51 +0000 (15:38 +0900)]
input: fix null pointer dereference before device realizing

Change-Id: Ic988464da57ab65509eb28ea53effd23c1e54d73
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.6.2)
SeokYeon Hwang [Mon, 22 Aug 2016 06:53:41 +0000 (15:53 +0900)]
package: update version (2.6.2)

Change-Id: I72e9e08a049f5a0059a662f2f171f1634e92526c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agobuild: remove kvm module
Munkyu Im [Sat, 20 Aug 2016 08:07:32 +0000 (17:07 +0900)]
build: remove kvm module

It is moved to emulator-supplements package.

Change-Id: I6b4861e4ff9dd7117948fbe8d1f4be2ea4c0b2c7
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agolinuxboot: fix loading old kernels
Paolo Bonzini [Thu, 11 Dec 2014 01:17:03 +0000 (02:17 +0100)]
linuxboot: fix loading old kernels

Old kernels that used high memory only allowed the initrd to be in the
first 896MB of memory.  If you load the initrd above, they complain
that "initrd extends beyond end of memory".

In order to fix this, while not breaking machines with small amounts
of memory fixed by cdebec5 (linuxboot: compute initrd loading address,
2014-10-06), we need to distinguish two cases.  If pc.c placed the
initrd at end of memory, use the new algorithm based on the e801
memory map.  If instead pc.c placed the initrd at the maximum address
specified by the bzImage, leave it there.

The only interesting part is that the low-memory info block is now
loaded very early, in real mode, and thus the 32-bit address has
to be converted into a real mode segment.  The initrd address is
also patched in the info block before entering real mode, it is
simpler that way.

This fixes booting the RHEL4.8 32-bit installation image with 1GB
of RAM.

Cc: qemu-stable@nongnu.org
Cc: mst@redhat.com
Cc: jsnow@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 269e2358492b674c50160553d037702e916b9f1b)

Change-Id: I0f461f04c0a7f97dc23dc7436f98a90ac3812a20
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: update version (2.6.1)
jihye424.kim [Fri, 19 Aug 2016 02:40:26 +0000 (11:40 +0900)]
package: update version (2.6.1)

Change-Id: I8f84bc367a2c27b1401edf0e308d0e3af6206b67
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agoicon: change emulator icon
jihye424.kim [Fri, 19 Aug 2016 01:24:31 +0000 (10:24 +0900)]
icon: change emulator icon

Change-Id: I6b7c64dac27eca54eb5664f68f31bc861c98ec6b
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agonet: modify sdb connection
Munkyu Im [Tue, 16 Aug 2016 10:37:49 +0000 (19:37 +0900)]
net: modify sdb connection

- change the sleeping time efficiently.
- disable stderr from log by using redirection.

Change-Id: I542fe588ed468293f724acf8f1679c17f2c9f878
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agocoreaudio: implement audio-in
Seokyeon Hwang [Wed, 17 Aug 2016 08:56:23 +0000 (17:56 +0900)]
coreaudio: implement audio-in

Change-Id: I7b7c91d24444b7e772846b0a0c64fcf677cad74d
Signed-off-by: Seokyeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.6.0)
Munkyu Im [Mon, 8 Aug 2016 08:31:08 +0000 (17:31 +0900)]
package: update version (2.6.0)

Change-Id: I7c58320db5968a1194e2ec7e313af87aaf6d8d97
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agovmodem: fix null referencing error
Sooyoung Ha [Wed, 10 Aug 2016 15:26:34 +0000 (00:26 +0900)]
vmodem: fix null referencing error

Change-Id: I4e050c932ff2d0b83985219c3b3fb2603327e16e
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoecs: fix socket write error on Windows
Jinhyung Choi [Wed, 10 Aug 2016 12:34:16 +0000 (21:34 +0900)]
ecs: fix socket write error on Windows

Posix API write() does not work properly,
so it is changed send().

Change-Id: I4ac7c8a725326bb419fb4494d09400381c5583d0
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoecs: add vminfo command for ECP CLI
Jinhyung Choi [Tue, 9 Aug 2016 03:00:55 +0000 (12:00 +0900)]
ecs: add vminfo command for ECP CLI

Emulator Control Panel CLI is moved to common tools directory.
Profile and version information is necessary to run it.

Change-Id: I79983dd6302396a8be4bc3307217aec63e9ea5dd
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoecp: fix some issues during launching ECP
SeokYeon Hwang [Wed, 10 Aug 2016 04:56:18 +0000 (13:56 +0900)]
ecp: fix some issues during launching ECP

Hide new allocated console and enhance error reporting.

Change-Id: Ife12cae1199baaf8bdb584490574562555d3df64
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agodnd: change dropping action for the installable file
Munkyu Im [Fri, 5 Aug 2016 06:39:18 +0000 (15:39 +0900)]
dnd: change dropping action for the installable file

Shows selection dialog to choose pushing, installing, or cancelling the
installable file.

Change-Id: I4431b83f17105bef60028d58f27b9351a048194e
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoMerge branch 'develop_qemu_2.6' into develop
SeokYeon Hwang [Mon, 8 Aug 2016 08:16:43 +0000 (17:16 +0900)]
Merge branch 'develop_qemu_2.6' into develop

Change-Id: I3cc654e938834434ef4a9662b1066430a97dc35a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoecp: wrap launcher to launch ecp on Windows
Munkyu Im [Thu, 4 Aug 2016 05:38:21 +0000 (14:38 +0900)]
ecp: wrap launcher to launch ecp on Windows

Change-Id: I1592ba1a09a76e3989684e7f7b3451f8ee9b7079
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agobuild: fix compilation error for new modules
SeokYeon Hwang [Thu, 4 Aug 2016 09:09:28 +0000 (18:09 +0900)]
build: fix compilation error for new modules

Change-Id: I5211b3428af3b5bfe0f06fb12faad889f76a351a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoMerge branch 'develop' into develop_qemu_2.6
SeokYeon Hwang [Thu, 4 Aug 2016 06:25:20 +0000 (15:25 +0900)]
Merge branch 'develop' into develop_qemu_2.6

7 years agopackage: update version (2.5.17)
SeokYeon Hwang [Fri, 29 Jul 2016 05:31:49 +0000 (14:31 +0900)]
package: update version (2.5.17)

Change-Id: I72e19ffd0b2d5d876781b660b011f9b387abb243
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agosensor: modify initial value of pedometer
Sooyoung Ha [Fri, 29 Jul 2016 02:24:42 +0000 (11:24 +0900)]
sensor: modify initial value of pedometer

The pedometer sensor is disabled by default. The sensor framework will
enable if it is available.

Change-Id: I0e1546e86a11b5f09a2869951ea8ad6dd2054b4a
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agosensor: add pedometer sensor device
Sooyoung Ha [Sun, 10 Jul 2016 09:02:07 +0000 (18:02 +0900)]
sensor: add pedometer sensor device

Change-Id: I4bf3bf11a0942e82f5bdd371d066864f6a2c8be8
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agotuner: add maru_tuner
TaeHyeong Lee [Thu, 14 Jul 2016 01:34:45 +0000 (10:34 +0900)]
tuner: add maru_tuner

Change-Id: Icaf347d674bf8e9893ebcb3a521fbd3dcf007c5a
Signed-off-by: TaeHyeong Lee <time.lee@samsung.com>
7 years agoMerge branch 'develop' into develop_qemu_2.6
SeokYeon Hwang [Tue, 26 Jul 2016 04:20:54 +0000 (13:20 +0900)]
Merge branch 'develop' into develop_qemu_2.6

Change-Id: Iedd4489f6321fa251bd7cbe917e258cd1f60f21d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.5.16)
SeokYeon Hwang [Tue, 26 Jul 2016 02:40:20 +0000 (11:40 +0900)]
package: update version (2.5.16)

Change-Id: Ifeee955ceda2c877559af037a84d76b6528d4bc7
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoecp: find new commonized ECP in Windows
SeokYeon Hwang [Tue, 26 Jul 2016 02:14:45 +0000 (11:14 +0900)]
ecp: find new commonized ECP in Windows

Change-Id: Ia1d800b0ba5d7403d98ab4371c2b76b894ed2094
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.5.15)
Sooyoung Ha [Tue, 19 Jul 2016 05:38:18 +0000 (14:38 +0900)]
package: update version (2.5.15)

Change-Id: Id42bd5bd94270d7735712bc62a2e107a2c7eb423
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agolog: modify trivial log printing level
Sooyoung Ha [Mon, 18 Jul 2016 03:15:57 +0000 (12:15 +0900)]
log: modify trivial log printing level

This message is used for running CLI test.

Change-Id: Ifd0610386cfa18daf646b3f23a57a67f691680f6
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoecp: new ECP move to tools path
SeokYeon Hwang [Mon, 18 Jul 2016 05:51:31 +0000 (14:51 +0900)]
ecp: new ECP move to tools path

Change-Id: I50a60f1fd4382094a4aa72d79068383c8b09df76
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.5.14)
SeokYeon Hwang [Tue, 12 Jul 2016 02:47:31 +0000 (11:47 +0900)]
package: update version (2.5.14)

Change-Id: I103dd177131bf5ac7b7fd63796cd614da5603058
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoecp: prepare to launch new ecp
SeokYeon Hwang [Mon, 11 Jul 2016 06:15:34 +0000 (15:15 +0900)]
ecp: prepare to launch new ecp

Change-Id: Iea134b63272f0c25cd37666acafd2b42ea6de6ae
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agovigs: add vblank emulation for headless emulator
SeokYeon Hwang [Fri, 8 Jul 2016 11:36:33 +0000 (20:36 +0900)]
vigs: add vblank emulation for headless emulator

Change-Id: Iac85fa67399b51890bfb54c37698f56f2ef40468
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoinput: remove deadlock occured by missing mutex unlock
SeokYeon Hwang [Sun, 10 Jul 2016 11:01:20 +0000 (20:01 +0900)]
input: remove deadlock occured by missing mutex unlock

Change-Id: I06a2ac4437085e959be84f1c465a067a8a457ec2
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoui: clean-up logging for Qt5 UI
SeokYeon Hwang [Sun, 10 Jul 2016 11:04:40 +0000 (20:04 +0900)]
ui: clean-up logging for Qt5 UI

Change-Id: I98436a9f75c8c639ea05289641df09f4383d7e2d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agovirtfs: enable virtfs for qemu 2.6
Sooyoung Ha [Wed, 6 Jul 2016 06:37:19 +0000 (15:37 +0900)]
virtfs: enable virtfs for qemu 2.6

Change-Id: I1b290381a46b7170dc0d356dd96df8defc97ef93
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoui: remove local change that is applied upstream
SeokYeon Hwang [Fri, 8 Jul 2016 11:38:00 +0000 (20:38 +0900)]
ui: remove local change that is applied upstream

Change-Id: Ia9d027c2f4d28f8725601a94c55a90f658582538
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoMerge branch 'develop' into features/newscreen
Jinhyung Jo [Thu, 7 Jul 2016 11:18:29 +0000 (20:18 +0900)]
Merge branch 'develop' into features/newscreen

Change-Id: Ie67dad5a116cad223ef14a5bab2553b4a7c8dd34
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agopackage: update version (2.5.13)
Munkyu Im [Thu, 7 Jul 2016 06:02:22 +0000 (15:02 +0900)]
package: update version (2.5.13)

Change-Id: I1888298dc732259fe758dcb865dd75e28501f36a
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoMerge branch 'develop' into develop_qemu_2.6
SeokYeon Hwang [Wed, 6 Jul 2016 06:04:32 +0000 (15:04 +0900)]
Merge branch 'develop' into develop_qemu_2.6

Change-Id: Id31ceffdbfe8938ea70a11f904fb38e2c4732dd0
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: make it buildable on Windows and MacOSX
SeokYeon Hwang [Sat, 2 Jul 2016 06:07:15 +0000 (15:07 +0900)]
package: make it buildable on Windows and MacOSX

VIRTFS is disabled temporarily. It is work again soon.

Change-Id: Ifa8ced8577e78c1cea8dbf314aedb4b33bfb2528
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: update version (2.5.12)
jihye424.kim [Mon, 4 Jul 2016 08:13:36 +0000 (17:13 +0900)]
package: update version (2.5.12)

Change-Id: Ifab9105245166f2c188fe7dab3b89edd4eafb2d1
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agoskin: remove extra space for mac os
jihye424.kim [Mon, 4 Jul 2016 05:57:26 +0000 (14:57 +0900)]
skin: remove extra space for mac os

Change-Id: Iaf078d1f89333f096470047174a9c55b98b52407
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agopackage: update version (2.5.11)
Sooyoung Ha [Tue, 28 Jun 2016 02:26:26 +0000 (11:26 +0900)]
package: update version (2.5.11)

Change-Id: Id016bf86be3b9dc60de36d44e738433c3b12bbff
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: add comma between prerequisite packages
Sooyoung Ha [Tue, 28 Jun 2016 02:06:15 +0000 (11:06 +0900)]
package: add comma between prerequisite packages

Change-Id: I3a2fd5fe6621b76e561beecc6181f22fe836e34a
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: update version(2.5.10)
jihye424.kim [Mon, 27 Jun 2016 02:21:39 +0000 (11:21 +0900)]
package: update version(2.5.10)

Change-Id: I7673bf85f45f8418e64d04c2e0be3db0fcf9b6c6
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agonet_helper: fix bugs in D&D logics
SeokYeon Hwang [Sat, 25 Jun 2016 12:35:07 +0000 (21:35 +0900)]
net_helper: fix bugs in D&D logics

Local variable that is char[] type should be initialize with NULL char.
Unnecessary global variable is removed. And, now we can provide D&D
features even if we cannot identify default user home directory.
(At the time, we will use "/tmp" directory as a default.)

Change-Id: I365e782771982700e0096c076603c7d655fa7e55
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoesm: rewrite with new virtio API
SeokYeon Hwang [Tue, 21 Jun 2016 03:17:38 +0000 (12:17 +0900)]
esm: rewrite with new virtio API

Change-Id: Ic0ab82d0fb256d836626ccbfc874929680755f1a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoinput: rotary device move into maru_virtio_input
SeokYeon Hwang [Thu, 23 Jun 2016 04:18:47 +0000 (13:18 +0900)]
input: rotary device move into maru_virtio_input

Change-Id: I0c9bbb0e5f92b13dd05539333c2a0155884bf3a9
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoinput: introduce maru_virtio_input
SeokYeon Hwang [Tue, 21 Jun 2016 13:49:20 +0000 (22:49 +0900)]
input: introduce maru_virtio_input

"maru_virtio_input" contains touchscreen, keyboard, hwkey now.
"rotary" will be added soon.

Change-Id: I6a8983e8d7e6e78489ec06d77497042f85d823d7
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoskin: change default number of hw button to 6 from 4
jihye424.kim [Thu, 23 Jun 2016 05:22:48 +0000 (14:22 +0900)]
skin: change default number of hw button to 6 from 4

Change-Id: I14dee69cd1713d220c1d514b720386514411d09d
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agopackage: update emulator prerequisite packages
Sooyoung Ha [Fri, 17 Jun 2016 10:40:19 +0000 (19:40 +0900)]
package: update emulator prerequisite packages

Change-Id: Iaf1177308913939a7098cb99346d06974b4a003b
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>