Re: [Qemu-devel] [patch v5 6/8] memory: make mmio dispatch able to be out of biglock

2012-10-30 Thread liu ping fan
On Mon, Oct 29, 2012 at 5:41 PM, Avi Kivity wrote: > On 10/29/2012 01:48 AM, Liu Ping Fan wrote: >> Without biglock, we try to protect the mr by increase refcnt. >> If we can inc refcnt, go backward and resort to biglock. >> >> Another point is memory radix-tree can be flushed by another >> thread

Re: [Qemu-devel] [PATCH v1 0/8] Sysbus EHCI + Zynq USB.

2012-10-30 Thread Gerd Hoffmann
On 10/29/12 15:08, Peter Crosthwaite wrote: > Ping! > > This is the first version of the EHCI sysbus series which takes a > property based approach rather than the dynamic class approach. > > No refactoring of the PCI stuff is done here (introduced v2) but > following on from the discussion on IR

Re: [Qemu-devel] [PATCH 07/18] migration: make writes blocking

2012-10-30 Thread Markus Armbruster
Juan Quintela writes: > Markus Armbruster wrote: >> Juan Quintela writes: >> >>> Move all the writes to the migration_thread, and make writings >>> blocking. Notice that are still using the iothread for everything >>> that we do. >> [...] >>> diff --git a/qemu-sockets.c b/qemu-sockets.c >>> in

Re: [Qemu-devel] buildbot failure in qemu on default_mingw32

2012-10-30 Thread Paolo Bonzini
Il 30/10/2012 01:53, q...@buildbot.b1-systems.de ha scritto: > The Buildbot has detected a new failure on builder default_mingw32 while > building qemu. > Full details are available at: > http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/420 > > Buildbot URL: http://buildbot.b1-

[Qemu-devel] 64-on-32 TCG broken [was Re: x86_64-softmmu broken on Windows (TCG?)]

2012-10-30 Thread Paolo Bonzini
Il 29/10/2012 19:29, Aurelien Jarno ha scritto: > On Mon, Oct 29, 2012 at 06:53:14PM +0100, Paolo Bonzini wrote: >> > Known-good commit: 8473f377393219390ea6f2d8d450a2b054bb823e >> > Known-bad commit: d262cb02861dd33375c08fc798930653b14769e9 >> > >> > i386-softmmu seems to work. I may try to bise

Re: [Qemu-devel] [PATCH 07/18] migration: make writes blocking

2012-10-30 Thread Juan Quintela
Markus Armbruster wrote: > Juan Quintela writes: > >> Markus Armbruster wrote: >>> Juan Quintela writes: >>> Move all the writes to the migration_thread, and make writings blocking. Notice that are still using the iothread for everything that we do. >>> [...] diff --git a/q

Re: [Qemu-devel] [PATCH v1 0/8] Sysbus EHCI + Zynq USB.

2012-10-30 Thread Peter Crosthwaite
On Tue, Oct 30, 2012 at 5:20 PM, Gerd Hoffmann wrote: > On 10/29/12 15:08, Peter Crosthwaite wrote: >> Ping! >> >> This is the first version of the EHCI sysbus series which takes a >> property based approach rather than the dynamic class approach. >> >> No refactoring of the PCI stuff is done here

Re: [Qemu-devel] [PATCH 3/3] slirp: remove unused function u_sleep

2012-10-30 Thread Jan Kiszka
On 2012-10-28 13:26, Blue Swirl wrote: > Signed-off-by: Blue Swirl > --- > slirp/misc.c | 14 -- > slirp/misc.h |1 - > 2 files changed, 0 insertions(+), 15 deletions(-) > > diff --git a/slirp/misc.c b/slirp/misc.c > index 0bee864..664532a 100644 > --- a/slirp/misc.c > +++ b/sl

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-SCSI -> Bad ram pointer

2012-10-30 Thread Stefan Hajnoczi
On Mon, Oct 29, 2012 at 03:09:37PM +0100, Peter Lieven wrote: > Hi, Bug subject should be virtio-blk, not virtio-scsi. virtio-scsi is a different virtio device type from virtoi-blk and is not present in the backtrace you posted. Sounds pedantic but I want to make sure this gets chalked up agains

[Qemu-devel] [PATCH v3 06/35] osdep: add qemu_read_full() to read interrupt-safely

2012-10-30 Thread Isaku Yamahata
This is read counter part of qemu_write_full(). Signed-off-by: Isaku Yamahata --- osdep.c | 24 qemu-common.h |2 ++ 2 files changed, 26 insertions(+) diff --git a/osdep.c b/osdep.c index 3b25297..416ffe1 100644 --- a/osdep.c +++ b/osdep.c @@ -261,6 +261,30

