- Jul 29, 2012
-
-
Michael S. Tsirkin authored
Merge master and pci branch, resolve build breakage in hw/esp.c introduced by f90c2bcd. Conflicts: hw/esp.c
-
Vitaly Chipounov authored
According to the Intel manual "Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3", "3.4.4 Segment Loading Instructions in IA-32e Mode": "When in compatibility mode, FS and GS overrides operate as defined by 32-bit mode behavior regardless of the value loaded into the upper 32 linear-address bits of the hidden descriptor register base field. Compatibility mode ignores the upper 32 bits when calculating an effective address." However, the code misses the 64-bit mode case, where an instruction with address and segment size override would be translated incorrectly. For example, inc dword ptr gs:260h[ebx*4] gets incorrectly translated to: (uint32_t)(gs.base + ebx * 4 + 0x260) instead of gs.base + (uint32_t)(ebx * 4 + 0x260) Signed-off-by:
Vitaly Chipounov <vitaly.chipounov@epfl.ch> Reviewed-by:
Max Filippov <jcmvbkbc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
Past contributions since 2012-01-13 were only made by Red Hat people, so they are already available under GPLv2+. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Stefan Weil <sw@weilnetz.de> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Dunrong Huang authored
This patch will fix the following linking failed: LINK qemu-ga gcc: error: qga/../qapi-generated/qga-qapi-types.o: No such file or directory gcc: error: qga/../qapi-generated/qga-qapi-visit.o: No such file or directory gcc: error: qga/../qapi-generated/qga-qmp-marshal.o: No such file or directory make: *** [qemu-ga] Error 1 Commit cdc976b0 changes the dependencies of qemu-ga to depend "../qapi-generated/qga-qapi-types.o", which will be expanded to "qga/../qapi-generated/qga-qapi-types.o" when building qemu-ga. In top-level Makefile, we defined a target "qapi-generated/qga-qapi-types.o" which was not equal to "qga/../qapi-generated/qga-qapi-types" in the Makefile world. So "No such file" error happened when qemu-ga was linking. The easy approach to fix is to change the target name to "qga/../qapi-generated/qga-qapi-types.o", but it is weird. So, in order to solve it more graciously, I move those temporary files(qga-qapi-*.{c,h}) qemu-ga depends on to qemu-ga/qapi-generated, this makes dependencies more clearer. Signed-off-by:
Dunrong Huang <riegamaths@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- Jul 28, 2012
-
-
Blue Swirl authored
System headers (e.g. gutils.h) may define 'inline', #undefine it before #defining. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Blue Swirl authored
It's silly and non-conforming to standards to return void, don't do it. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Peter Maydell authored
Drop a duplicate definition of the 'disabled' property from the escc qdev property list: this redefinition is currently effectively ignored but will become an error. (The duplication was inadvertently introduced in 2009 in commit ec02f7de.) Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Acked-by:
Andreas Färber <afaerber@suse.de> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
After commit dcff25f2, Dependency file are taken from the directories that have a Makefile.objs file. This is not enough, since files can be included from other directories. So, pick them from directories that have an object file in them. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
No reason to leave them out, and it will ensure that the dependencies are picked up. Later we can perhaps move the files to another directory to avoid ../ usage. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Eduardo Habkost authored
Otherwise 'make check' won't recompile files that need to be recompiled because of header changes. To reproduce the bug, run: $ make check # succeeds $ echo B0RKED > hw/mc146818rtc_regs.h $ make check # is supposed to try to rebuild tests/rtc-test.o and fail Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Acked-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Peter Maydell authored
The qemu_chr_new() function doesn't set errno on failure, so don't print strerror(errno) on the error handling path when dealing with the -serial, -parallel and -virtioconsole arguments. This avoids nonsensical error messages like: $ ./arm-softmmu/qemu-system-arm -serial wombat qemu: could not open serial device 'wombat': Success We also rephrase the message slightly to make it a little clearer that we're expecting the name of a QEMU chr backend rather than a host or guest serial/parallel/etc device. Reported-by:
Christian Müller <christian.mueller@heig-vd.ch> Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Max Filippov authored
Quote from ISA, 2.1: For most Xtensa instructions, bit numbering is irrelevant; only the BBC and BBS instructions assign bit numbers to values on which the processor operates. The BBC/BBS instructions use big-endian bit ordering (0 is the most-significant bit) on a big-endian processor configuration. Signed-off-by:
Max Filippov <jcmvbkbc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- Jul 27, 2012
-
-
Jia Liu authored
Add testcases for OpenRISC. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add QEMU OpenRISC linux user support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC linux syscall, signal and termbits. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC gdb stub support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC system instructions. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add a IIS dummy board. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC timer support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC Programmable Interrupt Controller support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC instruction tanslation routines. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC float instruction helpers. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC int instruction helpers. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC exception support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC interrupt support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC MMU support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC target stubs, QOM cpu and basic machine. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- Jul 23, 2012
-
-
Anthony Liguori authored
* stefanha/net: remove unused QemuOpts parameter from net init functions convert net_init_bridge() to NetClientOptions convert net_init_tap() to NetClientOptions convert net_init_vde() to NetClientOptions convert net_init_socket() to NetClientOptions convert net_init_slirp() to NetClientOptions convert net_init_dump() to NetClientOptions convert net_init_nic() to NetClientOptions convert net_client_init() to OptsVisitor hw, net: "net_client_type" -> "NetClientOptionsKind" (qapi-generated) qapi schema: add Netdev types qapi schema: remove trailing whitespace qapi: introduce OptsVisitor expose QemuOpt and QemuOpts struct definitions to interested parties qapi: introduce "size" type qapi: generate C types for fixed-width integers qapi: add test case for deallocating traversal of incomplete structure qapi: fix error propagation MAINTAINERS: Replace net maintainer Mark McLoughlin with Stefan Hajnoczi
-
Anthony Liguori authored
* stefanha/trivial-patches: Fix some more Qemus in documentation and help text qdev: Fix Open Firmware comment cpus.c: Make all_cpu_threads_idle() static Use macro QEMU_PACKED for new packed structures Recognize PCID feature powerpc pci: fixed packing of ranges[]
-
Anthony Liguori authored
* pmaydell/arm-devs.for-upstream: exynos4210: add Exynos4210 i2c implementation hw/exynos4210_rtc.c: remove unnecessary code hw/exynos4210_rtc.c: Fix calculating for value of year hw/vexpress.c: Allow >4GB of RAM for Cortex-A15 daughterboard hw/arm_boot.c: Support DTBs which use 64 bit addresses device_tree: Add support for reading device tree properties hw/arm_boot.c: Check for RAM sizes exceeding ATAGS capacity hw/arm_boot.c: Consistently use ram_size from arm_boot_info struct hw/arm_boot.c: Make ram_size a uint64_t hw/pl011.c: Avoid crash on read when no chr backend present
-
Anthony Liguori authored
* stefanha/tracing: Update simpletrace.py for new log format Simpletrace v2: Support multiple arguments, strings. monitor: remove unused do_info_trace trace: added ability to comment out events in the list
-
Laszlo Ersek authored
v1->v2: - unchanged v2->v3: - keep "qemu-option.h" included in "net/slirp.h" Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
v1->v2: - NetdevVdeOptions::port and ::mode are of type uint16. Remove superfluous range checks. Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
I "reverse engineered" the following permissions between the -socket sub-options: fd listen connect mcast udp | localaddr fd x . . . . | . listen . x . . . | . connect . . x . . | . mcast . . . x . | x udp . . . . x | x -------------------------------------------+ localaddr . . . x x x I transformed the code accordingly. The real fix would be to embed "fd", "listen", "connect", "mcast" and "udp" in a separate union. However OptsVisitor's enum parser only supports the type=XXX QemuOpt instance as union discriminator. Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
v1->v2: - NetdevDumpOptions::len is of type 'size', whose C type was changed to uint64_t. Adapt the printf() format specifier macro. Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
v1->v2: - NetLegacyNicOptions::vectors is of type uint32 Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Laszlo Ersek authored
The net_client_init() prototype is kept intact. Based on "is_netdev", the QemuOpts-rooted QemuOpt-list is parsed as a Netdev or a NetLegacy. The original meat of net_client_init() is moved to and simplified in net_client_init1(): Fields not common between -net and -netdev are clearly separated. Getting the name for the init functions is cleaner: Netdev::id is mandatory, and all init functions handle a NULL NetLegacy::name. NetLegacy::vlan explicitly depends on -net (see below). Verifying the "type=" option for -netdev can be turned into a switch. Format validation with qemu_opts_validate() can be removed because the visitor covers it. Relatedly, the "net_client_types" array is reduced to an array of init functions that can be directly indexed by opts->kind. (Help text is available in the schema JSON.) The outermost negation in the condition around qemu_find_vlan() was flattened, because it expresses the dependent code's requirements more clearly. VLAN lookup is avoided if there's no init function to pass the VLAN to. Whenever the value of type=... is needed, we substitute NetClientOptionsKind_lookup[kind]. The individual init functions are not converted yet, thus the original QemuOpts instance is passed transparently. v1->v2: - NetLegacy::name is optional. Tracked it through all init functions: they all handle a NULL name. Updated commit message accordingly. v2->v3: - NetLegacy::id is allowed and takes precedence over NetLegacy::name. Signed-off-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-