Re: [Qemu-devel] [RFC PATCH v4 2/5] ramlist mutex

2011-08-18 Thread Umesh Deshpande
On 08/17/2011 02:28 AM, Paolo Bonzini wrote: On 08/16/2011 08:56 PM, Umesh Deshpande wrote: @@ -3001,8 +3016,10 @@ void qemu_ram_free_from_ptr(ram_addr_t addr) QLIST_FOREACH(block,&ram_list.blocks, next) { if (addr == block->offset) { +qemu_mutex_lock_ramlist();

Re: [Qemu-devel] [PATCH] pci: add standard bridge device

2011-08-18 Thread Wen Congyang
At 08/18/2011 11:15 PM, Avi Kivity Write: > On 08/17/2011 08:22 PM, Wen Congyang wrote: >> At 08/17/2011 04:37 PM, Wen Congyang Write: >> > At 07/04/2011 05:43 PM, Michael S. Tsirkin Write: >> >> This adds support for a standard pci to pci bridge, >> >> enabling support for more than 32 PCI devi

Re: [Qemu-devel] [PATCH] Wire g_new() and friends to the qemu_malloc() family

2011-08-18 Thread Peter Maydell
On 18 August 2011 18:48, Avi Kivity wrote: > +static GMemVTable gmemvtable = { > +    .malloc = qemu_malloc, > +    .realloc = qemu_realloc, > +    .free = qemu_free, > +}; > + > +/** > + * qemu_malloc_init: initialize memory management > + */ > +void qemu_malloc_init(void) > +{ > +    g_mem_set_v

Re: [Qemu-devel] [PATCH] Wire g_new() and friends to the qemu_malloc() family

2011-08-18 Thread Stefan Hajnoczi
On Thu, Aug 18, 2011 at 6:48 PM, Avi Kivity wrote: > This makes the tracing infrastructure available to users of g_new(). > > Signed-off-by: Avi Kivity > --- >  qemu-common.h |    1 + >  qemu-malloc.c |   15 +++ >  vl.c          |    1 + >  3 files changed, 17 insertions(+), 0 deletio

Re: [Qemu-devel] [Bug 826363] Re: qemu-img convert does not work with vdi files

2011-08-18 Thread Stefan Hajnoczi
On Wed, Aug 17, 2011 at 8:05 PM, Steve Si <826...@bugs.launchpad.net> wrote: > I downloaded source and ran configure under MinGW but got > Python not found. Use --python=/path/to/python > How to fix pls? $ ./configure --disable-guest-agent $ make Stefan

Re: [Qemu-devel] Multi-threaded user program support?

2011-08-18 Thread Peter Maydell
On 19 August 2011 03:59, 陳韋任 wrote: >> More generally and not x86-specific, there are problems with >> the multithreaded user-mode support which I suspect exist because >> nobody has ever sat down and worked out a coherent design for it, >> including what might need to be thread-local and what loc

Re: [Qemu-devel] Multi-threaded user program support?

2011-08-18 Thread 陳韋任
> More generally and not x86-specific, there are problems with > the multithreaded user-mode support which I suspect exist because > nobody has ever sat down and worked out a coherent design for it, > including what might need to be thread-local and what locking > is required. So the result is that

Re: [Qemu-devel] [PATCH] Fix gcc-4.6 compiler error

2011-08-18 Thread Zhi Yong Wu
On Thu, Aug 18, 2011 at 12:28 PM, Peter Maydell wrote: > On 18 August 2011 05:16, Zhi Yong Wu wrote: >> I have also met this problem on fedora 15 today. Currently i disable >> werror option to build successfully. How to completely this problem >> regardless of gcc>=4.6? > > Hmm, this should have

Re: [Qemu-devel] [PATCH, braille] Add dots keypresses support to the baum braille device

2011-08-18 Thread Samuel Thibault
Oops, sorry, the previous patch had a debugging leftover, here it is again. Add dots keypresses support to the baum braille device. Signed-off-by: Samuel Thibault diff --git a/hw/baum.c b/hw/baum.c index 21326ae..0b29498 100644 --- a/hw/baum.c +++ b/hw/baum.c @@ -1,7 +1,7 @@ /* * QEMU Baum B

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Natalia Portillo
Hi, El 18/08/2011, a las 21:51, Laurent Vivier escribió: > Le jeudi 18 août 2011 à 21:13 +0100, Natalia Portillo a écrit : >> Hi Laurent, >> >> El 18/08/2011, a las 20:57, Laurent Vivier escribió: >> >>> Le jeudi 18 août 2011 à 20:42 +0100, Natalia Portillo a écrit : Hi Laurent, >>> >>> H

[Qemu-devel] [PATCH, braille] Add dots keypresses support to the baum braille device

2011-08-18 Thread Samuel Thibault
Add dots keypresses support to the baum braille device. Signed-off-by: Samuel Thibault diff --git a/hw/baum.c b/hw/baum.c index 21326ae..131348c 100644 --- a/hw/baum.c +++ b/hw/baum.c @@ -1,7 +1,7 @@ /* * QEMU Baum Braille Device * - * Copyright (c) 2008, 2011 Samuel Thibault + * Copyright

[Qemu-devel] ahmed

2011-08-18 Thread ahmed
Je suis le fils de l'ancien ministre de la Guinée (Mariame Sy Diallo) mais je vis actuellement en Angleterre, j'ai trouvé votre adresse à la chambre de commerce ici à Londres, j'ai besoin de votre aide pour investir au Maroc ou Algérie ou en Tunisie. Si vous êtes intéressé à ma demandes'il vous p

Re: [Qemu-devel] [PATCH] block/curl: Handle failed reads gracefully.

2011-08-18 Thread Kevin Wolf
Am 15.08.2011 11:00, schrieb Nicholas Thomas: > Current behaviour if a read fails is for the acb to not get finished. > This causes an infinite loop in bdrv_read_em (block.c). The read failure > never gets reported to the guest and if the error condition clears, the > process never recovers. > >

Re: [Qemu-devel] [PATCH v2 5/6] vga: Use linear mapping + dirty logging in chain 4 memory access mode

2011-08-18 Thread Jan Kiszka
On 2011-08-17 16:48, Avi Kivity wrote: > On 08/17/2011 04:38 PM, Avi Kivity wrote: >> >> The mmio code has >> >> s->plane_updated |= mask; /* only used to detect font >> change */ >> >> aren't we losing it? we could easily recover it via dirty logging. >> Yes, I forgot to forward-port

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
Le jeudi 18 août 2011 à 21:13 +0100, Natalia Portillo a écrit : > Hi Laurent, > > El 18/08/2011, a las 20:57, Laurent Vivier escribió: > > > Le jeudi 18 août 2011 à 20:42 +0100, Natalia Portillo a écrit : > >> Hi Laurent, > > > > Hi Natalia, > > > >> El 18/08/2011, a las 15:02, Laurent Vivier e

[Qemu-devel] [PATCH v2 3/4] ppc: booke206: use MAV=2.0 TSIZE definition, fix 4G pages

2011-08-18 Thread Scott Wood
This definition is backward compatible with MAV=1.0 as long as the guest does not set reserved bits in MAS1/MAS4. Also, fix the shift in booke206_tlb_to_page_size -- it's the base that should be able to hold a 4G page size, not the shift count. Signed-off-by: Scott Wood --- v2 (was 2/3 in v1): n

[Qemu-devel] [PATCH v2 4/4] ppc: booke206: add "info tlb" support

2011-08-18 Thread Scott Wood
Signed-off-by: Scott Wood --- v2 (was 3/3 in v1): no change hmp-commands.hx |2 +- monitor.c |5 ++- target-ppc/cpu.h|2 + target-ppc/helper.c | 88 +++ 4 files changed, 94 insertions(+), 3 deletions(-) diff --git a

[Qemu-devel] [PATCH v2 2/4] kvm: ppc: booke206: use MMU API

2011-08-18 Thread Scott Wood
Share the TLB array with KVM. This allows us to set the initial TLB both on initial boot and reset, is useful for debugging, and could eventually be used to support migration. Signed-off-by: Scott Wood --- v2 (was 1/3 in v1): updated for kernel API change, removed kernel header ifdefs, minor cha

[Qemu-devel] [PATCH v2 1/4] kvm: update linux-headers

2011-08-18 Thread Scott Wood
Needed for PPC MMU API support. Signed-off-by: Scott Wood --- v2: new to v2 linux-headers/asm-powerpc/kvm.h | 54 - linux-headers/asm-x86/kvm_para.h | 14 ++ linux-headers/linux/kvm.h| 41 +++- linux-headers/linu

[Qemu-devel] [PATCH v2 0/4] ppc: booke206: KVM MMU API and info tlb

2011-08-18 Thread Scott Wood
For this functionality to work with KVM, this kernel patch is required: http://www.spinics.net/lists/kvm-ppc/msg03053.html Scott Wood (4): kvm: update linux-headers kvm: ppc: booke206: use MMU API ppc: booke206: use MAV=2.0 TSIZE definition, fix 4G pages ppc: booke206: add "info tlb" suppo

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Natalia Portillo
Hi Laurent, El 18/08/2011, a las 20:57, Laurent Vivier escribió: > Le jeudi 18 août 2011 à 20:42 +0100, Natalia Portillo a écrit : >> Hi Laurent, > > Hi Natalia, > >> El 18/08/2011, a las 15:02, Laurent Vivier escribió: >> >>> >>> >>> >>> Le 18 août 2011 à 13:12, "François Revol" a écrit :

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
Le jeudi 18 août 2011 à 20:42 +0100, Natalia Portillo a écrit : > Hi Laurent, Hi Natalia, > El 18/08/2011, a las 15:02, Laurent Vivier escribió: > > > > > > > > > Le 18 août 2011 à 13:12, "François Revol" a écrit : > > > > > Le -10/01/-28163 20:59, Laurent Vivier a écrit : > > > > Le mer

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Natalia Portillo
Hi Laurent, El 18/08/2011, a las 15:02, Laurent Vivier escribió: > > > Le 18 août 2011 à 13:12, "François Revol" a écrit : > > > Le -10/01/-28163 20:59, Laurent Vivier a écrit : > > > Le mercredi 17 août 2011 à 17:35 -0500, Anthony Liguori a écrit : > > >> On 08/17/2011 03:46 PM, Bryce La

[Qemu-devel] [Bug 567376] Re: qemu-img fails to convert image

2011-08-18 Thread Steve Si
0.15.0 under win7 64-bit seems to work OK. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/567376 Title: qemu-img fails to convert image Status in QEMU: Incomplete Bug description: On a Windows

[Qemu-devel] [Bug 567380] Re: qemu-img fails to create images >= 4G

2011-08-18 Thread Steve Si
Confirmed under Win 7 64-bit. Also does same thing on v10.6, v11.1, v12.1 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/567380 Title: qemu-img fails to create images >= 4G Status in QEMU: Incomp

[Qemu-devel] VMState assertion for USB devices on multiple buses

2011-08-18 Thread Daniel P. Berrange
I've been experimenting with multiple USB2 buses, and device physical port addressing. It seems if you have 2 devices of the same type on the same port, but in different buses, you get a bogus VMState assertion failure # qemu-system-x86_64 \ -nodefconfig -nodefaults \ -vnc 127.0.

[Qemu-devel] [PATCH] Wire g_new() and friends to the qemu_malloc() family

2011-08-18 Thread Avi Kivity
This makes the tracing infrastructure available to users of g_new(). Signed-off-by: Avi Kivity --- qemu-common.h |1 + qemu-malloc.c | 15 +++ vl.c |1 + 3 files changed, 17 insertions(+), 0 deletions(-) diff --git a/qemu-common.h b/qemu-common.h index 74d5c4b..fb

Re: [Qemu-devel] [PATCH 04/14] gus: Convert to isa_register_old_portio_list.

2011-08-18 Thread malc
On Tue, 16 Aug 2011, Richard Henderson wrote: > Signed-off-by: Richard Henderson > Cc: malc This patchset breaks both gus and sb16 for me. [..snip..] -- mailto:av1...@comtv.ru

Re: [Qemu-devel] Serial port on virtual machines

2011-08-18 Thread Mulyadi Santosa
On Thu, Aug 18, 2011 at 22:00, bala suru wrote: > Hi, > > I'm running VM on kvm-qemu hyper visor . I need to access the serail port on > the VM , > I tried the sample code to read/write com port but I get port error when > ever I tried write something to the port(dev/ttyS0) . try to read the man

[Qemu-devel] Building qemu.exe on cygwin (0.15.0)

2011-08-18 Thread Rolando A. Lopez
Hi, I need windows binaries for 0.15.0 so I tried to find them but no luck, so I tried to build it myself with cygwin. By following Lassauge's advices on http://lassauge.free.fr/qemu/ I reached the point where make tries to build/link qemu.exe but ld fails. I think reaching this point is

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Michael Roth
On 08/17/2011 06:30 PM, Bryce Lanham wrote: Ugh, I'm sorry about that. This is why I should test before using unfamiliar tools. Someone suggested using git format-patch/git send-email instead of a big patch. That's definitely preferred actually, but you should look at breaking this into multi

Re: [Qemu-devel] [PATCH] pci: add standard bridge device

2011-08-18 Thread Avi Kivity
On 08/17/2011 08:22 PM, Wen Congyang wrote: At 08/17/2011 04:37 PM, Wen Congyang Write: > At 07/04/2011 05:43 PM, Michael S. Tsirkin Write: >> This adds support for a standard pci to pci bridge, >> enabling support for more than 32 PCI devices in the system. >> To use, specify the device id a

[Qemu-devel] Serial port on virtual machines

2011-08-18 Thread bala suru
Hi, I'm running VM on kvm-qemu hyper visor . I need to access the serail port on the VM , I tried the sample code to read/write com port but I get port error when ever I tried write something to the port(dev/ttyS0) . the same code work fine on the normal OS .. is it the same way as normal OS for

Re: [Qemu-devel] [PATCH] qemu-img: print error codes when convert fails

2011-08-18 Thread Stefan Hajnoczi
On Wed, Aug 17, 2011 at 08:40:57PM +0200, Kevin Wolf wrote: > Am 17.08.2011 18:41, schrieb Stefan Hajnoczi: > > Signed-off-by: Stefan Hajnoczi > > Thanks, applied to the block branch. > > (But is it really helpful to include sector numbers in the error > message? Especially since we're not readi

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
  Le 18 août 2011 à 13:12, "François Revol" a écrit : > Le -10/01/-28163 20:59, Laurent Vivier a écrit : > > Le mercredi 17 août 2011 à 17:35 -0500, Anthony Liguori a écrit : > >> On 08/17/2011 03:46 PM, Bryce Lanham wrote: > >>> These patches greatly expand Motorola 68k emulation within qemu

Re: [Qemu-devel] USB port NULL pointer causes segv

2011-08-18 Thread erik . rull
Hi Gerd, thanks a lot. I just had a look on usb-linux.c where the "port" could be identified. for those that must use /proc/bus/usb it would be possible to allow the following: read in the "Port=" and check if it is on bus level 1, then you can identify at least your real root hardware port - hu

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread François Revol
Le -10/01/-28163 20:59, Laurent Vivier a écrit : Le mercredi 17 août 2011 à 17:35 -0500, Anthony Liguori a écrit : On 08/17/2011 03:46 PM, Bryce Lanham wrote: These patches greatly expand Motorola 68k emulation within qemu, and are what I used as a basis for my Google Summer of Code project to

Re: [Qemu-devel] The reason behind block linking constraint?

2011-08-18 Thread Max Filippov
>> If we link a TB with another TB from the different page, then the >> second TB may disappear when the memory mapping changes and the >> subsequent direct jump from the first TB will crash qemu. > >  Perhaps the guest OS swap the second TB out of the guest memory, > is it what you mean? I meant

Re: [Qemu-devel] The reason behind block linking constraint?

2011-08-18 Thread 陳韋任
> If we link a TB with another TB from the different page, then the > second TB may disappear when the memory mapping changes and the > subsequent direct jump from the first TB will crash qemu. Perhaps the guest OS swap the second TB out of the guest memory, is it what you mean? Regards, chenw

Re: [Qemu-devel] The reason behind block linking constraint?

2011-08-18 Thread Max Filippov
> Hi, all > >  I am trying to figure out why QEMU put some constraints on block > linking (chaining). Take x86 as an example, there are two places > put constraints on block linking, gen_goto_tb and cpu_exec. > > - gen_goto_tb (target-i386/translate.c) --- >  /* NOTE: we

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
Le mercredi 17 août 2011 à 17:35 -0500, Anthony Liguori a écrit : > On 08/17/2011 03:46 PM, Bryce Lanham wrote: > > These patches greatly expand Motorola 68k emulation within qemu, and are > > what I used as a basis for my > > Google Summer of Code project to add NeXT hardware support to QEMU. >