Re: [Qemu-devel] Fwd: Qemu-ga for Windows

2012-10-29 Thread Luiz Capitulino
On Sat, 27 Oct 2012 07:44:09 +0500 Abbas wrote: > Qemu-qa port for Windows domains does not seem to support fs-freeze-* calls. That's correct, it doesn't. > I compiled the latest qemu-ga.exe with mingw32 from git, installed it as > a service on a VM but snapshotting with quiesce is failing. >

Re: [Qemu-devel] Fwd: Qemu-ga for Windows

2012-10-29 Thread Abbas
On 10/29/2012 06:48 AM, Luiz Capitulino wrote: On Sat, 27 Oct 2012 07:44:09 +0500 Abbas wrote: Qemu-qa port for Windows domains does not seem to support fs-freeze-* calls. That's correct, it doesn't. Fascinating. Seems fewer people feel the need for it. I compiled the latest qemu-ga.exe wi

Re: [Qemu-devel] [PATCH v12 07/14] target-mips: Add ASE DSP GPR-based shift instructions

2012-10-29 Thread Aurelien Jarno
On Wed, Oct 24, 2012 at 10:17:07PM +0800, Jia Liu wrote: > Add MIPS ASE DSP GPR-Based Shift instructions. > > Signed-off-by: Jia Liu > --- > target-mips/dsp_helper.c | 256 > target-mips/helper.h | 38 ++ > target-mips/translate.c | 324 > ++

Re: [Qemu-devel] [PATCH v2] arm_boot: Change initrd load address to "halfway through RAM"

2012-10-29 Thread Aurelien Jarno
On Fri, Oct 26, 2012 at 04:29:38PM +0100, Peter Maydell wrote: > To avoid continually having to bump the initrd load address > to account for larger kernel images, put the initrd halfway > through RAM. This allows large kernels on new boards with lots > of RAM to work OK, without breaking existing

Re: [Qemu-devel] [PATCH] target-sparc: Revert setting cpu_dst to gen_dest_gpr

2012-10-29 Thread Aurelien Jarno
On Mon, Oct 29, 2012 at 03:50:20PM +1100, Richard Henderson wrote: > There is some read-after-write error within the OP=2 insns which > prevents setting cpu_dst to the real output register. Until this > is found and fixed, always write to a temporary first. > > Cc: Blue Swirl > Cc: Aurelien Jarn

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

2012-10-29 Thread Peter Crosthwaite
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 IRC about how to do and the suggestion we take a property ba

[Qemu-devel] [PATCH 00/18] Migration thread lite (20121029)

2012-10-29 Thread Juan Quintela
uan. The following changes since commit 50cd72148211c5e5f22ea2519d19ce024226e61f: hw/xtensa_sim: get rid of intermediate xtensa_sim_init (2012-10-27 15:04:00 +) are available in the git repository at: http://repo.or.cz/r/qemu/quintela.git migration-thread-20121029 for you to fetch cha

[Qemu-devel] [PATCH 01/18] split MRU ram list

2012-10-29 Thread Juan Quintela
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 Reviewed-by: Orit Wasserman Signed-off-by: Juan Quintela --- arch_i

[Qemu-devel] [PATCH 06/18] migration: stop all cpus correctly

2012-10-29 Thread Juan Quintela
You can only stop all cpus from the iothread or an vcpu. As we want to do it from the migration_thread, we need to do this dance with the botton handlers. This patch is a request for ideas. I can move this function to cpus.c, but wondered if there is an easy way of doing this? Signed-off-by: Ju

[Qemu-devel] [PATCH 05/18] migration: make qemu_fopen_ops_buffered() return void

2012-10-29 Thread Juan Quintela
We want the file assignment to happen before the thread is created to avoid locking, so we just do it before creating the thread. Signed-off-by: Juan Quintela Reviewed-by: Orit Wasserman --- buffered_file.c | 13 ++--- buffered_file.h | 2 +- migration.c | 2 +- migration.h |

[Qemu-devel] [PATCH 14/18] migration: include qemu-file.h

2012-10-29 Thread Juan Quintela
They don't use/know anything about buffered-file. Signed-off-by: Juan Quintela --- migration-exec.c | 2 +- migration-fd.c | 2 +- migration-tcp.c | 2 +- migration-unix.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/migration-exec.c b/migration-exec.c index ecc0f00.

[Qemu-devel] [PATCH 04/18] buffered_file: Move from using a timer to use a thread

2012-10-29 Thread Juan Quintela
We still protect everything except the wait with the iothread lock. But we moved from a timer to a thread. Steps one by one. We also need to detect when we have finished with a variable "complete". Signed-off-by: Juan Quintela --- buffered_file.c | 58 +++---

[Qemu-devel] [PATCH 02/18] add a version number to ram_list

2012-10-29 Thread Juan Quintela
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 Reviewed-by: Orit Wasserman Signed-off-by: Juan Quintela --- arch_init.c | 7 ++- cpu-all.h |

