[Qemu-devel] [PATCH v4 12/16] net: Rename qemu_del_vlan_client() to qemu_del_net_client()

2012-06-04 Thread zwu . kernel
From: Stefan Hajnoczi Another step in moving the vlan feature out of net core. Users only deal with NetClientState and therefore qemu_del_vlan_client() should be named qemu_del_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/e1000.c |2 +- hw/eepr

[Qemu-devel] [PATCH v4 13/16] net: Make "info network" output more readable info

2012-06-04 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Jan Kiszka Signed-off-by: Zhi Yong Wu --- net.c | 14 +- net.h |1 + net/hub.c | 23 +-- net/hub.h |1 + 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/net.c b/net.c index 61dc28d..6cedc7a 10

Re: [Qemu-devel] [PATCH v3 00/16] net: hub-based networking

2012-06-04 Thread Markus Armbruster
Anthony Liguori writes: > On 05/29/2012 04:14 PM, Markus Armbruster wrote: >> Luiz Capitulino writes: >> >>> On Mon, 28 May 2012 12:17:04 +0100 >>> Stefan Hajnoczi wrote: >>> What we need to decide is whether it's okay to drop QEMU "VLANs" completely and change dump command-line synta

[Qemu-devel] [PATCH v3] net: add the support for -netdev socket, listen

2012-06-04 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

Re: [Qemu-devel] [PATCH v2 00/25] x86 AREG0 conversion

2012-06-04 Thread Markus Armbruster
Anthony Liguori writes: > On 06/03/2012 10:29 PM, Blue Swirl wrote: >> v1: I only sent the tree URL. >> >> v2: Rebased. Updated 07/25: removed confused comment and split >> sse_op_table3 so that void pointers are avoided there too, adjusted >> 08/25 accordingly. >> >> The patch series most probab

Re: [Qemu-devel] [PATCH qom-next] qom: make object cast assert if NULL object is passed as argument

2012-06-04 Thread Markus Armbruster
Andreas Färber writes: > Am 01.06.2012 13:18, schrieb Markus Armbruster: >> Andreas Färber writes: >> >>> Am 31.05.2012 13:17, schrieb Igor Mammedov: On 05/31/2012 12:16 PM, Paolo Bonzini wrote: > Il 31/05/2012 10:30, Markus Armbruster ha scritto: Makes much sense, but maybe i

[Qemu-devel] [PATCH V4 0/5] Ehnahced SSI bus support + M25P80 SPI flash + Xilinx SPI controller

2012-06-04 Thread Peter A. G. Crosthwaite
Patch 1 Enhances SSI bus support to properly support multiple attached devices. An api is provided for SSI/SPI masters to select a particular device attached to the bus. Patch 2 is a device model for the m25p80 style SPI flash chip. Patch 3 is the Xilinx XPS SPI contoller. Its a sysbus device

[Qemu-devel] [PATCH V4 1/5] SSI: Built in multiple device support

