summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-02-16Fix emulation of splice syscalltizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_wearable/20150227.104204submit/tizen_tv/20150319.052230submit/tizen_mobile/20150319.052340submit/tizen_common/20150223.083300submit/tizen_3.0.2014.q4_common/20150224.000000submit/tizen/20151208.013156accepted/tizen/wearable/20151208.124740accepted/tizen/wearable/20150227.104320accepted/tizen/tv/20151208.124730accepted/tizen/tv/20150319.091859accepted/tizen/mobile/20151208.124709accepted/tizen/mobile/20150319.092022accepted/tizen/common/20150223.141054accepted/tizen/3.0.2014.q4/common/20150224.150711tizen_3.0.m1_tvtizen_3.0.m1_mobiletizen_3.0.2015.q2_commontizen_3.0.2015.q1_commontizen_3.0.2014.q4_commonaccepted/tizen_3.0.2014.q4_commonAndreas Schwab1-3/+13
The second and fourth argument are in/out parameters, store them back after the syscall. Also, the fourth argument was mishandled, and EFAULT handling was missing. Change-Id: I625ecd4dc3e53b8025585727439f1112c38d1758 Patch-Url: https://www.mail-archive.com/qemu-devel@nongnu.org/msg277687.html Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
2014-12-17Force pread64/pwrite64 to return 0 for zero-length buffersubmit/tizen_wearable/20150204.011455submit/tizen_wearable/20150202.034712submit/tizen_tv/20150204.012408submit/tizen_mobile/20150204.011944submit/tizen_mobile/20150129.000000submit/tizen_ivi/20150206.082313submit/tizen_common/20150224.160311submit/tizen_common/20150127.143638submit/tizen_3.0.2014.q4_common/20150224.132718accepted/tizen/wearable/20150204.014315accepted/tizen/tv/20150206.074811accepted/tizen/mobile/20150205.042645accepted/tizen/common/20150127.151335accepted/tizen/3.0.2014.q4/common/20150224.133827Ilya Palachev1-0/+8
According to official standard POSIX.1-2001. pread64 and pwrite64 should return 0 for zero-length buffers as mentioned at http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html http://pubs.opengroup.org/onlinepubs/009695399/functions/write.html Change-Id: Icd66ea29658329fbd5e6461d1def0c78c81d2671 Signed-off-by: Ilya Palachev <i.palachev@samsung.com>
2014-12-10Bump version to 2.2.0tizen_3.0_ivi_releasesubmit/tizen_mobile/20141216.000000submit/tizen_ivi/20141225.222222submit/tizen/20141211.020343accepted/tizen/wearable/20141215.104507accepted/tizen/tv/20141215.043801accepted/tizen/mobile/20141216.080429accepted/tizen/ivi/20141225.103520accepted/tizen/common/20141211.094501tizen_3.0_iviaccepted/tizen_iviaccepted/tizen_3.0_iviYury Usishchev1-1/+1
2014-12-10Added compatibility link /usr/bin/qemu-arm64-binfmtIlya Palachev1-0/+1
Change-Id: Iea5fef506730b3cb66de0d3317986e9a2986b723 Signed-off-by: Ilya Palachev <i.palachev@samsung.com>
2014-12-10Added compatibility link /usr/bin/qemu-arm64Vyacheslav Barinov1-0/+2
Change-Id: Ia866ea808806ce4b49d64522c3d2f299d49a32be Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
2014-12-10Enabling aarch64 cross-arm packageVyacheslav Barinov1-1/+2
Change-Id: I75487486c632fb377032ab3f7167cd4c01bfc20c Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
2014-12-10packaging: add qemu-ppc64le to the list of packaged filesIlya Palachev1-0/+1
Otherwise the build fails at the execution of the %packagind section: [ 662s] error: Installed (but unpackaged) file(s) found: [ 662s] /usr/bin/qemu-ppc64le Change-Id: Iae46712a3a94893e99516972d5163a83897bb41b Signed-off-by: Ilya Palachev <i.palachev@samsung.com>
2014-12-10packaging: add packaging spec filesChanho Park8-0/+657
This patch adds packaging files to build with GBS and rpmbuild. Change-Id: I1cb93997635a28b91a489dbe77d306e6ac684581 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2014-12-10enable 32 bit qemu for Tizen.Junfeng Dong1-0/+2
Change-Id: I75ecb5ef6952d1083c030f5e48ba2a24e4d6f4a1 Signed-off-by: Junfeng Dong <junfeng.dong@intel.com>
2014-12-10virtfs-proxy-helper.c: fix compile errorSteven Noonan1-1/+1
This is caused by a linux/xattr.h and sys/xattr.h incompatibility: In file included from /home/snoonan/Development/qemu/include/qemu/xattr.h:27:0, from fsdev/virtfs-proxy-helper.c:25: /usr/include/sys/xattr.h:31:3: error: expected identifier before numeric constant XATTR_CREATE = 1, /* set value, fail if attr already exists. */ ^ /home/snoonan/Development/qemu/qemu/rules.mak:25: recipe for target 'fsdev/virtfs-proxy-helper.o' failed Moving the include around resolves it. Change-Id: I8242070c18a511e62877d57564a7ad754a8f14c8 Signed-off-by: Steven Noonan <snoonan@amazon.com> Cc: Anthony Liguori <aliguori@amazon.com>
2014-12-10qtest: Increase socket timeoutAndreas Färber1-1/+1
Change from 5 to 15 seconds. Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10configure: 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>
2014-12-10virtfs-proxy-helper: Provide __u64 for broken sys/capability.hBruce Rogers1-0/+7
Fixes the build on SLE 11 SP2. [AF: Extend to ppc64]
2014-12-10linux-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>
2014-12-10Make 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.
2014-12-10console: 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>
2014-12-10Legacy Patch kvm-qemu-preXX-report-default-mac-used.patchAlexander Graf1-0/+22
2014-12-10Legacy Patch kvm-qemu-preXX-dictzip3.patchAlexander Graf1-2/+11
2014-12-10block: Add tar container formatAlexander Graf2-0/+387
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10block: Add support for DictZip enabled gzip filesAlexander Graf2-0/+597
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10linux-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>
2014-12-10linux-user: add more blk ioctlsAlexander Graf3-0/+27
Implement a few more ioctls that operate on block devices. Signed-off-by: Alexander Graf <agraf@suse.de>
2014-12-10vnc: password-file= and incoming-connections=Andreas Färber1-0/+71
TBD (from SUSE Studio team)
2014-12-10slirp: -nooutgoingAndreas Färber4-0/+40
TBD (from SUSE Studio team)
2014-12-10linux-user: XXX disable fiemapAlexander Graf1-0/+5
agraf: fiemap breaks in libarchive. Disable it for now.
2014-12-10linux-user: implement FS_IOC_SETFLAGS ioctlAlexander Graf2-0/+2
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-12-10linux-user: implement FS_IOC_GETFLAGS ioctlAlexander Graf2-0/+3
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-12-10linux-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>
2014-12-10linux-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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10linux-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>
2014-12-10linux-user: lock tcgAlexander Graf3-2/+42
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10linux-user: Ignore broken loop ioctlAlexander Graf4-0/+10
During invocations of losetup, we run into an ioctl that doesn't exist. However, because of that we output an error, which then screws up the kiwi logic around that call. So let's silently ignore that bogus ioctl. Signed-off-by: Alexander Graf <agraf@suse.de> [AF: Rebased for v2.1.0-rc0] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10target-arm: linux-user: no tb_flush on resetAlexander Graf1-0/+9
When running automoc4 as linux-user guest program, it segfaults right after it creates a thread. Bisecting pointed to commit a84fac1426 which introduces tb_flush on reset. So something in our thread creation is broken. But for now, let's revert the change to at least get a working build again. [AF: Rebased, fixed typo]
2014-12-10linux-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>
2014-12-10linux-user: fix segfault deadlockAlexander Graf2-0/+14
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> Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10PPC: 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.
2014-12-10linux-user: add binfmt wrapper for argv[0] handlingAlexander Graf4-18/+75
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10block/vmdk: Support creation of SCSI VMDK images in qemu-imgUlrich Hecht4-1/+21
Signed-off-by: Ulrich Hecht <uli@suse.de> [AF: Changed BLOCK_FLAG_SCSI from 8 to 16 for v1.2] [AF: Rebased onto upstream VMDK SCSI support] [AF: Rebased onto skipping of image creation in v1.7] [AF: Simplified in preparation for v1.7.1/v2.0] [AF: Rebased onto QemuOpts conversion for v2.1] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10qemu-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>
2014-12-10qemu-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>
2014-12-10qemu-cvs-gettimeofdayUlrich Hecht1-0/+2
No clue what this is for.
2014-12-10qemu-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>
2014-12-10qemu-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>
2014-12-10qemu-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>
2014-12-10qemu-0.9.0.cvs-binfmtUlrich Hecht1-18/+21
Fixes binfmt_misc setup script: - x86_64 is i386-compatible - m68k signature fixed - path to QEMU Signed-off-by: Ulrich Hecht <uli@suse.de> [AF: Update path for qemu-aarch64 for v2.0.0-rc1] Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-12-10XXX work around SA_RESTART race with boehm-gc (ARM only)Alexander Graf4-10/+130
[AF: CPUState -> CPUArchState, adapt to reindentation] [AF: CPUArchState::opaque -> CPUState::opaque]
2014-12-10XXX dont dump core on sigabortAlexander Graf1-0/+6
2014-12-10Imported Upstream version 2.2.0upstream/2.2.1upstream/2.2.0Chanho Park1201-32372/+112857
2014-09-05Imported Upstream version 2.1.0upstream/2.1.0Chanho Park10009-55860/+1941241
2014-07-07Imported Upstream version 2.0.0upstream/2.0.0Chanho Park2284-133600/+277335
Change-Id: I081766c4314e7893f54fec80b920b1638d15021f