[Qemu-devel] [PATCH 03/18] protect the ramlist with a separate mutex

2012-10-29 Thread Juan Quintela
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 Deshpande Signed-off-by:

[Qemu-devel] [PATCH 09/18] migration: take finer locking

2012-10-29 Thread Juan Quintela
Instead of locking the whole migration_thread inside loop, just lock migration_fd_put_notify, that is what interacts with the rest of the world. Signed-off-by: Juan Quintela --- buffered_file.c | 2 -- migration.c | 5 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/buff

[Qemu-devel] [PATCH 08/18] migration: remove unfreeze logic

2012-10-29 Thread Juan Quintela
Now that we have a thread, and blocking writes, we don't need it. Signed-off-by: Juan Quintela --- buffered_file.c | 24 +--- migration.c | 23 --- migration.h | 1 - 3 files changed, 1 insertion(+), 47 deletions(-) diff --git a/buffered_file.c b

[Qemu-devel] [PATCH 10/18] buffered_file: Unfold the trick to restart generating migration data

2012-10-29 Thread Juan Quintela
This was needed before due to the way that the callbacks worked. Signed-off-by: Juan Quintela --- buffered_file.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 283854f..018cab7 100644 --- a/buffered_file.c +++ b/buff

[Qemu-devel] [PATCH 16/18] memory: introduce memory_region_test_and_clear_dirty

2012-10-29 Thread Juan Quintela
This function avoids having to do two calls, one to test the dirty bit, and other to reset it. Signed-off-by: Juan Quintela --- memory.c | 16 memory.h | 18 ++ 2 files changed, 34 insertions(+) diff --git a/memory.c b/memory.c index 36bb9a5..9ddaac9 100644 ---

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

2012-10-29 Thread Juan Quintela
Instead of testing each page individually, we search what is the next dirty page with a bitmap operation. We have to reorganize the code to move from a "for" loop, to a while(dirty) loop. Signed-off-by: Juan Quintela --- arch_init.c | 45 ++--- 1 file cha

[Qemu-devel] [PATCH 17/18] ram: Use memory_region_test_and_clear_dirty

2012-10-29 Thread Juan Quintela
This avoids having to do two walks over the dirty bitmap, one reading the dirty bits, and another cleaning them. Signed-off-by: Juan Quintela --- arch_init.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch_init.c b/arch_init.c index 1eefef8..79f466f 100644 --- a/a

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

2012-10-29 Thread Peter Lieven
Hi, If I try to Install Ubuntu 12.04 LTS / 12.10 64-bit on a virtio storage backend that supports iSCSI qemu-kvm crashes reliably with the following error: Bad ram pointer 0x3039303620008000 This happens directly after the confirmation of the Timezone before the Disk is partitioned. If I s

Re: [Qemu-devel] [PATCH V5 1/3] hw/sd.c: Fix erase for high capacity cards

2012-10-29 Thread Peter Maydell
On 28 October 2012 15:59, Igor Mitsyanko wrote: > 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

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

2012-10-29 Thread Peter Maydell
On 28 October 2012 15:59, Igor Mitsyanko wrote: > This patch updates SD card model to support save/load of card's state. > > Signed-off-by: Igor Mitsyanko Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH V5 0/3] SD card model save/load support

2012-10-29 Thread Peter Maydell
On 28 October 2012 15:59, Igor Mitsyanko wrote: > This was a part of a bigger series which also included SD state qomification, > but I decided to split them. I intend to add these patches to the arm-devs.next queue which I will send a pullreq for tomorrow. -- PMM

[Qemu-devel] [PATCH 13/18] savevm: New save live migration method: pending

2012-10-29 Thread Juan Quintela
Code just now does (simplified for clarity) if (qemu_savevm_state_iterate(s->file) == 1) { vm_stop_force_state(RUN_STATE_FINISH_MIGRATE); qemu_savevm_state_complete(s->file); } Problem here is that qemu_savevm_state_iterate() returns 1 when it knows that remaining memory to

