sdk/emulator/qemu.git
7 years agoecs: set earjack & usb value before passing to emuld 31/151631/3
jinh0.choi [Thu, 21 Sep 2017 09:45:28 +0000 (18:45 +0900)]
ecs: set earjack & usb value before passing to emuld

Change-Id: Id83b7fcdb80be9c02db0d54dbfaf7af8db80f83a
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agopackage: update version (2.8.0.12) 07/151507/1
jinh0.choi [Thu, 21 Sep 2017 06:14:32 +0000 (15:14 +0900)]
package: update version (2.8.0.12)

Change-Id: If34db9787582a48a31ad7fea7a6bffb74b713168
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agosdcard: support vfat sdcard since tizen 3.0 06/151506/1
jinh0.choi [Thu, 21 Sep 2017 06:12:52 +0000 (15:12 +0900)]
sdcard: support vfat sdcard since tizen 3.0

Change-Id: I12309b3b85ad71bf2418ac4eb85b6a6092490403
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agopackage: update version (2.8.0.11) 38/147738/1
Munkyu Im [Tue, 5 Sep 2017 10:38:12 +0000 (19:38 +0900)]
package: update version (2.8.0.11)

Change-Id: I8fd8c2c347690a861a13ed98db2bf7fe604b215c
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agonet: add checking device state before run command 16/146316/2
Munkyu Im [Mon, 28 Aug 2017 04:54:06 +0000 (13:54 +0900)]
net: add checking device state before run command

If device state is "device", run sdb command.

Change-Id: I8ee09a24e07514613f899ec012eac2dea376846c
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agopackage: update version (2.8.0.10) 88/147188/2
Jinhyung Jo [Fri, 1 Sep 2017 09:32:58 +0000 (18:32 +0900)]
package: update version (2.8.0.10)

Change-Id: I36e6eae74f78ad4914788db82a25e831b6580354
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoVIGS: Implement hardware surface convertion cmd 57/146257/1
Vladislav Andresov [Wed, 16 Aug 2017 13:11:24 +0000 (16:11 +0300)]
VIGS: Implement hardware surface convertion cmd

Currently it is used only to y-invert surfaces. Proper format conversion
is still to be implemented later.

Change-Id: I07aa288d67d411bdb710d0255824883dabe378e9
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
7 years agopackage: update version (2.8.0.9) 95/146095/1
jinh0.choi [Fri, 25 Aug 2017 02:42:56 +0000 (11:42 +0900)]
package: update version (2.8.0.9)

Change-Id: I1b66d65b57bdb627effa3f9ce5a7ee42dc0282f2
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agoextra: add condition for package duplication 89/145889/1
jinh0.choi [Thu, 24 Aug 2017 06:49:18 +0000 (15:49 +0900)]
extra: add condition for package duplication

Change-Id: I5cf81dfbced86d06549c5aece3074203f30c81a1
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agopackage: update versiont(2.8.0.8) 53/145353/1
jihye424.kim [Tue, 22 Aug 2017 06:16:28 +0000 (15:16 +0900)]
package: update versiont(2.8.0.8)

Change-Id: I786a528b194a200164ab4f4d7f0921aa54ecd05b
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agoskin: delete skin package from qemu 15/145115/3
jihye424.kim [Mon, 21 Aug 2017 09:12:46 +0000 (18:12 +0900)]
skin: delete skin package from qemu

- move skin package to emulator-resources

Change-Id: Ia492eb723bff24513c81059fdac524470b6d6a29
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
7 years agodistrib: change protobuf-c header path 37/145137/1
jinh0.choi [Mon, 21 Aug 2017 10:36:12 +0000 (19:36 +0900)]
distrib: change protobuf-c header path

Change-Id: I3069edd6f05b09f434adb84830e668c7b1f6b908
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agodistrib: change newer protobuf-c that is BSD license 27/143527/1
jinh0.choi [Thu, 10 Aug 2017 08:28:24 +0000 (17:28 +0900)]
distrib: change newer protobuf-c that is BSD license

Change-Id: I65eac6eb36aa8f9e9c1bd212e3b4ee4cdda2f99e
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agopackage: update version (2.8.0.7) 20/143220/1
jinh0.choi [Wed, 9 Aug 2017 06:17:15 +0000 (15:17 +0900)]
package: update version (2.8.0.7)

Change-Id: I83f66993fff20f9390c21fc67694cd71128e2551
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agoecs: change host address data type to INADDR_ANY 18/143218/2
jinh0.choi [Wed, 9 Aug 2017 06:14:42 +0000 (15:14 +0900)]
ecs: change host address data type to INADDR_ANY

Change-Id: Ic08e5e35897a0c7a531fe85eadf2afaf6f219111
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
7 years agoMerge spin into tizen
SeokYeon Hwang [Wed, 28 Jun 2017 07:20:50 +0000 (16:20 +0900)]
Merge spin into tizen

Change-Id: I00f8d0dbf2d26f3c9c6754b9f1d986355037f5bb

7 years agopackage: update version (2.8.0.6)
Munkyu Im [Wed, 31 May 2017 04:41:21 +0000 (13:41 +0900)]
package: update version (2.8.0.6)

Change-Id: I01dc0b9195d336a58b16526bf0c16d7fd3b4a59b
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoinstall: add checking mount system for rpm file
Munkyu Im [Sun, 28 May 2017 08:44:03 +0000 (17:44 +0900)]
install: add checking mount system for rpm file

User cannot install rpm file under read only root file system.
In this case, shows warning message.

Change-Id: I530c5c585301f8796e35d025cdf6c8d6a3d0051b
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agopackage: update version (2.8.0.5)
Minkee Lee [Tue, 16 May 2017 03:50:45 +0000 (12:50 +0900)]
package: update version (2.8.0.5)

