summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* qapi: allow a 'gen' key to suppress code generationAnthony Liguori2011-12-152-0/+2
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qom: add link properties (v2)Anthony Liguori2011-12-152-0/+97
| | | | | | | | | | | Links represent an ephemeral relationship between devices. They are meant to replace the qdev concept of busses by allowing more informal relationships between devices. Links are fairly limited in their usefulness without implementing QOM-style subclassing and interfaces. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qom: add child properties (composition) (v3)Anthony Liguori2011-12-152-0/+46
| | | | | | Child properties express a relationship of composition. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qdev: provide a path resolution (v2)Anthony Liguori2011-12-152-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | There are two types of supported paths--absolute paths and partial paths. Absolute paths are derived from the root device and can follow child<> or link<> properties. Since they can follow link<> properties, they can be arbitrarily long. Absolute paths look like absolute filenames and are prefixed with a leading slash. Partial paths are look like relative filenames. They do not begin with a prefix. The matching rules for partial paths are subtle but designed to make specifying devices easy. At each level of the composition tree, the partial path is matched as an absolute path. The first match is not returned. At least two matches are searched for. A successful result is only returned if only one match is founded. If more than one match is found, a flag is returned to indicate that the match was ambiguous. At the end of the day, partial path support means that if you create a device called 'ide0', you can just say 'ide0' as the path name and it will Just Work. If we internally create a device called 'i440fx', you can just say 'i440fx' and it will Just Work and long as you don't do anything silly. A management tool should probably always use absolute paths since then they don't have to deal with the possibility of ambiguity. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qdev: provide an interface to return canonical path from root (v2)Anthony Liguori2011-12-152-0/+57
| | | | | | | | | | The canonical path is the path in the composition tree from the root to the device. This is effectively the name of the device. This is an incredibly unefficient implementation that will be optimized in a future patch. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qom: introduce root deviceAnthony Liguori2011-12-154-1/+41
| | | | | | | | This is based on Jan's suggestion for how to do unique naming. The root device is the root of composition. All devices are reachable via child<> links from this device. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qom: register legacy properties as new style properties (v2)Anthony Liguori2011-12-152-0/+93
| | | | | | | | Expose all legacy properties through the new QOM property mechanism. The qdev property types are exposed through the 'legacy<>' namespace. They are always visited as strings since they do their own string parsing. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qom: add new dynamic property infrastructure based on Visitors (v2)Anthony Liguori2011-12-154-0/+224
| | | | | | | | | | | qdev properties are settable only during construction and static to classes. This isn't flexible enough for QOM. This patch introduces a property interface for qdev that provides dynamic properties that are tied to objects, instead of classes. These properties are Visitor based instead of string based too. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qom: add a reference count to qdev objectsAnthony Liguori2011-12-152-0/+42
| | | | | | | To ensure that a device isn't removed from the graph until all of its links are broken. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tcg/arm: remove fixed map code buffer restrictionDr. David Alan Gilbert2011-12-142-22/+13Star
| | | | | | | | | | | On ARM, don't map the code buffer at a fixed location, and fix up the call/goto tcg routines to let it do long jumps. Mapping the code buffer at a fixed address could sometimes result in it being mapped over the top of the heap with pretty random results. Signed-off-by: Dr. David Alan Gilbert <david.gilbert@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
* Merge branch 'target-arm.for-upstream' of ↵Andrzej Zaborowski2011-12-141-53/+42Star
|\ | | | | | | git://git.linaro.org/people/pmaydell/qemu-arm
| * target-arm: Infer VFPv3 feature from VFPv4Andreas Färber2011-12-131-1/+3
| | | | | | | | | | | | | | VFP4 => VFP3 Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer VFP feature from VFPv3Andreas Färber2011-12-131-3/+3
| | | | | | | | | | | | | | VFP3 => VFP Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer Thumb division feature from M profileAndreas Färber2011-12-131-1/+3
| | | | | | | | | | | | | | M => THUMB_DIV Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer Thumb2 feature from ARMv7Andreas Färber2011-12-131-4/+1Star
| | | | | | | | | | | | | | V7 => THUMB2 Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer AUXCR feature from ARMv6Andreas Färber2011-12-131-5/+3Star
| | | | | | | | | | | | | | V6 && !M => AUXCR Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer ARMv6(K) feature from ARMv7Andreas Färber2011-12-131-4/+5
| | | | | | | | | | | | | | | | V7 && M => V6 V7 && !M => V6K Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer ARMv6 feature from v6KAndreas Färber2011-12-131-5/+3Star
| | | | | | | | | | | | | | V6K => V6 Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer ARMv5 feature from ARMv6Andreas Färber2011-12-131-7/+3Star
| | | | | | | | | | | | | | V6 => V5 Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * target-arm: Infer ARMv4T feature from ARMv5Andreas Färber2011-12-131-12/+3Star
| | | | | | | | | | | | | | V5 => V4T Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| * arm: Fix CP15 FSR (C5) domain settingJean-Christophe DUBOIS2011-12-131-11/+15
| | | | | | | | | | | | | | | | | | Return the correct value in the domain field in the cp15 DFSR (C5) -- bug noticed during Xvisor development. Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net> [Peter Maydell: reworded commit message] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
* | Merge remote-tracking branch 'stefanha/trivial-patches-next' into stagingAnthony Liguori2011-12-1494-533/+228Star
|\ \ | |/ |/|
| * doc: Remove Symbian Virtual PlatformStefan Weil2011-12-141-23/+0Star
| | | | | | | | | | | | | | | | Commit d396a657baec8c6b7aa0c888746e0e2f78303650 removed the code for SVP, so the documentation needs this update. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * migration.h: remove incoming_expected declarationsIsaku Yamahata2011-12-141-2/+0Star
| | | | | | | | | | | | | | | | | | The variable is deleted by 1bcef683bf840a928d633755031ac572d5fdb851 So remove its declaration. Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * tcg: make tcg_const_ptr actually accept a pointer argumentPeter Maydell2011-12-142-5/+5
| | | | | | | | | | | | | | | | | | | | Make tcg_const_ptr() include a cast so that you can pass it a pointer. This allows us to drop the casts we had in all the places that use this macro. Acked-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * Fix spelling in comments, documentation and messagesStefan Weil2011-12-1417-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accidently->accidentally annother->another choosen->chosen consideres->considers decriptor->descriptor developement->development paramter->parameter preceed->precede preceeding->preceding priviledge->privilege propogation->propagation substraction->subtraction throught->through upto->up to usefull->useful Fix also grammar in posix-aio-compat.c Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * hw: Fix spelling in comments and codeStefan Weil2011-12-141-7/+7
| | | | | | | | | | | | | | | | | | compatiblity->compatibility transfered->transferred transfering->transferring Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * hw: Fix spelling in commentsStefan Weil2011-12-143-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adress->address advertisment->advertisement begining->beginning bondary->boundary controler->controller controll->control convertion->conversion doesnt->doesn't existant->existent instuction->instruction loosing->losing managment->management multipled->multiplied negotation->negotiation runing->running teh->the unchangable->unchangeable writen->written yeild->yield Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * hw: Fix spelling (licenced->licensed)Stefan Weil2011-12-145-5/+5
| | | | | | | | | | | | | | New code introduced old misspellings. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * fmopl: Fix spelling in code and commentsStefan Weil2011-12-142-18/+18
| | | | | | | | | | | | | | | | | | | | | | algorythm->algorithm rythm->rhythm I did not try to fix the coding standard, so checkpatch.pl reports lots of violations. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * virtio-pci: use pci macrosHui Kai Ran2011-12-091-3/+4
| | | | | | | | | | Signed-off-by: Hui Kai Ran <hkran@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * LICENSE: There is no libqemu.a anymoreChen Wei-Ren2011-12-091-3/+1Star
| | | | | | | | | | | | | | | | Remove statement about libqemu.a from LICENSE. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * Makefile.objs: Remove libqemu_common.a from the commentChen Wei-Ren2011-12-091-4/+3Star
| | | | | | | | | | | | | | | | Remove libqemu_common.a from the comment. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * Makefile.target: Remove out of date commentChen Wei-Ren2011-12-091-2/+0Star
| | | | | | | | | | | | | | | | | | Remove the out of date comment, i.e., "# libqemu" since libqemu.a is not available anymore. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * qemu-tech.texi: Remove libqemu related stuff from the documentChen Wei-Ren2011-12-091-10/+0Star
| | | | | | | | | | | | | | | | | | Remove libqemu related stuff from the document since libqemu.a is not supported anymore. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * tests/qruncom.c: Remove libqemu.a exampleChen Wei-Ren2011-12-091-284/+0Star
| | | | | | | | | | | | | | | | Remove libqemu example since libqemu.a is not available anymore. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * tests/Makefile: Remove qruncom targetChen Wei-Ren2011-12-091-6/+0Star
| | | | | | | | | | | | | | | | Remove qruncom target from the Makefile file. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * tcg: Remove redundant declarations of TCG_TARGET_REG_BITSStefan Weil2011-12-091-5/+0Star
| | | | | | | | | | | | | | TCG_TARGET_REG_BITS is declared in tcg.h for all TCG targets. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * mips_malta: resolve endless loop when loading biosChen Rui2011-12-061-0/+1
| | | | | | | | | | Tested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Chen Rui <chennrui@gmail.com>
| * memory: minor documentation fixes/enhancementsAdemar de Souza Reis Jr2011-12-062-19/+25
| | | | | | | | | | | | | | | | | | | | | | | | Fix typos and minor documentation errors in both memory.h and docs/memory.txt. Also add missing documentation formatting tags to transaction functions. Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Ademar de Souza Reis Jr <areis@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * linux-user/syscall.c: Don't skip stracing for fcntl64 failure casePeter Maydell2011-12-061-2/+4
| | | | | | | | | | | | | | | | | | | | In an fcntl64 failure path, we were returning directly rather than simply breaking out of the switch statement. This skips the strace code for printing the syscall return value, so don't do that. Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * Rename get_tls to tls_varJan Kiszka2011-12-062-3/+3
| | | | | | | | | | | | | | get_tls() can serve as a lvalue as well, so 'get' might be confusing. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * linux-user/arm/nwfpe/fpopcode.h: Fix non-UTF-8 charactersPeter Maydell2011-12-061-17/+17
| | | | | | | | | | | | | | | | | | Fix some stray non-UTF-8 characters used in some ASCII art tables by converting them to plain ASCII '|' instead. Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * linux-user/cpu-uname.c: Convert to UTF-8Peter Maydell2011-12-061-1/+1
| | | | | | | | | | | | | | | | | | Convert comment from ISO-8859-1 encoding to UTF-8 to match the rest of QEMU's source code. Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * Convert keymap file to UTF-8 encodingStefan Weil2011-12-061-1/+1
| | | | | | | | | | | | | | | | Most QEMU files either are pure ASCII or use UTF-8. Convert this keymap file which still used ISO-8859-1 to UTF-8. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * Convert source files to UTF-8 encodingStefan Weil2011-12-065-5/+5
| | | | | | | | | | | | | | | | Most QEMU files either are pure ASCII or use UTF-8. Convert some files which still used ISO-8859-1 to UTF-8. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * configure: Pull linux-headers/asm symlink creation out of loopPeter Maydell2011-12-061-17/+20
| | | | | | | | | | | | | | | | | | | | Pull the creation of the linux-headers/asm symlink out of the loop so we don't pointlessly delete and recreate it once for each target. Also move the setting of the includes variable up so that it is in the same place as the other code which sets this variable. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * pcie_aer: adjust do_pcie_aer_inejct_error -> do_pcie_aer_inject_errorZhi Yong Wu2011-12-064-4/+4
| | | | | | | | | | | | | | This function name is a bit wrong. Although it doesn't impact function, it is a bit necessary that we should fixup it. Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * fix spelling in hw sub directoryDong Xu Wang2011-12-0622-30/+30
| | | | | | | | | | | | | | Correct obvious spelling errors in qemu/hw directory. Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * fix typo: delete redundant semicolonDong Xu Wang2011-12-0615-21/+21
| | | | | | | | | | | | | | Double semicolons should be single. Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>