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

2012-03-26 Thread Michael S. Tsirkin
On Mon, Mar 26, 2012 at 05:10:15PM -0500, 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 qem

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

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- 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 bdrv_rw_co(BlockDr

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

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- 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 @@ void bdrv_close_all(vo

[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 Cc: Ke

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 -060

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

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- 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 bdrv_rw_co(BlockDriverState *bs, int64_t sector_n

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

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- 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 @@ void bdrv_close_all(void) void bdrv_drain_all(void)

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 wrote: > On Tue, Mar 20, 2012 at 11:44 AM, Stefan Hajnoczi > 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 Yong Wu ha scritto: >>> >> HI, Kevin,

[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 --- 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 --- a/hw/ppce500_spin.c +++

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 configura

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 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 > > -static inline int gdb_id(CPUArchState *env) > -{ > -#if defined(CONFIG_USER_ONLY) && defined(CONFIG_USE_NPTL) > -return env->host_tid; >

[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 t

[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 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

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 lik

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 > 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 >>> Subject: Re: [PATCH 05/11 v10] Add API to ge

[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 --- arch_init.c |7 --- block-migration.c |8 savevm.c |7 --- vmstate.h |8 4 files changed, 16 inse

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

2012-03-26 Thread HATAYAMA Daisuke
From: Wen Congyang 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 >> Subject: Re: [PATCH 05/11 v10] Add API to get memory mapping >> Date: Mon, 26 Mar 2012 09:10:52 +0800 >

[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 diff --git a/block/stream.c b/block/stream.c index d1b398

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

2012-03-26 Thread Anthony Liguori
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 configuration in guest such as bondings, vlans or ipv6. S

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

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. Tha

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] [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 h

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 affe

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 Roth --- 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 7b2be2f..faf970d 100644 --

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 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 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 som

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,

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 Rezanina Applied. Thanks. Regards, Anthony Liguori v4: - break long line v3: -

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 Simoncelli Applied. Thanks. Regards, Anthony Liguori --- scripts/qapi-commands.py | 14 +++--- scripts/qapi-types.py|4 ++-- scripts/qapi-visit.py|4 ++-- scripts/qapi.py |

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 Roth Applied. Thanks. Regards, Anthony Liguori --- Makefile |1 + tests/Makefile |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile b/Ma

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 worry

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 worry

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 t

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 Hallyn The oth

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

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 FALLOC_FL_

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 such

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 Liguori > > > This series aggressively ref

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 Liguori This series aggressively refactors the PC machine initialization to be more modelled and less ad-hoc.

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 > 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

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 Liguori >>> >>> >>> This series aggressively refactors the PC machine initialization to be more >>> modelled and less ad-hoc. The highlights of this s

[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 imp

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

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 Viana Something's off here: Using m

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 Moser To:

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@/

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. -no-user-confi

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 -no

Re: [Qemu-devel] [Bug 588731] Re: PXE boot not working

2012-03-26 Thread Michael Tokarev
On 26.03.2012 19:18, Michal Suchanek wrote: > There seems to be an issue with kvm virtual network interface being > connected to a in-kernel bridge implementation. > > When you configure networking that way the bridge port comes up when the > kvm instance is started. > > As the time from the kvm

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

2012-03-26 Thread Anthony Liguori
On 03/25/2012 01:09 PM, Avi Kivity wrote: Suppose we define the southbridge via a configuration file. Does that mean we don't load it any more? Yes. If I want the leanest and meanest version of QEMU that will start in the smallest number of milliseconds, then being able to tell QEMU not to lo

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 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: Make guest-network-get-interfaces Linux only

2012-03-26 Thread Michael Roth
On Mon, Mar 26, 2012 at 06:35:49PM +0200, Andreas Färber wrote: > Am 20.03.2012 17:10, schrieb Michael Roth: > > On Tue, Mar 20, 2012 at 04:09:53PM +0100, Michal Privoznik wrote: > >> Currently, the implementation of that command is full of > >> Linux specific code. Before any brave man will step i

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

2012-03-26 Thread Brian Jackson
On Mon, 26 Mar 2012 10:13:40 -0500, 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

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

2012-03-26 Thread Michael Roth
Signed-off-by: Michael Roth --- 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 7b2be2f..faf970d 100644 --- a/qga/commands-posix.c +++ b/qga/commands-

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

2012-03-26 Thread Michael Roth
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 Michael Roth (1): qemu-ga: fix bsd build, and re-org li

[Qemu-devel] [RFC PATCH v2 4/8] tracetool: Add support for the 'stderr' backend

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/stderr.py | 61 +++ 1 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/stderr.py diff --git a/scripts/tracetool/backend/stderr.py b/scripts/tracetool/backen

[Qemu-devel] [RFC PATCH v2 7/8] tracetool: Add support for the 'dtrace' backend

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool.py| 31 ++ scripts/tracetool/__init__.py |8 +++ scripts/tracetool/backend/dtrace.py | 104 +++ scripts/tracetool/format/d.py | 20 +++ scripts/tracetool/format/sta

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

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 18:07, Anthony Liguori wrote: > On 03/26/2012 01:01 PM, Blue Swirl wrote: >> >> On Mon, Mar 26, 2012 at 17:45, Anthony Liguori >>  wrote: >>> >>> >>> >>> Is this something we universally want to do?  What would we do about >>> patches >>> to audio? >> >> >> I'd do it in cas

[Qemu-devel] [PULL] libcacard queue, start with no reader fixes

2012-03-26 Thread Alon Levy
Hi Anthony, Some small fixes for libcacard to handle starting when no readers are available, and reader removal and reinsertion while running. Sent last weekend, no comments so far so I'm sending a pull request. Thanks, Alon The following changes since commit cb1977d308f6e1d6bf398d42e614818

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 01:01 PM, Blue Swirl wrote: On Mon, Mar 26, 2012 at 17:45, Anthony Liguori wrote: Is this something we universally want to do? What would we do about patches to audio? I'd do it in cases when there is code movement, then git blame will not be very useful anyway and other peop

[Qemu-devel] [RFC PATCH v2 5/8] tracetool: Add support for the 'simple' backend

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/simple.py | 60 +++ 1 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/simple.py diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backen

[Qemu-devel] [RFC PATCH v2 6/8] tracetool: Add support for the 'ust' backend

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/ust.py | 102 ++ 1 files changed, 102 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/ust.py diff --git a/scripts/tracetool/backend/ust.py b/scripts/tracetool/backend/ust.

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 Andreas Färber (afaer...@suse.de): > Am 26.03.2012 17:13, schrieb Serge E. Hallyn: > > 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? > > Yes, documented somewh

[Qemu-devel] [RFC PATCH v2 2/8] tracetool: Add module for the 'c' format

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/c.py | 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/c.py diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py new file mode 100644 index 0

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

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 17:45, Anthony Liguori wrote: > On 03/26/2012 12:43 PM, Blue Swirl wrote: >> >> On Mon, Mar 26, 2012 at 17:35, Anthony Liguori >>  wrote: >>> >>> On 03/26/2012 12:09 PM, Blue Swirl wrote: On Mon, Mar 26, 2012 at 02:06, Wanpeng Li  wrote: > >

Re: [Qemu-devel] [PATCH v2 0/6] ARM: AREG0 conversion

2012-03-26 Thread Lluís Vilanova
Blue Swirl writes: > On Mon, Mar 26, 2012 at 13:05, Paul Brook wrote: >>> On 24 March 2012 18:58, Blue Swirl wrote: >>> > v2: fix patch 1, tweak patch 2 and rebase to master. >>> > >>> > URL     git://repo.or.cz/qemu/blueswirl.git >>> >        http://repo.or.cz/r/qemu/blueswirl.git >>> > >>> > B

[Qemu-devel] [RFC PATCH v2 8/8] tracetool: Add MAINTAINERS info

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- MAINTAINERS |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f83d07c2..0e66dd8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -548,6 +548,8 @@ Tracing M: Stefan Hajnoczi S: Maintained F: trace/ +F: scrip

[Qemu-devel] [RFC PATCH v2 1/8] tracetool: Rewrite infrastructure as python modules

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- Makefile.objs |6 Makefile.target | 13 - configure |4 scripts/tracetool | 648 - scripts/tracetool.py |

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 12:43 PM, Blue Swirl wrote: On Mon, Mar 26, 2012 at 17:35, Anthony Liguori wrote: On 03/26/2012 12:09 PM, Blue Swirl wrote: On Mon, Mar 26, 2012 at 02:06, Wanpeng Liwrote: From: Anthony Liguori 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 Blue Swirl
On Mon, Mar 26, 2012 at 17:35, Anthony Liguori wrote: > On 03/26/2012 12:09 PM, Blue Swirl wrote: >> >> On Mon, Mar 26, 2012 at 02:06, Wanpeng Li  wrote: >>> >>> >>> From: Anthony Liguori >>> >>> >>> This series aggressively refactors the PC machine initialization to be >>> more >>> modelled and l

[Qemu-devel] [RFC PATCH v2 3/8] tracetool: Add module for the 'h' format

2012-03-26 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/h.py | 45 + 1 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/h.py diff --git a/scripts/tracetool/format/h.py b/scripts/tracetool/format/h.py new fil

Re: [Qemu-devel] [PATCH 5/6] merge pc_piix.c to pc.c

2012-03-26 Thread Anthony Liguori
On 03/26/2012 07:47 AM, Jan Kiszka wrote: On 2012-03-26 14:42, Avi Kivity wrote: On 03/26/2012 04:06 AM, Wanpeng Li wrote: From: Anthony Liguori @@ -889,7 +900,7 @@ static DeviceState *apic_init(void *env, uint8_t apic_id) DeviceState *dev; static int apic_mapped; -if (kvm_irq

[Qemu-devel] [RFC PATCH v2 0/8] Rewrite tracetool using python modules

2012-03-26 Thread Lluís Vilanova
A full rewrite of the tracetool script using per-format and per-backend modules, so that it's easier to read and extend it in the future. Signed-off-by: Lluís Vilanova --- NOTE: This series applies in current master, ignoring the "Rewrite tracetool using python" series. Changes in v2: * F

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 12:09 PM, Blue Swirl wrote: On Mon, Mar 26, 2012 at 02:06, Wanpeng Li wrote: From: Anthony Liguori This series aggressively refactors the PC machine initialization to be more modelled and less ad-hoc. The highlights of this series are: Please fix coding style while moving.

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 07:20 AM, Jan Kiszka wrote: On 2012-03-26 04:06, Wanpeng Li wrote: From: Anthony Liguori This series aggressively refactors the PC machine initialization to be more modelled and less ad-hoc. The highlights of this series are: 1) Things like -m and -bios-name are now device mo

Re: [Qemu-devel] [RFC PATCH 0/8] Rewrite tracetool using python modules

2012-03-26 Thread Lluís Vilanova
Stefan Hajnoczi writes: > I tried to build this after make distclean with the nop backend: > GEN trace.h > Traceback (most recent call last): > File "/home/stefanha/qemu/scripts/tracetool.py", line 141, in > main(sys.argv) > File "/home/stefanha/qemu/scripts/tracetool.py", line 136, i

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 10:54 AM, Isaku Yamahata wrote: On Mon, Mar 26, 2012 at 02:20:24PM +0200, Jan Kiszka wrote: I'm also sure we will have to refactor the merge significantly again for the introduction of additional chipsets and PC boards. But unless those requirements can already be specified (Isaku?

[Qemu-devel] [PATCH v6 2/2] target-arm: Minimalistic CPU QOM'ification

2012-03-26 Thread Andreas Färber
Introduce only one non-abstract type TYPE_ARM_CPU and do not touch cp15 registers to not interfere with Peter's ongoing remodelling. Embed CPUARMState as first (additional) field of ARMCPU. Let reset call cpu_state_reset() for now. Signed-off-by: Andreas Färber --- Makefile.target |1 +

[Qemu-devel] [PATCH v6 1/2] target-arm: Drop cpu_arm_close()

2012-03-26 Thread Andreas Färber
It's unused, so no need to QOM'ify it later. Signed-off-by: Andreas Färber Reviewed-by: Peter Maydell --- target-arm/cpu.h|1 - target-arm/helper.c |5 - 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 26c114b..69ef142 100

[Qemu-devel] [PATCH v6 0/2] QOM'ify ARM CPU

2012-03-26 Thread Andreas Färber
Hello Peter, Here's the revised mini-conversion with CPUState::reset supported again. Please apply to target-arm.next tree. Available at: https://github.com/afaerber/qemu-cpu/commits/qom-cpu-arm.v6 Regards, Andreas Cc: Anthony Liguori Cc: Peter Maydell Cc: Paul Brook Cc: Andrzej Zaborowski

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/25/2012 09:06 PM, Wanpeng Li wrote: From: Anthony Liguori This series aggressively refactors the PC machine initialization to be more modelled and less ad-hoc. The highlights of this series are: 1) Things like -m and -bios-name are now device model properties 2) The i440fx and piix

Re: [Qemu-devel] [PATCH] sh4-linux-user: fix multi-threading regression.

2012-03-26 Thread Peter Maydell
2012/3/26 Cédric VINCENT : > This reverts commit fd4bab10 "target-sh4: optimize exceptions": [cc'ing Aurelien as the author of that commit] > the function cpu_restore_state() isn't expected to be called in user-mode, Is this really true? host_signal_handler() calls cpu_signal_handler() calls han

Re: [Qemu-devel] [PATCH 09/15] tcg-sparc: Do not use a global register for AREG0.

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 16:52, Richard Henderson wrote: > On 03/26/12 09:31, Blue Swirl wrote: >>> > +/* In dyngen-exec.h, without AREG0, we fall back to an alias to >>> > cpu_single_env. >>> > +   We can't actually tell from here whether that's needed or not, but it >>> > does >>> > +   not hur

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

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 12:20, Jan Kiszka wrote: > On 2012-03-26 04:06, Wanpeng Li wrote: >> From: Anthony Liguori >> >> >> This series aggressively refactors the PC machine initialization to be more >> modelled and less ad-hoc.  The highlights of this series are: >> >>  1) Things like -m and -bi

[Qemu-devel] [PATCH] fix evdev_keycode_to_pc_keycode for Hangul/Latin & Hangul/Hanja toggles

2012-03-26 Thread Dohyung Hong
Scan code for Hangul/English is 0xf2, Scan code for Hangul/Hanja is 0xf1 Signed-off-by: Dohyung Hong --- diff --git a/ui/x_keymap.c b/ui/x_keymap.c index b9b0944..5e1b796 100644 --- a/ui/x_keymap.c +++ b/ui/x_keymap.c @@ -127,8 +127,8 @@ static const uint8_t evdev_keycode_to_pc_keycode[

[Qemu-devel] PRoot: a new companion for QEMU user-mode

2012-03-26 Thread cedric.vinc...@st.com
Hello, We are pleased to announce the first public release of PRoot, a tool created to extend QEMU user-mode: http://proot.me As you probably know, QEMU user-mode is mainly used with binfmt_misc, chroot, and sometimes "mount --bind". PRoot basically brings a user-space implementation of the

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

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 02:06, Wanpeng Li wrote: > > From: Anthony Liguori > > > This series aggressively refactors the PC machine initialization to be more > modelled and less ad-hoc.  The highlights of this series are: Please fix coding style while moving. >  1) Things like -m and -bios-name

Re: [Qemu-devel] Build broken -- qemu-ga: add guest-network-get-interfaces command

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 15:18, Anthony Liguori wrote: > On 03/26/2012 10:15 AM, Michael Roth wrote: >> >> On Mon, Mar 26, 2012 at 09:55:15AM -0500, Anthony Liguori wrote: >> >> Yup, I can't confirm the BSD fix atm though, only that it doesn't break >> builds >> on linux/w32. Send anyway or wait fo

Re: [Qemu-devel] [PATCH v2 0/6] ARM: AREG0 conversion

2012-03-26 Thread Blue Swirl
On Mon, Mar 26, 2012 at 13:05, Paul Brook wrote: >> On 24 March 2012 18:58, Blue Swirl wrote: >> > v2: fix patch 1, tweak patch 2 and rebase to master. >> > >> > URL     git://repo.or.cz/qemu/blueswirl.git >> >        http://repo.or.cz/r/qemu/blueswirl.git >> > >> > Blue Swirl (6): >> >  arm: mov

[Qemu-devel] PRoot: a new companion for QEMU user-mode

2012-03-26 Thread cedric.vinc...@st.com
Hello, We are pleased to announce the first public release of PRoot, a tool created to extend QEMU user-mode: http://proot.me As you probably know, QEMU user-mode is mainly used with binfmt_misc, chroot, and sometimes "mount --bind". PRoot basically brings a user-space implementation of the

[Qemu-devel] [Bug 237164] Re: kvm needs to correctly simulate a proper monitor

2012-03-26 Thread Michal Suchanek
Isn't the issue here that the emulated card has too low video memory forcing 800x600 when the driver selects the default 24bpp depth? This is an issue with some very old real hardware too. I guess X could account for that but due to its architecture every driver would likely have a separate check

Re: [Qemu-devel] [PATCH 09/15] tcg-sparc: Do not use a global register for AREG0.

2012-03-26 Thread Richard Henderson
On 03/26/12 09:31, Blue Swirl wrote: >> > +/* In dyngen-exec.h, without AREG0, we fall back to an alias to >> > cpu_single_env. >> > + We can't actually tell from here whether that's needed or not, but it >> > does >> > + not hurt to go ahead and make the declaration. */ >> > +#ifndef CONFIG

[Qemu-devel] [Bug 614958] Re: copy-paste between client and host

2012-03-26 Thread Michal Suchanek
I use serial console to cut&paste between host and guest without networking. It's nice SPICE is addressing this but I agree this is not really something qemu itself should do. There is no hardware cut&paste device qemu can emulate, the video hardware has not notion of cut&paste. At the very leas

[Qemu-devel] [PATCH] fix usb hid usage id table

2012-03-26 Thread 홍도형
Add(or fix) following key conversions - 0x3a -> 0x39 : CapsLock - 0x56 -> 0x64 : Europe 2 - 0x59 -> 0x67 : Keypad = - 0x5c -> 0x8c : Keyboard Int’l 6(PC9800 Keypad) - 0x64 -> 0x68 : F13 - 0x65 -> 0x69 : F14 - 0x66 -> 0x6a : F15 - 0x67 -> 0x6b

Re: [Qemu-devel] [PATCH 13/15] tcg-sparc: Use defines for temporaries.

2012-03-26 Thread Blue Swirl
On Sun, Mar 25, 2012 at 22:27, Richard Henderson wrote: > And change from %i4 to %g1 to remove a v8plus fixme. > > Signed-off-by: Richard Henderson > --- >  tcg/sparc/tcg-target.c |  110 --- >  1 files changed, 56 insertions(+), 54 deletions(-) > > diff

[Qemu-devel] [Bug 965133] [NEW] Sparc64 crash on start

2012-03-26 Thread Tiziano Vecchi
Public bug reported: qemu version 1.0.1 compiled on a Ubuntu live on a HP laptop win a x64 architecture. With more than 4G of memory sparc64 machine crash on start. command line: qemu-system-sparc64 -m 4G output: VNC server running on `127.0.0.1:5900' qemu: fatal: Trap 0x0064 while trap level (

Re: [Qemu-devel] [PATCH] qemu-ga: Make guest-network-get-interfaces Linux only

2012-03-26 Thread Andreas Färber
Am 20.03.2012 17:10, schrieb Michael Roth: > On Tue, Mar 20, 2012 at 04:09:53PM +0100, Michal Privoznik wrote: >> Currently, the implementation of that command is full of >> Linux specific code. Before any brave man will step into >> and port it to other OSes, make this function Linux only. >> >> S

Re: [Qemu-devel] [PATCH 09/15] tcg-sparc: Do not use a global register for AREG0.

2012-03-26 Thread Blue Swirl
On Sun, Mar 25, 2012 at 22:27, Richard Henderson wrote: > > Signed-off-by: Richard Henderson > --- >  dyngen-exec.h |   20 +++- >  exec.c        |   16 ++-- >  2 files changed, 25 insertions(+), 11 deletions(-) > > diff --git a/dyngen-exec.h b/dyngen-exec.h > index 65f

  1   2   3   >