Change-Id: I9de792b2d022adf77a9f5dab2ac94c5f70af1722
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agoconfigure: modify configure for recent macOS
SeokYeon Hwang [Mon, 15 May 2017 04:58:33 +0000 (13:58 +0900)]
configure: modify configure for recent macOS

Change-Id: I8fb928f2de4f7168b27faedac02a0d2c37585666
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.8.0.4)
Minkee Lee [Mon, 10 Apr 2017 05:39:52 +0000 (14:39 +0900)]
package: update version (2.8.0.4)

Change-Id: Id18d29045cd238a2216d927baa9d9bcef28580b4
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agoskin: change TV skin
Minkee Lee [Mon, 10 Apr 2017 05:35:46 +0000 (14:35 +0900)]
skin: change TV skin

Change-Id: Ib19904d4fb512f92937f37564c809313a7ea43e6
Signed-off-by: Changseok, Oh <seok.oh@samsung.com>
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agopackage: update version (2.8.0.3)
Minkee Lee [Tue, 21 Mar 2017 07:48:19 +0000 (16:48 +0900)]
package: update version (2.8.0.3)

Change-Id: I3669629ca9638e85804cc15543abd3066a6d8fe0
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agosdb shell: replace (") charater to (')
jihye [Thu, 16 Mar 2017 07:55:16 +0000 (16:55 +0900)]
sdb shell: replace (") charater to (')

- ! is history expansion in bash
-- use single quotes (')
-- backslash(\) before the ! character
-- turn off history expansion (set +H)

Change-Id: I24158dac50d1b83853fbcbfdf9c307691b79ae7f
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: find event of menu button from list of context menu
jihye [Sat, 11 Mar 2017 10:34:16 +0000 (19:34 +0900)]
skin: find event of menu button from list of context menu

- before: only four menus could be set
- after: any menu is available

Change-Id: Ia4e14009ab260909eaacf9325c8baad53aa084bf
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: control size of controller window
jihye [Sat, 11 Mar 2017 06:58:19 +0000 (15:58 +0900)]
skin: control size of controller window

- if increases the number of buttons, window extended horizontally

Change-Id: Ib21c19ca3ff0bed6c53bc127b31eada4dd4d48a1
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agosdcard: remove wrong encoding on Windows
Munkyu Im [Tue, 14 Mar 2017 12:57:18 +0000 (21:57 +0900)]
sdcard: remove wrong encoding on Windows

sdcard path is already encoded by system encoding.
So, these is no need to encode twice.

Change-Id: Ie4a442bc6ba76e28f427b7f316a92a99eb634639
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agopackage: update version (2.8.0.2)
Jinhyung Jo [Mon, 6 Mar 2017 10:10:00 +0000 (19:10 +0900)]
package: update version (2.8.0.2)

Change-Id: Ie4b20569c5abed5578e8c0c4063473c4ff167405
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agopackage: unify packaging regardless of version
Jinhyung Jo [Fri, 3 Mar 2017 08:07:15 +0000 (17:07 +0900)]
package: unify packaging regardless of version

Change-Id: Ia2c969c6d5da5fcf4b1b90f125a8d4c5530a128d
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoskin: add outer, border, inner line and header color bar
jihye [Thu, 16 Feb 2017 11:54:11 +0000 (20:54 +0900)]
skin: add outer, border, inner line and header color bar

Change-Id: I5d781d0a5b704d097147c4fb000ba297dcf79970
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agocontext: support unicode log for launching ECP
Jinhyung Choi [Wed, 15 Feb 2017 05:31:41 +0000 (14:31 +0900)]
context: support unicode log for launching ECP

Change-Id: I5a781f7010e404d97f4a3c36ed976f4e54ff9f5e
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoskin: add color bar and border to controller
jihye [Wed, 15 Feb 2017 09:45:22 +0000 (18:45 +0900)]
skin: add color bar and border to controller

- change default position from center to top

Change-Id: Ia3f431f8be5416f4bc543251102a43c808d79c70
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: change default button image
jihye [Wed, 15 Feb 2017 08:12:06 +0000 (17:12 +0900)]
skin: change default button image

Change-Id: I5c5e082690616cda952c1a0e2f1f9607707db551
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agosdcard: re-organize attach/detach sdcard
Munkyu Im [Mon, 6 Feb 2017 12:12:21 +0000 (21:12 +0900)]
sdcard: re-organize attach/detach sdcard

 - QPI rules are changed.
from commit 9ec8873e684c2dae6fadb3a801057c613ccd2a6b,
"node-name" becomes mandatory and "id" is removed.
"id" is necessary to search attached sdcard.
To do it, should use blk_new_open() which returns BlockBackend pointer.
And this value is set as an argument  of monitor_add_blk().

from commit 0153d2f50bc2ad3f41810d838fcf66acbf10f07a,
"options" is removed.
 - modify method of adding/removing block device.
 - add some error handlings.

Change-Id: I7230c8f6a116eed5dc71e1c85d8ad162c4581d59
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoosutil: use system encoding on Windows
Munkyu Im [Wed, 15 Feb 2017 03:18:53 +0000 (12:18 +0900)]
osutil: use system encoding on Windows

For unicode or other encodings,
set as system encoding when use CreateFile()

Change-Id: I99399e4bdfb871efbebbd9665d5b04c8d24c8c51
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoui: change about dialog
jihye [Thu, 5 Jan 2017 10:58:48 +0000 (19:58 +0900)]
ui: change about dialog

Change-Id: Ic28c8e109bd6517cf71d7b6fb9caf16161087d2b
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: check that image file of H/W button exist or not
jihye [Wed, 1 Feb 2017 04:58:30 +0000 (13:58 +0900)]
skin: check that image file of H/W button exist or not

- privite image file: if image file exist in controller directory of skin
- default image file: if image file not exist

Change-Id: Ide0e45db1f232a6c12bfb14721a668b129bab90d
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: apply new general skin
jihye [Thu, 8 Dec 2016 06:49:54 +0000 (15:49 +0900)]
skin: apply new general skin

- separate sources of general skin and phone shape skin

Change-Id: I4447536e17a3ed7fb6f62d5d8e165a785f20e598
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: make menu key button
jihye [Mon, 28 Nov 2016 06:26:28 +0000 (15:26 +0900)]
skin: make menu key button

Change-Id: Ib98325f540a27db085169d855d61cbac2d2cec11
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agoskin: change H/W key button from text button to image button
jihye [Thu, 17 Nov 2016 09:29:07 +0000 (18:29 +0900)]
skin: change H/W key button from text button to image button

- remove scroll bar

Change-Id: I5541caf83662895750651e5512b890334345c31c
Signed-off-by: jihye <jihye424.kim@samsung.com>
7 years agopackage: update version (2.8.0.1)
SeokYeon Hwang [Tue, 24 Jan 2017 05:13:55 +0000 (14:13 +0900)]
package: update version (2.8.0.1)

Change-Id: I3a8daa39551d8b3b31614f9576e82934a015781c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoMerge branch 'develop_qemu_2.8' into develop
SeokYeon Hwang [Mon, 23 Jan 2017 06:15:42 +0000 (15:15 +0900)]
Merge branch 'develop_qemu_2.8' into develop

Change-Id: I7572dfc375294b199409c05e411e996f7d3b201b
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.6.18)
Munkyu Im [Mon, 2 Jan 2017 09:48:11 +0000 (18:48 +0900)]
package: update version (2.6.18)

Change-Id: I7763e47db56b19683ff52d2e5237a323702c4dab
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoecs: separate package file path by platform version
Munkyu Im [Mon, 2 Jan 2017 07:55:16 +0000 (16:55 +0900)]
ecs: separate package file path by platform version

The old path does not work on tizen 3.0.
So, change the path to push package file.

For tizen 2.XX: /opt/usr/apps/tmp/sdk_tools/
For the others(including tizen 3.XX): /tmp/.emulator/apps/

Change-Id: Ide6d328ff024c286c1820a13c3720f8f1362a2b7
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years ago9pfs: enable 9pfs on Windows and Macos for 2.8
Sooyoung Ha [Tue, 20 Dec 2016 07:41:29 +0000 (16:41 +0900)]
9pfs: enable 9pfs on Windows and Macos for 2.8

I modify the maru defined codes of 9pfs for applying qemu 2.8 upgrade.

Change-Id: I6746a73de8f66b6ca1940c09a001d6ee6c21562a
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agohax: change run_on_cpu() arguments
SeokYeon Hwang [Wed, 21 Dec 2016 09:27:49 +0000 (18:27 +0900)]
hax: change run_on_cpu() arguments

Change-Id: I8d389ee650b986e1ea522c7a623beb69ed225e2d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoecs: fix ecs monitor to work properly
Jinhyung Choi [Tue, 20 Dec 2016 10:19:57 +0000 (19:19 +0900)]
ecs: fix ecs monitor to work properly

Change-Id: I6a0275cec1253c35a2058e8627f8076a0b183653
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agovirtfs: remove build break ifdef w/ --diable-virtfs
Jinhyung Choi [Tue, 20 Dec 2016 10:12:20 +0000 (19:12 +0900)]
virtfs: remove build break ifdef w/ --diable-virtfs

Change-Id: I1c5ccd16b7cff27582ca28acf3e2b29978729db2
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoMerge tag 'v2.8.0' into develop_qemu_2.8
SeokYeon Hwang [Wed, 21 Dec 2016 09:02:10 +0000 (18:02 +0900)]
Merge tag 'v2.8.0' into develop_qemu_2.8

v2.8.0 release

7 years agoerror_handler: unify stack walking logic
SeokYeon Hwang [Wed, 21 Dec 2016 04:27:49 +0000 (13:27 +0900)]
error_handler: unify stack walking logic

Change-Id: I5c82ecd08085af25b560f3c57b4abbc974f42e3d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agoUpdate version for v2.8.0 release
Stefan Hajnoczi [Tue, 20 Dec 2016 16:16:42 +0000 (16:16 +0000)]
Update version for v2.8.0 release

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agopackage: update version (2.6.17)
Munkyu Im [Tue, 20 Dec 2016 05:26:37 +0000 (14:26 +0900)]
package: update version (2.6.17)

Change-Id: Ifb0828690d6b72212d3a686d6afc75afcba9b832
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agoMerge tag 'v2.8.0-rc4' into develop
SeokYeon Hwang [Tue, 20 Dec 2016 01:13:15 +0000 (10:13 +0900)]
Merge tag 'v2.8.0-rc4' into develop

v2.8.0-rc4 release

Change-Id: I0158b5078d1af545dc32a51f10d2f8f0b96543a6
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agopackage: update version (2.6.16)
Jinhyung Choi [Fri, 16 Dec 2016 03:16:33 +0000 (12:16 +0900)]
package: update version (2.6.16)

Change-Id: I2de545484ad08e03219232fd68c784bb43b40d4d
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agoUpdate version for v2.8.0-rc4 release
Stefan Hajnoczi [Thu, 15 Dec 2016 07:36:03 +0000 (07:36 +0000)]
Update version for v2.8.0-rc4 release

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agovirtio-pci: Fix cross-version migration with older machines
Maxime Coquelin [Wed, 14 Dec 2016 16:30:35 +0000 (17:30 +0100)]
virtio-pci: Fix cross-version migration with older machines

This patch fixes a cross-version migration regression introduced
by commit d1b4259f ("virtio-bus: Plug devices after features are
negotiated").

The problem is encountered when host's vhost backend does not support
VIRTIO_F_VERSION_1, and migration is initiated from a v2.7 or prior
machine with virtio-pci modern capabilities enabled to a v2.8 machine.

In this case, modern capabilities get exposed to the guest by the source,
whereas the target will detect version 1 is not supported so will only
expose legacy capabilities.

The problem is fixed by introducing a new "x-ignore-backend-features"
property, which is set in v2.7 and prior compatibility modes. Doing this,
v2.7 machine keeps its broken behaviour (enabling modern while version
is not supported), and newer machines will behave correctly.

Reported-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Message-id: 20161214163035.3297-1-maxime.coquelin@redhat.com
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoecs: send answer message to single client
Jinhyung Choi [Thu, 15 Dec 2016 06:07:30 +0000 (15:07 +0900)]
ecs: send answer message to single client

Change-Id: I6c5ee1ba1460550cce37094baa35181af1dd5013
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
7 years agopo: add missing translations in de, fr, it, zh
Stefan Hajnoczi [Wed, 14 Dec 2016 14:47:13 +0000 (14:47 +0000)]
po: add missing translations in de, fr, it, zh

There are missing translations for the new "Copy" menu item.

The following people provided them to me on IRC just in time for the
QEMU 2.8 release:

 * de_DE - Stefan Hajnoczi <stefanha@redhat.com>
 * fr_FR - Laurent Vivier <laurent@vivier.eu>
 * it    - Pino Toscano <ptoscano@redhat.com>
 * zh_CN - Fam Zheng <famz@redhat.com>

[Removed spurious space in zh_CN "Copy" translation that Fam Zheng
pointed out.
--Stefan]

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20161214144713.11009-1-stefanha@redhat.com
Cc: Fam Zheng <famz@redhat.com>
Cc: Pino Toscano <ptoscano@redhat.com>
Cc: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoui/gtk: fix "Copy" menu item segfault
Stefan Hajnoczi [Wed, 14 Dec 2016 14:25:18 +0000 (14:25 +0000)]
ui/gtk: fix "Copy" menu item segfault

The "Copy" menu item copies VTE terminal text to the clipboard.  This
only works with VTE terminals, not with graphics consoles.

Disable the menu item when the current notebook page isn't a VTE
terminal.

This patch fixes a segfault.  Reproducer: Start QEMU and click the Copy
menu item when the guest display is visible.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20161214142518.10504-1-stefanha@redhat.com
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoUpdate language files for QEMU 2.8.0
Stefan Hajnoczi [Tue, 13 Dec 2016 21:49:17 +0000 (21:49 +0000)]
Update language files for QEMU 2.8.0

Update translation files (change created via 'make -C po update').

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 20161213214917.6436-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agodisplay: fix null pointer dereference with tablet
Jinhyung Jo [Mon, 12 Dec 2016 11:56:04 +0000 (20:56 +0900)]
display: fix null pointer dereference with tablet

Check whether the touchscreen device is accessible.

Change-Id: I85956f7b13ac534c738797843bc411d128eebc08
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agopkg: change destination path for add on packages
Munkyu Im [Tue, 13 Dec 2016 08:43:05 +0000 (17:43 +0900)]
pkg: change destination path for add on packages

The previous path does not have permission to push files.

Change-Id: Ie0644cdd6c66cef121d42cb05681376d05217bf9
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
7 years agopackage: update version (2.6.15)
Jinhyung Jo [Mon, 12 Dec 2016 07:21:42 +0000 (16:21 +0900)]
package: update version (2.6.15)

Change-Id: I847bdc6f3f3507892c987a8007e49bfefbc83f09
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agodisplay: W/A for OpenGL context version mismatch
Jinhyung Jo [Wed, 7 Dec 2016 07:21:58 +0000 (16:21 +0900)]
display: W/A for OpenGL context version mismatch

Now, VIGS & Qt5 GUI use the OpenGL 3.2 core profile.
Later, we must solve this issue in the right way.
TODO:
- Improve the check GL version related function in VIGS.
- Add check GL version function to the Qt5 GUI.
- Add feature to match the verified GL version of Qt5 GUI and VIGS.

Change-Id: I9d225c69ba9ab55a7b65ff9affa5633ed4462092
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
7 years agoUpdate version for v2.8.0-rc3 release
Stefan Hajnoczi [Tue, 6 Dec 2016 23:26:04 +0000 (23:26 +0000)]
Update version for v2.8.0-rc3 release

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoqapi: Document introduction of gluster's 'debug' option
Eric Blake [Tue, 6 Dec 2016 18:20:20 +0000 (12:20 -0600)]
qapi: Document introduction of gluster's 'debug' option

We intentionally renamed 'debug-level' to 'debug' in the QMP
schema for 'blockdev-add' related to gluster, in order to
match the command line (commit 1a417e46).  However, since
'debug-level' was visible in 2.7, that means that we should
document that 'debug' was not available until 2.8.

The change was intentional because 'blockdev-add' itself
underwent incompatible changes (such as commit 0153d2f) for
the same release; our intent is that after 2.8, these
interfaces will now be stable.  [In hindsight, we should have
used the name x-blockdev-add when we first introduced it]

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 20161206182020.25736-1-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoexec.c: Fix breakpoint invalidation race
Peter Maydell [Tue, 6 Dec 2016 18:07:09 +0000 (18:07 +0000)]
exec.c: Fix breakpoint invalidation race

A bug (1647683) was reported showing a crash when removing
breakpoints.  The reproducer was bisected to 3359baad when tb_flush
was finally made thread safe.  While in MTTCG the locking in
breakpoint_invalidate would have prevented any problems, but
currently tb_lock() is a NOP for system emulation.

The race is between a tb_flush from the gdbstub and the
tb_invalidate_phys_addr() in breakpoint_invalidate().

Ideally we'd have actual locking here; for the moment the
simple fix is to do a full tb_flush() for a bp invalidate,
since that is thread-safe even if no lock is taken.

Reported-by: Julian Brown <julian@codesourcery.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1481047629-7763-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoqapi: Document DEVICE_TRAY_MOVED addition
Eric Blake [Tue, 6 Dec 2016 16:03:45 +0000 (10:03 -0600)]
qapi: Document DEVICE_TRAY_MOVED addition

Commit 2d76e72 failed to add a versioning tag to 'id'.

I audited all qapi*.json files from v2.7.0 to the current
state of the tree, and didn't find any other additions where
we failed to use a version tag.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20161206160345.22425-1-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agotests/.gitignore: Ignore test-char
Changlong Xie [Mon, 7 Nov 2016 04:59:25 +0000 (12:59 +0800)]
tests/.gitignore: Ignore test-char

[Lin Ma <lma@suse.com> notes that commit ea3af47d added test for chardev
unit tests, but didn't add the name of generated binary in .gitignore.
--Stefan]

Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1478494765-13233-1-git-send-email-xiecl.fnst@cn.fujitsu.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoMerge remote-tracking branch 'kwolf/tags/for-upstream' into staging
Stefan Hajnoczi [Tue, 6 Dec 2016 17:35:29 +0000 (17:35 +0000)]
Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging

Block layer patches for 2.8.0-rc3

# gpg: Signature made Tue 06 Dec 2016 02:44:39 PM GMT
# gpg:                using RSA key 0x7F09B272C88F2FD6
# gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
# Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6

* kwolf/tags/for-upstream:
  qcow2: Don't strand clusters near 2G intervals during commit

Message-id: 1481037418-10239-1-git-send-email-kwolf@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoqcow2: Don't strand clusters near 2G intervals during commit
Eric Blake [Mon, 5 Dec 2016 15:49:34 +0000 (09:49 -0600)]
qcow2: Don't strand clusters near 2G intervals during commit

The qcow2_make_empty() function is reached during 'qemu-img commit',
in order to clear out ALL clusters of an image.  However, if the
image cannot use the fast code path (true if the image is format
0.10, or if the image contains a snapshot), the cluster size is
larger than 512, and the image is larger than 2G in size, then our
choice of sector_step causes problems.  Since it is not cluster
aligned, but qcow2_discard_clusters() silently ignores an unaligned
head or tail, we are leaving clusters allocated.

Enhance the testsuite to expose the flaw, and patch the problem by
ensuring our step size is aligned.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
7 years agoMerge remote-tracking branch 'jasowang/tags/net-pull-request' into staging
Stefan Hajnoczi [Tue, 6 Dec 2016 10:24:24 +0000 (10:24 +0000)]
Merge remote-tracking branch 'jasowang/tags/net-pull-request' into staging

# gpg: Signature made Tue 06 Dec 2016 02:24:23 AM GMT
# gpg:                using RSA key 0xEF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>"
# Primary key fingerprint: 215D 46F4 8246 689E C77F  3562 EF04 965B 398D 6211

* jasowang/tags/net-pull-request:
  fsl_etsec: Fix various small problems in hexdump code
  fsl_etsec: Pad short payloads with zeros
  net: mcf: check receive buffer size register value

Message-id: 1480991552-14360-1-git-send-email-jasowang@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoMerge remote-tracking branch 'jtc/tags/block-pull-request' into staging
Stefan Hajnoczi [Tue, 6 Dec 2016 09:55:57 +0000 (09:55 +0000)]
Merge remote-tracking branch 'jtc/tags/block-pull-request' into staging

# gpg: Signature made Mon 05 Dec 2016 09:30:45 PM GMT
# gpg:                using RSA key 0xBDBE7B27C0DE3057
# gpg: Good signature from "Jeffrey Cody <jcody@redhat.com>"
# gpg:                 aka "Jeffrey Cody <jeff@codyprime.org>"
# gpg:                 aka "Jeffrey Cody <codyprime@gmail.com>"
# Primary key fingerprint: 9957 4B4D 3474 90E7 9D98  D624 BDBE 7B27 C0DE 3057

* jtc/tags/block-pull-request:
  qemu-doc: update gluster protocol usage guide
  block/nfs: fix QMP to match debug option
  block/gluster: fix QMP to match debug option

Message-id: 1480973521-28945-1-git-send-email-jcody@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoMerge remote-tracking branch 'pm215/tags/pull-target-arm-20161205' into staging
Stefan Hajnoczi [Tue, 6 Dec 2016 09:51:41 +0000 (09:51 +0000)]
Merge remote-tracking branch 'pm215/tags/pull-target-arm-20161205' into staging

target-arm queue:
 * fix gen_load_exclusive handling of ldaxp

# gpg: Signature made Mon 05 Dec 2016 05:57:51 PM GMT
# gpg:                using RSA key 0x3C2525ED14360CDE
# gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
# gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
# gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
# Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE

* pm215/tags/pull-target-arm-20161205:
  target-arm/translate-a64: fix gen_load_exclusive

Message-id: 1480960775-5002-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoMerge remote-tracking branch 'armbru/tags/pull-qapi-2016-12-05' into staging
Stefan Hajnoczi [Tue, 6 Dec 2016 09:49:51 +0000 (09:49 +0000)]
Merge remote-tracking branch 'armbru/tags/pull-qapi-2016-12-05' into staging

QAPI patches for 2016-12-05

# gpg: Signature made Mon 05 Dec 2016 04:41:53 PM GMT
# gpg:                using RSA key 0x3870B400EB918653
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
# gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653

* armbru/tags/pull-qapi-2016-12-05:
  qapi: add missing colon-ending for section name
  qapi: use one symbol per line
  qapi: fix various symbols mismatch in documentation
  qapi: fix missing symbol @prefix
  qapi: fix schema symbol sections
  qga/schema: fix double-return in doc
  tests: Avoid qobject_from_jsonf("%"PRId64)
  test-qga: Avoid qobject_from_jsonv("%"PRId64)
  qmp-event: Avoid qobject_from_jsonf("%"PRId64)

Message-id: 1480956313-31322-1-git-send-email-armbru@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agoMerge remote-tracking branch 'kraxel/tags/pull-vga-20161205-1' into staging
Stefan Hajnoczi [Tue, 6 Dec 2016 09:38:39 +0000 (09:38 +0000)]
Merge remote-tracking branch 'kraxel/tags/pull-vga-20161205-1' into staging

qxl: fix flickering.
cirrus: avoid devision by zero.
virtio-gpu: fix two leaks.

# gpg: Signature made Mon 05 Dec 2016 10:55:45 AM GMT
# gpg:                using RSA key 0x4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
# gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
# gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* kraxel/tags/pull-vga-20161205-1:
  display: cirrus: check vga bits per pixel(bpp) value
  virtio-gpu: fix memory leak in update_cursor_data_virgl
  virtio-gpu: fix information leak in getting capset info dispatch
  qxl: Only emit QXL_INTERRUPT_CLIENT_MONITORS_CONFIG on config changes

Message-id: 1480935840-3961-1-git-send-email-kraxel@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agofsl_etsec: Fix various small problems in hexdump code
Andrey Smirnov [Mon, 28 Nov 2016 18:13:15 +0000 (10:13 -0800)]
fsl_etsec: Fix various small problems in hexdump code

Fix various small problems in hexdump code, such as:
    - Reference to non-existing field etsec->nic->nc.name is replaced
    with nc->name

    - Type mismatch warnings

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
7 years agoqemu-doc: update gluster protocol usage guide
Prasanna Kumar Kalever [Wed, 2 Nov 2016 16:50:38 +0000 (22:20 +0530)]
qemu-doc: update gluster protocol usage guide

Document:
1. The new debug and logfile options with their usages
2. New json format and its usage and
3. update "GlusterFS, Device URL Syntax" section in "Invocation"

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
7 years agoblock/nfs: fix QMP to match debug option
Prasanna Kumar Kalever [Wed, 2 Nov 2016 16:50:37 +0000 (22:20 +0530)]
block/nfs: fix QMP to match debug option

The QMP definition of BlockdevOptionsNfs:
{ 'struct': 'BlockdevOptionsNfs',
  'data': { 'server': 'NFSServer',
            'path': 'str',
            '*user': 'int',
            '*group': 'int',
            '*tcp-syn-count': 'int',
            '*readahead-size': 'int',
            '*page-cache-size': 'int',
            '*debug-level': 'int' } }

To make this consistent with other block protocols like gluster, lets
change s/debug-level/debug/

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
7 years agoblock/gluster: fix QMP to match debug option
Prasanna Kumar Kalever [Wed, 2 Nov 2016 16:50:36 +0000 (22:20 +0530)]
block/gluster: fix QMP to match debug option

The QMP definition of BlockdevOptionsGluster:
{ 'struct': 'BlockdevOptionsGluster',
  'data': { 'volume': 'str',
            'path': 'str',
            'server': ['GlusterServer'],
            '*debug-level': 'int',
            '*logfile': 'str' } }

But instead of 'debug-level we have exported 'debug' as the option for choosing
debug level of gluster protocol driver.

This patch fix QMP definition BlockdevOptionsGluster
s/debug-level/debug/

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
7 years agotarget-arm/translate-a64: fix gen_load_exclusive
Alex Bennée [Fri, 2 Dec 2016 17:34:54 +0000 (17:34 +0000)]
target-arm/translate-a64: fix gen_load_exclusive

While testing rth's latest TCG patches with risu I found ldaxp was
broken. Investigating further I found it was broken by 1dd089d0 when
the cmpxchg atomic work was merged. As part of that change the code
attempted to be clever by doing a single 64 bit load and then shuffle
the data around to set the two 32 bit registers.

As I couldn't quite follow the endian magic I've simply partially
reverted the change to the original code gen_load_exclusive code. This
doesn't affect the cmpxchg functionality as that is all done on in
gen_store_exclusive part which is untouched.

I've also restored the comment that was removed (with a slight tweak
to mention cmpxchg).

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Richard Henderson <rth@twiddle.net>
Message-id: 20161202173454.19179-1-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
7 years agoqapi: add missing colon-ending for section name
Marc-André Lureau [Thu, 17 Nov 2016 15:54:55 +0000 (19:54 +0400)]
qapi: add missing colon-ending for section name

The documentation parser we are going to add expects a section name to
end with ':', otherwise the comment is treated as free-form text body.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161117155504.21843-9-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoqapi: use one symbol per line
Marc-André Lureau [Thu, 17 Nov 2016 15:54:54 +0000 (19:54 +0400)]
qapi: use one symbol per line

The documentation parser we are going to add only handles a single
symbol per line.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161117155504.21843-8-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoqapi: fix various symbols mismatch in documentation
Marc-André Lureau [Thu, 17 Nov 2016 15:54:53 +0000 (19:54 +0400)]
qapi: fix various symbols mismatch in documentation

There are various mismatch:
- invalid symbols
- section and member symbols mismatch
- enum or union values vs 'type'

The documentation parser catches all these cases.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161117155504.21843-7-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoqapi: fix missing symbol @prefix
Marc-André Lureau [Thu, 17 Nov 2016 15:54:52 +0000 (19:54 +0400)]
qapi: fix missing symbol @prefix

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20161117155504.21843-6-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoqapi: fix schema symbol sections
Marc-André Lureau [Thu, 17 Nov 2016 15:54:51 +0000 (19:54 +0400)]
qapi: fix schema symbol sections

According to docs/qapi-code-gen.txt, there needs to be '##' to start a
and end a symbol section, that's also what the documentation parser
expects.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20161117155504.21843-5-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoqga/schema: fix double-return in doc
Marc-André Lureau [Thu, 17 Nov 2016 15:54:49 +0000 (19:54 +0400)]
qga/schema: fix double-return in doc

guest-get-memory-block-info documentation should have only one
"Returns:".

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20161117155504.21843-3-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agotests: Avoid qobject_from_jsonf("%"PRId64)
Eric Blake [Wed, 23 Nov 2016 17:36:56 +0000 (11:36 -0600)]
tests: Avoid qobject_from_jsonf("%"PRId64)

The qobject_from_jsonf() function implements a pseudo-printf
language for creating a QObject; however, it is hard-coded to
only parse a subset of formats understood by -Wformat, and is
not a straight synonym to bare printf().  In particular, any
use of an int64_t integer works only if the system's
definition of PRId64 matches what the parser expects; which
works on glibc (%lld or %ld depending on 32- vs. 64-bit) and
mingw (%I64d), but not on Mac OS (%qd).  Rather than enhance
the parser, it is just as easy to force the use of int (where
the value is small enough) or long long instead of int64_t,
which we know always works.

This should cover all remaining testsuite uses of
qobject_from_json[fv]() that were trying to rely on PRId64,
although my proof for that was done by adding in asserts and
checking that 'make check' still passed, where such asserts
are inappropriate during hard freeze.  A later series in 2.9
may remove all dynamic JSON parsing, but that's a bigger task.

Reported by: G 3 <programmingkidx@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1479922617-4400-4-git-send-email-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Rename value64 to value_ll]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agotest-qga: Avoid qobject_from_jsonv("%"PRId64)
Eric Blake [Wed, 23 Nov 2016 17:36:55 +0000 (11:36 -0600)]
test-qga: Avoid qobject_from_jsonv("%"PRId64)

The qobject_from_jsonv() function implements a pseudo-printf
language for creating a QObject; however, it is hard-coded to
only parse a subset of formats understood by -Wformat, and is
not a straight synonym to bare printf().  In particular, any
use of an int64_t integer works only if the system's
definition of PRId64 matches what the parser expects; which
works on glibc (%lld or %ld depending on 32- vs. 64-bit) and
mingw (%I64d), but not on Mac OS (%qd).  Rather than enhance
the parser, it is just as easy to use normal printf() for
this particular conversion, matching what is done elsewhere
in this file [1], which is safe in this instance because the
format does not contain any of the problematic differences
(bare '%' or the '%s' format).

The use of PRId64 for a variable named 'pid' is gross, but it
is a sad reality of the 64-bit mingw environment, which
mistakenly defines pid_t as a 64-bit type even though getpid()
returns 'int' on that platform [2].  Our definition of the
QGA GuestExec type defines 'pid' as a 64-bit entity, and we
can't tighten it to 'int32' unless the mingw header is fixed.
Using 'long long' instead of 'int64_t' just so that we can
stick with qobject_from_jsonv("%lld") instead of printf() is
not any prettier, since we may have later type churn anyways.

[1] see 'git grep -A2 strdup_printf tests/test-qga.c'
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1397787

Reported by: G 3 <programmingkidx@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1479922617-4400-3-git-send-email-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoqmp-event: Avoid qobject_from_jsonf("%"PRId64)
Eric Blake [Wed, 23 Nov 2016 17:36:54 +0000 (11:36 -0600)]
qmp-event: Avoid qobject_from_jsonf("%"PRId64)

The qobject_from_jsonf() function implements a pseudo-printf
language for creating a QObject; however, it is hard-coded to
only parse a subset of formats understood by -Wformat, and is
not a straight synonym to bare printf().  In particular, any
use of an int64_t integer works only if the system's
definition of PRId64 matches what the parser expects; which
works on glibc (%lld or %ld depending on 32- vs. 64-bit) and
mingw (%I64d), but not on Mac OS (%qd).  Rather than enhance
the parser, it is just as easy to use 'long long', which we
know always works.  There are few enough callers of
qobject_from_json[fv]() that it is easy to audit that this is
the only non-testsuite caller that was actually relying on
this particular conversion.

Reported by: G 3 <programmingkidx@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1479922617-4400-2-git-send-email-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Cast tv.tv_sec, tv.tv_usec to long long for type correctness]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 years agoMerge remote-tracking branch 'yongbok/tags/mips-20161204' into staging
Stefan Hajnoczi [Mon, 5 Dec 2016 10:56:45 +0000 (10:56 +0000)]
Merge remote-tracking branch 'yongbok/tags/mips-20161204' into staging