[Qemu-devel] [PATCH v3 12/35] arch_init: export RAM_SAVE_xxx flags for postcopy

2012-10-30 Thread Isaku Yamahata
Those constants will be also used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c |8 arch_init.h |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch_init.c b/arch_init.c index a312434..4b65221 100644 --- a/arch_init.c +++ b/arch_init.c @@

[Qemu-devel] [PATCH v3 01/35] migration.c: remove redundant line in migrate_init()

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- migration.c |1 - 1 file changed, 1 deletion(-) diff --git a/migration.c b/migration.c index 62e0304..8fcb466 100644 --- a/migration.c +++ b/migration.c @@ -460,7 +460,6 @@ static MigrationState *migrate_init(const MigrationParams *params) sizeo

[Qemu-devel] [PATCH v3 34/35] postcopy/outgoing: introduce precopy_count parameter

2012-10-30 Thread Isaku Yamahata
Precopy with this loop number before postcopy mode. This will be implemented by the next patch. Signed-off-by: Isaku Yamahata --- hmp-commands.hx | 10 ++ hmp.c|2 ++ migration-postcopy.c |2 +- migration.c |2 ++ migration.h |3 ++

[Qemu-devel] [PATCH v3 31/35] arch_init: export ram_save_iterate()

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 11 --- arch_init.h |1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index f86a0b4..48f45cd 100644 --- a/arch_init.c +++ b/arch_init.c @@ -633,7 +633,7 @@ static int ram_save_setup(QEMUFile

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

2012-10-30 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 v3 25/35] postcopy: implement outgoing part of postcopy live migration

2012-10-30 Thread Isaku Yamahata
This patch implements postcopy live migration for outgoing part Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - modify savevm_ram_handlers instead of if (postcopy) - code simplification Changes v1 -> v2: - fix parameter to qemu_fdopen() - handle QEMU_UMEM_REQ_EOC properly when PO_STATE_A

[Qemu-devel] [PATCH v3 26/35] postcopy/outgoing: add -n options to disable background transfer

2012-10-30 Thread Isaku Yamahata
This is for benchmark purpose Signed-off-by: Isaku Yamahata --- hmp-commands.hx | 10 ++ hmp.c|4 +++- migration-postcopy.c |7 +++ migration.c |4 +++- migration.h |1 + qapi-schema.json |2 +- qmp-commands.hx |

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

2012-10-30 Thread Isaku Yamahata
This is Linux kernel driver for qemu/kvm postcopy live migration. This is used by qemu/kvm postcopy live migration patch. User process backed memory driver provides /dev/uvmem device. This /dev/uvmem device is designed for some sort of distributed shared memory. page fault in the area backed by th

[Qemu-devel] [PATCH 04/28] hw/versatilepb: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before passing it to the common versatile init function. Signed-off-by: Peter Maydell --- hw/versatilepb.c | 44 +++- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/hw/versatilepb.c b/hw/versatilepb.c in

[Qemu-devel] [PATCH 24/28] pflash_cfi0x: QOMified

2012-10-30 Thread Peter Maydell
From: Peter Crosthwaite QOMified the pflash_cfi0x so machine models can connect them up in custom ways. Kept the pflash_cfi0x_register functions as is. They can still be used to create a flash straight onto system memory. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-

