summaryrefslogtreecommitdiff
path: root/hw
AgeCommit message (Collapse)AuthorFilesLines
2014-07-05Merge "emulator: some error reporting routine is refactored" into tizenSangho Park3-17/+11
2014-07-06emulator: some error reporting routine is refactoredSeokYeon Hwang3-17/+11
maru_register_exit_msg() can accept variable arguments. Remove maru_convert_path(), Add get_canonical_path(). Change-Id: I7975510cfb34a0bbb633df5a74ffce21922c0c92 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com> Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2014-07-03Merge "9pfs: use event_notifier instead of qemu_pipe" into tizenSeokYeon Hwang4-198/+21
2014-07-029pfs: use event_notifier instead of qemu_pipeSeokYeon Hwang4-198/+21
Change-Id: I5b2c51ef18849fa6f29e126ef889dcff86cad645 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com> Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2014-07-02emulator: clean-up legacy board initSeokYeon Hwang1-15/+9
Clean-up legacy board initializtion. Remove unused variables. Change-Id: I480b179c34cece682a13253bd3f0f3c37e2d21d4 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-07-01virtio: initializing and declaring tizen virtio devices are movedSeokYeon Hwang2-604/+1
Tizen specific virtio devices are moved into "tizen/src/hw/maru_virtio_pci.c". Change-Id: Ie6664508c02ac07a65aacb7baa6a8bee981f8f25 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-07-01emulator: remove legacy mloop_eventSeokYeon Hwang1-1/+0
mloop_event and related files are removed. RAM dump feature is disabled now, it will be supported by new QMP logic soon. Change-Id: Icc2def5741e0598d6c21f29d0fe45956992e121a Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-07-01usb: remove legacy usb storage supportSeokYeon Hwang1-22/+1
Change-Id: I1ca6572ce2b2ba75329451f1274e4eb60e111c69 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-07-01hotplug: new device hotplug system is introducedSeokYeon Hwang1-52/+0
Do not use old hotplug logic anymore. "Hotplug logic" becomes independent of legacy mloop. "mloop" will be removed. Change-Id: Ib1c40cb9bb65e6f2d8a2310ad5a0c761184b6321 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-06-25pci: add device realization check before the capability is unlinkedSeokYeon Hwang1-1/+5
"pdev" and its member may be unrealized and be freed, so accessing a member of "pdev" is able to cause heap memory corruption. Check the change of "device_unparent()" in the commit 5c21ce77d7e5643089ceec556c0408445d017f32. Change-Id: Iacb195a092c86d4c677ad0404582af104b2251ae Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-06-24build: Clean-up build related filesSeokYeon Hwang7-20/+19
Apply new style Makefile system for emulator. Clean-up Some include path and build path. Make new directory "display", "util" under "tizen/src/" We have no common object(common-obj) yet. Change-Id: I3cb0dab21a8fc22e6b145b251906c4e53f0a86a4 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-06-23YaGL/VIGS: QOM'ifyStanislav Vorobiov10-157/+498
YaGL and VIGS devices can now be created entirely from QEMU command line, it's also possible to tweak all their parameters via QEMU command line and even have 2 or more separate instances Change-Id: Ic1ae18f9ac6078f872d28519443e17974abefe82 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-06-23exynos4210: remove old filesStanislav Vorobiov12-7477/+0
these files are now in hw/* Change-Id: I02513ae9d951d62ea932ebf2c5496dce1f2a855a Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-06-23VIGS: move winsys headersStanislav Vorobiov7-5/+5
Change-Id: I86df47eb3d88038c373b44e450ef1174b39dc782 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-06-22Merge "yagl/vigs: quick fixes for upstream" into tizenSeokYeon Hwang2-51/+105
2014-06-20yagl/vigs: quick fixes for upstreamStanislav Vorobiov2-51/+105
New options for YaGL, VIGS is introduced. -device vigs,backend=[backend] -device yagl Old options are still available. Change-Id: I8c19bde6fb66dbb75f9aaee434a8bc98160048fd Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com> Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-06-18vmodem: enable the vmodem device using virtio.Sooyoung Ha2-0/+54
Now, the telephony virtual modem will use the vmodem device to communicate with ECP, not emulator daemon. Change-Id: Icadf54f977f4da84da4cd9745e72b20e0b672548 Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2014-06-16emulator: modify RAM preallocation logicSeokYeon Hwang1-8/+1
Change-Id: Idfe6eb74f35fa13c9518dedb18adec3b9ed1de20 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-06-03keyboard: delete unused codeGiWoong Kim1-13/+0
Change-Id: Id848ece229dc5288f4bb407b2c14f8e6a71277a2 Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
2014-05-29YaGL/VIGS: Fix GL frambuffer functions lookupStanislav Vorobiov4-42/+85
With recent host OpenGL drivers (such as mesa 9.2.1) functions like glFramebufferXXXEXT no longer work right from within OpenGL 3.1+ contexts, glFramebufeerXXX (no EXT suffix) functions must be used instead Change-Id: I78525de16868bd65d3e30c6d0518ddae3dbb28df Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-05-23virtio-9p: fix wrong control flowKitae Kim1-2/+2
mp_dacl_setxattr function was returned before releasing a buffer. Change-Id: Id81ea87389408bafd3a4ee5e08c71d6cd2c98e98 Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
2014-05-19vitrio-9p: enable the virtio-9p on windows.Sooyoung Ha1-0/+9
Fix the virtfs-9p build failure on some windows environment and enable it. The old-version MinGW's 'struct dirent' doesn't support 'd_type' member. This d_type has the information of the file type, but it's not mandatory. The other api can get the file type information. So d_type is to be always zero on windows.(zero means unknown type) Change-Id: I1c657134bbc6188a7d6a9cfc2534664efe3ceea4 Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2014-05-13virtio-9p: fix compilation error on Mac OS X.Kitae Kim1-2/+0
Change-Id: Iab0dc5472a993dcf392bcdd084154cab6baab238 Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
2014-05-13virtio-9p: fix windows build error that is due to qemu 2.0 merge.Sooyoung Ha2-3/+3
Change-Id: I63dfd087c6935c5c5d33990964035fb0a3cdd706 Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2014-05-13YaGL/VIGS: GLESv3 workarounds for Mac OS X 10.7Stanislav Vorobiov2-0/+48
Mac OS X 10.7 supports OpenGL 3.2, however, it doesn't have all the necessary functions implemented in order to implement GLESv3 on target. This workaround checks for some mandatory functions and if at least one of them is not present - we revert back to OpenGL 2.1. A nicer fix would be checking for OpenGL functions globally, not in CGL backend, this is a TODO Change-Id: I9c0acce3220af9ed7276a8586fa18b97d8223079 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-05-12Merge branch 'tizen_qemu_2.0' into tizenSeokYeon Hwang403-5347/+15458
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com> Conflicts: hw/9pfs/virtio-9p-device.c hw/9pfs/virtio-9p-posix-acl.c hw/9pfs/virtio-9p-xattr-user.c hw/9pfs/virtio-9p-xattr.c hw/9pfs/virtio-9p-xattr.h hw/9pfs/virtio-9p.h hw/virtio/virtio-pci.c tizen/src/emulator.c tizen/src/hw/maru_brill_codec.c tizen/src/hw/maru_virtio_touchscreen.h tizen/src/maru_sdl.c
2014-05-12virtio-9p: enable the virtfs on Windows.Sooyoung Ha11-144/+5525
support the virtio-9p local operations on Windows to provide host directory sharing. Change-Id: Ib8869cba7bd1cb248d23feb19c73235b19192d86 Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2014-04-29maru_vga: remove devicejinhyung.jo3-23/+0
From now on, we use VIGS device. Change-Id: Ic7f7ba8bbaebe22227f1d252cf5739b4b0cb9033 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2014-04-29VirtGL: remove devicejinhyung.jo2-60/+0
From now on, we use YaGL device. Change-Id: Ice1be9eb1fe135b15475c3b51ee5b82f7b503d37 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2014-04-29virtio-9p: fix compiliation error and source clean-up.Kitae Kim6-62/+133
The previous commit comes from qemu 1.2 version. This commit resolves compiliation errors and clean sources up. Change-Id: I5463b08aaccaa40a431dd7ee965bcf6d0faf3c01 Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
2014-04-29virtio-9p: enable virtfs on Mac OS X.Kitae Kim8-2/+148
Support virtio-9p local operation on Mac OS X to provide host directory sharing. Change-Id: Ic034673c6d3d4102ebe4fbaea7e186fffec34a2f Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
2014-04-28audio/intel-hda: support FIFORDYStanislav Vorobiov1-1/+2
linux kernel 3.12 has changed intel-hda driver to always check for FIFORDY, this causes long hangs in guest since QEMU always has this bit set to 0. We now simply set it to 1 always, since we're synchronous anyway and always ready to receive the stream Change-Id: I5bb3f36094e6c8b23a0338f31ff949d863c378ec Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com> (cherry picked from commit 62c37a816010779308706bf69bfd897aedbdbf6d)
2014-04-25audio/intel-hda: support FIFORDYStanislav Vorobiov1-1/+2
linux kernel 3.12 has changed intel-hda driver to always check for FIFORDY, this causes long hangs in guest since QEMU always has this bit set to 0. We now simply set it to 1 always, since we're synchronous anyway and always ready to receive the stream Change-Id: I5bb3f36094e6c8b23a0338f31ff949d863c378ec Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-04-24emulator: modified touchscreen optionGiWoong Kim1-2/+11
added max_point deivce option for virtio touchscreen remove -max-touch-point option Change-Id: I32ff1b18d39c6c05364a5723ab68a0b9887fa047 Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com> Conflicts: tizen/src/hw/maru_virtio_touchscreen.h
2014-04-23emulator: modified touchscreen optionGiWoong Kim1-2/+11
added max_point deivce option for virtio touchscreen remove -max-touch-point option Change-Id: I32ff1b18d39c6c05364a5723ab68a0b9887fa047 Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
2014-04-21vigs: fix compilation errorsSeokYeon Hwang8-8/+7
1. Some qemu function prototype modification. graphic_console_init() qemu_thread_create() 2. A "work_queue.c" is moved to "vigs". Change-Id: I066734b08bb8ad59aeb5afb67049065048bcdd63 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2014-04-21Merge branch 'upstream_qemu_2.0' into tizenSeokYeon Hwang394-5117/+15251
Initial merge Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com> Conflicts: .gitignore Makefile.target block/raw-win32.c configure cpu-exec.c cpus.c hw/9pfs/virtio-9p-device.c hw/i386/pc_piix.c include/exec/cpu-defs.h include/qemu-common.h include/sysemu/sysemu.h include/ui/console.h tcg/i386/tcg-target.c tcg/tcg.h ui/console.c ui/input.c util/oslib-posix.c vl.c Change-Id: I52df9052942eea8d541bde75fd936e58a9f2f8ff
2014-04-17YaGL: Fix transport separate short command skip bugStanislav Vorobiov1-1/+1
Separate short commands (1 unit long) could be skipped due to incorrect check, this is now fixed Change-Id: I8736abb171e35563580407a25cdffadfc589ed18 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-04-15VIGS: Add framebuffer and temporary texture poolStanislav Vorobiov5-29/+427
In order not to waste host GPU resources we now have 2 OpenGL object pools - for temporary textures and for framebuffers. These used to be allocated for every surface, but now we allocate only one object per distinct format, i.e. one object per (width, height, format) tuple Change-Id: Ie63e571045a2477043e8e08da3a50765523e54fc Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2014-04-14Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into stagingPeter Maydell1-1/+1
acpi: SSDT update This has a fix by Igor for a regression introduced by bridge hotplug code. Expected test files were updated accordingly. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Mon 14 Apr 2014 13:13:35 BST using RSA key ID D28D5469 # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" # gpg: aka "Michael S. Tsirkin <mst@redhat.com>" * remotes/mst/tags/for_upstream: acpi-test: update expected files acpi: fix incorrect encoding for 0x{F-1}FFFF Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-14ide: Correct improper smart self test counter reset in ide core.BenoƮt Canet1-1/+1
The SMART self test counter was incorrectly being reset to zero, not 1. This had the effect that on every 21st SMART EXECUTE OFFLINE: * We would write off the beginning of a dynamically allocated buffer * We forgot the SMART history Fix this. Signed-off-by: Benoit Canet <benoit@irqsave.net> Message-id: 1397336390-24664-1-git-send-email-benoit.canet@irqsave.net Reviewed-by: Markus Armbruster <armbru@redhat.com> Cc: qemu-stable@nongnu.org Acked-by: Kevin Wolf <kwolf@redhat.com> [PMM: tweaked commit message as per suggestions from Markus] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-14acpi: fix incorrect encoding for 0x{F-1}FFFFIgor Mammedov1-1/+1
Fix typo in build_append_int() which causes integer truncation when it's in range 0x{F-1}FFFF by packing it as WordConst instead of required DWordConst. In partucular this fixes a regression: hotplug in slots 16,17,18 and 19 didn't work, since SSDT had code like this: If (And (Arg0, 0x0000)) { Notify (S80, Arg1) } Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Weil <sw@weilnetz.de>
2014-04-14vmxnet3: validate queues configuration read on migrationDmitry Fleytman1-0/+1
CVE-2013-4544 Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Reported-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-id: 1396604722-11902-5-git-send-email-dmitry@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-14vmxnet3: validate interrupt indices read on migrationDmitry Fleytman1-0/+2
CVE-2013-4544 Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Reported-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-id: 1396604722-11902-4-git-send-email-dmitry@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-14vmxnet3: validate queues configuration coming from guestDmitry Fleytman1-1/+18
CVE-2013-4544 Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Reported-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-id: 1396604722-11902-3-git-send-email-dmitry@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-14vmxnet3: validate interrupt indices coming from guestDmitry Fleytman1-2/+34
CVE-2013-4544 Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Reported-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-id: 1396604722-11902-2-git-send-email-dmitry@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-14display: Add dirty flag for displayGiWoong Kim6-17/+45
At idle screen moment, there is no need to copy framebuffers to the display. Change-Id: I4006e5732de947ce1617161182ca901b179c9423 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com> Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
2014-04-11virtio-net: fix guest-triggerable buffer overrunMichael S. Tsirkin1-1/+1
When VM guest programs multicast addresses for a virtio net card, it supplies a 32 bit entries counter for the number of addresses. These addresses are read into tail portion of a fixed macs array which has size MAC_TABLE_ENTRIES, at offset equal to in_use. To avoid overflow of this array by guest, qemu attempts to test the size as follows: - if (in_use + mac_data.entries <= MAC_TABLE_ENTRIES) { however, as mac_data.entries is uint32_t, this sum can overflow, e.g. if in_use is 1 and mac_data.entries is 0xffffffff then in_use + mac_data.entries will be 0. Qemu will then read guest supplied buffer into this memory, overflowing buffer on heap. CVE-2014-0150 Cc: qemu-stable@nongnu.org Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 1397218574-25058-1-git-send-email-mst@redhat.com Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-04-10acpi: update generated hex filesMichael S. Tsirkin2-30/+20
commit f2ccc311df55ec026a8f8ea9df998f26314f22b2 dsdt: tweak ACPI ID for hotplug resource device changes the DSDT, update hex files to match Otherwise the fix is only effective if QEMU is built with iasl. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-04-08hw/pci-host/prep: Don't reverse IO accesses on bigendian hostsPeter Maydell1-4/+4
The raven_io_read() and raven_io_write() functions pass and return values in little-endian format (since the IO op struct is marked DEVICE_LITTLE_ENDIAN); however they were storing the values in the buffer to pass to address_space_read/write() in host-endian order, which meant that on big-endian hosts the values were inadvertently reversed. Use the *_le_p() accessors instead so that we are consistent regardless of host endianness. Strictly speaking the byte order of the buffer for address_space_rw() is target byte order (which for PPC will be BE) but it doesn't actually matter as long as we are consistent about the marking on the IO op struct and which stl_*_p(). This bug was probably introduced due to confusion caused by the two different versions of ldl_p() and friends: bswap.h defines versions meaning "host endianness access" cpu-all.h defines versions meaning "target endianness access" As a target-independent source file prep.c gets the bswap.h versions; the very similar looking code in ioport.c is compiled per-target and gets the cpu-all.h versions. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1396972271-22660-1-git-send-email-peter.maydell@linaro.org Reviewed-by: Richard Henderson <rth@twiddle.net>