MIPS patches 2016-12-04

Changes:
* Fix Loongson instructions
* Fix bad shifts in {dextp|dextpdp}

# gpg: Signature made Sun 04 Dec 2016 01:39:38 AM GMT
# gpg:                using RSA key 0x2238EB86D5F797C2
# gpg: Can't check signature: public key not found

* yongbok/tags/mips-20161204:
  target-mips: fix bad shifts in {dextp|dextpdp}
  target-mips: Fix Loongson multimedia instructions.
  target-mips: Fix Loongson multimedia 'or' instruction.
  target-mips: Fix Loongson pandn instruction.

Message-id: 1480816817-53245-1-git-send-email-yongbok.kim@imgtec.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 years agodisplay: cirrus: check vga bits per pixel(bpp) value
Prasad J Pandit [Tue, 18 Oct 2016 07:45:17 +0000 (13:15 +0530)]
display: cirrus: check vga bits per pixel(bpp) value

In Cirrus CLGD 54xx VGA Emulator, if cirrus graphics mode is VGA,
'cirrus_get_bpp' returns zero(0), which could lead to a divide
by zero error in while copying pixel data. The same could occur
via blit pitch values. Add check to avoid it.

Reported-by: Huawei PSIRT <psirt@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-id: 1476776717-24807-1-git-send-email-ppandit@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
7 years agopackage: update version (2.6.14)
Minkee Lee [Mon, 5 Dec 2016 09:56:47 +0000 (18:56 +0900)]
package: update version (2.6.14)