2012-06-04 Thread Peter A. G. Crosthwaite
Added support for multiple devices attached to a single SSI bus (Previously SSI masters with multiple slaves were emulated as multiple point to point SSI busses) Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: added ssi_create_slave_noinit changed from v2: This patch is new (totally r

[Qemu-devel] [PATCH V4 2/5] m25p80: initial verion

2012-06-04 Thread Peter A. G. Crosthwaite
Added device model for m25p80 SPI flash Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: changed licence to v2 or later (PMM review) generalised device model - rather than being fixed to the fl064k, it can handle a wide range of m25p80 devices refactored erase commands (previously the

[Qemu-devel] [PATCH V4 3/5] xilinx_spi: initial version

2012-06-04 Thread Peter A. G. Crosthwaite
device model for xilinx XPS SPI controller (v2.0) Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: typedef'd struct XilinxSPI changed unsigned int -> uin32_t removed unused vars (c_fifo_exist and cmd_ongoing) txfifo_reset removed duplicate s->regs[R_SPISR] &= ~SR_TX_FULL (PMM review) r

[Qemu-devel] [PATCH V4 5/5] stellaris: Updated spi bus implementation

2012-06-04 Thread Peter A. G. Crosthwaite
Setup the stellaris_ssi_bus device to use a single multi-slave ssi bus instead of two busses. Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: This patch is new hw/stellaris.c | 17 +++-- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/hw/stellaris.c b/h

Re: [Qemu-devel] [PATCH V4 5/5] stellaris: Updated spi bus implementation

2012-06-04 Thread Peter Crosthwaite
Regression tested using Paul Brooks test vector: peterc@PetaLogix-ws2:~/Petalogix/Internal/plgx_install/qemu-upstream-regression/third-party/stellaris-test$ qemu-system-arm -M lm3s6965evb -serial stdio -kernel sd_card.bin -sd sdcard.img VNC server running on `127.0.0.1:5900' SD Card Example Prog

Re: [Qemu-devel] [PATCH 1/3 v9] add-cow file format

2012-06-04 Thread Dong Xu Wang
Okay, thanks all of your comments, if no other comments, I will write next version. On Wed, May 30, 2012 at 4:20 PM, Stefan Hajnoczi wrote: > On Wed, May 30, 2012 at 2:50 AM, Dong Xu Wang > wrote: >> On Tue, May 29, 2012 at 11:50 PM, Stefan Hajnoczi wrote: > > I thought a bit more about lockin

[Qemu-devel] [PATCH V4 4/5] petalogix-ml605: added spi controller with m25p80

2012-06-04 Thread Peter A. G. Crosthwaite
Added spi controller to the reference design, with a single cs line and a m25p80 style spi-flash connected Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: set spi flashes as being fl06k changed from v2: changed spi -> ssi added two spi flashes to machine model instead of one default

Re: [Qemu-devel] [PULL 1.2 00/16] hub-based networking patches

2012-06-04 Thread Stefan Hajnoczi
On Mon, Jun 04, 2012 at 01:23:10PM +0800, Zhi Yong Wu wrote: > On Mon, Jun 4, 2012 at 12:51 PM, Anthony Liguori wrote: > > On 06/04/2012 10:46 AM, zwu.ker...@gmail.com wrote: > >> > >> From: Zhi Yong Wu > >> > >> All comments from other guys were addressed. > > > > > > v3 had review comments from

Re: [Qemu-devel] [PATCH v4] target-microblaze: lwx/swx: first implementation

2012-06-04 Thread Edgar E. Iglesias
Applied this one, thanks Peter

[Qemu-devel] [Bug 1008136] Re: Cannot compile 1.1.0

2012-06-04 Thread Jorge Bastos
Debian SID on x86. Configure output: Install prefix/usr/local BIOS directory/usr/local/share/qemu binary directory /usr/local/bin library directory /usr/local/lib include directory /usr/local/include config directory /usr/local/etc Manual directory /usr/local/share/man ELF interp prefi

[Qemu-devel] [PATCH 02/13] pci: Fold pci_bus_new_inplace into pci_bus_new

2012-06-04 Thread Jan Kiszka
There are no external users for this function. Signed-off-by: Jan Kiszka --- hw/pci.c | 29 +++-- hw/pci.h |5 - 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 893f89c..33452ab 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -

[Qemu-devel] [PATCH 03/13] pci: Introduce cached device INTx routing

2012-06-04 Thread Jan Kiszka
Based on the original version by Michael Tsirkin: Instead of traversing the PCI bus hierarchy from a device to the host bridge, cache this path in PCIDevice and use it directly on interrupt delivery. This will specifically pay off with more complex topologies than the current single host bus. Sign

[Qemu-devel] [PATCH 10/13] pci: Fix coding style of pci_parse_devaddr

2012-06-04 Thread Jan Kiszka
So that we can move it unmodified without raising alarms. No functional changes. Signed-off-by: Jan Kiszka --- hw/pci.c | 52 1 files changed, 28 insertions(+), 24 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 4d700a9..62ad61c 100644

Re: [Qemu-devel] tcg_qemu_tb_exec...

2012-06-04 Thread Wei-Ren Chen
On Sun, Jun 03, 2012 at 10:44:32PM +0200, Davide Ferraretto wrote: > I'm in qemu-arm. > tcg_qemu_tb_exec function is a macro: > #define tcg_qemu_tb_exec(env, tb_ptr)\ > ((long REGPARM (*)(void *, void *))code_gen_prologue)(env, tb_ptr) > #endif QEMU treats

[Qemu-devel] [Bug 1008136] Re: Cannot compile 1.1.0

2012-06-04 Thread Jorge Bastos
Extra info, the header exists, QEMU doesn't seems to find it, it's on this place: http://packages.debian.org/search?searchon=contents&keywords=int- ll64.h&mode=exactfilename&suite=stable&arch=any and provided by linux-libc-dev debian package. How can I force configure to include this dir? -- Y

Re: [Qemu-devel] [PATCH 1.1] intel-hda: Fix reset of MSI function

2012-06-04 Thread Gerd Hoffmann
On 05/30/12 10:41, Jan Kiszka wrote: > Call msi_reset on device reset as still required by the core. Acked-by: Gerd Hoffmann cheers, Gerd

[Qemu-devel] [PATCH 00/13] pci: Cleanups & preparations for KVM device assignment

2012-06-04 Thread Jan Kiszka
Besides some smaller cleanups, this series has two main topics: The first is the already posted PCI IRQ routing lookup and notifier. The lookup has been based on the cached routing Michael suggested also for emulated devices. However, this still introduces a new callback and keeps the bus irq_coun

Re: [Qemu-devel] ARM: Virtual / Physical address translation

2012-06-04 Thread Laurent Desnogues
On Thu, May 31, 2012 at 9:07 PM, Ira Ray Jenkins wrote: > On Wed, May 30, 2012 at 10:30 AM, Laurent Desnogues > wrote: >> On Wed, May 30, 2012 at 3:20 AM, Peter Maydell >> wrote: >>> On 30 May 2012 02:00, Ira Ray Jenkins wrote: What I would like is to be able to get the physical addresses

Re: [Qemu-devel] [PATCH 5/6] fdc: use LOG_UNIMP logging

2012-06-04 Thread Kevin Wolf
Am 03.06.2012 19:38, schrieb Blue Swirl: > Convert uses of FLOPPY_ERROR to either FLOPPY_DPRINTF > (for implemented cases) or to use LOG_UNIMP (unimplemented). > > Signed-off-by: Blue Swirl I would suggest that you check the messages of those cases that became FLOPPY_DPRINTF(). Originally the ma

[Qemu-devel] [PATCH 12/13] qdev-properties: Use qemu_parse_pci_devaddr for pci-devfn property

2012-06-04 Thread Jan Kiszka
Generalize qemu_parse_pci_devaddr by two flags so that it can be used for parsing pci-devfn properties as well. Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c |2 +- hw/pci.c |3 ++- hw/qdev-properties.c | 49 - hw/qdev.h

[Qemu-devel] [PATCH 04/13] pci: Rename map_irq to route_pin

2012-06-04 Thread Jan Kiszka
To avoid confusion with the board-level IRQ the host bridge triggers on output, rename the per-bridge routing function for the INTx pins to pci_route_pin_fn. Also adjust variable names of that type. And rename pci_bridge_map_irq to pci_bridge_prepare, which better reflects the job of that function.

[Qemu-devel] [PATCH 07/13] pci: Make domain and bus unsigned in pci_read_devaddr

2012-06-04 Thread Jan Kiszka
It's the more appropriate type as there are no negative domain or bus values. Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c |4 ++-- hw/pci.c | 11 ++- hw/pci.h |4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/pci-hotplug.c b/hw/pci-h

[Qemu-devel] [PATCH 06/13] pci: Add INTx routing notifier

2012-06-04 Thread Jan Kiszka
This per-device notifier shall be triggered by any interrupt router along the path of a device's legacy interrupt signal on routing changes. For simplicity reasons and as this is a slow path anyway, no further details on the routing changes are provided. Instead, the callback is expected to use pci

[Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-04 Thread Jan Kiszka
Add a PCI IRQ path discovery function that walks from a given device to the host bridge, returning the mode (enabled/inverted/disabled) and the IRQ number that is reported to the attached interrupt controller. For this purpose, another host bridge callback function is introduced: route_intx_to_irq.

[Qemu-devel] [PATCH 09/13] pci: Introduce and apply PCIDeviceAddress

2012-06-04 Thread Jan Kiszka
This type encapsulates everything from domain to function. Use it first to simplify the pci_parse_devaddr interface. Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c | 29 ++--- hw/pci.c | 31 ++- hw/pci.h |6 -- qemu-

[Qemu-devel] [PATCH v2 36/41] postcopy: implement incoming part of postcopy live migration

2012-06-04 Thread Isaku Yamahata
This patch implements postcopy live migration for incoming part Signed-off-by: Isaku Yamahata --- Changes v3 -> v4: - fork umemd early to address qemu devices touching guest ram via post/pre_load - code clean up on initialization - Makefile.target migration-postcopy.c is target dependent due

[Qemu-devel] [PATCH 01/13] pci: Refactor pci_change_irq_level

2012-06-04 Thread Jan Kiszka
Align the bus traversal in pci_change_irq_level to other functions. They use PCIBus:parent_dev to detect the root. Signed-off-by: Jan Kiszka --- hw/pci.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index c1ebdde..893f89c 100644 --- a/hw/pci

[Qemu-devel] [PATCH 11/13] Move pci_parse_devaddr to qdev-properties

2012-06-04 Thread Jan Kiszka
We will some use this function also for property parsing, so move it over unmodified and rename it. Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c |2 +- hw/pci.c | 67 +- hw/pci.h |5 --- hw/qdev-properties.c

[Qemu-devel] [PATCH v2 10/41] arch_init: simplify a bit by ram_find_block()

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 21 - exec.c | 12 ++-- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9981abe..73bf250 100644 --- a/arch_init.c +++ b/arch_init.c @@ -432,11 +432,10 @@ void *ram

[Qemu-devel] [PATCHv3] Get system state configuration from QEMU and patch DSDT with it.

2012-06-04 Thread Gleb Natapov
QEMU may want to disable guest's S3/S4 support and it wants to distinguish between regular powerdown and S4 powerdown. To support that new fw_cfg option was added that passes supported system states and what value should guest use to enter each state. States are passed in 6 byte array. Each byte re

Re: [Qemu-devel] [PATCH 1.2 0/7] Manual writethrough cache and cache mode toggle

2012-06-04 Thread Kevin Wolf
Am 22.05.2012 18:17, schrieb Paolo Bonzini: > This is an alternative implementation of writethrough caching. By always > opening protocols in writethrough mode and doing flushes manually after > every write, it achieves two results: 1) it makes flipping the cache mode > extremely easy; 2) it lets

[Qemu-devel] [PATCH v2 18/41] QEMUFile: add qemu_file_fd() for later use

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- qemu-file.h |1 + savevm.c| 12 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/qemu-file.h b/qemu-file.h index 331ac8b..98a8023 100644 --- a/qemu-file.h +++ b/qemu-file.h @@ -71,6 +71,7 @@ QEMUFile *qemu_fopen_socket(int fd

[Qemu-devel] [PATCH v2 30/41] update-linux-headers.sh: teach umem.h to update-linux-headers.sh

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- scripts/update-linux-headers.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 9d2a4bc..2afdd54 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-li

[Qemu-devel] [PATCH v2 26/41] buffered_file: factor out buffer management logic

2012-06-04 Thread Isaku Yamahata
This patch factors out buffer management logic. Signed-off-by: Isaku Yamahata --- buffered_file.c | 141 +- buffered_file.h |8 +++ 2 files changed, 94 insertions(+), 55 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index a3

[Qemu-devel] [PATCH v2 13/41] exec.c: factor out qemu_get_ram_ptr()

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- cpu-all.h |2 ++ exec.c| 51 +-- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 028528f..ff7f827 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -508,6 +508,8 @@ ext

[Qemu-devel] [PATCH v2 38/41] postcopy/outgoing: add forward, backward option to specify the size of prefault

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- hmp-commands.hx | 15 ++- hmp.c|3 +++ migration.c | 20 migration.h |2 ++ qapi-schema.json |3 ++- 5 files changed, 37 insertions(+), 6 deletions(-) diff --git a/hmp-commands.hx b/hmp-comm

[Qemu-devel] [PATCH v2 00/41] postcopy live migration

2012-06-04 Thread Isaku Yamahata
After the long time, we have v2. This is qemu part. The linux kernel part is sent separatedly. Changes v1 -> v2: - split up patches for review - buffered file refactored - many bug fixes Espcially PV drivers can work with postcopy - optimization/heuristic Patches 1 - 30: refactoring exsiting co

[Qemu-devel] [PATCH v2 24/41] migration: export migrate_fd_completed() and migrate_fd_cleanup()

2012-06-04 Thread Isaku Yamahata
This will be used by postcopy migration. Signed-off-by: Isaku Yamahata --- migration.c |4 ++-- migration.h |2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration.c b/migration.c index 753addb..48a8f68 100644 --- a/migration.c +++ b/migration.c @@ -159,7 +159,7 @

[Qemu-devel] [PATCH v3 1/2] export necessary symbols

2012-06-04 Thread Isaku Yamahata
Cc: Andrea Arcangeli Cc: Avi Kivity Cc: Paolo Bonzini Signed-off-by: Isaku Yamahata --- mm/memcontrol.c |1 + mm/mempolicy.c |1 + mm/shmem.c |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index ac35bcc..265ba2f 100644 -

[Qemu-devel] [PATCH v2 08/41] arch_init/ram_load: refactor ram_load

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 67 +- arch_init.h |1 + 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/arch_init.c b/arch_init.c index c861e30..bb0cd52 100644 --- a/arch_init.c +++ b/arch_init.c @@ -4

[Qemu-devel] [PATCH v2 17/41] savevm, buffered_file: introduce method to drain buffer of buffered file

2012-06-04 Thread Isaku Yamahata
Introduce a new method to drain the buffer of QEMUBufferedFile. When postcopy migration, buffer size can increase unboundedly. To keep the buffer size reasonably small, introduce the method to wait for buffer to drain. Signed-off-by: Isaku Yamahata --- buffered_file.c | 20 +++-

[Qemu-devel] [PATCH v2 14/41] exec.c: export last_ram_offset()

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- exec-obsolete.h |1 + exec.c |4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exec-obsolete.h b/exec-obsolete.h index 792c831..fb21dd7 100644 --- a/exec-obsolete.h +++ b/exec-obsolete.h @@ -25,6 +25,7 @@ #ifndef CONFIG_U

[Qemu-devel] [PATCH v2 28/41] buffered_file: add qemu_file to read/write to buffer in memory

2012-06-04 Thread Isaku Yamahata
This is used by postcopy live migration. Signed-off-by: Isaku Yamahata --- buffered_file.c | 50 ++ buffered_file.h | 10 ++ 2 files changed, 60 insertions(+), 0 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 5198923

[Qemu-devel] [PATCH v2 39/41] postcopy/outgoing: implement prefault

2012-06-04 Thread Isaku Yamahata
When page is requested, send surrounding pages are also sent. Signed-off-by: Isaku Yamahata --- migration-postcopy.c | 56 + 1 files changed, 51 insertions(+), 5 deletions(-) diff --git a/migration-postcopy.c b/migration-postcopy.c index eb37094

[Qemu-devel] [PATCH v2 31/41] configure: add CONFIG_POSTCOPY option

2012-06-04 Thread Isaku Yamahata
Add enable/disable postcopy mode. No dynamic test yet. Signed-off-by: Isaku Yamahata --- configure | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 1f338f8..21de4cb 100755 --- a/configure +++ b/configure @@ -194,6 +194,7 @@ zlib="ye

[Qemu-devel] [PATCH v2 02/41] arch_init: export RAM_SAVE_xxx flags for postcopy

2012-06-04 Thread Isaku Yamahata
Those constants will be also used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c |7 --- arch_init.h |7 +++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 38e0173..bd4e61e 100644 --- a/arch_init.c +++ b/arch_init.c @@ -

Re: [Qemu-devel] [PATCH v2 1/1] virtio-rng: hardware random number generator device

2012-06-04 Thread Anthony Liguori
On 05/26/2012 04:20 AM, Amit Shah wrote: On (Fri) 25 May 2012 [15:00:53], Anthony Liguori wrote: On 05/25/2012 02:32 PM, Amit Shah wrote: The Linux kernel already has a virtio-rng driver, this is the device implementation. When the guest asks for entropy from the virtio hwrng, it puts a buffer

[Qemu-devel] [PATCH v3 0/2] postcopy migration: umem: Linux char device for postcopy

2012-06-04 Thread Isaku Yamahata
This is Linux kernel driver for qemu/kvm postcopy live migration. This is used by qemu/kvm postcopy live migration patch. TODO: - Consider FUSE/CUSE option So far several mmap patches for FUSE/CUSE are floating around. (their purpose isn't different from our purpose, though). They haven't merg

[Qemu-devel] [PATCH v2 20/41] savevm/QEMUFileSocket: drop duplicated member fd

2012-06-04 Thread Isaku Yamahata
fd is already stored in QEMUFile so drop duplicated member QEMUFileSocket::fd. Signed-off-by: Isaku Yamahata --- savevm.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/savevm.c b/savevm.c index ec9f5d0..4b560b3 100644 --- a/savevm.c +++ b/savevm.c @@ -189,7 +189,6 @

[Qemu-devel] [PATCH v2 25/41] migration: factor out parameters into MigrationParams

2012-06-04 Thread Isaku Yamahata
Introduce MigrationParams for parameters of migration. Cc: Orit Wasserman Cc: Juan Quintela Signed-off-by: Isaku Yamahata --- Changes v1 -> v2: - catch up qapi change --- block-migration.c |8 migration.c | 21 +++-- migration.h |8 ++-- qemu-

[Qemu-devel] [PATCH 08/13] pci: Export pci_parse_devaddr instead of pci_read_devaddr

2012-06-04 Thread Jan Kiszka
The latter is an internal helper for PCI hotplug. So move it where it belongs - before someone misuses it - and export the more versatile pci_parse_devaddr instead. Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c | 18 -- hw/pci.c | 19 ++- hw/pci.h

[Qemu-devel] [PATCH v2 21/41] savevm: rename QEMUFileSocket to QEMUFileFD, socket_close to fd_close

2012-06-04 Thread Isaku Yamahata
Later the structure will be shared. Signed-off-by: Isaku Yamahata --- savevm.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/savevm.c b/savevm.c index 4b560b3..2fb0c3e 100644 --- a/savevm.c +++ b/savevm.c @@ -187,14 +187,14 @@ typedef struct QEMUFileStdio

[Qemu-devel] [PULL 00/12] Block patches

2012-06-04 Thread Kevin Wolf
The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c: target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Josh Durgin (1): rbd: hook up cache options Kev

[Qemu-devel] [PATCH 01/12] qcow2: remove a line of unnecessary code

2012-06-04 Thread Kevin Wolf
From: Zhi Yong Wu Commit 3948d1d4 removed the pointer argument we filled in with l2_offset but forgot to remove the unnecessary l2_offset assignment. Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |1 - 1 files changed, 0 inser

[Qemu-devel] [PATCH v2 06/41] arch_init: refactor ram_save_block()

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Chnages v1 -> v2: - don't refer last_block which can be NULL. And avoid possible infinite loop. --- arch_init.c | 82 +- arch_init.h |1 + 2 files changed, 48 insertions(+), 35 deletions(-) diff --

[Qemu-devel] [PATCH 03/12] block: implement is_allocated for raw

2012-06-04 Thread Kevin Wolf
From: Paolo Bonzini Either FIEMAP, or SEEK_DATA+SEEK_HOLE can be used to implement the is_allocated callback for raw files. On Linux ext4, btrfs and XFS all support it. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block/raw-posix.c | 98 +++

[Qemu-devel] [PATCH 12/12] sheepdog: add coroutine_fn markers to coroutine functions

2012-06-04 Thread Kevin Wolf
From: MORITA Kazutaka Signed-off-by: MORITA Kazutaka Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/sheepdog.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index f46ca8f..8877f45 100644 --- a/block/sheep

[Qemu-devel] [PATCH v3 2/2] umem: chardevice for kvm postcopy

2012-06-04 Thread Isaku Yamahata
This is a character device to hook page access. The page fault in the area is propagated to another user process by this chardriver. Then, the process fills the page contents and resolves the page fault. Cc: Andrea Arcangeli Cc: Avi Kivity Cc: Paolo Bonzini Signed-off-by: Isaku Yamahata --- C

[Qemu-devel] [PATCH v2 05/41] arch_init/ram_save_live: factor out RAM_SAVE_FLAG_MEM_SIZE case

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 21 ++--- migration.h |1 + 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 36ece1d..28e5abb 100644 --- a/arch_init.c +++ b/arch_init.c @@ -287,6 +287,19 @@ void sort_ram_list(voi

[Qemu-devel] [PATCH v2 35/41] postcopy: introduce helper functions for postcopy

2012-06-04 Thread Isaku Yamahata
This patch introduces helper function for postcopy to access umem char device and to communicate between incoming-qemu and umemd. Signed-off-by: Isaku Yamahata --- changes v1 -> v2: - code simplification - make fault trigger more robust - introduce struct umem_pages --- umem.c | 364 +++

[Qemu-devel] [PATCH 02/12] qcow2: fix the byte endian convertion

2012-06-04 Thread Kevin Wolf
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 812c93c..443c021 100644 --- a/block/qc

[Qemu-devel] [PATCH v2 07/41] arch_init/ram_save_live: factor out ram_save_limit

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 28 migration.h |1 + 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/arch_init.c b/arch_init.c index 900cc8e..c861e30 100644 --- a/arch_init.c +++ b/arch_init.c @@ -311,9 +311,23 @@ void ram_save_

[Qemu-devel] [PATCH v2 04/41] arch_init: refactor host_from_stream_offset()

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 25 ++--- arch_init.h |7 +++ 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 2a53f58..36ece1d 100644 --- a/arch_init.c +++ b/arch_init.c @@ -374,21 +374,22 @@ int ram_sav

[Qemu-devel] [PATCH v2 03/41] arch_init/ram_save: introduce constant for ram save version = 4

2012-06-04 Thread Isaku Yamahata
Introduce RAM_SAVE_VERSION_ID to represent version_id for ram save format. Signed-off-by: Isaku Yamahata --- arch_init.c |2 +- arch_init.h |2 ++ vl.c|4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index bd4e61e..2a53f58 1006

[Qemu-devel] [PATCH v2 01/41] arch_init: export sort_ram_list() and ram_save_block()

2012-06-04 Thread Isaku Yamahata
This will be used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c |4 ++-- migration.h |2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch_init.c b/arch_init.c index a9e8b74..38e0173 100644 --- a/arch_init.c +++ b/arch_init.c @@ -164,7 +164,7 @@ static i

[Qemu-devel] [PATCH v2 33/41] postcopy: introduce -postcopy and -postcopy-flags option

2012-06-04 Thread Isaku Yamahata
This patch prepares for postcopy livemigration. It introduces -postcopy option and its internal flag, migration_postcopy. It introduces -postcopy-flags for chaging the behavior of incoming postcopy mainly for benchmark/debug. Signed-off-by: Isaku Yamahata --- migration.h |3 +++ qemu-opt

[Qemu-devel] [PATCH v2 27/41] buffered_file: Introduce QEMUFileNonblock for nonblock write

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- buffered_file.c | 115 +++ buffered_file.h | 13 ++ 2 files changed, 128 insertions(+), 0 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 22dd4c9..5198923 100644 --- a/buffered_file.c +

[Qemu-devel] [PATCH v2 40/41] migrate: add -m (movebg) option to migrate command

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- hmp-commands.hx |5 +++-- hmp.c|3 ++- migration.c |8 +++- migration.h |1 + qapi-schema.json |2 +- qmp-commands.hx |2 +- savevm.c |1 + 7 files changed, 16 insertions(+), 6 deletions(-) diff --g

[Qemu-devel] [PATCH 05/12] stream: move is_allocated_above to block.c

2012-06-04 Thread Kevin Wolf
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block.c| 49 + block.h|4 block/stream.c | 53 ++--- 3 files changed, 55 insertions(+), 51

[Qemu-devel] [PATCH 07/12] Un-inline fdctrl_init_isa()

2012-06-04 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Anthony Liguori Signed-off-by: Kevin Wolf --- hw/fdc.c | 20 hw/fdc.h | 24 ++-- hw/ide/piix.c |3 ++- hw/isa.h |2 -- hw/pc_sysfw.c |1 + qemu-common.

[Qemu-devel] [PATCH v2 34/41] postcopy outgoing: add -p and -n option to migrate command

2012-06-04 Thread Isaku Yamahata
Added -p option to migrate command for postcopy mode and introduce postcopy parameter for migration to indicate that postcopy mode is enabled. Add -n option for postcopy migration which indicates disabling background transfer. Signed-off-by: Isaku Yamahata --- Chnages v1 -> v2: - catch up for qap

Re: [Qemu-devel] [PATCHv3] Get system state configuration from QEMU and patch DSDT with it.

2012-06-04 Thread Gleb Natapov
Wrong patch :( On Mon, Jun 04, 2012 at 01:17:11PM +0300, Gleb Natapov wrote: > QEMU may want to disable guest's S3/S4 support and it wants to distinguish > between regular powerdown and S4 powerdown. To support that new fw_cfg > option was added that passes supported system states and what value s

[Qemu-devel] [PATCHv3] Add PIIX4 properties to control PM system states.

2012-06-04 Thread Gleb Natapov
This patch adds two things. First it allows QEMU to distinguish between regular powerdown and S4 powerdown. Later separate QMP notification will be added for S4 powerdown. Second it allows S3/S4 states to be disabled from QEMU command line. Some guests known to be broken with regards to power manag

[Qemu-devel] [PATCH v2 12/41] arch_init: factor out setting last_block, last_offset

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 13 - arch_init.h |1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch_init.c b/arch_init.c index 2617478..22d9691 100644 --- a/arch_init.c +++ b/arch_init.c @@ -203,6 +203,12 @@ int ram_save_page(QEMUFile *f,

[Qemu-devel] [PATCH v2 09/41] arch_init: introduce helper function to find ram block with id string

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 13 + arch_init.h |1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch_init.c b/arch_init.c index bb0cd52..9981abe 100644 --- a/arch_init.c +++ b/arch_init.c @@ -397,6 +397,19 @@ int ram_save_live(QEMUFile *f,

[Qemu-devel] [PATCH v2 22/41] savevm/QEMUFile: introduce qemu_fopen_fd

2012-06-04 Thread Isaku Yamahata
Introduce nonblocking fd read backend of QEMUFile. This will be used by postcopy live migration. Signed-off-by: Isaku Yamahata --- qemu-file.h |1 + savevm.c| 40 2 files changed, 41 insertions(+), 0 deletions(-) diff --git a/qemu-file.h b/qemu

[Qemu-devel] [PATCH v2 29/41] umem.h: import Linux umem.h

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- linux-headers/linux/umem.h | 42 ++ 1 files changed, 42 insertions(+), 0 deletions(-) create mode 100644 linux-headers/linux/umem.h diff --git a/linux-headers/linux/umem.h b/linux-headers/linux/umem.h new file mode 1006

[Qemu-devel] [PATCH 09/12] qemu-img check: Print fixed clusters and recheck

2012-06-04 Thread Kevin Wolf
When any inconsistencies have been fixed, print the statistics and run another check to make sure everything is correct now. Signed-off-by: Kevin Wolf --- block.h |2 ++ block/qed-check.c |2 ++ qemu-img.c| 10 ++ 3 files changed, 14 insertions(+), 0 deletions

[Qemu-devel] [PATCH v2 16/41] savevm: qemu_pending_size() to return pending buffered size

2012-06-04 Thread Isaku Yamahata
This will be used later by postcopy migration. Signed-off-by: Isaku Yamahata --- qemu-file.h |1 + savevm.c|5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/qemu-file.h b/qemu-file.h index a285bef..880ef4b 100644 --- a/qemu-file.h +++ b/qemu-file.h @@ -91,6 +91

[Qemu-devel] [PATCH v2 15/41] savevm: export qemu_peek_buffer, qemu_peek_byte, qemu_file_skip

2012-06-04 Thread Isaku Yamahata
Those will be used by postcopy. Signed-off-by: Isaku Yamahata --- qemu-file.h |3 +++ savevm.c|6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu-file.h b/qemu-file.h index 31b83f6..a285bef 100644 --- a/qemu-file.h +++ b/qemu-file.h @@ -88,6 +88,9 @@ void q

[Qemu-devel] [PATCH 08/12] qemu-img check -r for repairing images

2012-06-04 Thread Kevin Wolf
The QED block driver already provides the functionality to not only detect inconsistencies in images, but also fix them. However, this functionality cannot be manually invoked with qemu-img, but the check happens only automatically during bdrv_open(). This adds a -r switch to qemu-img check that a

[Qemu-devel] [PATCH v2 32/41] savevm: add new section that is used by postcopy

2012-06-04 Thread Isaku Yamahata
This is used by postcopy to tell the total length of QEMU_VM_SECTION_FULL and QEMU_VM_SUBSECTION from outgoing to incoming. Signed-off-by: Isaku Yamahata --- savevm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index 318ec61..3adabad 100644 --- a/

[Qemu-devel] [PATCH v2 41/41] migration/postcopy: add movebg mode

2012-06-04 Thread Isaku Yamahata
When movebg mode is enabled, the point to send background page is set to the next page to on-demand page. Signed-off-by: Isaku Yamahata --- migration-postcopy.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/migration-postcopy.c b/migration-postcopy.c index 61656

[Qemu-devel] [PATCH v2 19/41] savevm/QEMUFile: drop qemu_stdio_fd

2012-06-04 Thread Isaku Yamahata
Now qemu_file_fd() replaces qemu_stdio_fd(). Signed-off-by: Isaku Yamahata --- migration-exec.c |4 ++-- migration-fd.c |2 +- qemu-file.h |1 - savevm.c | 12 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/migration-exec.c b/migration-e

[Qemu-devel] [PATCH 10/12] qcow2: Support for fixing refcount inconsistencies

2012-06-04 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 31 +++ block/qcow2.c |6 +- block/qcow2.h |3 ++- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 443c021..354

[Qemu-devel] [PATCH v2 11/41] arch_init: factor out counting transferred bytes

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch_init.c b/arch_init.c index 73bf250..2617478 100644 --- a/arch_init.c +++ b/arch_init.c @@ -155,8 +155,9 @@ static int is_dup_page(uint8_t *page) }

[Qemu-devel] [PATCH 06/12] stream: move rate limiting to a separate header file

2012-06-04 Thread Kevin Wolf
From: Paolo Bonzini Make the code reusable. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block/stream.c | 31 +--- include/qemu/ratelimit.h | 48 ++ 2 files changed, 50 insertions(+), 29 deletions(

[Qemu-devel] [PATCH 11/12] rbd: hook up cache options

2012-06-04 Thread Kevin Wolf
From: Josh Durgin Writeback caching was added in Ceph 0.46, and writethrough will be in 0.47. These are controlled by general config options, so there's no need to check for librbd version. Signed-off-by: Josh Durgin Signed-off-by: Kevin Wolf --- block/rbd.c | 19 +++ 1 file

[Qemu-devel] [PATCH v2 23/41] migration.c: remove redundant line in migrate_init()

2012-06-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- migration.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/migration.c b/migration.c index 3f485d3..753addb 100644 --- a/migration.c +++ b/migration.c @@ -367,7 +367,6 @@ static MigrationState *migrate_init(int blk, int inc) int64_t

[Qemu-devel] [PATCH 04/12] stream: tweak usage of bdrv_co_is_allocated

2012-06-04 Thread Kevin Wolf
From: Paolo Bonzini is_allocated_base has complex semantics that are not really usable outside streaming. Split the check in two parts, where the allocated state for the top bs is moved to the caller. The resulting function is more generally useful. Signed-off-by: Paolo Bonzini Signed-off-by:

[Qemu-devel] [PATCH 13/13] qdev-properties: Add pci-devaddr property

2012-06-04 Thread Jan Kiszka
Add a property to receive a fully qualified PCI device address. Will be used by KVM device assignment. Signed-off-by: Jan Kiszka --- hw/qdev-properties.c | 48 hw/qdev.h|3 +++ 2 files changed, 51 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH v2 37/41] postcopy: implement outgoing part of postcopy live migration

2012-06-04 Thread Isaku Yamahata
This patch implements postcopy live migration for outgoing part Signed-off-by: Isaku Yamahata --- Changes v1 -> v2: - fix parameter to qemu_fdopen() - handle QEMU_UMEM_REQ_EOC properly when PO_STATE_ALL_PAGES_SENT, QEMU_UMEM_REQ_EOC request was ignored. handle properly it. - flush on-demand p

[Qemu-devel] [Bug 1008136] Re: Cannot compile 1.1.0

2012-06-04 Thread Anthony Liguori
Can you include the output of 'make V=1'? Do you have custom kernel headers installed? Is it possible that you installed them without sanitizing them first? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/

  1   2   3   4   >