summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-02-07virtfs-proxy-helper.c: fix compile errortizen_3.0.m14.3_ivi_releasetizen_3.0.m14.2_ivi_releasetizen_3.0.2014.q3_common_releasesubmit/tizen_ivi_release/20140312.071342submit/tizen_ivi_panda/20140408.211720submit/tizen_ivi_panda/20140403.012104submit/tizen/20140312.070911submit/tizen/20140207.095509accepted/tizen/mobile/20140227.070453accepted/tizen/ivi/release/20140312.123556accepted/tizen/ivi/panda/20140408.211306accepted/tizen/ivi/panda/20140403.014142accepted/tizen/ivi/panda/20140312.121016accepted/tizen/ivi/20140208.002155accepted/tizen/generic/20140312.123108accepted/tizen/generic/20140207.095458tizen_ivi_releasetizen_ivi_pandatizen_3.0.m14.3_ivitizen_3.0.m14.2_ivitizen_3.0.2014.q3_commonaccepted/tizen_ivi_releaseaccepted/tizen_ivi_pandaaccepted/tizen_genericaccepted/tizen_3.0.m14.3_iviaccepted/tizen_3.0.2014.q3_commonaccepted/tizen/ivi/stableaccepted/tizen/genericSteven 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>
2013-11-19enable 32 bit qemu for Tizen.submit/tizen/20131121.100842submit/tizen/20131121.095043accepted/tizen/20131122.182029accepted/tizen/20131121.182611qemu1.6.0accepted/tizen/mobileJunfeng Dong2-1/+3
Change-Id: I75ecb5ef6952d1083c030f5e48ba2a24e4d6f4a1 Signed-off-by: Junfeng Dong <junfeng.dong@intel.com>
2013-11-19Upgrade to 1.6.0.Junfeng Dong1-2/+4
Change-Id: I6189cdcd1b31c11b429fd42c52656c542add5bb4 Signed-off-by: Junfeng Dong <junfeng.dong@intel.com>
2013-11-19Avoid strict-aliasing warning for gcc 4.3Bo Yang1-2/+2
Signed-off-by: Bo Yang <boyang@suse.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-11-19Fix size used for memset in alloc_output_fileDaniel P. Berrange1-1/+1
The output->buf field is a pointer, not an array, so sizeof() is not applicable. We must use the allocated string length instead. Identified by gcc: util/zbin.c: In function ‘alloc_output_file’: util/zbin.c:146:37: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset ( output->buf, 0xff, sizeof ( output->buf ) ); Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-11-19Work around bug in gcc >= 4.8Michael Brown1-3/+5
gcc 4.8 and 4.9 fail to compile pxe_call.c with the error "bp cannot be used in asm here". Other points in the codebase which use "ebp" in the asm clobber list do not seem to be affected. Unfortunately gcc provides no way to specify %ebp as an output register, so we cannot use this as a workaround. The only viable solution is to explicitly push/pop %ebp within the asm itself. This is ugly for two reasons: firstly, it may be unnecessary; secondly, it may cause gcc to generate invalid %esp-relative addresses if the asm happens to use memory operands. This specific block of asm uses no memory operands and so will not generate invalid code. Reported-by: Daniel P. Berrange <berrange@redhat.com> Reported-by: Christian Hesse <list@eworm.de> Originally-fixed-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-11-19configure: Enable PIE for ppc and ppc64 hostsDinar Valeev1-1/+1
Signed-off-by: Dinar Valeev <dvaleev@suse.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19roms: Build vgabios.binBruce Rogers1-0/+2
2013-11-19gdbstub: Fix gdb_register_coprocessor() register countingAndreas Färber3-3/+7
Commit a0e372f0c49ac01faeaeb73a6e8f50e8ac615f34 reorganized the register counting for GDB. While it seems correct not to let the total number of registers skyrocket in an SMP scenario through a static variable, the distinction between total register count and 'g' packet register count (last_reg vs. num_g_regs) got lost among the way. Fix this by introducing CPUState::gdb_num_g_regs and using that in gdb_handle_packet(). Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Cc: qemu-stable@nongnu.org (stable-1.6) Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Tested-by: Max Filippov <jcmvbkbc@gmail.com> Tested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de> (cherry-picked from commit 35143f0164e6933a85c7c2b8a89a040d881a9151) Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19virtfs-proxy-helper: Provide __u64 for broken sys/capability.hBruce Rogers1-0/+7
Fixes the build on SLE 11 SP2. [AF: Extend to ppc64]
2013-11-19linux-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>
2013-11-19Make 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.
2013-11-19console: 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>
2013-11-19Legacy Patch kvm-qemu-preXX-report-default-mac-used.patchAlexander Graf1-0/+22
2013-11-19Legacy Patch kvm-qemu-preXX-dictzip3.patchAlexander Graf1-2/+11
2013-11-19Add 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> Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19Add 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> Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19linux-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>
2013-11-19linux-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>
2013-11-19vnc: password-file= and incoming-connections=Andreas Färber1-0/+71
TBD (from SUSE Studio team)
2013-11-19add changelog entryAnas Nashif1-0/+5
2013-11-19add baselibs.confAnas Nashif2-4/+8
Change-Id: I26a246fdc387260eb9bcbec68b4c0064d771ed5a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2013-11-19fixed group and licenseAnas Nashif1-5/+2
Change-Id: I5c459d6896c60bf3038b6815187ec557e7456409
2013-11-19resetting manifest requested domain to floorAlexandru Cornea1-0/+5
2013-11-19Set license using %licenseAnas Nashif2-0/+4
2013-11-19Enable SDL display supportPatrick McCarty2-7/+17
Change-Id: I559e3192d37463f1649e75565dff17598abcb99d
2013-11-19Update to 1.3Anas Nashif2-1/+4
2013-11-19remove req on python-baseAnas Nashif1-1/+1
2013-11-19depend on libgcrypt-develAnas Nashif1-6/+1
2013-11-19remove patchesAnas Nashif34-6103/+0
2013-11-19slirp: -nooutgoingAndreas Färber4-0/+40
TBD (from SUSE Studio team)
2013-11-19linux-user: XXX disable fiemapAlexander Graf1-0/+5
agraf: fiemap breaks in libarchive. Disable it for now.
2013-11-19linux-user: implement FS_IOC_SETFLAGS ioctlAlexander Graf2-0/+2
Signed-off-by: Alexander Graf <agraf@suse.de>
2013-11-19linux-user: implement FS_IOC_GETFLAGS ioctlAlexander Graf2-0/+3
Signed-off-by: Alexander Graf <agraf@suse.de>
2013-11-19linux-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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19linux-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>
2013-11-19linux-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>
2013-11-19linux-user: lock tcgAlexander Graf3-2/+43
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19linux-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>
2013-11-19linux-user: arm: no tb_flush on resetAlexander Graf1-0/+4
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.
2013-11-19linux-user: binfmt: support host binariesAlexander Graf1-0/+25
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. Change-Id: I7ae3bd8dbf8e5562affe0e6921e15a32e2d3e0a1 Signed-off-by: Alexander Graf <agraf@suse.de>
2013-11-19linux-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>
2013-11-19PPC: 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.
2013-11-19linux-user: be silent about capget failuresAlexander Graf1-1/+1
Complaining about capget doesn't buy us anything, but makes %check fail in certain builds. So better not complain about its missing implementation and go on with life :) Signed-off-by: Alexander Graf <agraf@suse.de>
2013-11-19linux-user: Ignore timer_create syscallAlexander Graf1-0/+5
We don't implement the timer_create syscall, but shouting out loud about it breaks some %check tests in OBS, so better ignore it silently. Signed-off-by: Alexander Graf <agraf@suse.de>
2013-11-19linux-user: add binfmt wrapper for argv[0] handlingAlexander Graf4-17/+73
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19block/vmdk: Support creation of SCSI VMDK images in qemu-imgUlrich Hecht4-3/+22
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] Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-19qemu-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>
2013-11-19qemu-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>
2013-11-19qemu-cvs-gettimeofdayUlrich Hecht1-0/+2
No clue what this is for.