[Qemu-devel] [PATCH v7 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-10-29 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee --- configure |6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 37f712d..0493d55 100755 --- a/configure +++ b/configure @

[Qemu-devel] [PATCH v7 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-29 Thread Yeongkyoon Lee
Add GETPC_EXT which is used by MMU helpers to selectively calculate the code address of accessing guest memory when called from a qemu_ld/st optimized code or a C function. Currently, it supports only i386 and x86-64 hosts. Signed-off-by: Yeongkyoon Lee --- exec-all.h | 36 +++

[Qemu-devel] [PATCH v7 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-29 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee --- tcg/i386/tcg-target.c | 415 +++

[Qemu-devel] [PATCH v7 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-29 Thread Yeongkyoon Lee
Here is the 7th version of the series optimizing TCG qemu_ld/st code generation. v7: - Rebase and fix mistyping v6: - Remove an extra argument of return addr from MMU helpers Instead, embed the fast path addr to the slow path for helpers to use it - Change some bitwise operations to bit

Re: [Qemu-devel] [PATCH v2] qemu-timer: Check for usable fields for SIGEV_THREAD_ID

2012-10-29 Thread Aurelien Jarno
On Tue, Oct 23, 2012 at 07:33:00AM +1000, Richard Henderson wrote: > Older glibc (RHEL 5.x, Debian 5.x) does not have the _sigev_un._tid > member in its structure definition, while the accompanying kernel > headers do define SIGEV_THREAD_ID. We need configure to check for > both before using it. >

Re: [Qemu-devel] [PATCH v2] tcg-i386: Use %gs prefixes for x86_64 GUEST_BASE

2012-10-29 Thread Aurelien Jarno
On Tue, Oct 23, 2012 at 07:19:20AM +1000, Richard Henderson wrote: > On 2012-10-22 15:59, Aurelien Jarno wrote: > > Yes, this is a know fact that this libc function doesn't have a > > prototype (for instance in the manpage), that said it exists and at > > least on x32 it's actually a wrapper doing

Re: [Qemu-devel] [PULL 00/22] ppc patch queue 2012-10-29

2012-10-29 Thread Aurelien Jarno
On Mon, Oct 29, 2012 at 11:25:49AM +0100, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for ppc. Please pull. > > Alex > > > The following changes since commit 50cd72148211c5e5f22ea2519d19ce024226e61f: > Max Filippov (1): > hw/xtensa_sim: get rid of i

Re: [Qemu-devel] [PATCH v2] target-mips: Use TCG registers for the FPU.

2012-10-29 Thread Aurelien Jarno
On Fri, Oct 05, 2012 at 07:03:51PM +0200, Aurelien Jarno wrote: > On Fri, Oct 05, 2012 at 07:20:01AM -0700, Richard Henderson wrote: > > Ping. You gave it your Reviewed-by. > > > > r~ > > Yes, but I also said that with the current TCG status, it actually > reduces the speed of the emulation ins

Re: [Qemu-devel] [PATCH 1/5] disas: avoid using cpu_single_env

2012-10-29 Thread Aurelien Jarno
On Sun, Oct 28, 2012 at 03:03:48PM +, Blue Swirl wrote: > Pass around CPUState instead of using global cpu_single_env. > > Signed-off-by: Blue Swirl > --- > disas.c | 149 > ++--- > disas.h |3 +- > qemu-lo

[Qemu-devel] [PATCH 11/18] buffered_file: don't flush on put buffer

2012-10-29 Thread Juan Quintela
We call buffered_put_buffer with iothread held, and buffered_flush() does synchronous writes. We only want to do the synchronous writes outside. Signed-off-by: Juan Quintela --- buffered_file.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 018c

Re: [Qemu-devel] [PATCH] pci: avoid destroying bridge address space windows in a transaction

2012-10-29 Thread Michael S. Tsirkin
On Thu, Oct 25, 2012 at 12:37:57PM +0200, Avi Kivity wrote: > Calling memory_region_destroy() in a transaction is illegal (and aborts), > as until the transaction is committed, the region remains live. > > Fix by moving destruction until after the transaction commits. This requires > having an ex

Re: [Qemu-devel] [libseccomp-discuss] [RFC] [PATCHv2 0/2] Sandboxing Qemu guests with Libseccomp

2012-10-29 Thread Corey Bryant
On 06/15/2012 09:54 AM, Paul Moore wrote: On Thursday, June 14, 2012 02:59:06 PM Kees Cook wrote: On Wed, Jun 13, 2012 at 1:31 PM, Paul Moore wrote: On Wednesday, June 13, 2012 04:20:20 PM Eduardo Otubo wrote: Hello all, This is the second effort to sandbox Qemu guests using Libseccomp[0].

Re: [Qemu-devel] [memory] abort with head a8170e5

2012-10-29 Thread Avi Kivity
On 10/29/2012 09:54 AM, Aurelien Jarno wrote: > On Thu, Oct 25, 2012 at 06:12:06PM +0200, Avi Kivity wrote: >> On 10/25/2012 04:39 PM, Aurelien Jarno wrote: >> > On Thu, Oct 25, 2012 at 03:47:34PM +0200, Avi Kivity wrote: >> >> On 10/24/2012 04:00 PM, Aurelien Jarno wrote: >> >> > >> >> > mips is

[Qemu-devel] [PATCH 12/18] buffered_file: unfold buffered_append in buffered_put_buffer

2012-10-29 Thread Juan Quintela
It was the only user, and now buffered_put_buffer just do the append Signed-off-by: Juan Quintela --- buffered_file.c | 33 ++--- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 2bdda27..017745d 100644 --- a/buff

[Qemu-devel] [PATCH 15/18] migration-fd: remove duplicate include

2012-10-29 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration-fd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration-fd.c b/migration-fd.c index b4c4b8c..05753d8 100644 --- a/migration-fd.c +++ b/migration-fd.c @@ -20,7 +20,6 @@ #include "qemu-char.h" #include "qemu-file.h" #include "block.h" -#includ

Re: [Qemu-devel] [PULL 0/3] QMP queue

2012-10-29 Thread Aurelien Jarno
On Wed, Oct 24, 2012 at 11:34:37AM -0200, Luiz Capitulino wrote: > The changes (since a8170e5e97ad17ca169c64ba87ae2f53850dab4c) are available > in the following repository: > > git://repo.or.cz/qemu/qmp-unstable.git queue/qmp > > Aurelien Jarno (1): > hmp: fix info cpus for sparc targets >

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

2012-10-29 Thread Juan Quintela
Move all the writes to the migration_thread, and make writings blocking. Notice that are still using the iothread for everything that we do. Signed-off-by: Juan Quintela --- migration-exec.c | 1 - migration-fd.c | 1 - migration.c | 21 - qemu-file.h | 5

Re: [Qemu-devel] [patch v4 00/16] push mmio dispatch out of big lock

2012-10-29 Thread Avi Kivity
On 10/25/2012 07:13 PM, Peter Maydell wrote: > On 25 October 2012 18:07, Avi Kivity wrote: >> On 10/25/2012 04:04 PM, Peter Maydell wrote: >>> Is there a clear up to date description somewhere of the design and >>> locking strategy here somewhere? I'd rather not have to try to >>> reconstitute it

Re: [Qemu-devel] [PATCH] target-i386: cpu: recover items 28-31 of ext2_feature_name

2012-10-29 Thread Aurelien Jarno
On Wed, Oct 24, 2012 at 12:10:33PM -0200, Eduardo Habkost wrote: > I removed a line by mistake on commit > 3b671a40cab2404bc63e57db8cd3afa4ec70bfab, containing the flags lm/i64, > 3dnow, and 3dnowext. This patch restores the removed line. > > Reported-by: Don Slutz > Signed-off-by: Eduardo Habkos

Re: [Qemu-devel] [libseccomp-discuss] [RFC] [PATCHv2 0/2] Sandboxing Qemu guests with Libseccomp

2012-10-29 Thread Daniel P. Berrange
On Mon, Oct 29, 2012 at 11:11:15AM -0400, Corey Bryant wrote: > > > On 06/15/2012 09:54 AM, Paul Moore wrote: > >On Thursday, June 14, 2012 02:59:06 PM Kees Cook wrote: > >>On Wed, Jun 13, 2012 at 1:31 PM, Paul Moore wrote: > >>>On Wednesday, June 13, 2012 04:20:20 PM Eduardo Otubo wrote: >

[Qemu-devel] [PATCH] pci_bridge: fix abort due to memory region API violation

2012-10-29 Thread Michael Roth
2be0e25f added an assertion that memory_region_destroy() is not called during a transaction. pci_bridge_update_mappings() wants to do this so that it can remove existing subregions and add new ones in their place as an atomic operation. Work around this by storing away the old subregions and destr

Re: [Qemu-devel] [libseccomp-discuss] [RFC] [PATCHv2 0/2] Sandboxing Qemu guests with Libseccomp

2012-10-29 Thread Paul Moore
On Monday, October 29, 2012 03:32:34 PM Daniel P. Berrange wrote: > On Mon, Oct 29, 2012 at 11:11:15AM -0400, Corey Bryant wrote: > > Hi Paul, > > > > Do you know when Fedora packages will be available for libseccomp? > > They're already reviewed and in Fedora 18 > > https://bugzilla.redhat.co

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

2012-10-29 Thread Markus Armbruster
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 > index cfed9c5..61b6e95 100644 > --- a/qemu-sockets.c > +++ b/qemu-socket

Re: [Qemu-devel] [libseccomp-discuss] [RFC] [PATCHv2 0/2] Sandboxing Qemu guests with Libseccomp

2012-10-29 Thread Corey Bryant
On 10/29/2012 11:40 AM, Paul Moore wrote: On Monday, October 29, 2012 03:32:34 PM Daniel P. Berrange wrote: On Mon, Oct 29, 2012 at 11:11:15AM -0400, Corey Bryant wrote: Hi Paul, Do you know when Fedora packages will be available for libseccomp? They're already reviewed and in Fedora 18

Re: [Qemu-devel] [PATCH] pci_bridge: fix abort due to memory region API violation

2012-10-29 Thread Avi Kivity
On 10/29/2012 05:36 PM, Michael Roth wrote: > 2be0e25f added an assertion that memory_region_destroy() is not called > during a transaction. pci_bridge_update_mappings() wants to do this so > that it can remove existing subregions and add new ones in their > place as an atomic operation. > > Work

Re: [Qemu-devel] [memory] abort with head a8170e5

2012-10-29 Thread Aurelien Jarno
On Mon, Oct 29, 2012 at 05:17:05PM +0200, Avi Kivity wrote: > On 10/29/2012 09:54 AM, Aurelien Jarno wrote: > > On Thu, Oct 25, 2012 at 06:12:06PM +0200, Avi Kivity wrote: > >> On 10/25/2012 04:39 PM, Aurelien Jarno wrote: > >> > On Thu, Oct 25, 2012 at 03:47:34PM +0200, Avi Kivity wrote: > >> >> O

Re: [Qemu-devel] [PATCH v3 13/26] ich9: Add the lpc chip

2012-10-29 Thread Michael S. Tsirkin
On Fri, Oct 19, 2012 at 04:43:34PM -0400, Jason Baron wrote: > From: Jason Baron > > Add support for the ich9 LPC chip. > > Signed-off-by: Isaku Yamahata > Signed-off-by: Jason Baron > --- > hw/i386/Makefile.objs |2 +- > hw/lpc_ich9.c | 523 > +++

Re: [Qemu-devel] [PATCH v3 07/26] pc/piix_pci: factor out smram/pam logic

2012-10-29 Thread Michael S. Tsirkin
On Fri, Oct 19, 2012 at 04:43:30PM -0400, Jason Baron wrote: > From: Isaku Yamahata > > Factor out smram/pam logic for later use. > Which will be used by q35 too. > > Reviewed-by: Paolo Bonzini > [jba...@redhat.com: changes for updated memory API] > Signed-off-by: Isaku Yamahata > Signed-off-b

[Qemu-devel] [PATCH] memory: fix rendering of a region obscured by another

2012-10-29 Thread Avi Kivity
The memory core drops regions that are hidden by another region (for example, during BAR sizing), but it doesn't do so correctly if the lower address of the existing range is below the lower address of the new range. Example (qemu-system-mips -M malta -kernel vmlinux-2.6.32-5-4kc-malta -a

Re: [Qemu-devel] [PATCH v3 12/26] ich9: Add acpi support and definitions

2012-10-29 Thread Michael S. Tsirkin
On Fri, Oct 19, 2012 at 04:43:33PM -0400, Jason Baron wrote: > From: Jason Baron > > Lay the groundwork for subsequent ich9 support. > > Signed-off-by: Isaku Yamahata > Signed-off-by: Jason Baron > --- > hw/acpi_ich9.c| 315 > + > hw/a

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

2012-10-29 Thread Avi Kivity
On 10/27/2012 06:12 AM, Edgar E. Iglesias wrote: > > Hi, > > If well designed, most hw has a well designed symtery between regs > that makes things simpler if you can just opencode the decding. > IMO, an mr per reg would just add a massive overhead for no win. > And also, hw implemented decoders

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

2012-10-29 Thread Avi Kivity
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 simulator. > > Any WAG on the runtime overhead of a mem region per regist

Re: [Qemu-devel] [PATCH 00/18] Migration thread lite (20121029)

2012-10-29 Thread Chegu Vinod
On 10/29/2012 9:21 AM, Vinod, Chegu wrote: Date: Mon, 29 Oct 2012 15:11:25 +0100 From: Juan Quintela To: qemu-devel@nongnu.org Cc: owass...@redhat.com, mtosa...@redhat.com, a...@redhat.com, pbonz...@redhat.com Subject: [Qemu-devel] [PATCH 00/18] Migration thread lite (20121029) Hi

[Qemu-devel] [PULL rebased] virtio,pci infrastructure

2012-10-29 Thread Michael S. Tsirkin
The following changes since commit d262cb02861dd33375c08fc798930653b14769e9: Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf (2012-10-29 14:56:17 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony for you to fe

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

2012-10-29 Thread Juan Quintela
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 >> index cfed9c5..61b6e95 100644 >> ---

Re: [Qemu-devel] [PATCH 00/18] Migration thread lite (20121029)

2012-10-29 Thread Juan Quintela
> Subject: [Qemu-devel] [PATCH 00/18] Migration thread lite (20121029) >> >> Hi >> >> After discussing with Anthony and Paolo, this is the minimal migration >> thread support that we can do for 1.3. >> >> - fixed all the comments (thanks eric, paolo and orit)

Re: [Qemu-devel] [PATCH 6/6] s390: sclp ascii console support

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 13:13, Jens Freimann wrote: > From: Heinz Graalfs > > This code adds console support by implementing SCLP's ASCII Console > Data event. This is the same console as LPARs ASCII console or z/VMs > sysascii. > > The console can be specified manually with something like > -chard

Re: [Qemu-devel] [PATCH 0/6] s390 patches

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 13:13, Jens Freimann wrote: > Hi Alex, > > this is our current s390 patch queue. The SCLP patches only received minor > review comments > last time they were posted and have been tested internally for a while now. > The same applies > to Christian's sync regs patch. Thanks,

[Qemu-devel] x86_64-softmmu broken on Windows (TCG?)

2012-10-29 Thread Paolo Bonzini
Known-good commit: 8473f377393219390ea6f2d8d450a2b054bb823e Known-bad commit: d262cb02861dd33375c08fc798930653b14769e9 i386-softmmu seems to work. I may try to bisect it tomorrow, but I'd be glad if somebody else beats me. It can be reproduced with Wine and "x86_64-softmmu/qemu-system-x86_64.exe

[Qemu-devel] [PATCHv2] tests/tcg: fix unused result warnings

2012-10-29 Thread Catalin Patulea
With i386-linux-user target on x86_64 host, this does not introduce any new test failures. Signed-off-by: Catalin Patulea --- v2: - Fixes style issues from checkpatch.pl - For some reason, the patch from the list wouldn't apply for me onto master on a different machine. This grabs a new master

[Qemu-devel] [PATCH 00/11] Trim dependencies of qemu-ga, vscclient, tests

2012-10-29 Thread Paolo Bonzini
qemu-ga and vscclient have a very long list of dependencies, but this is mostly because of tools-obj-y and because of qemu-tool.c's own dependencies. These are complex to disentangle, and became worse with recent additions (especially fdsets). Luckily, some dependencies (for example on qemu-timer

[Qemu-devel] [PATCH 02/11] build: move cutils.o and qemu-timer-common.o to oslib-obj-y

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile | 3 +-- Makefile.objs | 6 +++--- 2 file modificati, 4 inserzioni(+), 5 rimozioni(-) diff --git a/Makefile b/Makefile index 843e825..e489583 100644 --- a/Makefile +++ b/Makefile @@ -171,8 +171,7 @@ endif qemu-img.o: qemu-img-cmds.h tools-obj-y

[Qemu-devel] [PATCH 04/11] sockets: use weak aliases instead of qemu-tool.c

2012-10-29 Thread Paolo Bonzini
qemu-tool.c has its own (largeish) set of dependencies. Weak aliases can be placed directly where people use them, and do not contribute to increasing the dependencies of generic utility files. Signed-off-by: Paolo Bonzini --- qemu-sockets.c | 7 +++ qemu-tool.c| 6 -- 2 file modifi

[Qemu-devel] [PATCH 06/11] iohandler: add weak alias in qemu-sockets.c, for qemu-ga

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-sockets.c | 11 +++ 1 file modificato, 11 inserzioni(+) diff --git a/qemu-sockets.c b/qemu-sockets.c index 225cd0c..f2a6371 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -974,3 +974,14 @@ static int default_monitor_get_fd(Monitor *mon, const ch

[Qemu-devel] [PATCH 07/11] win32: add weak version of qemu_fd_register

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- oslib-win32.c | 5 + 1 file modificato, 5 inserzioni(+) diff --git a/oslib-win32.c b/oslib-win32.c index 51b33e8..9ca83df 100644 --- a/oslib-win32.c +++ b/oslib-win32.c @@ -150,3 +150,8 @@ int qemu_get_thread_id(void) { return GetCurrentThreadId(); } +

[Qemu-devel] [PATCH 09/11] main-loop: unify qemu_init_main_loop between QEMU and tools

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- main-loop.c | 5 - main-loop.h | 10 -- qemu-tool.c | 7 --- vl.c| 5 - 4 file modificati, 4 inserzioni(+), 23 rimozioni(-) diff --git a/main-loop.c b/main-loop.c index eb3b6e6..baefe41 100644 --- a/main-loop.c +++ b/main-loop.c @@

[Qemu-devel] [PATCH 08/11] qemu-timer: make initialization functions idempotent

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-timer.c | 12 +--- 1 file modificato, 9 inserzioni(+), 3 rimozioni(-) diff --git a/qemu-timer.c b/qemu-timer.c index ede84ff..f3426c9 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -430,9 +430,11 @@ void qemu_unregister_clock_reset_notifier(QEMUCloc

[Qemu-devel] [PATCH 03/11] compiler: use weak aliases to provide default definitions

2012-10-29 Thread Paolo Bonzini
This is simpler and more portable. Signed-off-by: Paolo Bonzini --- arch_init.h | 2 +- compiler.h | 11 --- qmp.c | 3 ++- 3 file modificati, 7 inserzioni(+), 9 rimozioni(-) diff --git a/arch_init.h b/arch_init.h index d9c572a..5fc780c 100644 --- a/arch_init.h +++ b/arch_init.

[Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine

2012-10-29 Thread Alexander Graf
When using -initrd in the virtio machine, we need to indicate the initrd start and size inside the kernel image. These parameters need to be stored in native endianness. Signed-off-by: Alexander Graf Acked-by: Richard Henderson Acked-by: Christian Borntraeger --- hw/s390-virtio.c |4 ++--

[Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29

2012-10-29 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for s390. Please pull. Alex The following changes since commit b308c82cbda44e138ef990af64d44a5613c16092: Avi Kivity (1): pci: avoid destroying bridge address space windows in a transaction are available in the git repository at:

[Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine

2012-10-29 Thread Alexander Graf
When using -initrd in the virtio machine, we need to indicate the initrd start and size inside the kernel image. These parameters need to be stored in native endianness. Signed-off-by: Alexander Graf Acked-by: Richard Henderson Acked-by: Christian Borntraeger --- hw/s390-virtio.c |4 ++--

[Qemu-devel] [PATCH 5/7] s390: sclp event support

2012-10-29 Thread Alexander Graf
From: Heinz Graalfs Several SCLP features are considered to be events. Those events don't provide SCLP commands on their own, instead they are all based on Read Event Data, Write Event Data, Write Event Mask and the service interrupt. Follow-on patches will provide SCLP's Signal Quiesce (via syst

[Qemu-devel] [PATCH 3/7] s390: use sync regs for register transfer

2012-10-29 Thread Alexander Graf
From: Christian Borntraeger Newer kernels provide the guest registers in kvm_run. Lets use those if available (i.e. the capability is set). This avoids ioctls on cpu_synchronize_state making intercepts faster. In addition, we have now the prefix register, the access registers the control registe

[Qemu-devel] [PATCH 11/11] build: do not include main loop where it is not actually used

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile | 6 +++--- Makefile.objs | 5 ++--- tests/Makefile | 4 ++-- 3 file modificati, 7 inserzioni(+), 8 rimozioni(-) diff --git a/Makefile b/Makefile index e489583..2ba981c 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ endif qemu-img.o: qe

[Qemu-devel] [PATCH 05/11] fdsets: use weak aliases instead of qemu-tool.c/qemu-user.c

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- cutils.c | 5 - osdep.c | 30 ++ qemu-common.h | 1 - qemu-tool.c | 20 qemu-user.c | 20 5 file modificati, 30 inserzioni(+), 46 rimozioni(-) diff --git a/cutils.c b/cutil

[Qemu-devel] [PATCH 4/7] s390: sclp base support

2012-10-29 Thread Alexander Graf
From: Heinz Graalfs This adds a more generic infrastructure for handling Service-Call requests on s390. Currently we only support a small subset of Read SCP Info directly in target-s390x. This patch provides the base infrastructure for supporting more commands and moves Read SCP Info. In the futu

[Qemu-devel] [PATCH 10/11] qemu-tool: do not depend on qemu-timer.c

2012-10-29 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-tool.c | 2 +- 1 file modificato, 1 inserzione(+). 1 rimozione(-) diff --git a/qemu-tool.c b/qemu-tool.c index 28a4e8d..b46631e 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -70,7 +70,7 @@ void monitor_protocol_event(MonitorEvent event, QObject *data) int

[Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29

2012-10-29 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for s390. Please pull. Alex The following changes since commit b308c82cbda44e138ef990af64d44a5613c16092: Avi Kivity (1): pci: avoid destroying bridge address space windows in a transaction are available in the git repository at:

Re: [Qemu-devel] [PATCH v2 5/6] target-ppc: make some functions static

2012-10-29 Thread Alexander Graf
On 28.10.2012, at 12:04, Blue Swirl wrote: > Signed-off-by: Blue Swirl Acked-by: Alexander Graf Alex > --- > target-ppc/cpu.h|6 -- > target-ppc/mmu_helper.c | 11 ++- > 2 files changed, 6 insertions(+), 11 deletions(-) > > diff --git a/target-ppc/cpu.h b/target-ppc/

Re: [Qemu-devel] [PATCH v2 4/6] ppc: add missing static

2012-10-29 Thread Alexander Graf
On 28.10.2012, at 12:04, Blue Swirl wrote: > Add missing 'static' qualifiers. > > Signed-off-by: Blue Swirl Acked-by: Alexander Graf Alex

[Qemu-devel] [PATCH 2/7] s390/kvm_stat: correct sys_perf_event_open syscall number

2012-10-29 Thread Alexander Graf
From: Heinz Graalfs Correct sys_perf_event_open syscall number for s390 architecture - the hardcoded syscall number 298 is for x86 but should be different for other architectures. In case we figure out via /proc/cpuinfo that we are running on s390 the appropriate syscall number

[Qemu-devel] [PATCH 6/7] s390: sclp signal quiesce support

2012-10-29 Thread Alexander Graf
From: Heinz Graalfs This implements the sclp signal quiesce event via the SCLP Event Facility. This allows to gracefully shutdown a guest by using system_powerdown notifiers. It creates a service interrupt that will trigger a Read Event Data command from the guest. This code will then add an even

[Qemu-devel] [PATCH 01/11] janitor: move iovector functions out of cutils.c

2012-10-29 Thread Paolo Bonzini
This removes the dependency of cutils.c on iov.c, and lets us remove iov.o from several builds. Signed-off-by: Paolo Bonzini --- Makefile | 2 +- Makefile.objs | 4 +-- cutils.c | 103 - iov.c | 103 +++

[Qemu-devel] [PATCH 7/7] s390: sclp ascii console support

2012-10-29 Thread Alexander Graf
From: Heinz Graalfs This code adds console support by implementing SCLP's ASCII Console Data event. This is the same console as LPARs ASCII console or z/VMs sysascii. The console can be specified manually with something like -chardev stdio,id=charconsole0 -device sclpconsole,chardev=charconsol

Re: [Qemu-devel] [PULL 00/32] Block patches

2012-10-29 Thread Anthony Liguori
Kevin Wolf writes: > The following changes since commit a8170e5e97ad17ca169c64ba87ae2f53850dab4c: > > Rename target_phys_addr_t to hwaddr (2012-10-23 08:58:25 -0500) > > are available in the git repository at: > > git://repo.or.cz/qemu/kevin.git for-anthony > Pulled. Thanks. Regards, Antho

Re: [Qemu-devel] [PULL 00/36] usb patch queue

2012-10-29 Thread Anthony Liguori
Gerd Hoffmann writes: > Hi, > > Here comes the usb patch queue. Nothing big standing out. Tons of > cleanups and small bug fixes. Some performance improvements too. > Some patches preparing the usb core for the upcoming input pipelining > bits. > > please pull, > Gerd > Pulled. Thanks. R

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

2012-10-29 Thread Aurelien Jarno
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 bisect it tomorrow, but I'd be > glad if somebody else beats me.

Re: [Qemu-devel] [QEMU PATCH 0/3] Fix -cpu host and enforce/check to use GET_SUPPORTED_CPUID

2012-10-29 Thread Marcelo Tosatti
On Wed, Oct 24, 2012 at 07:44:04PM -0200, Eduardo Habkost wrote: > This depends on a previous series I have submitted: > Subject: [QEMU PATCH 00/15] QEMU KVM_GET_SUPPORTED_CPUID cleanups and fixes > Message-Id: <1349383747-19383-1-git-send-email-ehabk...@redhat.com> > http://article.gmane.org

Re: [Qemu-devel] [PATCH v7 00/17] target-i386: Add way to expose VMWare CPUID

2012-10-29 Thread Marcelo Tosatti
On Fri, Oct 12, 2012 at 03:56:05PM -0400, Don Slutz wrote: > Also known as Paravirtualization CPUIDs. > > This is primarily done so that the guest will think it is running > under vmware when hypervisor-vendor=vmware is specified as a > property of a cpu. > > Patches 1 to 3 define new cpu propert

Re: [Qemu-devel] [PULL rebased] virtio,pci infrastructure

2012-10-29 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > The following changes since commit d262cb02861dd33375c08fc798930653b14769e9: > > Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf (2012-10-29 > 14:56:17 +0100) > > are available in the git repository at: Pulled. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] memory: fix rendering of a region obscured by another

2012-10-29 Thread Anthony Liguori
Avi Kivity writes: > The memory core drops regions that are hidden by another region (for example, > during BAR sizing), but it doesn't do so correctly if the lower address of the > existing range is below the lower address of the new range. > > Example (qemu-system-mips -M malta -kernel vmlinux-

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

2012-10-29 Thread Paolo Bonzini
Il 29/10/2012 18:32, Juan Quintela ha scritto: >> > New users can't "just add socket_set_nonblock()". They'd have to add it >> > right where you deleted it: between qemu_socket() and connect(). Else >> > the connect() is blocking. > Grrr. > > So, is there any way to make a connection that is non

Re: [Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29

2012-10-29 Thread Aurelien Jarno
On Mon, Oct 29, 2012 at 07:40:17PM +0100, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for s390. Please pull. > > Alex > > > The following changes since commit b308c82cbda44e138ef990af64d44a5613c16092: > Avi Kivity (1): > pci: avoid destroying bridge

[Qemu-devel] [PATCH v2 17/19] target-mips: use deposit instead of hardcoded version

2012-10-29 Thread Aurelien Jarno
Use the deposit op instead of and hardcoded bit field insertion. It allows the host to emit the corresponding instruction if available. At the same time remove the (lsb > msb) test. The MIPS64R2 instruction set manual says "Because of the instruction format, lsb can never be greater than msb, so t

[Qemu-devel] [PATCH v2 03/19] softfloat: implement fused multiply-add NaN propagation for MIPS

2012-10-29 Thread Aurelien Jarno
Add a pickNaNMulAdd function for MIPS, implementing NaN propagation rules for MIPS fused multiply-add instructions. Cc: Peter Maydell Signed-off-by: Aurelien Jarno --- fpu/softfloat-specialize.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/fpu/softfloat-spe

<    1   2   3   >