[Qemu-devel] sparc OBP psr value

2010-12-11 Thread Bob Breuer
Under qemu-system-sparc, I found a problem with OBP's psr commands. On an real SS-20, I get: ok .psr CWP: 4 ET: 1 PS: 1 S: 1 PIL: f EF: 1 EC: 0 ICC: nZvc VER: 0 IMPL: 4 ok %psr . 40401fe4 But with qemu, it all shows up as 0, such as: ok .psr CWP: 0 ET: 0 PS: 0 S

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Benjamin Herrenschmidt
> > > Ah the problem is that we have not qdevified mac io bus. Since first to > > > ide disks are automatically attached to mac-io bus device paths for them > > > are incorrect. Next two ide devices will be attached to CMD646 and qemu > > > will generate correct device paths for them: > > > > > >

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Benjamin Herrenschmidt
On Sat, 2010-12-11 at 18:06 +0200, Gleb Natapov wrote: > http://playground.sun.com/pub/p1275/bindings/pci/pci2_1.pdf has table > on > page 10 that defines how pci class code should be translated into OF > name. This is what my patch is using. pci-ata does not look spec > compliant (or is there more

[Qemu-devel] [PATCH] vga: Declare as little endian

2010-12-11 Thread Blue Swirl
This patch replaces explicit bswaps with endianness hints to the mmio layer. CC: Alexander Graf Signed-off-by: Blue Swirl --- hw/vga.c | 26 +- 1 files changed, 1 insertions(+), 25 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index b5c8741..c632fd7 100644 --- a/hw/vg

[Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Blue Swirl
Thanks, applied all. On Wed, Dec 8, 2010 at 11:34 AM, Gleb Natapov wrote: > Forget to save a couple of buffers before sending version 7 :( > > Anthony, Blue can this be applied now? > > Gleb Natapov (16): >  Introduce fw_name field to DeviceInfo structure. >  Introduce new BusInfo callback get_fw

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Blue Swirl
2010/12/11 Gleb Natapov : > On Sat, Dec 11, 2010 at 08:02:23PM +0200, Gleb Natapov wrote: >> On Sat, Dec 11, 2010 at 05:19:01PM +, Blue Swirl wrote: >> > >>                                                 What should we do with >> > >> at...@600 vs dr...@1? >> > > There is no available IDE OF b

[Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Blue Swirl
2010/12/11 Gleb Natapov : > On Sat, Dec 11, 2010 at 05:19:01PM +, Blue Swirl wrote: >> >>                                                 What should we do with >> >> at...@600 vs dr...@1? >> > There is no available IDE OF binding spec, so I when with the way >> > OpenBIOS reports ata on qemu-x

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Gleb Natapov
On Sat, Dec 11, 2010 at 07:06:04PM +, Blue Swirl wrote: > 2010/12/11 Gleb Natapov : > > On Sat, Dec 11, 2010 at 08:02:23PM +0200, Gleb Natapov wrote: > >> On Sat, Dec 11, 2010 at 05:19:01PM +, Blue Swirl wrote: > >> > >>                                                 What should we do with

Re: [Qemu-devel] [PATCH] wdt_i6300esb: register a reset function

2010-12-11 Thread Blue Swirl
Thanks, applied. On Wed, Dec 8, 2010 at 2:59 PM, Bernhard Kohl wrote: > The device shall set its default hardware state after each reset. > This includes that the timer is stopped which is especially important > if the guest does a reboot independantly of a watchdog bite. I moved > the initializa

Re: [Qemu-devel] [PATCH] isa-bus.c: use hw_error instead of fprintf

2010-12-11 Thread Blue Swirl
Thanks, applied. On Fri, Dec 3, 2010 at 11:05 AM, Tristan Gingold wrote: > Minor clean-up in isa-bus.c.  Using hw_error is more consistent. > There is a difference however: hw_error dumps the cpu state. > > Signed-off-by: Tristan Gingold > --- >  hw/isa-bus.c |   11 --- >  1 files change

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Gleb Natapov
On Sat, Dec 11, 2010 at 08:02:23PM +0200, Gleb Natapov wrote: > On Sat, Dec 11, 2010 at 05:19:01PM +, Blue Swirl wrote: > > >>                                                 What should we do with > > >> at...@600 vs dr...@1? > > > There is no available IDE OF binding spec, so I when with the

[Qemu-devel] Re: [PATCH 00/15] MMIO endianness cleanup v2

2010-12-11 Thread Blue Swirl
Thanks, applied. On Wed, Dec 8, 2010 at 11:05 AM, Alexander Graf wrote: > The way mmio endianness is currently implemented is horrifying. > > In the real world, CPUs have an endianness and write out data > to the memory bus. Instead of RAM, a receiving side here can be > a device. This device get

[Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Gleb Natapov
On Sat, Dec 11, 2010 at 05:19:01PM +, Blue Swirl wrote: > >>                                                 What should we do with > >> at...@600 vs dr...@1? > > There is no available IDE OF binding spec, so I when with the way > > OpenBIOS reports ata on qemu-x86. I have no idea what 600 in a

[Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Blue Swirl
On Sat, Dec 11, 2010 at 4:06 PM, Gleb Natapov wrote: > On Sat, Dec 11, 2010 at 03:13:35PM +, Blue Swirl wrote: >> On Wed, Dec 8, 2010 at 11:34 AM, Gleb Natapov wrote: >> > Forget to save a couple of buffers before sending version 7 :( >> > >> > Anthony, Blue can this be applied now? >> >> I m

[Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Gleb Natapov
On Sat, Dec 11, 2010 at 03:13:35PM +, Blue Swirl wrote: > On Wed, Dec 8, 2010 at 11:34 AM, Gleb Natapov wrote: > > Forget to save a couple of buffers before sending version 7 :( > > > > Anthony, Blue can this be applied now? > > I made some more tests, this time with PPC. I modified OpenBIOS

Re: [Qemu-devel] [PATCH 0/6] usb-ccid (v8)

2010-12-11 Thread Blue Swirl
On Sat, Dec 11, 2010 at 3:33 PM, Hans de Goede wrote: > Hi, > > On 12/11/2010 10:43 AM, Blue Swirl wrote: >> >> On Tue, Dec 7, 2010 at 10:20 AM, Alon Levy  wrote: >>> >>> ping. >> >> I don't think Anthony's concerns (or mine) have been addressed. >> > > Could you be a bit more verbose please ? I'

Re: [Qemu-devel] [PATCH 0/6] usb-ccid (v8)

2010-12-11 Thread Hans de Goede
Hi, On 12/11/2010 10:43 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 10:20 AM, Alon Levy wrote: ping. I don't think Anthony's concerns (or mine) have been addressed. Could you be a bit more verbose please ? Thanks & Regards, Hans

[Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-11 Thread Blue Swirl
On Wed, Dec 8, 2010 at 11:34 AM, Gleb Natapov wrote: > Forget to save a couple of buffers before sending version 7 :( > > Anthony, Blue can this be applied now? I made some more tests, this time with PPC. I modified OpenBIOS to print out the boot device list: $ qemu-system-ppc -drive if=none,id=

Re: [Qemu-devel] TCG flow vs dyngen

2010-12-11 Thread Blue Swirl
On Sat, Dec 11, 2010 at 2:32 PM, Stefano Bonifazi wrote: > -Original Message- > From: Blue Swirl [mailto:blauwir...@gmail.com] > Sent: sabato 11 dicembre 2010 14:12 > To: Stefano Bonifazi > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] TCG flow vs dyngen > > >>There's a large buffe

[Qemu-devel] RE: [PATCH] fix qruncom compilation problems

2010-12-11 Thread Stefano Bonifazi
-Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: venerdì 10 dicembre 2010 22:49 To: Stefano Bonifazi Subject: Re: [PATCH] fix qruncom compilation problems >For runcom (without the "q") this wouldn't work, because it runs the code in vm86 mode. It's possible that

RE: [Qemu-devel] TCG flow vs dyngen

2010-12-11 Thread Stefano Bonifazi
-Original Message- From: Blue Swirl [mailto:blauwir...@gmail.com] Sent: sabato 11 dicembre 2010 14:12 To: Stefano Bonifazi Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] TCG flow vs dyngen >There's a large buffer for generated code, allocated in exec.c. This is filled >with host co

[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-12-11 Thread Nigel Horne
It's been fixed now, thanks. There seems to be no way to close this bug, but you can assume, now, that it is closed. Thanks for your help in tracking it down and fixing it quickly. ** Changed in: qemu Status: In Progress => Fix Released -- You received this bug notification because you

[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-12-11 Thread Nigel Horne
Found out how to change the bug's status. I've marked it as fixed. Thanks again. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/671831 Title: Sparc guest assert error Status in QEMU: Fix Release

Re: [Qemu-devel] DPRINTF vs tracing

2010-12-11 Thread Blue Swirl
On Sat, Dec 11, 2010 at 1:03 PM, Stefan Hajnoczi wrote: > Historically, QEMU code has defined per-file DPRINTF() macros for > debug logging.  A lot of recent patches continue to use this > technique. > > I want to draw attention to tracing support and its advantages over > DPRINTF().  Tracing is a

Re: [Qemu-devel] TCG flow vs dyngen

2010-12-11 Thread Blue Swirl
On Sat, Dec 11, 2010 at 12:29 PM, Stefano Bonifazi wrote: > Thank you very very much! I'd take months for understanding everything > myself from the source code! :) > > On 12/11/2010 12:02 PM, Blue Swirl wrote: >> >> On Fri, Dec 10, 2010 at 9:26 PM, Stefano Bonifazi >>  wrote: >>> >>> [..] >>> >>

[Qemu-devel] DPRINTF vs tracing

2010-12-11 Thread Stefan Hajnoczi
Historically, QEMU code has defined per-file DPRINTF() macros for debug logging. A lot of recent patches continue to use this technique. I want to draw attention to tracing support and its advantages over DPRINTF(). Tracing is an alternative that solves limitations of the DPRINTF() approach: 1.

Re: [Qemu-devel] [PATCH 1/5] block: add discard support

2010-12-11 Thread Paul Brook
> On Thu, Dec 02, 2010 at 01:12:13PM +0100, Kevin Wolf wrote: > > > DEFINE_PROP_UINT16("physical_block_size", _state, > > > \ > > > > > > _conf.physical_block_size, 512), > > > \ > > > > > >

Re: [Qemu-devel] TCG flow vs dyngen

2010-12-11 Thread Stefano Bonifazi
Thank you very very much! I'd take months for understanding everything myself from the source code! :) On 12/11/2010 12:02 PM, Blue Swirl wrote: On Fri, Dec 10, 2010 at 9:26 PM, Stefano Bonifazi wrote: [..] - So, I think that the technical documentation is now obsolete, isn't it? At least

Re: [Qemu-devel] TCG flow vs dyngen

2010-12-11 Thread Blue Swirl
On Fri, Dec 10, 2010 at 9:26 PM, Stefano Bonifazi wrote: > Hi all! >  From the technical documentation > (http://www.usenix.org/publications/library/proceedings/usenix05/tech/freenix/bellard.html) > I read: > > The first step is to split each target CPU instruction into fewer simpler > instruction

Re: [Qemu-devel] State of EHCI emulation for QEMU

2010-12-11 Thread Blue Swirl
On Thu, Dec 9, 2010 at 8:32 PM, David S. Ahern wrote: > > > On 12/09/10 06:05, Gerd Hoffmann wrote: >> >>   Hi, >> >>> New features developed for the kernel are done in a separate git trees. >>> When a feature is ready for inclusion into the main kernel tree, a pull >>> request is sent. That workf

Re: [Qemu-devel] [PATCH 2/6] [RFC] Emulation of GRLIB IRQMP as defined in GRLIB IP Core User's Manual.

2010-12-11 Thread Blue Swirl
On Tue, Dec 7, 2010 at 10:43 AM, Fabien Chouteau wrote: > On 12/06/2010 06:25 PM, Blue Swirl wrote: >> >> On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteau >>  wrote: >>> >>> Signed-off-by: Fabien Chouteau >>> --- >>>  hw/grlib_irqmp.c |  416 >>> +

Re: [Qemu-devel] [PATCH 6/6] [RFC] SPARCV8 asr17 register support.

2010-12-11 Thread Blue Swirl
On Tue, Dec 7, 2010 at 11:51 AM, Fabien Chouteau wrote: > On 12/06/2010 07:01 PM, Blue Swirl wrote: >> >> On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteau >>  wrote: >>> >>> Signed-off-by: Fabien Chouteau >>> --- >>>  hw/leon3.c               |    6 ++ >>>  target-sparc/cpu.h       |    1 + >>>

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-11 Thread Blue Swirl
On Tue, Dec 7, 2010 at 11:40 AM, Fabien Chouteau wrote: > On 12/06/2010 06:53 PM, Blue Swirl wrote: >> >> On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteau >>  wrote: >>> >>> Signed-off-by: Fabien Chouteau >>> --- >>>  Makefile.target          |    5 +- >>>  hw/leon3.c               |  310 >>> +

Re: [Qemu-devel] [PATCH 0/6] usb-ccid (v8)

2010-12-11 Thread Blue Swirl
On Tue, Dec 7, 2010 at 10:20 AM, Alon Levy wrote: > ping. I don't think Anthony's concerns (or mine) have been addressed. > Blue Swirl - one patch I forgot is in a later message titled "..v8.1.." > with the removal of the libcaccard build. This should be merged with 4/6.

Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-11 Thread Blue Swirl
On Tue, Dec 7, 2010 at 10:08 AM, Alexander Graf wrote: > > On 06.12.2010, at 19:38, Blue Swirl wrote: > >> On Mon, Dec 6, 2010 at 11:12 AM, Alexander Graf wrote: >>> >>> On 05.12.2010, at 17:25, Blue Swirl wrote: >>> 'info tlb' didn't show correct information for PAE mode and x86_64 lon