Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-26 Thread Anthony Liguori
On 03/26/2012 04:08 AM, Avi Kivity wrote: If I see something like -nodefconfig, I assume it will create a bare bones guest that will not depend on any qemu defaults and will be stable across releases. That's not even close to what -nodefconfig is. That's pretty much what -nodefaults is but

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-26 Thread Anthony Liguori
On 03/26/2012 11:14 AM, Eduardo Habkost wrote: On Mon, Mar 26, 2012 at 02:03:21PM +0200, Gleb Natapov wrote: On Mon, Mar 26, 2012 at 01:59:05PM +0200, Avi Kivity wrote: On 03/26/2012 01:24 PM, Jiri Denemark wrote: ... The command line becomes unstable if you use -nodefconfig.

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-26 Thread Eduardo Habkost
On Sun, Mar 25, 2012 at 01:11:04PM -0500, Anthony Liguori wrote: On 03/25/2012 10:40 AM, Avi Kivity wrote: On 03/25/2012 05:26 PM, Anthony Liguori wrote: Put the emphasis around *configuration*. So how about: 1) Load ['@SYSCONFDIR@/qemu/qemu.cfg', '@SYSCONFDIR@/qemu/target-@ARCH@.cfg',

Re: [Qemu-devel] [PATCH] fix multiboot loading if load_end_addr == 0 (fwd)

2012-03-26 Thread Anthony Liguori
On 03/18/2012 12:45 PM, Scott Moser wrote: Re-sending to qemu-devel. I'd originally sent this to kvm mailing list. Can you submit as a proper patch with a Signed-off-by? Regards, Anthony Liguori -- Forwarded message -- Date: Sat, 17 Mar 2012 00:08:06 From: Scott

Re: [Qemu-devel] [PATCH v3 1/2] Force timedrift=none on previous machines

2012-03-26 Thread Anthony Liguori
On 03/21/2012 11:06 AM, Crístian Viana wrote: The current value for the -rtc timedrift option is none. This patch makes sure that the old machines configuration will work the same way even after that option changes its default value. Signed-off-by: Crístian Vianavia...@linux.vnet.ibm.com

Re: [Qemu-devel] [Patch 0/2] Fix QEMU configure / make with Turkish (and maybe other) locale

2012-03-26 Thread Eric Blake
On 03/25/2012 01:48 PM, Stefan Weil wrote: As you see in my patch, I had to override three environment variables to (hopefully) handle all cases which lead to wrong results, Technically, you only have to modify LC_ALL. Modifications to LANG and LC_CTYPE are pointless once LC_ALL is set, at

[Qemu-devel] [PATCH] fix multiboot loading if load_end_addr == 0

2012-03-26 Thread Scott Moser
The previous multiboot load code did not treat the case where load_end_addr was 0 specially. The multiboot specification says the following: * load_end_addr Contains the physical address of the end of the data segment. (load_end_addr - load_addr) specifies how much data to load. This

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Jan Kiszka
On 2012-03-26 19:33, Anthony Liguori wrote: On 03/26/2012 07:20 AM, Jan Kiszka wrote: On 2012-03-26 04:06, Wanpeng Li wrote: From: Anthony Liguorialigu...@us.ibm.com This series aggressively refactors the PC machine initialization to be more modelled and less ad-hoc. The highlights of this

Re: [Qemu-devel] [PATCH 1/1] If user doesn't specify a uuid, generate a random one

2012-03-26 Thread Serge E. Hallyn
Quoting Brian Jackson (i...@theiggy.com): On Mon, 26 Mar 2012 10:13:40 -0500, Serge E. Hallyn se...@hallyn.com wrote: Currently, if the user doesn't pass a uuid, the system uuid is set to all zeros. This patch generates a random one instead. Is there a reason to prefer all zeros? If

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Anthony Liguori
On 03/26/2012 02:30 PM, Jan Kiszka wrote: On 2012-03-26 19:33, Anthony Liguori wrote: On 03/26/2012 07:20 AM, Jan Kiszka wrote: On 2012-03-26 04:06, Wanpeng Li wrote: From: Anthony Liguorialigu...@us.ibm.com This series aggressively refactors the PC machine initialization to be more

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Jan Kiszka
On 2012-03-26 21:35, Anthony Liguori wrote: On 03/26/2012 02:30 PM, Jan Kiszka wrote: On 2012-03-26 19:33, Anthony Liguori wrote: On 03/26/2012 07:20 AM, Jan Kiszka wrote: On 2012-03-26 04:06, Wanpeng Li wrote: From: Anthony Liguorialigu...@us.ibm.com This series aggressively refactors the

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Anthony Liguori
On 03/26/2012 02:37 PM, Jan Kiszka wrote: On 2012-03-26 21:35, Anthony Liguori wrote: Since this is an easily refactorable thing to look at later, I think we should start with extracting the types. My worry is that those three refactorings set bad examples for others. So I'd like to avoid

Re: [Qemu-devel] [RFC PATCH 06/17] block: use bdrv_{co, aio}_discard for write_zeroes operations

2012-03-26 Thread Richard Laager
On Sat, 2012-03-24 at 16:27 +0100, Christoph Hellwig wrote: has_discard = !fallocate(s-fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, There is no point in using FALLOC_FL_KEEP_SIZE together with FALLOC_FL_PUNCH_HOLE. It's *required*. From the man page [0], The

Re: [Qemu-devel] [RFC PATCH 06/17] block: use bdrv_{co, aio}_discard for write_zeroes operations

2012-03-26 Thread Richard Laager
On Sat, 2012-03-24 at 16:30 +0100, Christoph Hellwig wrote: On Wed, Mar 14, 2012 at 01:14:18PM +0100, Paolo Bonzini wrote: Note that the discard granularity is only a hint, so it's really more a maximum suggested value than a granularity. Outside of a cluster boundary the format would

Re: [Qemu-devel] [PATCH 1/1] If user doesn't specify a uuid, generate a random one

2012-03-26 Thread Anthony Liguori
On 03/26/2012 10:13 AM, Serge E. Hallyn wrote: Currently, if the user doesn't pass a uuid, the system uuid is set to all zeros. This patch generates a random one instead. Is there a reason to prefer all zeros? If not, can a patch like this one be applied? Signed-off-by: Serge

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Jan Kiszka
On 2012-03-26 21:39, Anthony Liguori wrote: On 03/26/2012 02:37 PM, Jan Kiszka wrote: On 2012-03-26 21:35, Anthony Liguori wrote: Since this is an easily refactorable thing to look at later, I think we should start with extracting the types. My worry is that those three refactorings set bad

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Anthony Liguori
On 03/26/2012 02:44 PM, Jan Kiszka wrote: On 2012-03-26 21:39, Anthony Liguori wrote: On 03/26/2012 02:37 PM, Jan Kiszka wrote: On 2012-03-26 21:35, Anthony Liguori wrote: Since this is an easily refactorable thing to look at later, I think we should start with extracting the types. My

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Anthony Liguori
On 03/26/2012 02:44 PM, Jan Kiszka wrote: On 2012-03-26 21:39, Anthony Liguori wrote: On 03/26/2012 02:37 PM, Jan Kiszka wrote: On 2012-03-26 21:35, Anthony Liguori wrote: Since this is an easily refactorable thing to look at later, I think we should start with extracting the types. My

Re: [Qemu-devel] [PATCH v2] test: remove qemu-ga reference

2012-03-26 Thread Anthony Liguori
On 03/21/2012 10:10 AM, Michael Roth wrote: This was added by mistake a while back. Signed-off-by: Michael Rothmdr...@linux.vnet.ibm.com Applied. Thanks. Regards, Anthony Liguori --- Makefile |1 + tests/Makefile |2 +- 2 files changed, 2 insertions(+), 1 deletions(-)

Re: [Qemu-devel] [PATCH v3] qapi: add c_fun to escape function names

2012-03-26 Thread Anthony Liguori
On 03/20/2012 08:54 AM, Federico Simoncelli wrote: Signed-off-by: Federico Simoncellifsimo...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- scripts/qapi-commands.py | 14 +++--- scripts/qapi-types.py|4 ++-- scripts/qapi-visit.py|4 ++--

Re: [Qemu-devel] [PATCH v4] Man page: Add -global description

2012-03-26 Thread Anthony Liguori
On 03/21/2012 07:46 AM, Miroslav Rezanina wrote: There's only TODO information in qemu man page for -global option. This is a basic description of this option with simple example. Signed-off-by: Miroslav Rezaninamreza...@redhat.com Applied. Thanks. Regards, Anthony Liguori v4: -

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Jan Kiszka
On 2012-03-26 21:49, Anthony Liguori wrote: On 03/26/2012 02:44 PM, Jan Kiszka wrote: On 2012-03-26 21:39, Anthony Liguori wrote: On 03/26/2012 02:37 PM, Jan Kiszka wrote: On 2012-03-26 21:35, Anthony Liguori wrote: Since this is an easily refactorable thing to look at later, I think we

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Anthony Liguori
On 03/26/2012 03:10 PM, Jan Kiszka wrote: On 2012-03-26 21:49, Anthony Liguori wrote: On 03/26/2012 02:44 PM, Jan Kiszka wrote: This would also mean that reference counting should be revisited although with how dereferencing a parent affects the child. It's not rocket science, but it's also

Re: [Qemu-devel] [PATCH v3 1/5] qerror: add error codes for fopen failure

2012-03-26 Thread Alon Levy
On Fri, Mar 23, 2012 at 11:21:25AM -0300, Luiz Capitulino wrote: On Sun, 18 Mar 2012 19:29:09 +0100 Alon Levy al...@redhat.com wrote: Added: QERR_EINTR QERR_EACCES QERR_EEXIST QERR_OPEN_FILE_EMFILE QERR_ENOSPC QERR_EPERM QERR_READ_ONLY QERR_ENOTDIR QERR_EFBIG

Re: [Qemu-devel] [PATCH] qemu-ga: fix bsd build, and re-org linux-specific implementations

2012-03-26 Thread Brad Smith
On 25/03/12 3:40 PM, Michael Roth wrote: Signed-off-by: Michael Rothmdr...@linux.vnet.ibm.com --- qga/commands-posix.c | 111 + 1 files changed, 66 insertions(+), 45 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Jan Kiszka
On 2012-03-26 22:13, Anthony Liguori wrote: On 03/26/2012 03:10 PM, Jan Kiszka wrote: On 2012-03-26 21:49, Anthony Liguori wrote: On 03/26/2012 02:44 PM, Jan Kiszka wrote: This would also mean that reference counting should be revisited although with how dereferencing a parent affects the

Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-03-26 Thread Anthony Liguori
On 03/26/2012 03:30 PM, Jan Kiszka wrote: On 2012-03-26 22:13, Anthony Liguori wrote: On 03/26/2012 03:10 PM, Jan Kiszka wrote: On 2012-03-26 21:49, Anthony Liguori wrote: On 03/26/2012 02:44 PM, Jan Kiszka wrote: This would also mean that reference counting should be revisited although with

Re: [Qemu-devel] [PULL 0/2] spice: 32bit support

2012-03-26 Thread Anthony Liguori
On 03/22/2012 08:40 AM, Gerd Hoffmann wrote: Hi, This patch series fixes the remaining 32bit bugs in spice. With this series merged and the latest spice-server bits (from git, no release yet) spice works on 32bit hosts too. please pull, Gerd Pulled. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL] qemu-ga build fixes

2012-03-26 Thread Anthony Liguori
On 03/26/2012 01:28 PM, Michael Roth wrote: The following changes since commit cb1977d308f6e1d6bf398d42e6148187b82456c1: tcg-sparc: Add debug_frame support. (2012-03-24 19:57:58 +) are available in the git repository at: git://github.com/mdroth/qemu.git qga-pull-3-26-12 Pulled.

Re: [Qemu-devel] [PULL 0/5] Trivial patches for 20 to 26 March 2012

2012-03-26 Thread Anthony Liguori
On 03/26/2012 07:07 AM, Stefan Hajnoczi wrote: The following changes since commit cb1977d308f6e1d6bf398d42e6148187b82456c1: tcg-sparc: Add debug_frame support. (2012-03-24 19:57:58 +) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches for you

[Qemu-devel] [PATCH v2] block stream: close unused files and update -backing_hd

2012-03-26 Thread Marcelo Tosatti
Close the now unused images that were part of the previous backing file chain and adjust -backing_hd, backing_filename and backing_format properly. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=801449 Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/block/stream.c

Re: [Qemu-devel] [PATCH 05/11 v10] Add API to get memory mapping

2012-03-26 Thread HATAYAMA Daisuke
From: Wen Congyang we...@cn.fujitsu.com Subject: Re: [PATCH 05/11 v10] Add API to get memory mapping Date: Mon, 26 Mar 2012 10:44:40 +0800 At 03/26/2012 10:31 AM, HATAYAMA Daisuke Wrote: From: Wen Congyang we...@cn.fujitsu.com Subject: Re: [PATCH 05/11 v10] Add API to get memory mapping Date:

[Qemu-devel] [PATCH] Make live saving stages public and use their #defines

2012-03-26 Thread Stefan Berger
Make the different stages for live saving of state public and use the #defines rather than numbers. Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com --- arch_init.c |7 --- block-migration.c |8 savevm.c |7 --- vmstate.h |8

Re: [Qemu-devel] [PATCH 05/11 v10] Add API to get memory mapping

2012-03-26 Thread Wen Congyang
At 03/27/2012 09:01 AM, HATAYAMA Daisuke Wrote: From: Wen Congyang we...@cn.fujitsu.com Subject: Re: [PATCH 05/11 v10] Add API to get memory mapping Date: Mon, 26 Mar 2012 10:44:40 +0800 At 03/26/2012 10:31 AM, HATAYAMA Daisuke Wrote: From: Wen Congyang we...@cn.fujitsu.com Subject: Re:

Re: [Qemu-devel] [PATCH 1/1] If user doesn't specify a uuid, generate a random one

2012-03-26 Thread Serge E. Hallyn
Quoting Anthony Liguori (anth...@codemonkey.ws): On 03/26/2012 10:13 AM, Serge E. Hallyn wrote: Currently, if the user doesn't pass a uuid, the system uuid is set to all zeros. This patch generates a random one instead. Is there a reason to prefer all zeros? If not, can a patch like this

[Qemu-devel] [PATCH 05/12 v11] Add API to get memory mapping

2012-03-26 Thread Wen Congyang
Add API to get all virtual address and physical address mapping. If the guest doesn't use paging, the virtual address is equal to the phyical address. The virtual address and physical address mapping is for gdb's user, and it does not include the memory that is not referenced by the page table. So

[Qemu-devel] [PATCH] Better support for dma_addr_t variables

2012-03-26 Thread David Gibson
A while back, we introduced the dma_addr_t type, which is supposed to be used for bus visible memory addresses. At present, this is an alias for target_phys_addr_t, but this will change when we eventually add support for guest visible IOMMUs. There are some instances of target_phys_addr_t in the

[Qemu-devel] [PATCH] Use DMADirection type for dma_bdrv_io

2012-03-26 Thread David Gibson
Currently dma_bdrv_io() takes a 'to_dev' boolean parameter to determine the direction of DMA it is emulating. We already have a DMADirection enum designed specifically to encode DMA directions. This patch uses it for dma_bdrv_io() as well. This involves removing the DMADirection definition from

Re: [Qemu-devel] [PATCH 10/12 v11] make gdb_id() generally avialable and rename it to cpu_index()

2012-03-26 Thread HATAYAMA Daisuke
From: Wen Congyang we...@cn.fujitsu.com Subject: [PATCH 10/12 v11] make gdb_id() generally avialable and rename it to cpu_index() Date: Mon, 26 Mar 2012 18:05:39 +0800 cut -static inline int gdb_id(CPUArchState *env) -{ -#if defined(CONFIG_USER_ONLY) defined(CONFIG_USE_NPTL) -return

Re: [Qemu-devel] [V5 PATCH 0/4] Send gratuitous packets by guest

2012-03-26 Thread Jason Wang
On 03/27/2012 06:10 AM, Anthony Liguori wrote: On 03/16/2012 03:54 AM, Jason Wang wrote: This an update of series that let guest and qemu to be co-operated to send gratuitous packets when needed such as after migration, loadvm and continuing. As it's hard for qemu to track the network

[Qemu-devel] [PATCH]booke:Use MMU API for creating initial mapping for secondary cpus

2012-03-26 Thread Bharat Bhushan
Initial Mapping creation for secondary CPU in SMP was missing new MMU API. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- hw/ppce500_spin.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c index 6b8a189..e8cf154 100644

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-26 Thread Zhi Yong Wu
On Mon, Mar 26, 2012 at 10:21 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Mar 20, 2012 at 11:44 AM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: On Tue, Mar 20, 2012 at 10:58:10AM +0100, Kevin Wolf wrote: Am 20.03.2012 10:47, schrieb Paolo Bonzini: Il 20/03/2012 10:40, Zhi

[Qemu-devel] [PATCH 1/2] block: add the support to drain throttled requests

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index b88ee90..1fbf4dd 100644 --- a/block.c +++ b/block.c @@ -862,8 +862,22 @@

[Qemu-devel] [PATCH 2/2] block: disable I/O throttling on sync api

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..5baf340 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,12 @@ static int

Re: [Qemu-devel] [PATCH 1/2] Isolation groups

2012-03-26 Thread David Gibson
On Wed, Mar 21, 2012 at 03:12:58PM -0600, Alex Williamson wrote: On Sat, 2012-03-17 at 15:57 +1100, David Gibson wrote: On Fri, Mar 16, 2012 at 01:31:18PM -0600, Alex Williamson wrote: On Fri, 2012-03-16 at 14:45 +1100, David Gibson wrote: On Thu, Mar 15, 2012 at 02:15:01PM -0600, Alex

[Qemu-devel] [PATCH v4] w32: Support tests (make check)

2012-03-26 Thread Stefan Weil
Adding $(EXESUF) is needed to make those tests work on w32 hosts, too. v2: Rebased, added new tests, tests sorted alphabetically. v3: Rebased, $(EXESUF) for qemu-img, qemu-io which were recently added. v4: Rebased, new test test-qmp-commands which was recently added. Cc: Anthony Liguori

[Qemu-devel] [PATCH 1/2] block: add the support to drain throttled requests

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index b88ee90..1fbf4dd 100644 ---

[Qemu-devel] [PATCH 2/2] block: disable I/O throttling on sync api

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..5baf340 100644 ---

<    1   2   3