Change-Id: I6e571243564c811943e238006cbbbdabf5d866f0
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agofsl_etsec: Pad short payloads with zeros
Andrey Smirnov [Mon, 28 Nov 2016 18:13:14 +0000 (10:13 -0800)]
fsl_etsec: Pad short payloads with zeros

Depending on QEMU network setup it is possible for us to receive a
complete Ethernet packet that is less 64 bytes long. One such example is
when QEMU is configured to use a standalone TAP device (not set to be a
part of any bridge) receives and ARP packet. In cases like that we need
to add more than just 4-bytes of CRC padding and ensure that our payload
is at least 60 bytes long, such that, when combined with CRC padding
bytes the resulting size is at least 802.3 minimum MTU bytes
long (64). Failing to do that results in code in etsec_walk_rx_ring()
setting BD_RX_SH which, in turn, makes corresponding Linux driver of
emulated host to reject buffer as a runt packet

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
7 years agonet: mcf: check receive buffer size register value
Prasad J Pandit [Mon, 28 Nov 2016 19:08:39 +0000 (00:38 +0530)]
net: mcf: check receive buffer size register value

ColdFire Fast Ethernet Controller uses a receive buffer size
register(EMRBR) to hold maximum size of all receive buffers.
It is set by a user before any operation. If it was set to be
zero, ColdFire emulator would go into an infinite loop while
receiving data in mcf_fec_receive. Add check to avoid it.