[Qemu-devel] [PATCH v3 28/35] arch_init: factor out setting last_block, last_offset

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 10 +++--- arch_init.h |1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index d95ce7b..9137013 100644 --- a/arch_init.c +++ b/arch_init.c @@ -416,6 +416,12 @@ static void migration_bitmap_sync(

[Qemu-devel] [PATCH 11/28] hw/pl061: Use LOG_GUEST_ERROR

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report guest attempts to access bad register offsets. Signed-off-by: Peter Maydell --- hw/pl061.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/pl061.c b/hw/pl061.c index 7d182e7..f1ed5ce 100644 --- a/hw/pl061.c +++ b/hw/pl061.c @@ -164,7

[Qemu-devel] [PATCH 02/28] hw/vexpress.c: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before passing it to the vexpress common init function. Signed-off-by: Peter Maydell --- hw/vexpress.c | 38 +- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 3f7cb66..d93f

[Qemu-devel] [PATCH 26/28] hw/sd.c: Fix erase for high capacity cards

2012-10-30 Thread Peter Maydell
From: Igor Mitsyanko Standard capacity cards SDSC use byte unit address while SDHC and SDXC cards use block unit address (512 bytes) when setting ERASE_START and ERASE_END with CMD32 and CMD33, we have to account for this. Signed-off-by: Igor Mitsyanko Reviewed-by: Peter Maydell Signed-off-by:

[Qemu-devel] [PATCH v3 14/35] arch_init: refactor ram_save_block() and export ram_save_block()

2012-10-30 Thread Isaku Yamahata
arch_init: factor out counting transferred bytes. This will be used by postcopy. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - manual rebase - report ram_save_block Chnages v1 -> v2: - don't refer last_block which can be NULL. And avoid possible infinite loop. --- arch_init.c | 122 +

Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support

2012-10-30 Thread Paolo Bonzini
Il 30/10/2012 05:43, H. Peter Anvin ha scritto: > Let me be more specific. > > First of all, feeding /dev/urandom to the guest is dangerous -- you are > feeding it PRNG contents but telling it that it is real entropy. This > is a security hole. > > Second of all, you're doing something pointless

[Qemu-devel] [PATCH v3 07/35] savevm: export qemu_peek_buffer, qemu_peek_byte, qemu_file_skip, qemu_fflush

2012-10-30 Thread Isaku Yamahata
Those will be used by postcopy. Signed-off-by: Isaku Yamahata --- qemu-file.h |4 savevm.c|8 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/qemu-file.h b/qemu-file.h index 9c8985b..9b6dd08 100644 --- a/qemu-file.h +++ b/qemu-file.h @@ -72,6 +72,7 @@ QEM

[Qemu-devel] [PATCH v3 35/35] postcopy: pre+post optimization outgoing side

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c |6 ++-- migration-postcopy.c | 94 +++--- migration.h |1 + 3 files changed, 94 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 49fbaff..f9bd483 10064

[Qemu-devel] [PATCH v3 16/35] arch_init/ram_load: refactor ram_load

2012-10-30 Thread Isaku Yamahata
ram_load_page() will be used by postcopy. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - new --- arch_init.c | 137 +++ arch_init.h |3 ++ 2 files changed, 74 insertions(+), 66 deletions(-) diff --git a/arch_init.c b/arch_init.

[Qemu-devel] [PATCH v3 17/35] arch_init: factor out logic to find ram block with id string

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 31 --- arch_init.h |1 + exec.c | 12 ++-- 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/arch_init.c b/arch_init.c index c77e24d..d82316d 100644 --- a/arch_init.c +++ b/arch_init.c

[Qemu-devel] [PATCH 05/28] hw/spitz: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before calling common init function. Signed-off-by: Peter Maydell --- hw/spitz.c | 45 ++--- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index 944c274..12e2815 100644 --- a/hw/

[Qemu-devel] [PATCH 15/28] hw/arm11mpcore: Use LOG_GUEST_ERROR rather than hw_error()

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report guest accesses to bad offsets. Signed-off-by: Peter Maydell --- hw/arm11mpcore.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/arm11mpcore.c b/hw/arm11mpcore.c index 105f158..640ed20 100644 --- a/hw/arm11mpcore.c +++ b/hw/arm11mpco

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-BLK -> Bad ram pointer

2012-10-30 Thread Peter Lieven
On 30.10.2012 09:32, Stefan Hajnoczi wrote: On Mon, Oct 29, 2012 at 03:09:37PM +0100, Peter Lieven wrote: Hi, Bug subject should be virtio-blk, not virtio-scsi. virtio-scsi is a different virtio device type from virtoi-blk and is not present in the backtrace you posted. you are right, sorry f

[Qemu-devel] [PATCH 09/28] hw/exynos4_boards: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before passing it to exynos4_boards_init_common(). Signed-off-by: Peter Maydell --- hw/exynos4_boards.c | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/hw/exynos4_boards.c b/hw/exynos4_boards.c index 49510

[Qemu-devel] [PATCH 14/28] hw/pl190: Use LOG_UNIMP rather than hw_error()

2012-10-30 Thread Peter Maydell
Use LOG_UNIMP to report attempts to use the unimplemented test mode. Signed-off-by: Peter Maydell --- hw/pl190.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pl190.c b/hw/pl190.c index 213229b..4019930 100644 --- a/hw/pl190.c +++ b/hw/pl190.c @@ -199,7 +199,7 @@ stat

Re: [Qemu-devel] [RFC] Memory API and fine grained Memory Regions

2012-10-30 Thread Edgar E. Iglesias
On Mon, Oct 29, 2012 at 06:34:37PM +0200, Avi Kivity wrote: > On 10/29/2012 01:37 AM, John Williams wrote: > > >> IMO, an mr per reg would just add a massive overhead for no win. > > > > I tend to agree with Edgar here - QEMU has a careful line to walk between > > being an emulator and an RTL si

Re: [Qemu-devel] [PATCH] update-linux-headers.sh: Handle new kernel uapi/ directories

2012-10-30 Thread Peter Maydell
Ping? (patchwork url http://patchwork.ozlabs.org/patch/193125/) thanks -- PMM On 22 October 2012 13:54, Peter Maydell wrote: > Recent kernels have moved to keeping the userspace headers > in uapi/ subdirectories. This breaks the detection of whether an > architecture has KVM support in the kern

[Qemu-devel] [PATCH] update pci-ids.txt

2012-10-30 Thread Gerd Hoffmann
Add virtio-scsi and non-virtio devices. Signed-off-by: Gerd Hoffmann --- pci-ids.txt | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/pci-ids.txt b/pci-ids.txt index 73125a8..a2bf6f7 100644 --- a/pci-ids.txt +++ b/pci-ids.txt @@ -20,8 +20,9 @@ VirtIO Devi

[Qemu-devel] [PATCH 13/28] hw/pl110: Use LOG_GUEST_ERROR rather than hw_error()

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report guest accesses to invalid register offsets. Signed-off-by: Peter Maydell --- hw/pl110.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/pl110.c b/hw/pl110.c index 82486b0..d5472f4 100644 --- a/hw/pl110.c +++ b/hw/pl110.c @@ -349,7 +34

Re: [Qemu-devel] [PATCH v5 1/2] pl330: Initial version

2012-10-30 Thread Avi Kivity
On 10/29/2012 10:32 AM, Peter Maydell wrote: > On 29 October 2012 06:35, Peter Crosthwaite > wrote: >> Device model for Primecell PL330 dma controller. > > A general question -- this is a DMA controller so should it be using > the DMAContext APIs now? Avi? IOMMU functionality will be folded into

[Qemu-devel] [PATCH 18/28] hw/armv7m_nvic: Use LOG_GUEST_ERROR and LOG_UNIMP

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR and LOG_UNIMP rather than hw_error() where appropriate. Signed-off-by: Peter Maydell --- hw/armv7m_nvic.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/hw/armv7m_nvic.c b/hw/armv7m_nvic.c index 8d8d0a4..f0a2e7b 100644

[Qemu-devel] [PATCH 03/28] hw/realview.c: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs in every realview init function; just pass it to the common realview_init() code instead. Signed-off-by: Peter Maydell --- hw/realview.c | 68 - 1 file changed, 19 insertions(+), 49 deletions(-) diff --g

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 131 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 144 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index afe2bfb..11c320f 100644 --- a/qemu-char

[Qemu-devel] [PATCH v3 23/35] postcopy: implement incoming part of postcopy live migration

2012-10-30 Thread Isaku Yamahata
This patch implements postcopy live migration for incoming part Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - threading, not fork - use blocking io instead of select + non-blocking io - don't modify RAMBlock - When device allocates its own RAM region, e.g. vshmem, it's handled by device

[Qemu-devel] [PATCH v3 27/35] postcopy/outgoing: implement forward/backword prefault

2012-10-30 Thread Isaku Yamahata
When page is requested, send surrounding pages are also sent. Signed-off-by: Isaku Yamahata --- hmp-commands.hx | 15 - hmp.c|3 +++ migration-postcopy.c | 57 +- migration.c | 20

[Qemu-devel] [PATCH 19/28] hw/arm_sysctl: Use LOG_GUEST_ERROR

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report bad guest accesses. Signed-off-by: Peter Maydell --- hw/arm_sysctl.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index 26318e1..58eb982 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -184,7

[Qemu-devel] [PATCH v3 00/35] postcopy live migration

2012-10-30 Thread Isaku Yamahata
This is the v3 patch series of postcopy migration. The trees is available at git://github.com/yamahata/qemu.git qemu-postcopy-oct-30-2012 git://github.com/yamahata/linux-umem.git linux-umem-oct-29-2012 Major changes v2 -> v3: - implemented pre+post optimization - auto detection of postcopy by inc

[Qemu-devel] [PATCH v3 11/35] savevm, buffered_file: introduce method to drain buffer of buffered file

2012-10-30 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. Detect unfreeze output by select too, not only by timer, thus pending data can b

[Qemu-devel] [PATCH v3 30/35] arch_init: factor out ram_load

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 13 ++--- arch_init.h |3 +++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9137013..f86a0b4 100644 --- a/arch_init.c +++ b/arch_init.c @@ -867,7 +867,9 @@ int ram_load_page(QEMUFile *f

[Qemu-devel] [PATCH v3 22/35] savevm: add new section that is used by postcopy

2012-10-30 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 |4 1 file changed, 4 insertions(+) diff --git a/savevm.c b/savevm.c index 93c51ab..c93b6eb 100644 --- a/savevm.c +++ b

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 21 + hmp.c | 51 +++ hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 91 insertions(+), 0 deletions(-) diff

Re: [Qemu-devel] [PATCH 30/30] ram: optimize migration bitmap walking

2012-10-30 Thread Orit Wasserman
On 10/28/2012 10:35 AM, Orit Wasserman wrote: > On 10/26/2012 01:39 PM, Juan Quintela wrote: >> Orit Wasserman wrote: >>> On 10/18/2012 09:30 AM, Juan Quintela wrote: Instead of testing each page individually, we search what is the next dirty page with a bitmap operation. We have to reo

[Qemu-devel] [PATCH v3 19/35] uvmem.h: import Linux uvmem.h and teach update-linux-headers.sh

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- linux-headers/linux/uvmem.h | 41 +++ scripts/update-linux-headers.sh |2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 linux-headers/linux/uvmem.h diff --git a/linux-headers/linux/uvmem.h b

[Qemu-devel] [PATCH v3 24/35] postcopy outgoing: add -p option to migrate command

2012-10-30 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. Signed-off-by: Isaku Yamahata --- Chnages v1 -> v2: - catch up for qapi change --- hmp-commands.hx | 10 ++ hmp.c|4 +++- migr

[Qemu-devel] [PATCH 01/28] hw/armv7m_nvic: Implement byte/halfword access for NVIC SCB_SHPRx registers

2012-10-30 Thread Peter Maydell
From: Andre Beckus Implement byte/halfword read and write for the NVIC SCB_SHPRx (System Handler Priority Registers). Do this by removing SHPR word access from nvic_readl/writel and adding common code to hande all access sizes in nvic_sysreg_read/write. Because the "nvic_state *s" variable now

[Qemu-devel] [PATCH 22/28] pflash_cfi0x: remove unused base field

2012-10-30 Thread Peter Maydell
From: Peter Crosthwaite This field is completely unused. The base address should also be abstracted away from the device anyway. Removed. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/pflash_cfi01.c |2 -- hw/pflash_cfi02.c |4 +--- 2

[Qemu-devel] [PATCH v3 10/35] savevm/QEMUFile: add read/write QEMUFile on memory buffer

2012-10-30 Thread Isaku Yamahata
This will be used by postcopy/incoming part. Signed-off-by: Isaku Yamahata --- qemu-file.h |4 savevm.c| 60 +++ 2 files changed, 64 insertions(+) diff --git a/qemu-file.h b/qemu-file.h index 94557ea..452efcd 100644 --- a/qe

[Qemu-devel] [PATCH 16/28] hw/arm_gic: Use LOG_GUEST_ERROR

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report guest accesses to bad offsets. Signed-off-by: Peter Maydell --- hw/arm_gic.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index ce16e83..f9e423f 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -324,7

Re: [Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-30 Thread Lei Li
On 10/29/2012 09:23 PM, Luiz Capitulino wrote: On Mon, 29 Oct 2012 12:10:24 +0800 Lei Li wrote: On 10/27/2012 01:17 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:50 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 17 + hmp.c| 15

Re: [Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-30 Thread Lei Li
On 10/29/2012 09:26 PM, Luiz Capitulino wrote: On Mon, 29 Oct 2012 12:18:03 +0800 Lei Li wrote: On 10/27/2012 01:43 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:52 +0800 Lei Li wrote: Signed-off-by: Lei Li I still don't understand how this command, in its current form, is differe

Re: [Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-30 Thread Lei Li
On 10/29/2012 09:17 PM, Luiz Capitulino wrote: On Mon, 29 Oct 2012 12:09:38 +0800 Lei Li wrote: On 10/27/2012 01:39 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:51 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 1

[Qemu-devel] [PATCH v3 33/35] arch_init: export migration_bitmap_sync and helper method to get bitmap

2012-10-30 Thread Isaku Yamahata
Those migration bitmap operation will be used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c |7 ++- migration.h |2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index 48f45cd..49fbaff 100644 --- a/arch_init.c +++ b/arch_init.

[Qemu-devel] [PATCH v3 09/35] savevm/QEMUFile: introduce qemu_fopen_fd

2012-10-30 Thread Isaku Yamahata
Introduce fd read/write backend of QEMUFile whose fd can be non-blocking This will be used by postcopy live migration. Signed-off-by: Isaku Yamahata --- qemu-file.h |1 + savevm.c| 35 +++ 2 files changed, 36 insertions(+) diff --git a/qemu-file.h b/qem

[Qemu-devel] [PATCH 17/28] hw/arm_timer: Use LOG_GUEST_ERROR and LOG_UNIMP

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report guest accesses to bad register offsets, and LOG_UNIMP for access to the unimplemented test registers. Signed-off-by: Peter Maydell --- hw/arm_timer.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/hw/arm_timer.c b/hw/arm_t

[Qemu-devel] [PATCH v3 08/35] savevm/QEMUFile: consolidate QEMUFile functions a bit

2012-10-30 Thread Isaku Yamahata
- add qemu_file_fd() for later use - drop qemu_stdio_fd Now qemu_file_fd() replaces qemu_stdio_fd(). - savevm/QEMUFileSocket: drop duplicated member fd fd is already stored in QEMUFile so drop duplicated member QEMUFileSocket::fd. - remove QEMUFileSocket Signed-off-by: Isaku Yamahata ---

Re: [Qemu-devel] [PATCH v1 0/8] Sysbus EHCI + Zynq USB.

2012-10-30 Thread Gerd Hoffmann
On 10/30/12 09:24, Peter Crosthwaite wrote: > On Tue, Oct 30, 2012 at 5:20 PM, Gerd Hoffmann wrote: >> On 10/29/12 15:08, Peter Crosthwaite wrote: >>> Ping! >>> >>> This is the first version of the EHCI sysbus series which takes a >>> property based approach rather than the dynamic class approach.

[Qemu-devel] [PATCH v3 13/35] arch_init/ram_save: introduce constant for ram save version = 4

2012-10-30 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|3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch_init.c b/arch_init.c index 4b65221..23717d3 10064

[Qemu-devel] [PATCH 08/28] hw/mainstone: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before passing it to mainstone_init(). Signed-off-by: Peter Maydell --- hw/mainstone.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c index 3266946..5bbecb7 100644 --- a/hw/mainstone.c

[Qemu-devel] [PATCH v3 21/35] postcopy: introduce helper functions for postcopy

2012-10-30 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 v2 -> v3: - error check, don't abort - typedef - #ifdef CONFIG_LINUX - code simplification changes v1 -> v2: - code simplifi

[Qemu-devel] [PATCH 07/28] hw/nseries: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before passing it to n8x0_init(). Signed-off-by: Peter Maydell --- hw/nseries.c | 39 +++ 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/hw/nseries.c b/hw/nseries.c index 9306aa1..652d9da 100644 --- a/hw/nse

[Qemu-devel] [PATCH 25/28] pflash_cfi01: Fix debug mode printfery

2012-10-30 Thread Peter Maydell
From: Peter Crosthwaite This DPRINTF was throwing a warning due to a missing cast. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/pflash_cfi01.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pflash_cfi01.c b/hw/pf

[Qemu-devel] [PATCH v3 32/35] postcopy: pre+post optimization incoming side

2012-10-30 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- migration-postcopy.c | 207 +- 1 file changed, 204 insertions(+), 3 deletions(-) diff --git a/migration-postcopy.c b/migration-postcopy.c index 421fb39..9298cd4 100644 --- a/migration-postcopy.c +++ b/migration-po

[Qemu-devel] [PATCH 23/28] pflash_cfi01: remove unused total_len field

2012-10-30 Thread Peter Maydell
From: Peter Crosthwaite This field is completely unused. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/pflash_cfi01.c |2 -- 1 file changed, 2 deletions(-) diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index 2e29f8a..b532054 100644

[Qemu-devel] [PATCH v3 20/35] osdep: add QEMU_MADV_REMOVE and tirivial fix

2012-10-30 Thread Isaku Yamahata
MADV_REMOVE will be used by postcopy. Signed-off-by: Isaku Yamahata --- osdep.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/osdep.h b/osdep.h index c5fd3d9..9e97f39 100644 --- a/osdep.h +++ b/osdep.h @@ -113,6 +113,11 @@ void qemu_vfree(void *ptr); #else

[Qemu-devel] [PATCH v3 04/35] add a version number to ram_list

2012-10-30 Thread Isaku Yamahata
From: Umesh Deshpande From: Umesh Deshpande This will be used to detect if last_block might have become invalid across different calls to ram_save_live. Signed-off-by: Paolo Bonzini Signed-off-by: Umesh Deshpande --- arch_init.c |7 ++- cpu-all.h |1 + exec.c |5 -

[Qemu-devel] [PATCH 06/28] hw/omap_sx1: Don't prematurely explode QEMUMachineInitArgs

2012-10-30 Thread Peter Maydell
Don't explode QEMUMachineInitArgs before passing it to the omap_sx1 common init function. Signed-off-by: Peter Maydell --- hw/omap_sx1.c | 36 +--- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/hw/omap_sx1.c b/hw/omap_sx1.c index eb2bf05..21a5bb

[Qemu-devel] [PATCH 12/28] hw/pl080: Use LOG_GUEST_ERROR and LOG_UNIMP

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR and LOG_UNIMP in preference to hw_error(). Signed-off-by: Peter Maydell --- hw/pl080.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/pl080.c b/hw/pl080.c index 6abe528..26150af 100644 --- a/hw/pl080.c +++ b/hw/pl080.c @@ -281,7 +281,8 @@

[Qemu-devel] [PATCH v3 15/35] arch_init/ram_save_setup: factor out bitmap alloc/free

2012-10-30 Thread Isaku Yamahata
This will be used by postcopy. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - new --- arch_init.c | 25 ++--- migration.h |2 ++ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index ad1b01b..7e6d84e 100644 --- a/arch_ini

[Qemu-devel] [PATCH 0/4 V7] char: Add CirMemCharDriver and provide QMP interface

2012-10-30 Thread Lei Li
This patch series attempts to add new char backend CirMemCharDriver with a circular buffer and expose it to users by introducing QMP interface memchar-write and memchar-read and via the command line like the other CharDriverStates. Serial ports in qemu always use CharDriverStates as there backends

Re: [Qemu-devel] [PATCH 07/18] migration: make writes blocking

2012-10-30 Thread Markus Armbruster
Juan Quintela writes: > Markus Armbruster wrote: >> Juan Quintela writes: >> >>> Markus Armbruster wrote: Juan Quintela writes: > Move all the writes to the migration_thread, and make writings > blocking. Notice that are still using the iothread for everything > that we

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

2012-10-30 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(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7acf43b..bc9fd53 100644 --- a/mm/memcontr

[Qemu-devel] [PATCH 20/28] hw/arm_l2x0: Use LOG_GUEST_ERROR

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report bad guest accesses. Signed-off-by: Peter Maydell --- hw/arm_l2x0.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/arm_l2x0.c b/hw/arm_l2x0.c index 8f5921c..6abf0ee 100644 --- a/hw/arm_l2x0.c +++ b/hw/arm_l2x0.c @@ -87,7 +87,8 @@ stat

[Qemu-devel] [PATCH v3 02/35] arch_init: DPRINTF format error and typo

2012-10-30 Thread Isaku Yamahata
missing % s/ram_save_live/ram_save_iterate/ Signed-off-by: Isaku Yamahata --- arch_init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index e6effe8..79d4041 100644 --- a/arch_init.c +++ b/arch_init.c @@ -659,7 +659,7 @@ static int ram_save_ite

[Qemu-devel] [PATCH 10/28] hw/pl050: Use LOG_GUEST_ERROR

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR for reporting guest attempts to access invalid register offsets. Signed-off-by: Peter Maydell --- hw/pl050.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/pl050.c b/hw/pl050.c index 470572e..47032f1 100644 --- a/hw/pl050.c +++ b/hw/pl050.c @@

[Qemu-devel] [PATCH v3 18/35] migration: export migrate_fd_completed() and migrate_fd_cleanup()

2012-10-30 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 8fcb466..00b0bc2 100644 --- a/migration.c +++ b/migration.c @@ -242,7 +242,7 @

[Qemu-devel] [PATCH v3 29/35] postcopy/outgoing: add movebg mode(-m) to migration command

2012-10-30 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 --- hmp-commands.hx |8 +--- hmp.c|3 ++- migration-postcopy.c |8 migration.c |5 - migration.h

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 15 +++ hmp.c| 13 + hmp.h|1 + qapi-schema.json | 41 + qemu-char.c | 48 qmp-commands.hx | 34

[Qemu-devel] [PATCH v3 05/35] protect the ramlist with a separate mutex

2012-10-30 Thread Isaku Yamahata
From: Umesh Deshpande From: Umesh Deshpande Add the new mutex that protects shared state between ram_save_live and the iothread. If the iothread mutex has to be taken together with the ramlist mutex, the iothread shall always be _outside_. Signed-off-by: Paolo Bonzini Signed-off-by: Umesh De

[Qemu-devel] [PATCH 21/28] hw/versatile_i2c: Use LOG_GUEST_ERROR

2012-10-30 Thread Peter Maydell
Use LOG_GUEST_ERROR to report bad guest accesses. Signed-off-by: Peter Maydell --- hw/versatile_i2c.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/versatile_i2c.c b/hw/versatile_i2c.c index 44e7e40..ad71e9d 100644 --- a/hw/versatile_i2c.c +++ b/hw/versatile_i2c

Re: [Qemu-devel] [PATCH 07/18] migration: make writes blocking

2012-10-30 Thread Juan Quintela
Markus Armbruster wrote: > Juan Quintela writes: > > Doesn't this break inet_nonblocking_connect() and > unix_nonblocking_connect()? > > In your cover letter, you wrote: > > Note: Writes has become blocking, and I have to change the "remove" > the feature n

[Qemu-devel] [PULL 00/28] arm-devs queue

2012-10-30 Thread Peter Maydell
Last arm-devs pullreq (probably) before softfreeze. Apologies to those whose last minute patches didn't make it in but I didn't want to submit this pullreq right on the freeze deadline, given its length. (Most of that length is some pretty trivial patches for logging and refactoring some init funct

[Qemu-devel] [PATCH 28/28] hw/sd.c: add SD card save/load support

2012-10-30 Thread Peter Maydell
From: Igor Mitsyanko This patch updates SD card model to support save/load of card's state. Signed-off-by: Igor Mitsyanko Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/sd.c | 89 +-- 1 file changed, 64 insertions(

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 17 hmp.h|1 + qapi-schema.json | 27 - qemu-char.c | 57 ++ qmp-commands.hx | 34 +++

[Qemu-devel] [PATCH 27/28] vmstate: Add support for saving/loading bitmaps

2012-10-30 Thread Peter Maydell
Add support for saving/loading bitmap.h bitmaps in vmstate. Signed-off-by: Peter Maydell Tested-by: Igor Mitsyanko Reviewed-by: Juan Quintela --- savevm.c | 41 + vmstate.h | 13 + 2 files changed, 54 insertions(+) diff --git a/savevm.c

[Qemu-devel] [PATCH v3 03/35] split MRU ram list

2012-10-30 Thread Isaku Yamahata
From: Paolo Bonzini From: Paolo Bonzini Outside the execution threads the normal, non-MRU-ized order of the RAM blocks should always be enough. So manage two separate lists, which will have separate locking rules. Signed-off-by: Paolo Bonzini --- arch_init.c |1 + cpu-all.h |4 +++

[Qemu-devel] [RfC PATCH 2/5] usb/ehci: Abstract away PCI DMA API

2012-10-30 Thread Gerd Hoffmann
From: Peter Crosthwaite Pull the DMAContext for the PCI DMA out at device init time and put it into the device state. Use dma_memory_read/write() instead of pci specific versions. Signed-off-by: Peter Crosthwaite Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci.c | 13 - 1 files

[Qemu-devel] [RfC PATCH 0/5] ehci pci splitup

2012-10-30 Thread Gerd Hoffmann
Hi, Based on Peters series, not tested much yet, sysfs dropped but adding back in should be as easy as adding a hcd-ehci-sysbus.c file simliar to the pci variant. No changes in ehci core should be needed. Comments? cheers, Gerd Gerd Hoffmann (1): usb/ehci: split into multiple source file

[Qemu-devel] [RfC PATCH 3/5] usb/ehci: seperate out PCIisms

2012-10-30 Thread Gerd Hoffmann
From: Peter Crosthwaite Seperate the PCI stuff from the EHCI components. Extracted the PCIDevice out into a new wrapper struct to make EHCIState non-PCI-specific. Seperated tho non PCI init component out into a seperate "common" init function. Signed-off-by: Peter Crosthwaite Signed-off-by: Ger

[Qemu-devel] [RfC PATCH 4/5] usb/ehci: Guard definition of EHCI_DEBUG

2012-10-30 Thread Gerd Hoffmann
From: Peter Crosthwaite Guard against re-definition of EHCI_DEBUG. Allows for turning on of debug info from configure (using --qemu-extra-cflags="-DEHCI_DEBUG=1") rather than source code hacking. Signed-off-by: Peter Crosthwaite Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci.c |2 ++ 1

[Qemu-devel] [RfC PATCH 5/5] usb/ehci: split into multiple source files

2012-10-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/Makefile.objs |2 +- hw/usb/hcd-ehci-pci.c | 138 hw/usb/hcd-ehci.c | 426 + hw/usb/hcd-ehci.h | 320 + 4 files changed, 462 insertions(+),

  1   2   3   4   >