summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-04-10ASan-related hack to speedup aarch64 builds.tizen_5.5.m2_releasesubmit/tizen_5.5_base_wearable_hotfix/20201023.155602submit/tizen_5.5_base_mobile_hotfix/20201023.171502submit/tizen_5.0_base/20181101.000001accepted/tizen/5.5/base/wearable/hotfix/20201023.080204accepted/tizen/5.5/base/mobile/hotfix/20201023.083817accepted/tizen/5.0/base/20181101.091254tizen_5.5_tvtizen_5.5_base_wearable_hotfixtizen_5.5_base_mobile_hotfixtizen_5.5_basetizen_5.0_baseaccepted/tizen_5.5_base_wearable_hotfixaccepted/tizen_5.5_base_mobile_hotfixMaxim Ostapenko1-0/+30
Switch off memory pages checks in qemu if memory regions are mapped by ASan Change-Id: I8233802ee35db00c799f5645072b8014f823b5c6 Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
2016-11-09Use different names for qemu-user binary:tizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0_base/20170828.000000submit/tizen_4.0_base/20170811.071500accepted/tizen/4.0/base/20170811.093141tizen_4.0_base_not_usedPavel Kopyl1-0/+43
1. qemu-linux-user-x86_64-cross for 64-bit. 2. qemu-linux-user-x86-cross for 32-bit. Also keep binaries with old names. Change-Id: Ib2487b82c57189942e0925427cb2144dc8817dec Signed-off-by: Pavel Kopyl <p.kopyl@samsung.com> Signed-off-by: Chan Lee <chan45.lee@samsung.com> (cherry picked from commit 4f4fc9b2f8ac86e081b08fb48d77fa860626d148)
2016-10-16removed qemu log (Unsupported syscall)Dongkyun, Son1-1/+7
blocked unexpeced warning message (qemu: Unsupported syscall: 219 or 311) Change-Id: If17b6d80c0835fcc44822551127eca068b23eec9 Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com> (cherry picked from commit 6b4067f8f34ee83f94042551267e951ab0b5e10e)
2016-09-07packaging: mic-bootstrap link issuesubmit/tizen_3.0_base/20161028.062326accepted/tizen/3.0/base/20161028.103448tizen_3.0_base_not_usedqemu-2.7.0accepted/tizen_3.0_basehyokeun1-4/+8
2016-09-06binfmt: translate symbolic links correctly with realpathJulien Isorce1-2/+13
Change-Id: Ic0eeac9de40a8e1082c83b442829ac28f68bff04 Signed-off-by: Julien Isorce <j.isorce@samsung.com> Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
2016-09-06Modify spec file to build qemu package in Tools:qemu project and aggregate ↵SoonKyu Park1-0/+1
it to use it Change-Id: Id2db3f863d1d3fcdb57f841b69c3acda94e32cef
2016-09-06Add compatibility symlinksYury Usishchev1-2/+14
Symlinks to qemu binaries placed in directories where they are searched by common non-Tizen binfmt_misc configurations (eq. in Ubuntu). Change-Id: I6b8602736926dba24a7ffbc70c91222ec3ba5cc8
2016-09-06packaging: ln -sf qemu-arm64, qemu-arm64-binfmthyokeun1-0/+3
2016-09-06binfmt: use binaries from /emulYury Usishchev1-16/+2
This allows removing hardcoded architecture-dependent paths from qemu-accel package. Also allows using symlinks for qemu-*-binfmt as path don't depend on binary name now. Change-Id: I92b9bc6df477ef925c761045d5307aca8cc1b2d4
2016-09-06enable 32 bit qemu for Tizen.Junfeng Dong1-0/+2
Change-Id: I75ecb5ef6952d1083c030f5e48ba2a24e4d6f4a1 Signed-off-by: Junfeng Dong <junfeng.dong@intel.com>
2016-09-06packaging: Adding permissions-file-setuid-bithyokeun1-0/+3
2016-09-06packaging: BuildRequires: -post-build-checkshyokeun2-0/+2
Change-Id: I27b7123c2637e7af82d59ca5e7d5bd139d727647
2016-09-06packaging: Disable libseccomphyokeun1-4/+0
Change-Id: I177741ece64572b63c7fbad8267324449735ca97
2016-09-06packaging: add packaging directoryhyokeun20-0/+2564
Change-Id: I7eb77abf7c4e5afdc9606c723c125910280c65e6
2016-09-06configure: Fix detection of seccomp on s390xmarkkp1-0/+3
Signed-off-by: Mark Post <mpost@suse.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06qemu-binfmt-conf: use qemu-ARCH-binfmtAndreas Schwab1-3/+3
Signed-off-by: Andreas Schwab <schwab@suse.de> Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06qemu-bridge-helper: reduce security profileBruce Rogers1-3/+24
Change from using glib alloc and free routines to those from libc. Also perform safety measure of dropping privs to user if configured no-caps. [BR: BOO#988279] Signed-off-by: Bruce Rogers <brogers@suse.com> [AF: Rebased for v2.7.0-rc2] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06xen: SUSE xenlinux unplug for emulated PCIOlaf Hering1-0/+22
Implement SUSE specific unplug protocol for emulated PCI devices in PVonHVM guests (bsc#953339, bsc#953362, bsc#953518, bsc#984981) Signed-off-by: Olaf Hering <ohering@suse.de>
2016-09-06build: link with libatomic on powerpc-linuxOlaf Hering1-0/+27
Building on powerpc-linux fails with undefined reference to __atomic_load_8 in icount_warp_rt(). Force linking to -latomic. Fixes a0aa44b ("include/qemu/atomic.h: default to __atomic functions") Signed-off-by: Olaf Hering <olaf@aepfle.de>
2016-09-06xen_disk: Add suse specific flush disable handling and map to QEMU equivBruce Rogers1-0/+15
Add code to read the suse specific suse-diskcache-disable-flush flag out of xenstore, and set the equivalent flag within QEMU. Patch taken from Xen's patch queue, Olaf Hering being the original author. [bsc#879425] Signed-off-by: Bruce Rogers <brogers@suse.com> Signed-off-by: Olaf Hering <olaf@aepfle.de>
2016-09-06dictzip: Fix on big endian systemsAlexander Graf1-22/+28
The dictzip code in SLE11 received some treatment over time to support running on big endian hosts. Somewhere in the transition to SLE12 this support got lost. Add it back in again from the SLE11 code base. Furthermore while at it, fix up the debug prints to not emit warnings. [AG: BSC#937572] Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Rebased for v2.7.0-rc2] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06AIO: Reduce number of threads for 32bit hostsAlexander Graf1-1/+6
On hosts with limited virtual address space (32bit pointers), we can very easily run out of virtual memory with big thread pools. Instead, we should limit ourselves to small pools to keep memory footprint low on those systems. This patch fixes random VM stalls like (process:25114): GLib-ERROR **: gmem.c:103: failed to allocate 1048576 bytes on 32bit ARM systems for me. Signed-off-by: Alexander Graf <agraf@suse.de>
2016-09-06configure: Enable PIE for ppc and ppc64 hostsDinar Valeev1-1/+1
Signed-off-by: Dinar Valeev <dvaleev@suse.com> [AF: Rebased for v1.7] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06virtfs-proxy-helper: Provide __u64 for broken sys/capability.hBruce Rogers1-0/+7
Fixes the build on SLE 11 SP2. [AF: Extend to ppc64]
2016-09-06linux-user: lseek: explicitly cast non-set offsets to signedAlexander Graf1-2/+7
When doing lseek, SEEK_SET indicates that the offset is an unsigned variable. Other seek types have parameters that can be negative. When converting from 32bit to 64bit parameters, we need to take this into account and enable SEEK_END and SEEK_CUR to be negative, while SEEK_SET stays absolute positioned which we need to maintain as unsigned. Signed-off-by: Alexander Graf <agraf@suse.de>
2016-09-06Make char muxer more robust wrt small FIFOsAlexander Graf1-0/+16
Virtio-Console can only process one character at a time. Using it on S390 gave me strage "lags" where I got the character I pressed before when pressing one. So I typed in "abc" and only received "a", then pressed "d" but the guest received "b" and so on. While the stdio driver calls a poll function that just processes on its queue in case virtio-console can't take multiple characters at once, the muxer does not have such callbacks, so it can't empty its queue. To work around that limitation, I introduced a new timer that only gets active when the guest can not receive any more characters. In that case it polls again after a while to check if the guest is now receiving input. This patch fixes input when using -nographic on s390 for me. [AF: Rebased for v2.7.0-rc2]
2016-09-06console: add question-mark escape operatorAlexander Graf1-1/+1
Some termcaps (found using SLES11SP1) use [? sequences. According to man console_codes (http://linux.die.net/man/4/console_codes) the question mark is a nop and should simply be ignored. This patch does exactly that, rendering screen output readable when outputting guest serial consoles to the graphical console emulator. Signed-off-by: Alexander Graf <agraf@suse.de>
2016-09-06Legacy Patch kvm-qemu-preXX-dictzip3.patchAlexander Graf1-2/+11
2016-09-06block: Add tar container formatAlexander Graf2-0/+371
Tar is a very widely used format to store data in. Sometimes people even put virtual machine images in there. So it makes sense for qemu to be able to read from tar files. I implemented a written from scratch reader that also knows about the GNU sparse format, which is what pigz creates. This version checks for filenames that end on well-known extensions. The logic could be changed to search for filenames given on the command line, but that would require changes to more parts of qemu. The tar reader in conjunctiuon with dzip gives us the chance to download tar'ed up virtual machine images (even via http) and instantly make use of them. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Bruce Rogers <brogers@novell.com> Signed-off-by: Andreas Färber <afaerber@suse.de> [TH: Use bdrv_open options instead of filename] Signed-off-by: Tim Hardeck <thardeck@suse.de> [AF: bdrv_file_open got an Error **errp argument, bdrv_delete -> brd_unref] [AF: qemu_opts_create_nofail() -> qemu_opts_create(), bdrv_file_open() -> bdrv_open(), based on work by brogers] [AF: error_is_set() dropped for v2.1.0-rc0] [AF: BlockDriverAIOCB -> BlockAIOCB, BlockDriverCompletionFunc -> BlockCompletionFunc, qemu_aio_release() -> qemu_aio_unref(), drop tar_aio_cancel()] [AF: common-obj-y -> block-obj-y, drop probe hook (bsc#945778)] [AF: Drop bdrv_open() drv parameter for 2.5] Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Bruce Rogers <brogers@suse.com> [AF: Changed bdrv_open() bs parameter and return value for v2.7.0-rc2, for bdrv_pread() and bdrv_aio_readv() s/s->hd/s->hd->file/] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06block: Add support for DictZip enabled gzip filesAlexander Graf2-0/+581
DictZip is an extension to the gzip format that allows random seeks in gzip compressed files by cutting the file into pieces and storing the piece offsets in the "extra" header of the gzip format. Thanks to that extension, we can use gzip compressed files as block backend, though only in read mode. This makes a lot of sense when stacked with tar files that can then be shipped to VM users. If a VM image is inside a tar file that is inside a DictZip enabled gzip file, the user can run the tar.gz file as is without having to extract the image first. Tar patch follows. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Bruce Rogers <brogers@novell.com> Signed-off-by: Andreas Färber <afaerber@suse.de> [TH: Use bdrv_open options instead of filename] Signed-off-by: Tim Hardeck <thardeck@suse.de> [AF: Error **errp added for bdrv_file_open, bdrv_delete -> bdrv_unref] [AF: qemu_opts_create_nofail() -> qemu_opts_create(), bdrv_file_open() -> bdrv_open(), based on work by brogers] [AF: error_is_set() dropped for v2.1.0-rc0] [AF: BlockDriverAIOCB -> BlockAIOCB, BlockDriverCompletionFunc -> BlockCompletionFunc, qemu_aio_release() -> qemu_aio_unref(), drop dictzip_aio_cancel()] [AF: common-obj-y -> block-obj-y, drop probe hook (bsc#945778)] [AF: Drop bdrv_open() drv parameter for 2.5] Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Bruce Rogers <brogers@suse.com> [AF: Drop bdrv_open() bs parameter and change return value for v2.7.0-rc2, for bdrv_pread() and bdrv_aio_readv() do s/s->hd/s->hd->file/] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06linux-user: use target_ulongAlexander Graf2-8/+8
Linux syscalls pass pointers or data length or other information of that sort to the kernel. This is all stuff you don't want to have sign extended. Otherwise a host 64bit variable parameter with a size parameter will extend it to a negative number, breaking lseek for example. Pass syscall arguments as ulong always. Signed-off-by: Alexander Graf <agraf@suse.de>
2016-09-06vnc: password-file= and incoming-connections=Andreas Färber1-0/+55
TBD (from SUSE Studio team)
2016-09-06slirp: -nooutgoingAndreas Färber4-0/+39
TBD (from SUSE Studio team)
2016-09-06linux-user: XXX disable fiemapAlexander Graf1-0/+5
agraf: fiemap breaks in libarchive. Disable it for now.
2016-09-06linux-user: implement FS_IOC_SETFLAGS ioctlAlexander Graf2-0/+2
Signed-off-by: Alexander Graf <agraf@suse.de> --- v1 -> v2 - use TYPE_LONG instead of TYPE_INT
2016-09-06linux-user: implement FS_IOC_GETFLAGS ioctlAlexander Graf2-0/+3
Signed-off-by: Alexander Graf <agraf@suse.de> --- v1 -> v2: - use TYPE_LONG instead of TYPE_INT
2016-09-06linux-user: Fake /proc/cpuinfoAlexander Graf1-0/+20
Fedora 17 for ARM reads /proc/cpuinfo and fails if it doesn't contain ARM related contents. This patch implements a quick hack to expose real /proc/cpuinfo data taken from a real world machine. The real fix would be to generate at least the flags automatically based on the selected CPU. Please do not submit this patch upstream until this has happened. Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Rebased for v1.6 and v1.7] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06linux-user: lock tb flushing tooAlexander Graf1-2/+18
Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Rebased onto exec.c/translate-all.c split for 1.4] [AF: Rebased onto tb_alloc() changes for v2.5.0-rc0] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06linux-user: Run multi-threaded code on a single coreAlexander Graf1-0/+9
Running multi-threaded code can easily expose some of the fundamental breakages in QEMU's design. It's just not a well supported scenario. So if we pin the whole process to a single host CPU, we guarantee that we will never have concurrent memory access actually happen. We can still get scheduled away at any time, so it's no complete guarantee, but apparently it reduces the odds well enough to get my test cases to pass. This gets Java 1.7 working for me again on my test box. Signed-off-by: Alexander Graf <agraf@suse.de>
2016-09-06linux-user: lock tcgAlexander Graf3-0/+38
The tcg code generator is not thread safe. Lock its generation between different threads. Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Rebased onto exec.c/translate-all.c split for 1.4] [AF: Rebased for v2.1.0-rc0] [AF: Rebased onto tcg_gen_code_common() drop for v2.5.0-rc0] [AF: Rebased for v2.7.0-rc2] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06linux-user: binfmt: support host binariesAlexander Graf1-0/+26
When we have a working host binary equivalent for the guest binary we're trying to run, let's just use that instead as it will be a lot faster. Signed-off-by: Alexander Graf <agraf@suse.de>
2016-09-06linux-user: fix segfault deadlockAlexander Graf1-0/+4
When entering the guest we take a lock to ensure that nobody else messes with our TB chaining while we're doing it. If we get a segfault inside that code, we manage to work on, but will not unlock the lock. This patch forces unlocking of that lock in the segv handler. I'm not sure this is the right approach though. Maybe we should rather make sure we don't segfault in the code? I would greatly appreciate someone more intelligible than me to look at this :). Example code to trigger this is at: http://csgraf.de/tmp/conftest.c Reported-by: Fabio Erculiani <lxnay@sabayon.org> Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Drop spinlock_safe_unlock() and switch to tb_lock_reset() (bonzini)] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06PPC: KVM: Disable mmu notifier checkAlexander Graf1-0/+2
When using hugetlbfs (which is required for HV mode KVM on 970), we check for MMU notifiers that on 970 can not be implemented properly. So disable the check for mmu notifiers on PowerPC guests, making KVM guests work there, even if possibly racy in some odd circumstances.
2016-09-06linux-user: add binfmt wrapper for argv[0] handlingAlexander Graf3-0/+57
When using qemu's linux-user binaries through binfmt, argv[0] gets lost along the execution because qemu only gets passed in the full file name to the executable while argv[0] can be something completely different. This breaks in some subtile situations, such as the grep and make test suites. This patch adds a wrapper binary called qemu-$TARGET-binfmt that can be used with binfmt's P flag which passes the full path _and_ argv[0] to the binfmt handler. The binary would be smart enough to be versatile and only exist in the system once, creating the qemu binary path names from its own argv[0]. However, this seemed like it didn't fit the make system too well, so we're currently creating a new binary for each target archictecture. CC: Reinhard Max <max@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Rebased onto new Makefile infrastructure, twice] [AF: Updated for aarch64 for v2.0.0-rc1] [AF: Rebased onto Makefile changes for v2.1.0-rc0] [AF: Rebased onto script rewrite for v2.7.0-rc2 - to be fixed] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06qemu-cvs-ioctl_nodirectionAlexander Graf1-0/+6
the direction given in the ioctl should be correct so we can assume the communication is uni-directional. The alsa developers did not like this concept though and declared ioctls IOC_R and IOC_W even though they were IOC_RW. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Ulrich Hecht <uli@suse.de>
2016-09-06qemu-cvs-ioctl_debugAlexander Graf1-1/+6
Extends unsupported ioctl debug output. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Ulrich Hecht <uli@suse.de>
2016-09-06qemu-cvs-gettimeofdayUlrich Hecht1-0/+2
No clue what this is for.
2016-09-06qemu-cvs-alsa_mmapAlexander Graf1-0/+14
Hack to prevent ALSA from using mmap() interface to simplify emulation. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Ulrich Hecht <uli@suse.de>
2016-09-06qemu-cvs-alsa_ioctlAlexander Graf6-0/+3555
Implements ALSA ioctls on PPC hosts. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Ulrich Hecht <uli@suse.de> [AF: Rebased for v2.7.0-rc2] Signed-off-by: Andreas Färber <afaerber@suse.de>
2016-09-06qemu-cvs-alsa_bitfieldAlexander Graf2-0/+24
Implements TYPE_INTBITFIELD partially. (required for ALSA support) Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Ulrich Hecht <uli@suse.de>