Reported-by: Wjjzhang <wjjzhang@tencent.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
7 years agomaru_virtio: disable modern interface for maru devices
SeokYeon Hwang [Mon, 5 Dec 2016 08:37:14 +0000 (17:37 +0900)]
maru_virtio: disable modern interface for maru devices

"modern interface" is not ready for maru devices yet.

Change-Id: I97e95b2d71ce7771fcaf4924f281a1673709650d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
7 years agovirtio-gpu: fix memory leak in update_cursor_data_virgl
Li Qiang [Tue, 1 Nov 2016 11:06:58 +0000 (04:06 -0700)]
virtio-gpu: fix memory leak in update_cursor_data_virgl

In update_cursor_data_virgl function, if the 'width'/ 'height'
is not equal to current cursor's width/height it will return
without free the 'data' allocated previously. This will lead
a memory leak issue. This patch fix this issue.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 58187760.41d71c0a.cca75.4cb9@mx.google.com
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
7 years agovirtio-gpu: fix information leak in getting capset info dispatch
Li Qiang [Tue, 1 Nov 2016 09:53:11 +0000 (02:53 -0700)]
virtio-gpu: fix information leak in getting capset info dispatch

In virgl_cmd_get_capset_info dispatch function, the 'resp' hasn't
been full initialized before writing to the guest. This will leak
the 'resp.padding' and 'resp.hdr.padding' fieds to the guest. This
patch fix this issue.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 5818661e.0860240a.77264.7a56@mx.google.com
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
7 years agoqxl: Only emit QXL_INTERRUPT_CLIENT_MONITORS_CONFIG on config changes
Christophe Fergeau [Fri, 28 Oct 2016 14:48:40 +0000 (16:48 +0200)]
qxl: Only emit QXL_INTERRUPT_CLIENT_MONITORS_CONFIG on config changes

