[Spice-commits] Changes to 'spice.v40'
Gerd Hoffmann
kraxel at kemper.freedesktop.org
Wed Aug 3 03:06:44 PDT 2011
New branch 'spice.v40' available with the following commits:
commit 9197a7c8af41c2a410d5debcf20deabbc20243c0
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 12:21:00 2011 +0300
qxl: bump pci rev
Inform guest drivers about the new features I/O commands we have
now (async commands, S3 support) if building with newer spice, i.e.
if SPICE_INTERFACE_QXL_MINOR >= 1.
sneaked in some 81+ column line spliting.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
Signed-off-by: Alon Levy <alevy at redhat.com>
commit 3e16b9c53493d6107c5a1ec810ace2447fcb11eb
Author: Alon Levy <alevy at redhat.com>
Date: Wed Jul 20 12:20:59 2011 +0300
qxl: add QXL_IO_FLUSH_{SURFACES,RELEASE} for guest S3&S4 support
Add two new IOs.
QXL_IO_FLUSH_SURFACES - equivalent to update area for all surfaces, used
to reduce vmexits from NumSurfaces to 1 on guest S3, S4 and resolution change (windows
driver implementation is such that this is done on each of those occasions).
QXL_IO_FLUSH_RELEASE - used to ensure anything on last_release is put on the release ring
for the client to free.
Signed-off-by: Yonit Halperin <yhalperi at redhat.com>
Signed-off-by: Alon Levy <alevy at redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 5ff4e36c804157bd84af43c139f8cd3a59722db9
Author: Alon Levy <alevy at redhat.com>
Date: Wed Jul 20 12:20:58 2011 +0300
qxl: async io support using new spice api
Some of the QXL port i/o commands are waiting for the spice server to
complete certain actions. Add async versions for these commands, so we
don't block the vcpu while the spice server processses the command.
Instead the qxl device will raise an IRQ when done.
The async command processing relies on an added QXLInterface::async_complete
and added QXLWorker::*_async additions, in spice server qxl >= 3.1
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
Signed-off-by: Alon Levy <alevy at redhat.com>
commit e21a298a7b7a5c5e8edc4912dec3b497497c347d
Author: Alon Levy <alevy at redhat.com>
Date: Wed Jul 20 12:20:57 2011 +0300
qxl: only disallow specific io's in vga mode
Since the driver is still in operation even after moving to UNDEFINED, i.e.
by destroying primary in any way.
Signed-off-by: Alon Levy <alevy at redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 7635392ce6844702b4e0faadfa558a6972e16098
Author: Alon Levy <alevy at redhat.com>
Date: Wed Jul 20 12:20:56 2011 +0300
qxl: make qxl_guest_bug take variable arguments
Signed-off-by: Alon Levy <alevy at redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 2bce0400579f58ccb33d201cde9e63c39750faf4
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 12:20:55 2011 +0300
qxl: error handling fixes and cleanups.
Add qxl_guest_bug() function which is supposed to be called in case
sanity checks of guest requests fail. It raises an error IRQ and
logs a message in case guest debugging is enabled.
Make PANIC_ON() abort instead of exit. That macro should be used
for qemu bugs only, any guest-triggerable stuff should use the new
qxl_guest_bug() function instead.
Convert a few easy cases from PANIC_ON() to qxl_guest_bug() to
show intended usage.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 8b92e2989eddaca0bef5076135d2dee3c06f6700
Author: Alon Levy <alevy at redhat.com>
Date: Wed Jul 20 12:20:54 2011 +0300
qxl: add io_port_to_string
Signed-off-by: Alon Levy <alevy at redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 14898cf6e9994319e7947b223f637f964f9256e0
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 12:20:53 2011 +0300
qxl: fix surface tracking & locking
Surface tracking needs proper locking since it is used from vcpu and spice
worker threads, add it. Also reset the surface counter when zapping all
surfaces.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit aee32bf333b13994d9eafb768129e4c2c8688887
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 12:20:52 2011 +0300
spice/qxl: move worker wrappers
Move the wrapper functions which are used by qxl only to qxl.c.
Rename them from qemu_spice_* to qxl_spice_*. Also pass in a
qxl state pointer instead of a SimpleSpiceDisplay pointer.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit a963f876c80e07a195850a6ab243371b6f93756e
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 12:20:51 2011 +0300
spice: add qemu_spice_display_init_common
Factor out SimpleSpiceDisplay initialization into
qemu_spice_display_init_common() and call it from
both qxl.c (for vga mode) and spice-display.c
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 5c59d118161cccf6952b013f71387515f3c91e0a
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 12:20:50 2011 +0300
spice: add worker wrapper functions.
Add wrapper functions for all spice worker calls.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 927d721777e73339f73719f36eaf400ab641366c
Author: Peter A. G. Crosthwaite <peter.crosthwaite at petalogix.com>
Date: Sun Jul 31 06:40:13 2011 +0200
microblaze: Add missing call to qemu_init_vcpu.
Fixes emulation with io-thread.
Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite at petalogix.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias at gmail.com>
commit 2ec00650f66ea624e06d76fadd0918317de1119f
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sat Jul 30 18:53:27 2011 +0000
TCG: fix breakage by previous patch
Fix incorrect logic and typos in previous commit
1bfd07bdfe56cea43dbe258dcb161e46b0ee29b7.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 1bfd07bdfe56cea43dbe258dcb161e46b0ee29b7
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sat Jul 30 12:21:33 2011 +0000
TCG: fix breakage on some RISC hosts
Fix breakage by a640f03178c22355a158fa9378e4f8bfa4f517a6
and 55c0975c5b358e948b9ae7bd7b07eff92508e756.
Some TCG targets don't implement all TCG ops, so make
optimizing those conditional.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit a640f03178c22355a158fa9378e4f8bfa4f517a6
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Jul 7 16:37:17 2011 +0400
Do constant folding for unary operations.
Perform constant folding for NOT and EXT{8,16,32}{S,U} operations.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 55c0975c5b358e948b9ae7bd7b07eff92508e756
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Jul 7 16:37:16 2011 +0400
Do constant folding for shift operations.
Perform constant forlding for SHR, SHL, SAR, ROTR, ROTL operations.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 9a81090b12a3141ff1f1b4dc331042efbdfd2ad8
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Jul 7 16:37:15 2011 +0400
Do constant folding for boolean operations.
Perform constant folding for AND, OR, XOR operations.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 53108fb57413cf6f3d81a71a70257d49a73569c7
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Jul 7 16:37:14 2011 +0400
Do constant folding for basic arithmetic operations.
Perform actual constant folding for ADD, SUB and MUL operations.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 22613af4a6d9602001e6d0e7b6d98aa40aa018dc
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Jul 7 16:37:13 2011 +0400
Add copy and constant propagation.
Make tcg_constant_folding do copy and constant propagation. It is a
preparational work before actual constant folding.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 8f2e8c07a65c340b525b08e08925b568844d4f3d
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Jul 7 16:37:12 2011 +0400
Add TCG optimizations stub
Added file tcg/optimize.c to hold TCG optimizations. Function tcg_optimize
is called from tcg_gen_code_common. It calls other functions performing
specific optimizations. Stub for constant folding was added.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 3e4571724fb92c77de81d8b54957de8232be6706
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Wed Jul 13 12:44:15 2011 +0000
exec.h cleanup
Move softmmu_exec.h include directives from target-*/exec.h to
target-*/op_helper.c. Move also various other stuff only used in
op_helper.c there.
Define global env in dyngen-exec.h.
For i386, move wrappers for segment and FPU helpers from user-exec.c
to op_helper.c. Implement raise_exception_err_env() to handle dynamic
CPUState. Move the function declarations to cpu.h since they can be
used outside of op_helper.c context.
LM32, s390x, UniCore32: remove unused cpu_halted(), regs_to_env() and
env_to_regs().
ARM: make raise_exception() static.
Convert
#include "exec.h"
to
#include "cpu.h"
#include "dyngen-exec.h"
and remove now unused target-*/exec.h.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 104bf02eb50e080ac9d0de5905f80f9a09730154
Author: Michael Tokarev <mjt at tls.msk.ru>
Date: Thu May 12 18:44:17 2011 +0400
revamp acpitable parsing and allow to specify complete (headerful) table
This patch almost rewrites acpi_table_add() function
(but still leaves it using old get_param_value() interface).
The result is that it's now possible to specify whole table
(together with a header) in an external file, instead of just
data portion, with a new file= parameter, but at the same time
it's still possible to specify header fields as before.
Now with the checkpatch.pl formatting fixes, thanks to
Stefan Hajnoczi for suggestions, with changes from
Isaku Yamahata, and with my further refinements.
Signed-off-by: Michael Tokarev <mjt at tls.msk.ru>
Cc: Isaku Yamahata <yamahata at valinux.co.jp>
Cc: John Baboval <john.baboval at virtualcomputer.com>
Cc: Blue Swirl <blauwirbel at gmail.com>
[yamahata at valinux.co.jp: fix compile error, comment fallthrough]
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 638737ad0342ba48f3dfbd2ae03a48cc53501b26
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Sat Jul 23 11:20:07 2011 +0900
SPARC64: implement %fprs dirty bits
Implement %fprs.DU/DL bits.
The FPU sets %fprs.DL and %fprs.DU when values are assigned to %f0-31
and %f32-63 respectively.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit ccb57e0ea74892a29969f9a28c67df3fdcb5259d
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Sat Jul 23 11:20:06 2011 +0900
SPARC64: fix fnor* and fnand*
Fix the problem that result values are not assigned to the destination
registers.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 5e37141bbb9796ef139aee902a882ca97d59b84d
Author: Vincent Palatin <vpalatin at chromium.org>
Date: Mon Jul 25 16:19:05 2011 -0700
sd: do not add one sector to the disk size
This leads to random off-by-one error.
When the size of the SD is exactly 1GB, the emulation was returning a
wrong SDHC CSD descriptor.
Signed-off-by: Vincent Palatin <vpalatin at chromium.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 4b5dfd8246321d2cdca0508f6837a681f7873f43
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Mon Jul 18 11:44:09 2011 +0100
user: Restore debug usage message for '-d ?' in user mode emulation
The code which prints the debug usage message on '-d ?' for *-user
has to come before the check for "not enough arguments", so that
"qemu-foo -d ?" prints the list of possible debug log items rather than
the generic usage message. (This was inadvertently broken in commit
c235d73.)
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 8534b8ba337e55031592144ea524f7bcaf144113
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Sat Jul 30 07:18:41 2011 +0200
usb-hid: Fix 0/0 position for Windows in tablet mode
For unknown reasons, Windows drivers (tested with XP and Win7) ignore
usb-tablet events that move the pointer to 0/0. So always report 0/0 as
1/0.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 3bf11207c0676cfd29a3c76c6709fdf9a983c0c8
Author: Vasily Khoruzhick <anarsoul at gmail.com>
Date: Wed Jul 6 16:52:49 2011 +0300
Add support for Zipit Z2 machine
Zipit Z2 is small PXA270 based handheld.
Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
Reviewed-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 63efb1d9c4140108ab57e706fa7a90a21e07cfcc
Author: Andrzej Zaborowski <andrew.zaborowski at intel.com>
Date: Sat Jul 30 06:53:39 2011 +0200
onenand: Add missing brace.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit f1588dd26c25bd7590e18a0cce59a5fa82323ce5
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:28 2011 +0100
hw/onenand: program actions can only clear bits
The program actions onenand_prog_main() and onenand_prog_spare()
can only set bits.
This implies a rewrite of onenand_erase() to not use the program
functions, since erase does need to set bits.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 5923ba424b4754a60ea5f6dc7777684e018648e6
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:26 2011 +0100
onenand: Handle various ID fields separately
Handle the manufacturer, device and version IDs separately rather than
smooshing them all together into a single uint32_t. Note that the ID
registers are actually 16 bit, even though typically the top bits are 0
and the Read Identification Data command only returns the bottom 8 bits.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit af5a75f41c2fd172ceaa1cabd4bec99de8dde83a
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Jul 29 16:35:25 2011 +0100
onenand: Pass BlockDriverState to init function
Pass the BlockDriverState to the onenand init function so it doesn't
need to look up the drive itself.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit d4220389ffcc1e6302e759d3b15f8605201d6369
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:24 2011 +0100
hw/nand: qdevify
Qdevify the NAND device.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 89f640bc0405ed1e9c5c5a6cb6c19c8012d11e3f
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Jul 29 16:35:23 2011 +0100
hw/nand: Writing to NAND can only clear bits
Writing to a NAND device cannot set bits, it can only clear them;
implement this rather than simply copying the data.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit d72245fbcf3391bfb61ec447dc1888919b3d148b
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:22 2011 +0100
hw/nand: Support multiple reads following READ STATUS
After receiving READ STATUS command all subsequent IO reads should return
the status register value until another command is issued.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 48197dfa6a26fa1807f19f510a2e840bb3885680
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:21 2011 +0100
hw/nand: Support devices wider than 8 bits
Support NAND devices which are wider than 8 bits.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit ac2466cdc625d0cf9e7a885b7901084ac59d507f
Author: Andrzej Zaborowski <andrew.zaborowski at intel.com>
Date: Sat Jul 30 06:01:37 2011 +0200
nand: Bump vmstate version after changing structure.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit d5f2fd586f1cc4651f8b03336b34c28dceab43bb
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:20 2011 +0100
hw/nand: Support large NAND devices
Add support for NAND devices of over 1Gb.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 522f253ca8c731aafc8e53087a18f6015c4e776e
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Jul 29 16:35:19 2011 +0100
hw/nand: Pass block device state to init function
Pass the BlockDeviceState to the nand_init() function rather
than having it look it up via drive_get() itself.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit c4f05c8cf715fa613e1985421080e62a7b169284
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Jul 29 16:35:18 2011 +0100
lm832x: Take DeviceState pointer in lm832x_key_event()
Since lm832x has been qdev'ified, its users will generally
have a DeviceState pointer rather than an i2c_slave pointer,
so adjust lm832x_key_event's prototype to suit.
This allows the n810 (its only user) to actually pass a correct
pointer to it rather than NULL. The effect is that we no longer
segfault when a key is pressed.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 77831c204fda6303408aee1853c36768d853b413
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:17 2011 +0100
hw/omap_gpio.c: Convert to qdev
Convert the OMAP GPIO module to qdev.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 0a34f96690bcb56bd6bc55566c2773e77c67650c
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Jul 29 16:35:16 2011 +0100
hw/omap_clk: Add the clock for the OMAP2430-specific fifth GPIO module
The OMAP2430 has a fifth GPIO module which earlier OMAP2 models lack; add
the clock definition for it.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit f9049203d33847562de155a7c5bc75fe7a3e77f6
Author: Juha Riihimäki <juha.riihimaki at nokia.com>
Date: Fri Jul 29 16:35:14 2011 +0100
hw/omap_l4.c: Add helper function omap_l4_region_base
Add helper function omap_l4_region_base() to return the base address
of a particular region of an L4 target agent.
Signed-off-by: Juha Riihimäki <juha.riihimaki at nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski at intel.com>
commit 64de0e46c06eeb2edb21a936aa4e4b60ca2e5a25
Merge: 23487df884048ed801095e9525baf1bb94e8b4b0 ec67464c4f137f58c040d1d351f540268e883b85
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 29 09:46:16 2011 -0500
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
commit 23487df884048ed801095e9525baf1bb94e8b4b0
Merge: 3046c984049070ab5843da1753ce3a22e25b52cd 0f94d6da357954857f95d5be69817d8551a5526f
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 29 09:43:36 2011 -0500
Merge remote-tracking branch 'alon/pull-libcacard.afe' into staging
commit 3046c984049070ab5843da1753ce3a22e25b52cd
Merge: e374560232776d4141866abc9f520c132b394926 679f4f8b178e7c66fbc2f39c905374ee8663d5d8
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 29 09:42:12 2011 -0500
Merge remote-tracking branch 'agraf/xen-next' into staging
commit e374560232776d4141866abc9f520c132b394926
Merge: c62f6d1d76aea587556c85b6b7b5c44167006264 98e51ec92e678cf0e501b5ef013753ec8710e222
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 29 09:39:37 2011 -0500
Merge remote-tracking branch 'kraxel/migration.2' into staging
commit c62f6d1d76aea587556c85b6b7b5c44167006264
Author: TeLeMan <geleman at gmail.com>
Date: Mon Jul 25 16:29:14 2011 +0800
monitor: fix build breakage with --disable-vnc
The breakage was introduced by the commit 13661089810d3e59931f3e80d7cb541b99af7071
Signed-off-by: TeLeMan <geleman at gmail.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 2645c6dcaf6ea2a51a3b6dfa407dd203004e4d11
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Mon Jul 25 18:11:20 2011 +0200
Allow to leave type on default in -machine
This allows to specify -machine options without setting an explicit
machine type. We will pick the default machine in this case. Requesting
the list of available machines is still possible via '-machine ?' e.g.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 5f070c5fb768cc587b1a75379b7b17c3f841fd40
Author: Avi Kivity <avi at redhat.com>
Date: Mon Jul 25 18:55:53 2011 +0300
CODING_STYLE: explicitly allow braceless 'else if'
It's already allowed by the example; there are about 1800 instances in the
tree; and disallowing it would lead to
if (a) {
...
} else {
if (b) {
...
} else {
if (c) {
...
} else {
if (d) {
...
} else {
...
}
}
}
}
instead of
if (a) {
...
} else if (b) {
...
} else if (c) {
...
} else if (d) {
...
} else {
...
}
which is more readable.
Acked-by: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit ecf169b7fa920b87e380981c5206148d057d85fb
Author: Stefan Berger <stefanb at linux.vnet.ibm.com>
Date: Tue Jul 26 10:33:11 2011 -0400
Fix a compilation error in xen-mapcache.c
This patch fixes a compilation error in xen-mapcache.c .
/home/stefanb/qemu/qemu-git/xen-mapcache.c: In function âxen_ram_addr_from_mapcacheâ:
/home/stefanb/qemu/qemu-git/xen-mapcache.c:240:42: error: variable âpentryâ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6b8273a1b97876950d91c228a420a851e10e12bb
Author: Göran Weinholt <goran at weinholt.se>
Date: Sun Jul 24 17:55:58 2011 +0200
multiboot: Fix bss segment support
Multiboot images can specify a bss segment. The boot loader must clear
the memory of the bss and ensure that no modules or structures are
allocated inside it. Several fields are provided in the Multiboot
header that were previously not used properly. The header is now used
to determine how much data should be read from the image and how much
memory should be reserved to the bss segment.
Signed-off-by: Göran Weinholt <goran at weinholt.se>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 1ece9905747fb42ab6b2797c8ddde56496f14796
Author: Alon Levy <alevy at redhat.com>
Date: Tue Jul 26 12:30:40 2011 +0300
configure: add --disable-zlib-test
This is required for building libcacard which doesn't itself require
zlib without bringing in this requirement to the build environment.
Signed-off-by: Alon Levy <alevy at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit c7f4111a06208b46c6d05934d2a1e5cfbebc0180
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date: Mon Jul 25 17:13:36 2011 +0200
Add missing trace call to oslib-posix.c:qemu_vmalloc()
Acked-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 33fa8234c3d642317583c992b7fdc67ce7fdd1b5
Author: Dr. David Alan Gilbert <david.gilbert at linaro.org>
Date: Mon Jul 25 13:21:30 2011 +0100
Fix last sector write on sd card
When writing the last sector of an SD card using WRITE_MULTIPLE_BLOCK
QEmu throws an error saying that we've run off the end, and leaves
itself in the wrong state.
Tested on ARM Vexpress model.
Signed-off-by: Dr. David Alan Gilbert <david.gilbert at linaro.org>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit cbbab9226da9572346837466a8770c117e7e65a2
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Thu Jul 28 12:10:30 2011 +0200
move unaligned memory access functions to bswap.h
This is just code movement, and moving the fpu/ include path from
target-dependent to target-independent Make variables.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 789ec7ce20f34b175b3983707e077e8d67385126
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Thu Jul 28 12:10:29 2011 +0200
softfloat: change default nan definitions to variables
Most definitions in softfloat.h are really target-independent, but the
file is not because it includes definitions of the default NaN values.
Change those to variables to allow including softfloat.h from files that
are not compiled per-target. By making them const, the compiler is
allowed to optimize them into softfloat functions that use them.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 332ae28dad2d4f155e1ad82bf89a605c2b2710ba
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Thu Jul 28 12:10:28 2011 +0200
move WORDS_ALIGNED to qemu-common.h
This is not a CPU interface, and a configure test would not be too
precise. So just add it to qemu-common.h.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 3d3b8303c6f83b9b245bc774af530a6403cc4ce6
Author: wayne <xiawenc at linux.vnet.ibm.com>
Date: Wed Jul 27 18:04:55 2011 +0800
showing a splash picture when start
Added options to let qemu transfer two configuration files to bios:
"bootsplash.bmp" and "etc/boot-menu-wait", which could be specified by command
-boot splash=P,splash-time=T
P is jpg/bmp file name or an absolute path, T have a max value of 0xffff, unit
is ms. With these two options, if user invoke qemu with menu=on option, then
a splash picture would be showed in a given time. For example:
qemu -boot menu=on,splash=/root/boot.bmp,splash-time=5000
would make boot.bmp shown as a brand with 5 seconds in the booting up process.
This feature need the new seabios's support, which could be got from git.
Signed-off-by: Wayne Xia <xiawenc at linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6da48311bbd884da4d0a4ae03b0fc7a78981a5f4
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:22 2011 +0300
usb-ohci: convert to MemoryRegion
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit ec3bb837a21a7d32d3dcb010e955991f5784c1e8
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:21 2011 +0300
sysbus: add MemoryRegion based memory management API
Allow registering sysbus device memory using a MemoryRegion. Once all users
are converted, sysbus_init_mmio() and sysbus_init_mmio_cb() will be removed.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 79ff8cb0df5f3f7ec818690f7ad5bdc03859525d
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:20 2011 +0300
pci: add MemoryRegion based BAR management API
Allow registering a BAR using a MemoryRegion. Once all users are converted,
pci_register_bar() and pci_register_bar_simple() will be removed.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 1e39101c649a008462db1ac1d027c62870454d1f
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:19 2011 +0300
pci: pass address space to pci bus when created
This is now done sloppily, via get_system_memory(). Eventually callers
will be converted to stop using that.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6bd105151ac5529605a478de3b6c3aceed5995e9
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:18 2011 +0300
pc: move global memory map out of pc_init1() and into its callers
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 00cb2a99f5e7f73c4fff54ae16c7b6acf463ab5c
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:17 2011 +0300
pc: convert pc_memory_init() to memory API
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 4aa63af14969a50f9c3d2324127daff0f0199c61
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:16 2011 +0300
pc: grab system_memory
While eventually this should come from the machine initialization function,
take a short cut to avoid converting all machines now.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit bf3fb0e12aeb9fea08383c145f874ed7acc29e31
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:15 2011 +0300
ioport: register ranges by byte aligned addresses always
The I/O port space is byte addressable, even for word and long accesses.
An example is the VMware svga card, which has long ports on offsets 0,
1, and 2.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 62152b8a014609ac94da2de440aedb3246c1204a
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:14 2011 +0300
exec.c: initialize memory map
Allocate the root memory region and initialize it.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 4ef4db860362ce9852c20b343e9813897ecdefce
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:13 2011 +0300
memory: transaction API
Allow changes to the memory hierarchy to be accumulated and
made visible all at once. This reduces computational effort,
especially when an accelerator (e.g. kvm) is involved.
Useful when a single register update causes multiple changes
to an address space.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit b8af1afbfbc157e058f27ab5382527350b814ee7
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:12 2011 +0300
memory: separate building the final memory map into two steps
Instead of adding and deleting regions in one pass, do a delete
pass followed by an add pass. This fixes the following case:
from:
0x0000-0x0fff ram (a1)
0x1000-0x1fff mmio (a2)
0x2000-0x2fff ram (a3)
to:
0x0000-0x2fff ram (b1)
The single pass algorithm removed a1, added b2, then removed a2 and a3,
which caused the wrong memory map to be built. The two pass algorithm
removes a1, a2, and a3, then adds b1.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 3e9d69e737025e987be3ce804f667ffeb07e4c53
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:11 2011 +0300
memory: add ioeventfd support
As with the rest of the memory API, the caller associates an eventfd
with an address, and the memory API takes care of registering or
unregistering when the address is made visible or invisible to the
guest.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 74901c3bd06a02b54f23172cb870127b49390bd0
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:10 2011 +0300
memory: add backward compatibility for old mmio registration
This eases the transition to the new API.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 627a0e90dc6b53504d6b9539b8e29210d82ecf9d
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:09 2011 +0300
memory: add backward compatibility for old portio registration
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 658b2224017b5c5fdc60969fa2f0798781b0cb3f
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:08 2011 +0300
memory: I/O address space support
Allow registering I/O ports via the same mechanism as mmio ranges.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 16ef61c9e56657d39760e5ad6b9f5361f00b2083
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:07 2011 +0300
memory: late initialization of ram_addr
For non-RAM memory regions, we cannot tell whether this is an I/O region
or an MMIO region. Since the qemu backing registration is different for
the two, we have to defer initialization until we know which address
space we are in.
These shenanigans will be removed once the backing registration is unified
with the memory API.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 14a3c10ac890e1982e55bffa37aaca764b4b525b
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:06 2011 +0300
memory: rename MemoryRegion::has_ram_addr to ::terminates
I/O regions will not have ram_addrs, so this is a better name.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit cc31e6e7b3a96d99493049ec9f4fe8eaefacbaa8
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:05 2011 +0300
memory: abstract address space operations
Prepare for multiple address space support by abstracting away the details
of registering a memory range with qemu's flat representation into an
AddressSpace object.
Note operations which are memory specific are not abstracted, since they will
never be called on I/O address spaces anyway.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 1c0ffa58afab4d8496795d29b70d5e9e67e9341e
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:04 2011 +0300
Internal interfaces for memory API
get_system_memory() provides the root of the memory hierarchy.
This interface is intended to be private between memory.c and exec.c.
If this file is included elsewhere, it should be regarded as a bug (or
TODO item). However, it will be temporarily needed for the conversion
to hierarchical memory routing.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 3d8e6bf97781a8415fd08ba1770269e1332c200c
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:03 2011 +0300
memory: merge adjacent segments of a single memory region
Simple implementations of memory routers, for example the Cirrus VGA memory banks
or the 440FX PAM registers can generate adjacent memory regions which are contiguous.
Detect these and merge them; this saves kvm memory slots and shortens lookup times.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 5a583347697413f964d886b074860cb888c0e306
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:02 2011 +0300
memory: implement dirty tracking
Currently dirty tracking is implemented by passing through
all calls to the underlying cpu_physical_memory_*() calls.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 093bc2cd885e4e3420509a80a1b9e81848e4b8fe
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:01 2011 +0300
Hierarchical memory region API
The memory API separates the attributes of a memory region (its size, how
reads or writes are handled, dirty logging, and coalescing) from where it
is mapped and whether it is enabled. This allows a device to configure
a memory region once, then hand it off to its parent bus to map it according
to the bus configuration.
Hierarchical registration also allows a device to compose a region out of
a number of sub-regions with different properties; for example some may be
RAM while others may be MMIO.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 9d3a4736cb86f0ad7904b223eccb165de8d4327b
Author: Avi Kivity <avi at redhat.com>
Date: Tue Jul 26 14:26:00 2011 +0300
Add memory API documentation
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 5ab28c8340f683121c081a181adfd9f72ab85cba
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Sun Jul 24 19:38:36 2011 +0200
qdev: Reset hot-plugged devices
Device models rely on the core invoking their reset handlers after init.
We do this in the cold-plug case, but so far we miss this step after
hot-plug.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit ec67464c4f137f58c040d1d351f540268e883b85
Author: Juan Quintela <quintela at redhat.com>
Date: Mon Jul 11 18:15:11 2011 +0200
xen_mapcache: remove unused variable
Signed-off-by: Juan Quintela <quintela at redhat.com>
Acked-by: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 016c77ad62a8ad607dd4349d8cb8ad1365bab831
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 26 11:39:24 2011 -0500
Makefile: add missing deps on $(GENERATED_HEADERS)
This fixes a build issue with make -j6+ due to qapi-generated files
being built before $(GENERATED_HEADERS) have been created.
Tested-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit c20cdf8b91b45a4f60a5ceeaab31b830b02adb7a
Author: Zhi Yong Wu <wuzhy at linux.vnet.ibm.com>
Date: Wed Jul 27 14:32:56 2011 +0800
qmp: fix efect -> effect typo in qmp-commands.hx
Signed-off-by: Zhi Yong Wu <wuzhy at linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit cf2846b5fa5cf85685e8a238323194b2ff9b5faf
Author: Stefan Weil <weil at mail.berlios.de>
Date: Thu Jul 21 21:46:45 2011 +0200
slirp: Fix unusual "comments" in unused code
cppcheck detected two rather strange comments which were not
correctly written as C comments.
They did not cause any harm because they were framed by
#ifdef notdef ... #endif, so they were never compiled.
Fix them nevertheless (we could also remove the unused code).
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 45b75ae4ee19a74c826a94e073762b5c7080a90c
Author: Alexandre Raymond <cerbere at gmail.com>
Date: Wed Jul 20 23:12:15 2011 -0400
Makefile: Minor cscope fixups
Create cscope symbols for assembly files in addition to .c/.h files.
Create cscope database with full path instead of relative path so cscope
can be used with CSCOPE_DB in any directory.
Signed-off-by: Alexandre Raymond <cerbere at gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 023367e6cd41199521613674b44e9c703c8be1a1
Author: Wolfgang Mauerer <wolfgang.mauerer at siemens.com>
Date: Mon Jul 11 14:57:43 2011 +0200
vhost build fix for i386
vhost.c uses __sync_fetch_and_and(), which is only
available for -march=i486 and above (see
https://bugzilla.redhat.com/show_bug.cgi?id=624279).
Signed-off-by: Wolfgang Mauerer <wolfgang.mauerer at siemens.com>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 0f94d6da357954857f95d5be69817d8551a5526f
Author: Alon Levy <alevy at redhat.com>
Date: Mon Jun 27 11:58:20 2011 +0200
libcacard: add pc file, install it + includes
Additionally:
+ add --includedir configure parameters
+ make install-libcacard install vscclient as well
commit 679f4f8b178e7c66fbc2f39c905374ee8663d5d8
Author: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
Date: Mon Jul 18 06:07:02 2011 +0000
xen: implement unplug protocol in xen_platform
The unplug protocol is necessary to support PV drivers in the guest: the
drivers expect to be able to "unplug" emulated disks and nics before
initializing the Xen PV interfaces.
It is responsibility of the guest to make sure that the unplug is done
before the emulated devices or the PV interface start to be used.
We use pci_for_each_device to walk the PCI bus, identify the devices and
disks that we want to disable and dynamically unplug them.
Changes in v2:
- use PCI_CLASS constants;
- replace pci_unplug_device with qdev_unplug;
- do not import hw/ide/internal.h in xen_platform.c;
Changes in v3:
- introduce piix3-ide-xen, that support hot-unplug;
- move the unplug code to hw/ide/piix.c;
- just call qdev_unplug from xen_platform.c to unplug the IDE disks;
Signed-off-by: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
Acked-by: Kevin Wolf <kwolf at redhat.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit 834e76ea1cc3f6fb261fe6a40f7571600bcb25b1
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Wed Jul 20 08:17:44 2011 +0000
vl.c: Check the asked ram_size later.
As a Xen guest can have more than 2GB of RAM on a 32bit host, we move
the conditions after than we now if we run one Xen or not.
[agraf] separate xen branch from ram_size check
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit 8a369e20e701c9d220834e0daa027e65acd35214
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Wed Jul 20 08:17:43 2011 +0000
xen: Fix the memory registration to reflect of what is done by Xen.
A Xen guest memory is allocated by libxc. But this memory is not
allocated continuously, instead, it leaves the VGA IO memory space not
allocated, same for the MMIO space (at HVM_BELOW_4G_MMIO_START of size
HVM_BELOW_4G_MMIO_LENGTH).
So to reflect that, we do not register the physical memory for this two
holes. But we still keep only one RAMBlock for the all RAM as it is more
easier than have two separate blocks (1 above 4G). Also this prevent QEMU
from use the MMIO space for a ROM.
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit f15fbc4bd1a24bd1477a846e63e62c6d435912f8
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Wed Jul 20 08:17:42 2011 +0000
cpu-common: Have a ram_addr_t of uint64 with Xen.
In Xen case, memory can be bigger than the host memory. that mean a
32bits host (and QEMU) should be able to handle a RAM address of 64bits.
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit 59d21e537b6c3a964d4e346e9cf2a1e17267a27c
Author: Alexander Graf <agraf at suse.de>
Date: Sun Jul 17 07:30:29 2011 +0200
xen: make xen_enabled even more clever
When using xen_enabled() we're currently only checking if xen is enabled
at all during the build. But what if you want to build multiple targets
out of which only one can potentially run xen code?
That means that for generic code we'll still have to fall back to the
variable and potentially slow the code down, but it's not as important as
that is mostly xen device emulation which is not touched for non-xen targets.
The target specific code however can with this patch see that it's unable to
ever execute xen code. We can thus always return 0 on xen_enabled(), giving
gcc enough hints to evict the mapcache code from the target memory management
code.
Signed-off-by: Alexander Graf <agraf at suse.de>
Acked-by: Anthony PERARD <anthony.perard at citrix.com>
commit f03a4ac12222ce1fb7886dc6cb38a027b73ccff2
Author: Alexander Graf <agraf at suse.de>
Date: Sun Jul 17 07:22:06 2011 +0200
xen: remove CONFIG_XEN_MAPCACHE
We were still exporting CONFIG_XEN_MAPCACHE, even though it's completely
unused by now. Remove it.
Signed-off-by: Alexander Graf <agraf at suse.de>
commit 8ca5692df4a635b2c9211d6dc3dea15bd2b674c8
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Fri Jul 15 04:32:53 2011 +0000
exec.c: Use ram_addr_t in cpu_physical_memory_rw(...).
As the variable pd and addr1 inside the function cpu_physical_memory_rw
are mean to handle a RAM address, they should be of the ram_addr_t type
instead of unsigned long.
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Acked-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit 30ab61252b71446977e298f146be124eb4a5b333
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Fri Jul 15 04:32:52 2011 +0000
xen: Fix xen_enabled().
Use the "host" CONFIG_ define instead of the "target" one.
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Acked-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit fb4bb2b587549612a0da92de68fcc096ffd8a7d7
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Fri Jul 15 00:33:42 2011 +0000
xen: introduce xen_change_state_handler
Remove the call to xenstore_record_dm_state from xen_main_loop_prepare
that is HVM specific.
Add a new vm_change_state_handler shared between xen_pv and xen_hvm
machines to record the VM state to xenstore.
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
Signed-off-by: Alexander Graf <agraf at suse.de>
commit c886edfb851c0c590d4e77f058f2ec8ed95ad1b5
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Fri Jul 22 21:08:09 2011 +0000
Let users select their pythons
Add configure check for python, exit if not found. Add switches
for specifying the path to python, use the path in Makefile.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 0caf448b8062b6e186f7bf12dbb27c3ab4ca6136
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sat Jul 23 21:21:14 2011 +0000
simpletrace: suppress a warning from unused variable
Avoid this warning:
CC simpletrace.o
/src/qemu/simpletrace.c: In function 'writeout_thread':
/src/qemu/simpletrace.c:122:12: error: variable 'unused' set but not used [-Werror=unused-but-set-variable]
by adding GCC attribute unused to the variable.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 00aa0040e8b8ec45a75be4e8926a84b82cc75838
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sat Jul 23 20:04:29 2011 +0000
Wrap recv to avoid warnings
Avoid warnings like these by wrapping recv():
CC slirp/ip_icmp.o
/src/qemu/slirp/ip_icmp.c: In function 'icmp_receive':
/src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror]
/usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *'
Remove also casts used to avoid warnings.
Reviewed-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit aad04cd024f0c59f0b96f032cde2e24eb3abba6d
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sat Jul 23 19:26:08 2011 +0000
Fix chrdev return value conversion
6e1db57b2ac9025c2443c665a0d9e78748637b26 didn't
convert brlapi or win32 chrdevs, breaking build for those.
Fix by converting the chrdevs.
Acked-by: Kevin Wolf <kwolf at redhat.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 1fc7bd4a86a2bfeafcec29445871eb97469a2699
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Sat Jul 23 17:57:47 2011 -0500
qemu-ga: remove dependency on gio and gthread
As far as I can tell, there isn't a dependency on gthread. Also, the only use
of gio was to enable GSocket to accept a unix domain socket.
Since GSocket isn't available on OpenSuSE 11.1, let's just remove that
dependency.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 4eb36d40da8062400a2e7e27f1038e1252df9ede
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Sat Jul 23 16:14:37 2011 -0500
guest-agent: only enable FSFREEZE when it's supported by the kernel
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 1167bfd63d983eaa4816ee0edb185f98ff070d6d
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Sat Jul 23 11:57:53 2011 -0500
Open 1.0 development branch.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit b8095f24f24e50a7d4be33d8a79474aff3324295
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Sat Jul 23 11:56:07 2011 -0500
Bump version to reflect v0.15.0-rc0
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 8e31bf388e56e5babd9600b110a94381d1be07b1
Author: Matthew Fernandez <matthew.fernandez at gmail.com>
Date: Sun Jun 26 12:21:35 2011 +1000
Correct spelling of licensed
Correct typos of "licenced" to "licensed".
Reviewed-by: Stefan Weil <weil at mail.berlios.de>
Reviewed-by: Andreas F=E4rber <andreas.faerber at web.de>
Signed-off-by: Matthew Fernandez <matthew.fernandez at gmail.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit d25f89c9e91d6c46b85969922411a211a6347a7d
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Fri Jun 17 11:25:49 2011 +0200
Register Linux dyntick timer as per-thread signal
Derived from kvm-tool patch
http://thread.gmane.org/gmane.comp.emulators.kvm.devel/74309
Ingo Molnar pointed out that sending the timer signal to the whole
process, just blocking it everywhere, is suboptimal with an increasing
number of threads. QEMU is also using this pattern so far.
Linux provides a (non-portable) way to restrict the signal to a single
thread: We can use SIGEV_THREAD_ID unless we are forced to emulate
signalfd via an additional thread. That case could theoretically be
optimized as well, but it doesn't look worth bothering.
Reviewed-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 17604dac28b2410c021a4a52dcfa58e8803dfb24
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Mon Jun 20 14:06:28 2011 +0200
mc146818rtc: Handle host clock resets
Make use of the new clock reset notifier to update the RTC whenever
rtc_clock is the host clock and that happens to jump backward. This
avoids that the RTC stalls for the period the host clock was set back.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 691a0c9c9b71360271220c12f20a7238bc302503
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Mon Jun 20 14:06:27 2011 +0200
qemu-timer: Introduce clock reset notifier
QEMU_CLOCK_HOST is based on the system time which may jump backward in
case the admin or NTP adjusts it. RTC emulations and other device models
can suffer in this case as timers will stall for the period the clock
was tuned back.
This adds a detection mechanism that checks on every host clock readout
if the new time is before the last result. If that is the case a
notifier list is informed. Device models interested in this event can
register a notifier with the clock.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 9e8dd45164af05a5dab00324dd10b037f5bd1e2a
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Mon Jun 20 14:06:26 2011 +0200
notifier: Pass data argument to callback
This allows to pass additional information to the notifier callback
which is useful if sender and receiver do not share any other distinct
data structure.
Will be used first for the clock reset notifier.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit e0e8384dd471376c3f815c3070f161480a28cc90
Author: Markus Armbruster <armbru at redhat.com>
Date: Thu May 19 13:37:17 2011 +0200
ide: Turn properties any IDE device must have into bus properties
Signed-off-by: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit d6cca4b048c5b63547d5c09fb47a10f0057b88bf
Author: Markus Armbruster <armbru at redhat.com>
Date: Thu May 19 13:37:16 2011 +0200
virtio-serial: Turn props any virtio-serial-bus device must have into bus props
Signed-off-by: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 021a1318604e0898cee3800d5b13033e68191f4e
Author: Markus Armbruster <armbru at redhat.com>
Date: Thu May 19 13:37:15 2011 +0200
virtio-serial: Clean up virtser_bus_dev_print() output
Old version looks like this in info qtree (last four lines):
dev: virtconsole, id ""
dev-prop: is_console = 1
dev-prop: nr = 0
dev-prop: chardev = <null>
dev-prop: name = <null>
dev-prop-int: id: 0
dev-prop-int: guest_connected: 1
dev-prop-int: host_connected: 0
dev-prop-int: throttled: 0
Indentation is off, and "dev-prop-int" suggests these are properties
you can configure with -device, which isn't the case. The other
buses' print_dev() callbacks don't do that. For instance, PCI's
output looks like this:
class Ethernet controller, addr 00:03.0, pci id 1af4:1000 (sub 1af4:0001)
bar 0: i/o at 0xffffffffffffffff [0x1e]
bar 1: mem at 0xffffffffffffffff [0xffe]
bar 6: mem at 0xffffffffffffffff [0xfffe]
Change virtser_bus_dev_print() to that style. Result:
dev: virtconsole, id ""
dev-prop: is_console = 1
dev-prop: nr = 0
dev-prop: chardev = <null>
dev-prop: name = <null>
port 0, guest on, host off, throttle off
Signed-off-by: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 1cc2428ccec8759130c45033c8a44867e919485f
Author: Markus Armbruster <armbru at redhat.com>
Date: Thu May 19 13:37:14 2011 +0200
usb-ccid: Drop unused CCIDCardInfo callback print()
Signed-off-by: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 3836620c091626c26caa77af66a90c047a8e8384
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Thu Jun 23 13:31:43 2011 +0100
Remove unused USES_X509_AUTH macro from VNC sasl code
The USES_X509_AUTH macro is defined in several VNC files,
but not used in all of them. Remove the unused definition.
* ui/vnc-auth-sasl.c: Remove USES_X509_AUTH macro
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 13661089810d3e59931f3e80d7cb541b99af7071
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Thu Jun 23 13:31:42 2011 +0100
Introduce a 'client_add' monitor command accepting an open FD
Allow client connections for VNC and socket based character
devices to be passed in over the monitor using SCM_RIGHTS.
One intended usage scenario is to start QEMU with VNC on a
UNIX domain socket. An unprivileged user which cannot access
the UNIX domain socket, can then connect to QEMU's VNC server
by passing an open FD to libvirt, which passes it onto QEMU.
{ "execute": "get_fd", "arguments": { "fdname": "myclient" } }
{ "return": {} }
{ "execute": "add_client", "arguments": { "protocol": "vnc",
"fdname": "myclient",
"skipauth": true } }
{ "return": {} }
In this case 'protocol' can be 'vnc' or 'spice', or the name
of a character device (eg from -chardev id=XXXX)
The 'skipauth' parameter can be used to skip any configured
VNC authentication scheme, which is useful if the mgmt layer
talking to the monitor has already authenticated the client
in another way.
* console.h: Define 'vnc_display_add_client' method
* monitor.c: Implement 'client_add' command
* qemu-char.c, qemu-char.h: Add 'qemu_char_add_client' method
* qerror.c, qerror.h: Add QERR_ADD_CLIENT_FAILED
* qmp-commands.hx: Declare 'client_add' command
* ui/vnc.c: Implement 'vnc_display_add_client' method
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 7e7e2ebc942da8285931ceabf12823e165dced8b
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Thu Jun 23 13:31:41 2011 +0100
Store VNC auth scheme per-client as well as per-server
A future patch will introduce a situation where different
clients may have different authentication schemes set.
When a new client arrives, copy the 'auth' and 'subauth'
fields from VncDisplay into the client's VncState, and
use the latter in all authentication functions.
* ui/vnc.h: Add 'auth' and 'subauth' to VncState
* ui/vnc-auth-sasl.c, ui/vnc-auth-vencrypt.c,
ui/vnc.c: Make auth functions pull auth scheme
from VncState instead of VncDisplay
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit e69ae5c49af45a67ebdf6a7cf465eb91b5c8ee11
Author: Wen Congyang <wency at cn.fujitsu.com>
Date: Fri Jun 17 10:25:22 2011 +0800
do not reset no_shutdown after we shutdown the vm
Daniel P. Berrange sent a libvirt's patch to support
reboots with the QEMU driver. He implements it in
json model like this:
1. add -no-shutdown in the qemu's option:
qemu -no-shutdown xxxx
2. shutdown the vm by monitor command system_powerdown
3. wait for shutdown event
4. reset the vm by monitor command system_reset
no_shutdown will be reset to 0 if the vm is powered down.
We only can reboot the vm once.
If no_shutdown is not reset to 0, we can reboot the vm
many times.
Signed-off-by: Wen Congyang <wency at cn.fujitsu.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit ea0e541812c515e0bbdf598d3237d6f0bee3fbbf
Author: Sasha Levin <levinsasha928 at gmail.com>
Date: Wed Jun 29 23:29:39 2011 -0400
vl.c: Don't limit node count by smp count
[I've sent this patch couple of months ago and noticed it
didn't make it's way in - so I'm sending it again]
It is possible to create CPU-less NUMA nodes, node amount shouldn't be
limited by amount of CPUs.
Tested-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Acked-by: Andre Przywara <andre.przywara at amd.com>
Signed-off-by: Sasha Levin <levinsasha928 at gmail.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 0fe28e0d9f549fab79793d3fa2f139e643d3f134
Author: Richard Henderson <rth at twiddle.net>
Date: Tue Jun 14 12:53:08 2011 -0700
vga: Fix type of lfb/map_addr/end.
These addresses have been passed through pci_to_cpu_addr,
and thus need to be full target_phys_addr_t.
Acked-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Richard Henderson <rth at twiddle.net>
Cc: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6e1db57b2ac9025c2443c665a0d9e78748637b26
Author: Kevin Wolf <kwolf at redhat.com>
Date: Wed Jun 1 13:29:11 2011 +0200
qemu-char: Print strerror message on failure
The only way for chardev drivers to communicate an error was to return a NULL
pointer, which resulted in an error message that said _that_ something went
wrong, but not _why_.
This patch changes the interface to return 0/-errno and updates
qemu_chr_open_opts to use strerror to display a more helpful error message.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 84682834eb8f654da5e03a92930d80b8ae0d3065
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Thu Jun 9 13:10:25 2011 +0200
qemu-timer: change unix timer to dynticks
A timer that wakes up every millisecond puts a lot of stress on the
iothread. The large amount of IPIs causes very high context switch
activity, making emulation slow and the UI unusable. This is by the
way the same reason why the Windows timers were switched to dynticks.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
Tested-by: Alexander Graf <agraf at suse.de>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 46daff13c854769bfa8c51e77719325ea0f47b1b
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Thu Jun 9 13:10:24 2011 +0200
iothread: replace fair_mutex with a condition variable
This conveys the intention better, and scales to more than >1
threads contending the mutex with the iothread (as long as all
of them have a "quiescent point" like the TCG thread has).
Also, on Mac OS X the fair_mutex somehow didn't work as intended
and deadlocked.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
Tested-by: Alexander Graf <agraf at suse.de>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 49e40b6627ea92c246b3903d171c88480b782512
Author: Adam Lackorzynski <adam at os.inf.tu-dresden.de>
Date: Wed Jul 6 10:03:57 2011 +0200
multiboot: Support commas in module parameters
Support commas in the parameter list of multiboot modules as well as for the
kernel command line, by using double commas (via get_opt_value()).
Signed-off-by: Adam Lackorzynski <adam at os.inf.tu-dresden.de>
Reviewed-by: Kevin Wolf <kwolf at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6141dbfe0a595076310f690ec8db84ad5be2cde5
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Fri Jul 15 17:10:15 2011 +0200
report serial devices created with -device in the PIIX4 config space
Serial and parallel devices created with -device are not reported in
the PIIX4 configuration space, and are hence not picked up by the DSDT.
This upsets Windows, which hides them altogether from the guest.
To avoid this, check at the end of machine initialization whether the
corresponding I/O ports have been registered. The new function in
ioport.c does this; this also requires a tweak to isa_unassign_ioport.
I left the comment in piix4_pm_initfn since the registers I moved do
seem to match the 82371AB datasheet. There are some quirks though.
We are setting this bit:
"Device 8 EIO Enable (EIO_EN_DEV8)âR/W. 1=Enable PCI access to the
device 8 enabled I/O ranges to be claimed by PIIX4 and forwarded
to the ISA/EIO bus. 0=Disable. The LPT_MON_EN must be set to enable
the decode."
but not LPT_MON_EN (bit 18 at 50h):
LPT Port Enable (LPT_MON_EN)âR/W. 1=Enable accesses to parallel
port address range (LPT_DEC_SEL) to generate a device 8 (parallel
port) decode event. 0=Disable.
We're also setting the LPT_DEC_SEL field (that's the 0x60 written to
63h) to 11, which means reserved, rather than to 01 (378h-37Fh).
Likewise we're not setting SA_MON_EN, SB_MON_EN (respectively bit 14
and bit 16 at address 50h) for the serial ports. However, we're setting
COMA_DEC_SEL and COMB_DEC_SEL correctly, unlike the corresponding register
for the parallel port.
All these fields are left as they are, since they are probably only
meant to be used in the DSDT.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 5bda29da18eb5104718cad9810b625a0105cb0d2
Author: Alexandre Raymond <cerbere at gmail.com>
Date: Sat Jul 23 01:41:57 2011 -0400
.gitignore: ignore qemu-ga and qapi-generated
Add a new binary and generation directory to the gitignore file
Signed-off-by: Alexandre Raymond <cerbere at gmail.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 9af99f1daf8e9bf0fecddcde35273383ec02cd45
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Fri Jul 22 16:42:00 2011 -0500
guest agent: use QERR_UNSUPPORTED for disabled RPCs
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6eed18568d985f5e091e96205f5ebf50fb823f4e
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:22 2011 +0200
net: Consistently use qemu_macaddr_default_if_unset
Drop the open-coded MAC assignment from net_init_nic and replace it with
standard qemu_macaddr_default_if_unset which is also used by qdev. That
avoid creating colliding MACs when instantiating NICs via different
mechanisms.
This change requires to store the MAC as MACAddr in NICInfo, and the
remaining nd_table users need to be updated.
Based on suggestion by Peter Maydell.
CC: Markus Armbruster <armbru at redhat.com>
CC: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 44e798d3959e6face1adc0b2fd1873b25f66a5e7
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:21 2011 +0200
net: Dump client type 'info network'
Include the client type name into the output of 'info network'. The
result looks like this:
(qemu) info network
VLAN 0 devices:
rtl8139.0: type=nic,model=rtl8139,macaddr=52:54:00:12:34:57
Devices not on any VLAN:
virtio-net-pci.0: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56
\ network1: type=tap,fd=5
CC: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 6f7b3b1be229e3a686a4507d6c11dfcf5f12cef4
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:20 2011 +0200
net: Refactor net_client_types
Position entries of net_client_types according to the corresponding
values of NET_CLIENT_TYPE_*. The array size is now defined by
NET_CLIENT_TYPE_MAX. This will allow to obtain entries based on type
value in later patches.
At this chance rename NET_CLIENT_TYPE_SLIRP to NET_CLIENT_TYPE_USER for
the sake of consistency.
CC: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 19061e63c04810cb24769e9d92d943079206297a
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:19 2011 +0200
net: Improve layout of 'info network'
Improve the layout when listing non-vlan clients via 'info network'. The
result looks like this:
(qemu) info network
Devices not on any VLAN:
orphan: net=10.0.2.0, restricted=n
virtio-net-pci.0: model=virtio-net-pci,macaddr=52:54:00:12:34:56
\ network2: fd=5
e1000.0: model=e1000,macaddr=52:54:00:12:34:57
\ network1: net=10.0.2.0, restricted=n
rtl8139.0: model=rtl8139,macaddr=52:54:00:12:34:58
ie. peers are grouped, orphans are listed as before.
CC: Markus Armbruster <armbru at redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit e6d43cfb1f937898dc031c7b38a23e5ccad8bd9a
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:18 2011 +0200
slirp: Forward ICMP echo requests via unprivileged sockets
Linux 3.0 gained support for unprivileged ICMP ping sockets. Use this
feature to forward guest pings to the outer world. The host admin has to
set the ping_group_range in order to grant access to those sockets. To
allow ping for the users group (GID 100):
echo 100 100 > /proc/sys/net/ipv4/ping_group_range
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 565465fcae755fbdb11c2f65ec5f0ae62c78db3a
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:17 2011 +0200
slirp: Put forked exec into separate process group
Recent smb daemons tend to terminate themselves via a process group
SIGTERM. If the daemon is still in qemu's group by that time, qemu will
die as well. Avoid this by always pushing fork_exec processes into a
group of their own, not just (unused) type 2 execs.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 3acccfc67d3aa4611142e2171337c7c494b52efb
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:16 2011 +0200
slirp: Replace m_freem with m_free
Remove this pointless wrapping.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 5a82362ad0bf06bba3377d63ca0ecd05fb74f322
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:15 2011 +0200
slirp: Strictly associate DHCP/BOOTP and TFTP with virtual host
Instead of accepting every DHCP/BOOTP and TFTP packet, only invoke the
built-in servers if the target is the virtual host.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit c54ed5bcdd8ed29f9cdfcfc0e456b6ec1f25d2c3
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:14 2011 +0200
slirp: Canonicalize restrict syntax
All other boolean arguments accept on|off - except for slirp's restrict.
Fix that while still accepting the formerly allowed yes|y|no|n, but
reject everything else. This avoids accidentally allowing external
connections because syntax errors were so far interpreted as
'restrict=no'.
CC: Gleb Natapov <gleb at redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 12b513d837c9da5277390ddaf98ca0058339977a
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Wed Jul 20 12:20:13 2011 +0200
slirp: Fix restricted mode
This aligns the code to what the documentation claims: Allow everything
but requests that would have to be routed outside of the virtual LAN.
So we need to drop the unneeded IP-level filter, allow TFTP requests,
and add the missing protocol-level filter to ICMP.
CC: Gleb Natapov <gleb at redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 80f52a6694423da7a40e2ec39e14a5817184c7ef
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Sat Jul 23 12:39:46 2011 +0200
Deprecate -M command line options
Superseded by -machine. Therefore, this patch removes -M from the help
list and pushes -machine at the same place in the output.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 9052ea6bf4962b1342aa56d4341bb55176ed9e45
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date: Sat Jul 23 12:38:37 2011 +0200
Generalize -machine command line option
-machine somehow suggests that it selects the machine, but it doesn't.
Fix that before this command is set in stone.
Actually, -machine should supersede -M and allow to introduce arbitrary
per-machine options to the command line. That will change the internal
realization again, but we will be able to keep the user interface
stable.
Tested-by: Ian Campbell <ian.campbell at citrix.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 7006b9cff356233c3db0150ec55fd999c49dfae3
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 22 14:14:17 2011 -0500
guest-agent: fix build with OpenBSD
FS-Freeze only works with Linux.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit fd2a9d2fc719d53caeb37c28440a0e9d34c1b563
Author: Avi Kivity <avi at redhat.com>
Date: Wed Jul 20 12:14:06 2011 +0300
xen: fix xen-mapcache build on non-Xen capable targets
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit bb5df884db32114a4a0129c9927793ebcf7c089a
Merge: e07fc405dc0432c712c9e36c70229f0428f86fa1 3b8b030a280f3b496602dc7d2ee5c68e480ec10b
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 22 11:07:08 2011 -0500
Merge remote-tracking branch 'origin/master' into staging
commit 3b8b030a280f3b496602dc7d2ee5c68e480ec10b
Author: Stefan Weil <weil at mail.berlios.de>
Date: Fri Jul 22 07:44:27 2011 +0200
target-sparc: Fix compiler errors (format strings)
This change is needed because commit 06e12b65
now uses an unsigned long long value
(uint64_t && unsigned long long => unsigned long long).
Cc: Tsuneo Saito <tsnsaito at gmail.com>
Cc: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 2b56cb87e46fbfc5dca31ed13ffc9a5422e1e405
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Fri Jul 22 13:42:20 2011 +0200
libcacard: replace copy_string with strndup
copy_string reimplements strndup, this commit removes it and
replaces all copy_string uses with strndup.
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Reviewed-by: Alon Levy <alevy at redhat.com>
commit d246b3cfd5378e45895b0834a8b8762733c0148f
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Fri Jul 22 13:42:19 2011 +0200
libcacard: introduce NEXT_TOKEN macro
vcard_emul_options now has repetitive code to read the current
token and advance to the next. After the previous changes,
this repetitive code can be moved in a NEXT_TOKEN macro to
avoid having this code duplicated.
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Reviewed-by: Alon Levy <alevy at redhat.com>
commit a5aa842a0597ef9a24e80966b02ca01f287fb334
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Fri Jul 22 13:42:18 2011 +0200
libcacard: fix soft=... parsing in vcard_emul_options
The previous parser had copy and paste errors when computing
vname_length and type_params_length, "name" was used instead
of respectively vname and type_params. This led to length that could
be bigger than the input string, and to access out of the array
bounds when trying to copy these strings. valgrind rightfully
complained about this. It also didn't handle empty fields correctly,
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Reviewed-by: Alon Levy <alevy at redhat.com>
commit 009651675afc775fc77018273a47fb36c28a8100
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Fri Jul 22 13:42:17 2011 +0200
libcacard: s/strip(args++)/strip(args+1)
vcard_emul_options used args = strip(args++) a few times, which
was not returning the expected result since the rest of the code
expected args to be increased by at least 1, which is not the case
if *args is not a blank space when this function is called.
Replace these calls by "strip(args+1)" which will do what we expect.
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Reviewed-by: Alon Levy <alevy at redhat.com>
commit ee83d41466ab393d82d9abf57b9ec24d4e6633be
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Mon Jul 4 18:10:43 2011 +0200
libcacard: don't leak vcard_emul_alloc_arrays mem
vcard_emul_mirror_card and vcard_emul_init use
vcard_emul_alloc_arrays to allocate memory for temporary arrays
which will contain elements that in the end will be used one by
one in cac_card_init. The arrays themselves are never stored
anywhere, they are only used as temporary containers. Hence
the memory that was allocated for these arrays should be freed
after use or they will be leaked.
commit 010debef6111c6776cda7ad8d00737f2d1dbb164
Author: Robert Relyea <rrelyea at redhat.com>
Date: Tue Jun 28 17:28:22 2011 +0200
libcacard/vcard_emul_nss: support cards lying about CKM_RSA_X_509 support
Some tokens claim to do CKM_RSA_X_509, but then choke when they try to do the
actual operations. Try to detect those cases and treat them as if the token
didn't claim support for X_509.
Signed-off-by: Robert Relyea <rrelyea at redhat.com>
commit e07fc405dc0432c712c9e36c70229f0428f86fa1
Merge: 44129530ddf9edcc95913a4c05c755fb732c2bfe 8927cfbba232e28304734f7afd463c1b84134031
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 22 09:24:07 2011 -0500
Merge remote-tracking branch 'spice/spice.v39' into staging
commit 44129530ddf9edcc95913a4c05c755fb732c2bfe
Merge: cfe7bb19d2e717c4ad763879515a8b8bd1ca19c5 e3d4d25206a13ca48936e4357a53591997ce6d57
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 22 09:23:53 2011 -0500
Merge remote-tracking branch 'qmp/for-anthony' into staging
commit cfe7bb19d2e717c4ad763879515a8b8bd1ca19c5
Merge: bf1cd9b4f54c8f630291dcd057c3aa293a510bcb 69354a83346da2d4d8eb9cda18b639794566c902
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 22 09:23:49 2011 -0500
Merge remote-tracking branch 'kraxel/usb.21' into staging
commit bf1cd9b4f54c8f630291dcd057c3aa293a510bcb
Merge: d1afc48b7cfdb4490f322d5d82a2aae6d545ec06 aaf55b4795d95d87353a08710f237f88d81a3c35
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Fri Jul 22 09:23:43 2011 -0500
Merge remote-tracking branch 'kwolf/for-anthony' into staging
commit 69354a83346da2d4d8eb9cda18b639794566c902
Author: Hans de Goede <hdegoede at redhat.com>
Date: Tue Jul 19 11:04:10 2011 +0200
USB: add usb network redirection support
This patch adds support for a usb-redir device, which takes a chardev
as a communication channel to an actual usbdevice using the usbredir protocol.
Compiling the usb-redir device requires usbredir-0.3 to be installed for
the usbredir protocol parser, usbredir-0.3 also contains a server for
redirecting usb traffic from an actual usb device. You can get the 0.3
release of usbredir here:
http://people.fedoraproject.org/~jwrdegoede/usbredir-0.3.tar.bz2
(getting a more formal site for it is a WIP)
Example usage:
1) Start usbredirserver for a usb device:
sudo usbredirserver 045e:0772
2) Start qemu with usb2 support + a chardev talking to usbredirserver +
a usb-redir device using this chardev:
qemu ... \
-readconfig docs/ich9-ehci-uhci.cfg \
-chardev socket,id=usbredirchardev,host=localhost,port=4000 \
-device usb-redir,chardev=usbredirchardev,id=usbredirdev
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 2e97f03ed7719d95e739c4050459b5026ef3cc6c
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 15:44:01 2011 +0200
usb-ehci: trace: rename "next" to "nxt".
"next" is reserved in systemtap thus using this as a
trace parameter name causes trouble when trying to trace
with systemtap.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 0070f095d9aa216ebe4c06c43d0072275f23c8af
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Jul 8 17:28:11 2011 +0200
usb-uhci: fix irq handling on error.
Spec on UHCI_STS_USBERR: "If the TD on which the error interrupt
occurred also had its IOC bit set, both this bit and Bit 0 are set."
Make UHCI emulation do that.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit e7e73892a66dd3850eb723ee2ef9ef3f4569529f
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Jul 8 13:19:01 2011 +0200
usb-hid: fixup changed tracking.
Remove leftover calls to usb_hid_changed().
Take care to update the changed flag after delivering a event via
GET_REPORT like we do when sending events via interrupt endpoint.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit d1afc48b7cfdb4490f322d5d82a2aae6d545ec06
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:33 2011 +0900
SPARC64: implement addtional MMU faults related to nonfaulting load
This patch implements MMU faults caused by TTE.NFO and TTE.E:
- access other than nonfaulting load to a page marked NFO should
raise data_access_exception
- nonfaulting load to a page marked with E bit should raise
data_access_exception
To distinguish nonfaulting loads, this patch extends (abuses?) the rw
argument of get_physical_address_data(). rw is set to 4 on nonfaulting
loads.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit b7785d2072164fa8576767853af9ed517508ee57
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:32 2011 +0900
SPARC64: implement MMU miss traps on nonfaulting loads
Nonfaulting loads should raise fast_data_access_MMU_miss traps as
normal loads do. It is up to the guest OS kernel that detect MMU misses
on nonfaulting load instructions and make them complete without signaling.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 103dcbe581524ba777ccee1ca8ef7c3838c4d4de
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:31 2011 +0900
SPARC64: fix fault status overwritten on nonfaulting load
cpu_get_phys_page_nofault() calls get_physical_address() twice,
that results in overwriting the fault status in the SFSR.
We need this change in order for nonfaulting loads to raising MMU faults
as normal loads do.
Also removed the call to cpu_get_physical_page_desc() since we are
going to modify nonfaulting loads raising MMU faults.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit b64b64361413808bee8e6213095e2e3a18b3358f
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:30 2011 +0900
SPARC64: split cpu_get_phys_page_debug() from cpu_get_phys_page_nofault()
This patch makes cpu_get_phys_page_debug() independent from
cpu_get_phys_page_nofault() in advance of implementing nonfaulting load.
This also modifies cpu_get_phys_page_nofault() to be compiled only on
TARGET_SPARC64 because it is not required on SPARC32.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 321365ab1734cb151090fc0b5a7bef3b97807115
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:29 2011 +0900
SPARC64: introduce a convenience function for getting physical addresses
Introduce cpu_sparc_get_phys_page() to be used as a help for splitting
cpu_get_phys_page_debug() from cpu_get_phys_page_nofault().
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit ccc76c24efdb06b895b8ff3d0a932c905ff483d4
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:28 2011 +0900
SPARC64: SFSR cleanup and fix
Add macros for SFSR fields and use macros instead of magic numbers.
Also fix the update of the register fields on MMU faults.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 06e12b6503d08bbc27f256b9f5d7d211420b3c41
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Fri Jul 22 00:16:27 2011 +0900
SPARC64: TTE bits cleanup
Add macros for TTE bits and modify to use macros instead of
magic numbers.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit e3d4d25206a13ca48936e4357a53591997ce6d57
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 15:41:55 2011 -0500
guest agent: add guest agent RPCs/commands
This adds the initial set of QMP/QAPI commands provided by the guest
agent:
guest-sync
guest-ping
guest-info
guest-shutdown
guest-file-open
guest-file-read
guest-file-write
guest-file-seek
guest-file-flush
guest-file-close
guest-fsfreeze-freeze
guest-fsfreeze-thaw
guest-fsfreeze-status
The input/output specification for these commands are documented in the
schema.
Example usage:
host:
qemu -device virtio-serial \
-chardev socket,path=/tmp/vs0.sock,server,nowait,id=qga0 \
-device virtserialport,chardev=qga0,name=org.qemu.quest_agent.0
...
echo "{'execute':'guest-info'}" | socat stdio unix-connect:/tmp/qga0.sock
guest:
qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \
-p /var/run/qemu-guest-agent.pid -d
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 48ff7a625b3611d075d8798585df86455bb2d1fd
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Wed Jul 20 15:19:37 2011 -0500
guest agent: qemu-ga daemon
This is the actual guest daemon, it listens for requests over a
virtio-serial/isa-serial/unix socket channel and routes them through
to dispatch routines, and writes the results back to the channel in
a manner similar to QMP.
A shorthand invocation:
qemu-ga -d
Is equivalent to:
qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \
-f /var/run/qemu-ga.pid -d
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 13a286d57bb5f50dbceea1fc45060a69bcb23fd1
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 15:41:53 2011 -0500
guest agent: command state class
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit ac32c7807640f04682ea17bca17c22f8b9264d62
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 15:41:52 2011 -0500
qerror: add QERR_JSON_PARSE_ERROR to qerror.c
Missing from previous addition of error to qerror.h. Needed for
qerror_format() and friends.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit b84da8319586e31c2065b1a39aca5ff15e204d5a
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:46 2011 -0500
qapi: add QAPI code generation documentation
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 69ed8366b1e8602b6b7555902f453d3e5df5dd41
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:45 2011 -0500
qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 640e540446d174144784225bfe223d8e40e7736d
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:44 2011 -0500
qapi: add test-visitor, tests for gen. visitor code
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 501e5104490fca89ad31e6a430e2cf01f928d5d1
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:43 2011 -0500
qapi: test schema used for unit tests
This is how QMP commands/parameters/types would be defined. We use a
subset of that functionality here to implement functions/types for unit
testing.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit c17d9908a942e355c70bfb32b6ebdc0e6e5daa87
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:42 2011 -0500
qapi: add qapi-commands.py code generator
This is the code generator for qapi command marshaling/dispatch.
Currently only generators for synchronous qapi/qmp functions are
supported. This script generates the following files:
$(prefix)qmp-marshal.c: command marshal/dispatch functions for each
QMP command defined in the schema. Functions
generated by qapi-visit.py are used to
convert qobjects recieved from the wire into
function parameters, and uses the same
visiter functions to convert native C return
values to qobjects from transmission back
over the wire.
$(prefix)qmp-commands.h: Function prototypes for the QMP commands
specified in the schema.
$(prefix) is used in the same manner as with qapi-types.py
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 06d64c62ddc38c77af775c16165d4b38f43d02e9
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:41 2011 -0500
qapi: add qapi-visit.py code generator
This is the code generator for qapi visiter functions used to
marshal/unmarshal/dealloc qapi types. It generates the following 2
files:
$(prefix)qapi-visit.c: visiter function for a particular c type, used
to automagically convert qobjects into the
corresponding C type and vice-versa, and well
as for deallocation memory for an existing C
type
$(prefix)qapi-visit.h: declarations for previously mentioned visiter
functions
$(prefix) is used as decribed for qapi-types.py
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit fb3182ce6e200a0fedc603d444034d6cbc3d3f0f
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:40 2011 -0500
qapi: add qapi-types.py code generator
This is the code generator for qapi types. It will generation the
following files:
$(prefix)qapi-types.h - C types corresponding to types defined in
the schema you pass in
$(prefix)qapi-types.c - Cleanup functions for the above C types
The $(prefix) is used to as a namespace to keep the generated code from
one schema/code-generation separated from others so code and be
generated from multiple schemas with clobbering previously created code.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 0f923be25321a479405443f33c50c79ee9f5b628
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:39 2011 -0500
qapi: add qapi.py helper libraries
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit e89ac222aa3fe37b0cb0a98c572d80cd6b1729aa
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:38 2011 -0500
qapi: add ordereddict.py helper library
We need this to parse dictionaries with schema ordering intact so that C
prototypes can be generated deterministically.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit ab02ab2aa7a36d78a579642caa404abd99acdc6e
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:37 2011 -0500
qapi: add QMP dispatch functions
Given an object recieved via QMP, this code uses the dispatch table
provided by qmp_registry.c to call the corresponding marshalling/dispatch
function and format return values/errors for delivery to the QMP.
Currently only synchronous QMP functions are supported, but this will
also be used for async QMP functions and QMP guest proxy dispatch as
well.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 43c20a43ca4b3fa265469887186eb0fee68e4a0d
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:36 2011 -0500
qapi: add QMP command registration/lookup functions
Registration/lookup functions for that provide a lookup table for
dispatching QMP commands.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit d5f3c29cf8d59fad4f3c657fc0a26510043bec65
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:35 2011 -0500
qapi: add QAPI dealloc visitor
Type of Visitor class that can be passed into a qapi-generated C
type's visitor function to free() any heap-allocated data types.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit e4e6aa14ed377d808aba4643cd922403606d4dee
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:34 2011 -0500
qapi: add QMP output visitor
Type of Visiter class that serves as the inverse of the input visitor:
it takes a series of native C types and uses their values to construct a
corresponding QObject. The command marshaling/dispatcher functions will
use this to convert the output of QMP functions into a QObject that can
be sent over the wire.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit c40cc0a0ddbcda2af446b40271025b3dbee119ce
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:33 2011 -0500
qapi: add QMP input visitor
A type of Visiter class that is used to walk a qobject's
structure and assign each entry to the corresponding native C type.
Command marshaling function will use this to pull out QMP command
parameters recieved over the wire and pass them as native arguments
to the corresponding C functions.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 2345c77c6d383bd804527720551b79b1d0400693
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:32 2011 -0500
qapi: add QAPI visitor core
Base definitions/includes for Visiter interface used by generated
visiter/marshalling code.
Includes a GenericList type. Our lists require an embedded element.
Since these types are generated, if you want to use them in a different
type of data structure, there's no easy way to add another embedded
element. The solution is to have non-embedded lists and that what this is.
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit c7aa841e9f75f0ff77fec9f918779b1951ab6b9d
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:31 2011 -0500
qapi: add module init types for qapi
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 54d83804a1f69e932e014842e7e7a4744334123d
Author: Michael Roth <mdroth at linux.vnet.ibm.com>
Date: Tue Jul 19 14:50:30 2011 -0500
qlist: add qlist_first()/qlist_next()
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit e18df14185e817ba735bce57ecdef9a55fb3d093
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Tue Jul 19 14:50:29 2011 -0500
Add hard build dependency on glib
GLib is an extremely common library that has a portable thread implementation
along with tons of other goodies.
GLib and GObject have a fantastic amount of infrastructure we can leverage in
QEMU including an object oriented programming infrastructure.
Short term, it has a very nice thread pool implementation that we could leverage
in something like virtio-9p. It also has a test harness implementation that
this series will use.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Michael Roth <mdroth at linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit d3608b7cc6f84caf9bc2b42e0a942ff561b73c4f
Author: Luiz Capitulino <lcapitulino at gmail.com>
Date: Mon Jul 11 15:01:57 2011 -0300
Error: Fix build when qemu-common.h is not included
Commit e4ea5e2d0e0e4c5188ab45b66f3195062ae059dc added the use of
the macro GCC_FMT_ATTR to error.h, however compiler.h is not
included by error.h
This will cause a build error when files including error.h
don't include qemu-common.h (or compiler.h). Not an issue today
because the only file including it is json-parser.h and it does
include qemu-common.h, but let's get it fixed.
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 5c0263204da1870243107acd6c73b21f2e7b78f0
Author: Luiz Capitulino <lcapitulino at gmail.com>
Date: Mon Jul 11 14:24:44 2011 -0300
Introduce compiler.h header file
This moves compiler related macros from qemu-common.h to compiler.h.
The reason for this change is that there are simple header files that
depend only on the compiler macros, so including qemu-common.h is overkill.
Besides, qemu-common.h is bloated and will benefit from some splitting.
Please, also note that the QEMU_BUILD_BUG_ON() macro is being fixed to
not use double underscores as a prefix and the license text was added
by Vassili Karpov (malc), who is one of the authors of the new file.
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit d967b2f14f238c24264fa73d02e9b0dde0b19506
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date: Mon Jul 11 20:01:09 2011 +0200
QMP: add snapshot-blkdev-sync command
Add QMP bits for snapshot_blkdev command. This is the same as
snapshot_blkdev in the human monitor. The command is synchronous.
In the future async commands and or a break down of the functionality
into multiple commands might be added.
Also change the 'snapshot_file' argument to 'snapshot-file' in
the human monitor, so that it matches QMP.
Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
commit 6c916eda22e7ef180bb2dd183bbef85f9ff006c6
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Wed Jul 20 22:06:33 2011 +0000
Update OpenBIOS images for Sparc32 and Sparc64
Update Sparc32 and Sparc64 OpenBIOS images to SVN revision 1045.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit b14ef7c9ab41ea824c3ccadb070ad95567cca84e
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sun Jul 3 08:53:46 2011 +0000
Fix unassigned memory access handling
cea5f9a28faa528b6b1b117c9ab2d8828f473fef exposed bugs in unassigned memory
access handling. Fix them by always passing CPUState to the handlers.
Reported-by: Hervé Poussineau <hpoussin at reactos.org>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 21673cdecb9e9b5a22acaf0a44e47145beb1999e
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Thu Jul 14 15:22:20 2011 +0000
Avoid CPU endian memory accesses in devices
Don't compile virtio.c in hwlib, it depends on memory accesses
performed in CPU endianness.
Make loads and stores in CPU endianness unavailable to devices
and poison them to avoid further bugs.
Acked-by: Alexander Graf <agraf at suse.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit b5176d279a81b3205a6f4e4757b39a4e4f8833e8
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Mon Jul 18 14:32:18 2011 +0900
SPARC64: treat UA2007 ASI_BLK_* as translating ASIs.
UA2007 ASI_BLK_* should be added in is_translating_asi().
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Acked-by: Artyom Tarasenko <atar4qemu at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit d0510af26d854f714114a312eb4aed0649447eb2
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Fri Jul 15 20:09:10 2011 +0000
checkpatch: Fix bracing false positives on #if
789f88d0b21fedfd4251d56bb7a9fbfbda7a4ac7 only fixed #else,
fix also #if.
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit ea15fb067212bb79291f9b76c5c76d45b62f58e1
Author: Stefan Weil <weil at mail.berlios.de>
Date: Wed Jul 20 20:56:36 2011 +0200
tcg/mips: Fix regression caused by typo (copy + paste bug)
cppcheck reports an error:
qemu/tcg/mips/tcg-target.c:1487: error: Invalid number of character (()
The unpatched code won't compile on mips hosts starting with commit
cea5f9a28faa528b6b1b117c9ab2d8828f473fef.
Cc: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit cd3e2409a3605b89b6bea2e67fc128c6a9f8d921
Author: Hervé Poussineau <hpoussin at reactos.org>
Date: Mon Jul 18 23:34:22 2011 +0200
ds1225y: convert to qdev device, and use it in MIPS Jazz emulation
Signed-off-by: Hervé Poussineau <hpoussin at reactos.org>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit d43ed9ec2566922e76420b4ac914df6b2d473c4b
Author: Hervé Poussineau <hpoussin at reactos.org>
Date: Mon Jul 18 23:34:21 2011 +0200
ds1225y: use trace framework
Signed-off-by: Hervé Poussineau <hpoussin at reactos.org>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 86f25c7c37c6f6250cfac4d0ee331af3ca73cac1
Author: Hervé Poussineau <hpoussin at reactos.org>
Date: Mon Jul 18 23:34:20 2011 +0200
ds1225y: Remove protection stuff, which doesn't belong to this device
Signed-off-by: Hervé Poussineau <hpoussin at reactos.org>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit b7d69dc233cee75cbdd3f9df12c6cda9a24ba37d
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Mon Jul 18 15:36:57 2011 +0900
SPARC64: add missing break on fmovdcc
"break" is missing on V9 fmovdcc (%icc).
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit afcb7375123fcb73649dba56f5393e2f2e173b5e
Author: Tsuneo Saito <tsnsaito at gmail.com>
Date: Mon Jul 18 15:00:00 2011 +0900
SPARC64: fix VIS1 SIMD signed compare instructions
The destination registers of SIMD signed compare instructions
(fcmp*<16|32>) are not FP registers but general purpose r registers.
Comparisons should be freg_rs1 CMP freg_rs2, that were reversed.
Signed-off-by: Tsuneo Saito <tsnsaito at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit a3ce3668ccff7d350a4f795ad99a012a6d41caef
Merge: 03ff09580ef6cbc4a893b6e3e6bbff33180ec70a 82845826e89fdc02f6f000fca5d5019ec9be4ab3
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Wed Jul 20 20:23:01 2011 +0000
Merge branch 'for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm
* 'for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
target-arm: Fix BASEPRI, BASEPRI_MAX, and FAULTMASK access
target-arm: Minimal implementation of performance counters
Revert "Makefile.target: Allow target helpers to be in any *_helper.c file"
Revert "target-arm: Use global env in neon_helper.c helpers"
target-arm: Pass fp status pointer explicitly to neon fp helpers
target-arm: Make VFP binop helpers take pointer to fpstatus, not CPUState
target-arm: Add helper function to generate code to get fpstatus pointer
Revert "target-arm: Use global env in iwmmxt_helper.c helpers"
Conflicts:
Makefile.target
commit 98e51ec92e678cf0e501b5ef013753ec8710e222
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 10:06:18 2011 +0200
usb-serial doesn't support migration
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 4ab0ba9e26d52a272cadd5635437a341a4e7ff36
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 10:06:07 2011 +0200
usb-net doesn't support migration
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 2474e5052b3987cbd7f41f6a2992ce691dc8cc0c
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 10:02:40 2011 +0200
usb-bt doesn't support migration
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit ccce9fd205317f60dd30a986084eec39addbd09b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Jul 20 10:00:51 2011 +0200
usb-wacom doesn't support migration
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit f54b65630385d7dc7cf3442eb459d1a5b3d1a9c6
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 10 14:58:41 2010 +0100
usb storage: first migration support bits.
Tag vmstate as unmigratable for the time being,
to be removed when mgration support is finished.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 9490fb0624e67bce90297444fb960c2d9476239e
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Jul 8 10:48:46 2011 +0200
ehci doesn't support migration
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit b7ce1b27f652630e6bc201497ea451b67ad549fa
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Jul 8 10:48:37 2011 +0200
ahci doesn't support migration
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit aaf55b4795d95d87353a08710f237f88d81a3c35
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date: Tue Jul 19 15:01:34 2011 +0200
Add missing documentation for qemu-img -p
Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 2837c8ea1f10c281c9ff68f397405f3596f8ce0b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Jul 8 10:44:35 2011 +0200
vmstate: add no_migrate flag to VMStateDescription
This allows to easily tag devices as non-migratable,
so any attempt to migrate a virtual machine with the
device in question active will make migration fail.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 93913dfd8acbaddc8ef3716cd7b8a2830c99cb19
Author: Kevin Wolf <kwolf at redhat.com>
Date: Tue Jul 19 13:01:48 2011 +0200
qcow2: Use Qcow2Cache in writeback mode during loadvm/savevm
In snapshotting there is no guest involved, so we can safely use a writeback
mode and do the flushes in the right place (i.e. at the very end). This
improves the time that creating/restoring an internal snapshot takes with an
image in writethrough mode.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 4a1d5e1fded54358ddc4d8cbd53388ca7c93499b
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:39 2011 +0800
block: add bdrv_get_allocated_file_size() operation
qemu-img.c wants to count allocated file size of image. Previously it
counts a single bs->file by 'stat' or Window API. As VMDK introduces
multiple file support, the operation becomes format specific with
platform specific meanwhile.
The functions are moved to block/raw-{posix,win32}.c and qemu-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit ae261c86aaed62e7acddafab8262a2bf286d40b7
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:38 2011 +0800
VMDK: fix coding style
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit f66fd6c383edc137fa618c250ea40c1936a52f1c
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 19 08:45:23 2011 +0800
VMDK: create different subformats
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithicSparse.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 7fa60fa3778f1c7336d4e91d4055773538609539
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 19 08:38:22 2011 +0800
VMDK: open/read/write for monolithicFlat image
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 91b85bd388c3767e6b63aaf33851dbfe87ea24d1
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:35 2011 +0800
VMDK: change get_cluster_offset return type
The return type of get_cluster_offset was an offset that use 0 to denote
'not allocated', this will be no longer true for flat extents, as we see
flat extent file as a single huge cluster whose offset is 0 and length
is the whole file length.
So now we use int return value, 0 means success and otherwise offset
invalid.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 69b4d86d9f7feb6083cedb0c5fb65fdc30daf623
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:34 2011 +0800
VMDK: move 'static' cid_update flag to bs field
Cid_update is the flag for updating CID on first write after opening the
image. This should be per image open rather than per program life cycle,
so change it from static var of vmdk_write to a field in BDRVVmdkState.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 333c574d054f95912beef4f020f4128868463fd4
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:33 2011 +0800
VMDK: flush multiple extents
Flush all the file that referenced by the image.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit e1da9b2433f78c4de3bac8c2a97173c648d212c0
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:32 2011 +0800
VMDK: add field BDRVVmdkState.desc_offset
There are several occurrence of magic number 0x200 as the descriptor
offset within mono sparse image file. This is not the case for images
with separate descriptor file. So a field is added to BDRVVmdkState to
hold the correct value.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit b4b3ab146c6d8a7ababc5760c9a0ef7cee78707e
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:31 2011 +0800
VMDK: separate vmdk_open by format version
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 01fc99d6a8f56c8dc4a7466476d6dcb0ad91f589
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:30 2011 +0800
VMDK: probe for monolithicFlat images
Probe as the same behavior as VMware does.
Recognize image as monolithicFlat descriptor file when the file is text
and the first effective line (not '#' leaded comment or space line) is
either 'version=1' or 'version=2'. No space or upper case charactors
accepted.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 0e69c543946957fe8450ebb13874bb1ef280d55b
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:29 2011 +0800
VMDK: bugfix, align offset to cluster in get_whole_cluster
In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit b3976d3c8b895e8929d133b80ef5e373b60cf357
Author: Fam Zheng <famcool at gmail.com>
Date: Tue Jul 12 19:56:28 2011 +0800
VMDK: introduce VmdkExtent
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple
image extents for multiple file image support.
Signed-off-by: Fam Zheng <famcool at gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 69d7e218fd9846b7f5946fe8e17ca609c7fd7ef1
Author: Luiz Capitulino <lcapitulino at gmail.com>
Date: Tue Jul 12 17:35:09 2011 -0300
qemu-config: Document -drive options
Signed-off-by: Luiz Capitulino <lcapitulino at gmail.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit ae73e5919a75622d2c029d5a0e240115990fb735
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Tue Jul 12 17:35:08 2011 -0300
qemu-options.hx: Document missing -drive options
They are 'werror', 'rerror' and 'readonly'.
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 3e1c0c9a4bbaf90a96b14efb771d766fdd091b38
Author: Hannes Reinecke <hare at suse.de>
Date: Mon Jul 11 15:02:26 2011 +0200
scsi-disk: Mask out serial number EVPD
If the serial number is not set we should mask it out in the
list of supported VPD pages and mark it as not supported.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 653c1c3fb63ca56b9ea33bfd77065915bc02184f
Author: Hannes Reinecke <hare at suse.de>
Date: Mon Jul 11 15:02:25 2011 +0200
scsi-disk: Fixup debugging statement
A debugging statement wasn't converted to the new interface.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit c5bf71a9a3b10c0cce877b7b3add4484322d3e2c
Author: Hannes Reinecke <hare at suse.de>
Date: Mon Jul 11 15:02:24 2011 +0200
scsi: Add 'hba_private' to SCSIRequest
'tag' is just an abstraction to identify the command
from the driver. So we should make that explicit by
replacing 'tag' with a driver-defined pointer 'hba_private'.
This saves the lookup for driver handling several commands
in parallel.
'tag' is still being kept for tracing purposes.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Paolo Bonzini <pbonzini at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 348e7b8dcd1460df4d681105f63dd90bba70496d
Author: Hannes Reinecke <hare at suse.de>
Date: Mon Jul 11 15:02:23 2011 +0200
iov: Update parameter usage in iov_(to|from)_buf()
iov_to_buf() has an 'offset' parameter, iov_from_buf() hasn't.
This patch adds the missing parameter to iov_from_buf().
It also renames the 'offset' parameter to 'iov_off' to
emphasize it's the offset into the iovec and not the buffer.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Alexander Graf <agraf at suse.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 5afc8b3de9a8a472a45d2b980632a15cb7f1e1c3
Author: Devin Nakamura <devin122 at gmail.com>
Date: Mon Jul 11 11:20:25 2011 -0400
qemu-io: Fix if scoping bug
Fix a bug caused by lack of braces in if statement
Lack of braces means that if(count & 0x1ff) is never reached
Signed-off-by: Devin Nakamura <devin122 at gmail.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 43642b3803bef28018ca7736be83f2f886d8e42c
Author: Devin Nakamura <devin122 at gmail.com>
Date: Mon Jul 11 11:22:16 2011 -0400
qemu-io: Fix formatting
Replaced tabs with spaces, 8 space indentations with 4 space
indentation, and other fixes to better adhere to CODING_STYLE
Signed-off-by: Devin Nakamura <devin122 at gmail.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit a8e0fdd71596631141e8ad3947b115cf8dd3b681
Author: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Date: Wed Jul 6 03:38:48 2011 +0900
sheepdog: add full data preallocation support
This introduces qemu-img create option for sheepdog which allows the
data to be fully preallocated (note that sheepdog always preallocates
metadata).
The option is disabled by default and you need to enable it like the
following:
qemu-img create sheepdog:test -o preallocation=full 1G
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 82845826e89fdc02f6f000fca5d5019ec9be4ab3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun May 29 02:58:41 2011 +0000
target-arm: Fix BASEPRI, BASEPRI_MAX, and FAULTMASK access
Correct the decode of the register numbers for BASEPRI, BASEPRI_MAX
and FAULTMASK, according to "ARMv7-M Architecture Reference Manual"
issue D section "B5.2.3 MRS" and "B5.2.3 MSR".
Signed-off-by: Sebastian Huber <sebastian.huber at embedded-brains.de>
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit 74594c9d813e4d14e9c16cc71824d8905bedc19d
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Tue Mar 22 12:16:16 2011 +0000
target-arm: Minimal implementation of performance counters
Newer Linux kernels assume the existence of the performance counter
cp15 registers. Provide a minimal implementation of these registers.
We support no events. This should be compliant with the ARM ARM,
except that we don't implement the cycle counter.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit b501b5e461fbf3f5c6cd91c8c933e6f4de627bee
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed May 25 13:14:56 2011 +0000
Revert "Makefile.target: Allow target helpers to be in any *_helper.c file"
Reverts commit 348883d4828d7434e1053407818598f7fb15e594, so the
global env is no longer available to helper.c files other than
op_helper.c.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit 02da0b2d7152f736b1fba95902f55db4fd7ea3a5
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed May 25 13:31:02 2011 +0000
Revert "target-arm: Use global env in neon_helper.c helpers"
This effectively reverts commit 2a3f75b42ac255be09ec2939b96c549ec830efd3
so that we return to passing CPUState to helpers as an explicit parameter.
(There were a number of conflicts in target-arm/translate.c which had
to be resolved by hand so it is not a pure revert.)
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit aa47cfdd178d8ea96b6e2f550742ddbb445fdacb
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed May 25 13:49:19 2011 +0000
target-arm: Pass fp status pointer explicitly to neon fp helpers
Make the Neon helpers for various floating point operations take an
explicit pointer to the float_status they use, so they don't rely on
the global environment pointer any more. This also allows us to drop
the mul/sub/add helpers completely and just use the vfp versions.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit ae1857eca22b58d430941730bd097e95a484652c
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed May 25 14:51:48 2011 +0000
target-arm: Make VFP binop helpers take pointer to fpstatus, not CPUState
Make the VFP binop helper functions take a pointer to the fp status, not
the entire CPUState. This will allow us to use them for Neon operations too.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit 5aaebd13da29a7157b757590284664dc42ea6a69
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed May 25 15:16:10 2011 +0000
target-arm: Add helper function to generate code to get fpstatus pointer
Add and use a helper function which returns a TCGv which is a pointer
to the fp_status for either Neon or VFP operations.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit 477955bd55e032374a41689bab77be5d4b0fb27a
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed May 25 13:22:31 2011 +0000
Revert "target-arm: Use global env in iwmmxt_helper.c helpers"
This reverts commit 947a2fa21b61703802a660a938cabd7b3600ee79,
returning the iwmmxt helpers to passing env in as a parameter.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
More information about the Spice-commits
mailing list