summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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/+1
| | | | | | | | 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/+0
| | | | | | | | | | | | | | | | | | | | | 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/+3
| | | | | | | | | | | | | | | | | | | | | 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/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+23
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2012-12-1810-26/+27
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stefanha/trivial-patches: configure: Earlier pkg-config probe vmmouse_reset(): remove minimal code duplication linux-user/syscall.c: remove wrong forward decl of setgroups() fix build error on ARM due to wrong glibc check gitignore: Add virtfs-proxy-helper arm_gic: Add cpu nr to Raised IRQ message zynq_slcr: Compile time warning fixes. pflash_cfi0x: Send debug messages to stderr pflash_cfi01: qemu_log_mask "unimplemented" msg net, hub: fix the indent in the comments Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | | configure: Earlier pkg-config probeStefan Weil2012-12-181-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Probe pkg-config before it is used for the first time (libseccomp check). Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | vmmouse_reset(): remove minimal code duplicationLaszlo Ersek2012-12-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 069ab0eb added a vmmouse_disable() call to vmmouse_reset(). vmmouse_disable() resets the status already. Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | linux-user/syscall.c: remove wrong forward decl of setgroups()John Spencer2012-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this declaration is wrong: the correct prototype on linux is: int setgroups(size_t size, const gid_t *list); since by default musl libc exposes this symbol in unistd.h additionally to grp.h, the wrong declaration causes a build error. the proper fix is to simply include the correct header. Signed-off-by: John Spencer <maillist-qemu@barfooze.de> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | fix build error on ARM due to wrong glibc checkJohn Spencer2012-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the test for glibc < 2 "succeeds" wrongly for any non-glibc C library, and breaks the build on musl libc. we must first test if __GLIBC__ is defined at all, before using it unconditionally. Signed-off-by: John Spencer <maillist-qemu@barfooze.de> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | gitignore: Add virtfs-proxy-helperCole Robinson2012-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | arm_gic: Add cpu nr to Raised IRQ messagePeter Crosthwaite2012-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the relevant CPU nr to this debug message to make IRQ debugging more informative. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | zynq_slcr: Compile time warning fixes.Peter Crosthwaite2012-12-181-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Few warnings when compiled with debug printfs enabled. Fixed all. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | pflash_cfi0x: Send debug messages to stderrPeter Crosthwaite2012-12-182-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These debug info messages should go to stderr rather than stdout. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | pflash_cfi01: qemu_log_mask "unimplemented" msgPeter Crosthwaite2012-12-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This printf is informing the user of unimplemented functionality. It should be re-directed to qemu_log(LOG_UNIMP, ...) accordingly. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
| * | | net, hub: fix the indent in the commentsZhi Yong Wu2012-12-181-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | Remove some redundant blanks in the comments of net_hub_id_for_client(). Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
* | | Merge remote-tracking branch 'amit/master' into stagingAnthony Liguori2012-12-181-82/+113
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * amit/master: virtio-serial-bus: assert port is non-null in remove_port() virtio-serial-bus: send_control_msg() should not deal with cpkts virtio-serial: delete timer if active during exit virtio-serial: allocate post_load only at load-time virtio-serial: move active ports loading to separate function virtio-serial: use uint32_t to count ports Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | | virtio-serial-bus: assert port is non-null in remove_port()Amit Shah2012-12-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove_port() is called from qdev's unplug callback, and we're certain the port will be found in our list of ports. Adding an assert() documents this. This was flagged by Coverity, fix suggested by Markus. CC: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial-bus: send_control_msg() should not deal with cpktsAmit Shah2012-12-181-21/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stuff the cpkt before calling send_control_msg(). This function should not be concerned about contents of the buffer it receives. A few code refactorings recently have made making this change easier than earlier. Coverity and clang have flagged this code several times in the past (cpkt->id not set before send_control_event() passed it on to send_control_msg()). This will finally eliminate the false-positive. CC: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: delete timer if active during exitAmit Shah2012-12-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The post_load timer was being freed, but not deleted. This could cause problems when the timer is armed, but the device is hot-unplugged before the callback is executed. Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: allocate post_load only at load-timeAmit Shah2012-12-131-25/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves us a few bytes in the VirtIOSerial struct. Not a big savings, but since the entire structure is used only during a short while after migration, it's helpful to keep the struct cleaner and smaller. Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: move active ports loading to separate functionAmit Shah2012-12-131-41/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The virtio_serial_load() function became too big, split the code that gets the port info from the source into a separate function. Signed-off-by: Amit Shah <amit.shah@redhat.com>
| * | | virtio-serial: use uint32_t to count portsAmit Shah2012-12-131-2/+2
| | |/ | |/| | | | | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* | | Merge remote-tracking branch 'spice/spice.v66' into stagingAnthony Liguori2012-12-188-23/+141
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spice/spice.v66: docs: add spice-port-fqdn.txt spice-qemu-char: register spicevmc ports during qemu_spice_init() spice-qemu-char: keep a list of spice chardev spice-qemu-char: add spiceport chardev spice-qemu-char: factor out CharDriverState creation spice-qemu-char: write to chardev whatever amount it can read qxl+vnc: register a vm state change handler for dummy spice_server qxl: save qemu_create_displaysurface_from result Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | | docs: add spice-port-fqdn.txtMarc-André Lureau2012-12-171-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | Start a simple org.qemu.* registry of well known name. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | spice-qemu-char: register spicevmc ports during qemu_spice_init()Marc-André Lureau2012-12-173-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Do the delayed registration of spicevmc ports after Spice server is initialized. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | spice-qemu-char: keep a list of spice chardevMarc-André Lureau2012-12-171-0/+7
| | | | | | | | | | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | spice-qemu-char: add spiceport chardevMarc-André Lureau2012-12-175-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new spice chardev to allow arbitrary communication between the host and the Spice client via the spice server. Examples: This allows the Spice client to have a special port for the qemu monitor: ... -chardev spiceport,name=org.qemu.monitor,id=monitorport -mon chardev=monitorport v2: - remove support for chardev to chardev linking - conditionnaly compile with SPICE_SERVER_VERSION Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | spice-qemu-char: factor out CharDriverState creationMarc-André Lureau2012-12-171-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | Make the CharDriverState creation code reusable by spicevmc port. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | spice-qemu-char: write to chardev whatever amount it can readMarc-André Lureau2012-12-171-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code waits until the chardev can read MIN(len, VMC_MAX) But some chardev may never reach than amount, in fact some of them will only ever accept write of 1. Fix the min computation and remove the VMC_MAX constant. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | qxl+vnc: register a vm state change handler for dummy spice_serverUri Lublin2012-12-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When qxl + vnc are used, a dummy spice_server is initialized. The spice_server has to be told when the VM runstate changes, which is what this patch does. Without it, from qxl_send_events(), the following error message is shown: qxl_send_events: spice-server bug: guest stopped, ignoring Cc: qemu-stable@nongnu.org Signed-off-by: Uri Lublin <uril@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | qxl: save qemu_create_displaysurface_from resultGerd Hoffmann2012-12-171-5/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Spotted by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=885644 Cc: qemu-stable@nongnu.org Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | | Merge remote-tracking branch 'sstabellini/xen-20121217' into stagingAnthony Liguori2012-12-184-43/+75
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | * sstabellini/xen-20121217: cpu_ioreq_pio, cpu_ioreq_move: i should be uint32_t rather than int cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_phys_req_item Fix compile errors when enabling Xen debug logging. xen: fix trivial PCI passthrough MSI-X bug xen: implement support for secondary consoles in the console backend Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * | cpu_ioreq_pio, cpu_ioreq_move: i should be uint32_t rather than intIan Jackson2012-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code compare i (int) with req->count (uint32_t) in a for loop, risking an infinite loop if req->count is equal to UINT_MAX. Also i is only used in comparisons or multiplications with unsigned integers. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Dongxiao Xu <dongxiao.xu@intel.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
| * | cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_phys_req_itemIan Jackson2012-12-171-30/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace a lot of formulaic multiplications (containing casts, no less) with calls to a pair of functions. This encapsulates in a single place the operations which require care relating to integer overflow. Cc: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
OpenPOWER on IntegriCloud