Currently if the client keeps sending the same monitor config to
QEMU/spice-server, QEMU will always raise
a QXL_INTERRUPT_CLIENT_MONITORS_CONFIG regardless of whether there was a
change or not.
Guest-side (with fedora 25), the kernel QXL KMS driver will also forward the
event to user-space without checking if there were actual changes.
Next in line are gnome-shell/mutter (on a default f25 install), which
will try to reconfigure everything without checking if there is anything
to do.
Where this gets ugly is that when applying the resolution changes,
gnome-shell/mutter will call drmModeRmFB, drmModeAddFB, and
drmModeSetCrtc, which will cause the primary surface to be destroyed and
recreated by the QXL KMS driver. This in turn will cause the client to
resend a client monitors config message, which will cause QEMU to reemit
an interrupt with an unchanged monitors configuration, ...
This causes https://bugzilla.redhat.com/show_bug.cgi?id=1266484

This commit makes sure that we only emit
QXL_INTERRUPT_CLIENT_MONITORS_CONFIG when there are actual configuration
changes the guest should act on.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Message-id: 20161028144840.18326-1-cfergeau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
7 years agomaru_virtio: disable modern interface for maru devices
SeokYeon Hwang [Mon, 5 Dec 2016 08:37:14 +0000 (17:37 +0900)]
maru_virtio: disable modern interface for maru devices

"modern interface" is not ready for maru devices yet.

Change-Id: I97e95b2d71ce7771fcaf4924f281a1673709650d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>