summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* qapi: move include files to include/qobject/Paolo Bonzini2012-12-19119-241/+241
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* janitor: add guards to headersPaolo Bonzini2012-12-1950-0/+219
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* qapi: make struct Visitor opaquePaolo Bonzini2012-12-192-40/+40
| | | | | Move its definition from qapi-visit-core.h to qapi-visit-impl.h. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* qapi: remove qapi/qapi-types-core.hPaolo Bonzini2012-12-1910-22/+10Star
| | | | | | The file is only including error.h and qerror.h. Prefer explicit inclusion of whatever files are needed. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* qapi: move inclusions of qemu-common.h from headers to .c filesPaolo Bonzini2012-12-1913-1/+14
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* ui: move files to ui/ and include/ui/Paolo Bonzini2012-12-1980-101/+95Star
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* qemu-ga: move qemu-ga files to qga/Paolo Bonzini2012-12-195-6/+7
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* net: reorganize headersPaolo Bonzini2012-12-1999-156/+170
| | | | | | | | | Move public headers to include/net, and leave private headers in net/. Put the virtio headers in include/net/tap.h, removing the multiple copies that existed. Leave include/net/tap.h as the interface for NICs, and net/tap_int.h as the interface for OS-specific parts of the tap backend. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* net: move net.c to net/Paolo Bonzini2012-12-193-6/+6
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* net: do not include net.h everywherePaolo Bonzini2012-12-1917-16/+1Star
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* net: move Bluetooth stuff out of net.hPaolo Bonzini2012-12-198-21/+17Star
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* janitor: do not include qemu-char everywherePaolo Bonzini2012-12-1931-25/+7Star
| | | | | | | Touching char/char.h basically causes the whole of QEMU to be rebuilt. Avoid this, it is usually unnecessary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* janitor: do not rely on indirect inclusions of or from qemu-char.hPaolo Bonzini2012-12-1926-0/+27
| | | | | | | | | Various header files rely on qemu-char.h including qemu-config.h or main-loop.h, but they really do not need qemu-char.h at all (particularly interesting is the case of the block layer!). Clean this up, and also add missing inclusions of qemu-char.h itself. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: kill libuserPaolo Bonzini2012-12-195-35/+6Star
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: kill libdis, move disassemblers to disas/Paolo Bonzini2012-12-1951-115/+86Star
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: create ldscripts/Paolo Bonzini2012-12-1914-1/+1
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: move rules from Makefile to */Makefile.objsPaolo Bonzini2012-12-195-10/+12
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: add $(TARGET_DIR) to "GEN config-target.h" linesPaolo Bonzini2012-12-191-1/+1
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: adjust setting of QEMU_INCLUDESPaolo Bonzini2012-12-193-4/+4
| | | | | | | Make it correct for nested directories, and move the static part from Makefile to configure. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* vscclient: use per-target variablesPaolo Bonzini2012-12-191-1/+2
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* libcacard: simplify rules for recursive buildPaolo Bonzini2012-12-171-9/+1Star
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* Merge commit '1dd3a74d2ee2d873cde0b390b536e45420b3fe05' into HEADPaolo Bonzini2012-12-17138-290/+293
|\ | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| * kvm: do not flush after deleting gsiMichael S. Tsirkin2012-12-171-2/+0Star
| | | | | | | | | | | | | | Deleting a GSI isn't necessary: it is enough to stop using it. Delay flush until an entry is used. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci_bus.h: tweak include guardsMichael S. Tsirkin2012-12-171-3/+3
| | | | | | | | | | | | | | Now that header has been renamed, tweak include guards to match. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci_bus: update commentMichael S. Tsirkin2012-12-171-7/+3Star
| | | | | | | | | | | | | | Don't ask everyone to desist from including this header, simply recommend using accessors. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: rename pci_internals.h pci_bus.hMichael S. Tsirkin2012-12-1713-12/+12
| | | | | | | | | | | | | | | | There are lots of external users of pci_internals.h, apparently making it an internal interface only didn't work out. Let's stop pretending it's an internal header. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * Revert "pci: prepare makefiles for pci code reorganization"Michael S. Tsirkin2012-12-174-4/+0Star
| | | | | | | | | | | | | | | | | | This reverts commit 475d67c3bcd6ba9fef917b6e59d96ae69eb1a9b4. Now that all users have been updated, we don't need the makefile hack or the softlink anymore. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: fix path for local includesMichael S. Tsirkin2012-12-1722-62/+62
| | | | | | | | | | | | | | | | | | Include dependencies from pci core using the correct path. This is required now that it's in the separate directory. Need to check whether they can be minimized, for now, keep the code as is. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: update all users to look in pci/Michael S. Tsirkin2012-12-17102-159/+159
| | | | | | | | | | | | update all users so we can remove the makefile hack. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: move pci core code to hw/pciMichael S. Tsirkin2012-12-1732-11/+11
| | | | | | | | | | | | | | Move files and modify makefiles to pick them at the new location. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * MAINTAINERS: add hw/pci/ to list of PCI filesMichael S. Tsirkin2012-12-121-0/+1
| | | | | | | | Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: prepare makefiles for pci code reorganizationMichael S. Tsirkin2012-12-124-0/+4
| | | | | | | | | | | | | | | | | | To make it easier to move code around without breaking build at intermedite steps, tweak makefiles to look in pci/ and hw/ for include files, automatically. This will be reverted at the end of the reorganization. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * get_maintainer.pl: update from linix 3.8Michael S. Tsirkin2012-12-121-9/+16
| | | | | | | | Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * tap: reset vnet header size on openMichael S. Tsirkin2012-12-121-0/+8
| | | | | | | | | | | | | | | | | | For tap, we currently assume the vnet header size is 10 (the default value) but that might not be the case if tap is persistent and has been used by qemu previously. To fix, set vnet header size correctly on open. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * Fixup q35/ich9 LicensesJason Baron2012-12-123-36/+23Star
| | | | | | | | | | | | | | | | Cleanup the q35/ich9 license headers. Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | exec: refactor cpu_restore_stateBlue Swirl2012-12-1623-172/+65Star
| | | | | | | | | | | | | | | | Refactor common code around calls to cpu_restore_state(). tb_find_pc() has now no external users, make it static. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | exec: move TB handling to translate-all.cBlue Swirl2012-12-163-1711/+1755
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | exec: extract TB watchpoint checkBlue Swirl2012-12-161-8/+14
| | | | | | | | | | | | Will be moved by the next patch. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | exec: fix coding styleBlue Swirl2012-12-161-68/+110
| | | | | | | | | | | | Fix coding style in areas to be moved by later patches. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agrafBlue Swirl2012-12-1525-1007/+1042
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: (40 commits) pseries: Increase default NVRAM size target-ppc: Don't use hwaddr to represent hardware state PPC: e500: pci: Export slot2irq calculation PPC: E500plat: Make a lot of PCI slots available PPC: E500: Move PCI slot information into params PPC: E500: Generate dt pci irq map dynamically PPC: E500: PCI: Make IRQ calculation more generic PPC: E500: PCI: Make first slot qdev settable openpic: Accelerate pending irq search openpic: fix minor coding style issues MSI-X: Fix endianness PPC: e500: Declare pci bridge as bridge PPC: e500: Add MSI support openpic: add Shared MSI support openpic: make brr1 model specific openpic: convert to qdev openpic: remove irq_out openpic: rename openpic_t to OpenPICState openpic: convert simple reg operations to builtin bitops openpic: remove unused type variable ...
| * | pseries: Increase default NVRAM sizeDavid Gibson2012-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If no image file for NVRAM is specified, the pseries machine currently creates a 16K non-persistent NVRAM by default. This basically works, but is not large enough for current firmware and guest kernels to create all the NVRAM partitions they would like to. Increasing the default size to 64K addresses this and stops the guest generating error messages. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
| * | target-ppc: Don't use hwaddr to represent hardware stateDavid Gibson2012-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hwaddr type is somewhat vaguely defined as being able to contain bus addresses on the widest possible bus in the system. For that reason it's discouraged for representing specific pieces of persistent hardware state, which should instead use an explicit width type that matches the bits available in real hardware. In particular, because of the possibility that the size of hwaddr might change if different buses are added to the target in future, it's not suitable for use in vm state descriptions for savevm and migration. This patch purges such unwise uses of hwaddr from the ppc target code, which turns out to be just one. The ppcemb_tlb_t struct, used on a number of embedded ppc models to represent a TLB entry contains a hwaddr for the real address field. This patch changes it to be a fixed uint64_t which is suitable enough for all machine types which use this structure. Other uses of hwaddr in CPUPPCState turn out not to be problematic: htab_base and htab_mask are just used for the convenience of the TCG code; the underlying machine state is the SDR1 register, which is stored with a suitable type already. Likewise the mpic_cpu_base field is only used internally and does not represent fundamental hardware state which needs to be saved. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
| * | PPC: e500: pci: Export slot2irq calculationAlexander Graf2012-12-143-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need the calculation method to get from a PCI slot ID to its respective interrupt line twice. Once in the internal map function and once when assembling the device tree. So let's extract the calculation to a separate function that can be called by both users. Signed-off-by: Alexander Graf <agraf@suse.de>
| * | PPC: E500plat: Make a lot of PCI slots availableAlexander Graf2012-12-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ppce500 machine doesn't have to stick to hardware limitations, as it's defined as being fully device tree based. Thus we can change the initial PCI slot ID to 0x1 which gives us a whopping 31 PCI devices we can support with this machine now! Signed-off-by: Alexander Graf <agraf@suse.de>
| * | PPC: E500: Move PCI slot information into paramsAlexander Graf2012-12-144-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | We have a params struct that allows us to expose differences between e500 machine models. Include PCI slot information there, so we can have different machines with different PCI slot topology. Signed-off-by: Alexander Graf <agraf@suse.de>
| * | PPC: E500: Generate dt pci irq map dynamicallyAlexander Graf2012-12-141-20/+31
| | | | | | | | | | | | | | | | | | | | | | | | Today we're hardcoding the PCI interrupt map in the e500 machine file. Instead, let's write it dynamically so that different machine types can have different slot properties. Signed-off-by: Alexander Graf <agraf@suse.de>
| * | PPC: E500: PCI: Make IRQ calculation more genericAlexander Graf2012-12-141-10/+3Star
| | | | | | | | | | | | | | | | | | | | | | | | The IRQ line calculation is more or less hardcoded today. Instead, let's write it as an algorithmic function that theoretically allows an arbitrary number of PCI slots. Signed-off-by: Alexander Graf <agraf@suse.de>
| * | PPC: E500: PCI: Make first slot qdev settableAlexander Graf2012-12-141-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Today the first slot id in our e500 pci implementation is hardcoded to 0x11. Keep it there as default, but allow users to change the default to a different id. Signed-off-by: Alexander Graf <agraf@suse.de>
| * | openpic: Accelerate pending irq searchAlexander Graf2012-12-141-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we're done with one interrupt, we need to search for the next pending interrupt in the queue. This search has grown quite big now that we have more than 256 possible irq lines. So let's memorize how many interrupts we have pending in our bitmaps, so that we can always bail out in the usual case - the one where we're all done. Signed-off-by: Alexander Graf <agraf@suse.de>
| * | openpic: fix minor coding style issuesAlexander Graf2012-12-141-6/+6
| | | | | | | | | | | | | | | | | | | | | This patch removes all remaining occurences of spaces before function parameter indicating parenthesis. Signed-off-by: Alexander Graf <agraf@suse.de>