Re: [Qemu-devel] buildbot failure in qemu on block_mingw32

2012-03-03 Thread Stefan Weil
Am 03.03.2012 03:05, schrieb q...@buildbot.b1-systems.de: The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/144 Buildbot URL: http://buildbot.b1-systems.de/qemu/

Re: [Qemu-devel] [PATCH] Change library from libiscsi to libiscsiclient to match library rename in libiscsi

2012-03-03 Thread Michael Tokarev
On 03.03.2012 10:38, Ronnie Sahlberg wrote: > Signed-off-by: Ronnie Sahlberg > --- > configure |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure b/configure > index fb0e18e..294c0c1 100755 > --- a/configure > +++ b/configure > @@ -2503,9 +2503,9 @@ if tes

Re: [Qemu-devel] QEMU desired libiscsi.so clashes with libiscsi.so from iscsi-initiator-utils

2012-03-03 Thread Andreas Färber
Am 03.03.2012 07:43, schrieb ronnie sahlberg: > Yes, > > Very unfortuante since libiscsi is such a nice name for a > multiplatform library what even works on win32 :-( > > I have so renamed it to libiscsiclient and sent a patch to qemu to > this list to use -liscsiclient instead of -liscsi Mind

Re: [Qemu-devel] BlockDriverState stack and BlockListeners

2012-03-03 Thread Stefan Hajnoczi
On Wed, Feb 29, 2012 at 8:38 AM, Ori Mamluk wrote: > I think the BlockFilter direction goes very well with our plans for a > replication module. > I guess it would take some discussions and time to form a solid layer for > the BlockFilters, and I'd like to move ahead in parallel with the > replica

Re: [Qemu-devel] QEMU desired libiscsi.so clashes with libiscsi.so from iscsi-initiator-utils

2012-03-03 Thread Michael Tokarev
On 03.03.2012 15:15, Andreas Färber wrote: > Am 03.03.2012 07:43, schrieb ronnie sahlberg: >> Yes, >> >> Very unfortuante since libiscsi is such a nice name for a >> multiplatform library what even works on win32 :-( >> >> I have so renamed it to libiscsiclient and sent a patch to qemu to >> this

[Qemu-devel] [PATCH] coroutine-gthread.c: Avoid threading APIs deprecated in GLib 2.31

2012-03-03 Thread Peter Maydell
The GLib threading APIs were revamped in GLib 2.31 and a number of the old interfaces were deprecated, which means they provoke compilation warnings (errors if -Werror) now. Add support for the new interfaces while retaining the old ones so we can still compile on older versions of GLib too. Signe

Re: [Qemu-devel] SPARC64: unable to boot OpenBIOS from git master

2012-03-03 Thread Blue Swirl
On Mon, Feb 27, 2012 at 06:36, Mark Cave-Ayland wrote: > Hi all, > > I've been experimenting with SPARC64 under QEMU, and with current git master > I am unable to boot OpenBIOS at all with the following error: > > OpenBIOS for Sparc64 > Unhandled Exception 0x0032 > PC = 0xffd19

Re: [Qemu-devel] [PATCH 6/6] kvm: Fix dirty tracking with large kernel page size

2012-03-03 Thread Blue Swirl
On Mon, Feb 27, 2012 at 00:36, Alexander Graf wrote: > > On 26.02.2012, at 22:41, Blue Swirl wrote: > >> On Fri, Feb 24, 2012 at 00:23, David Gibson >> wrote: >>> From: Benjamin Herrenschmidt >>> >>> If the kernel page size is larger than TARGET_PAGE_SIZE, which >>> happens for example on ppc64

Re: [Qemu-devel] How QEMU handle precise exception?

2012-03-03 Thread Blue Swirl
On Wed, Feb 29, 2012 at 12:45, 陳韋任 wrote: > Hi all, > >  I would like to know how QEMU handle precise exception. Basically, QEMU need > to maintain a well-defined guest architecture state (register + memory) before > returning to the exception handler. > >  For the guest register, does QEMU save t

[Qemu-devel] [PATCH] PCI Using macro definition instead of a simple digit

2012-03-03 Thread Wanpeng Li
PCI_CLASS_DISPLAY_VGA has already defined in hw/pci_ids.h, so use the macro definition instead of a simple digit. Signed-off-by: Wanpeng Li --- hw/pci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index fe71666..274d86d 100644 --- a/hw/pci.c +++

Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME

2012-03-03 Thread Hector Oron
Hello, 2012/2/22 Peter Maydell : > Ping? In case it helps, I have successfully tested this patch running adduser on Debian armhf target emulated via qemu-arm-static. Tested-by: Hector Oron > On 3 February 2012 13:53, Peter Maydell wrote: >> These patches add support for the prctl options PR_G

[Qemu-devel] Support for Nested Paging

2012-03-03 Thread Ankur Agrawal
Hi, I am a student currently working on development of a Hypervisor for JOS Operating System. I run JOS over QEMU's emulation of x86 architecture. Currently I am planning to add Nested Page Table support to JOS. Does QEMU emulate the Nested Page Tables implemented by AMD-V architecture or the

Re: [Qemu-devel] [PATCH v1 1/1] mips: properly compute hflags and fcr0 on cpu reset

2012-03-03 Thread Andreas Färber
Am 02.03.2012 22:03, schrieb Meador Inge: > Currently 'cpu_reset' doesn't fully compute all of the needed > HFLAGs and fails to setup fcr0 after clearing the CPU state. > This can cause instruction exceptions. For example, using > 'madd.d' on machines that should support it is kindly greeted > wit

Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]

2012-03-03 Thread 陳韋任
> Can anyone explain their relationship and difference among them? It > is very appreciated if you can make some comments. thanks. I think IRQ number, interrupt number are quite similar things. You can check PIC [1] first, especially 8259A [2]. When a device raise an interrupt, the interrupt is

Re: [Qemu-devel] [PATCH 3/4] net: split hostname and service by last colon

2012-03-03 Thread Laine Stump
On 03/02/2012 05:35 AM, Kevin Wolf wrote: > Am 02.03.2012 10:58, schrieb Amos Kong: >> On 02/03/12 11:38, Amos Kong wrote: > --- a/net.c > +++ b/net.c > @@ -84,7 +84,7 @@ static int get_str_sep(char *buf, int buf_size, > const char **pp, int sep) > const char *p, *p1;

[Qemu-devel] i.MX support

2012-03-03 Thread Pierre Ficheux
Hi, I'm looking for information about ARM/i.MX support in QEMU (i.MX23). I've found some patches around but I didn't find anything in the Git tree. Here is a discussion from 2011 about i.MX31 patches: http://comments.gmane.org/gmane.comp.emulators.qemu/125932 Any idea ? regards -- Pierre

Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]

2012-03-03 Thread Peter Maydell
2012/3/3 Zhi Yong Wu : > thanks a lot for your help, they are very in theory.:). actually these > concepts all exist in QEMU. I would like to know how they work > together. It's a mess. qemu_irq is the most fundamental data type we use to model a general 'pin' or 'signal' line; despite the name it

[Qemu-devel] [PATCH] PCI Using macro definition instead of a simple digit

2012-03-03 Thread Wanpeng Li
PCI_CLASS_DISPLAY_VGA has already defined in hw/pci_ids.h, so use the macro definition instead of a simple digit. Signed-off-by: Wanpeng Li --- hw/pci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index fe71666..274d86d 100644 --- a/hw/pci.c +++

Re: [Qemu-devel] [PATCH v1 1/1] mips: properly compute hflags and fcr0 on cpu reset

2012-03-03 Thread Meador Inge
On 03/03/2012 10:45 AM, Andreas Färber wrote: > Am 02.03.2012 22:03, schrieb Meador Inge: >> Currently 'cpu_reset' doesn't fully compute all of the needed >> HFLAGs and fails to setup fcr0 after clearing the CPU state. >> This can cause instruction exceptions. For example, using >> 'madd.d' on ma

[Qemu-devel] [PATCH] Fix build on FreeBSD

2012-03-03 Thread Nathan Whitehorn
Fix a missing header required to build on recent FreeBSD. Signed-off-by: Nathan Whitehorn --- os-posix.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/os-posix.c b/os-posix.c index dbf3b24..83b14a0 100644 --- a/os-posix.c +++ b/os-posix.c @@ -45,6 +45,10 @@ #inclu

[Qemu-devel] [PATCH] PPC: Add PIR register to POWER7 CPU

2012-03-03 Thread Nathan Whitehorn
The POWER7 emulation is missing the Processor Identification Register, mandatory in recent POWER CPUs, that is required for SMP on at least some operating systems (e.g. FreeBSD) to function properly. This patch copies the existing PIR code from the other CPUs that implement it. Signed-off-by:

[Qemu-devel] [PATCH] Fix build with stub USB backend

2012-03-03 Thread Nathan Whitehorn
Recent changes to the signature of usb_host_device_open() have broken the stub USB backend. This updates the stub version of usb_host_device_open() to correspond to the new API. Signed-off-by: Nathan Whitehorn --- usb-stub.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --

[Qemu-devel] [PATCH] PPC: Fix large page support in TCG

2012-03-03 Thread Nathan Whitehorn
Fix large page support in TCG. The old code would overwrite the large page table entry with the fake 4 KB one generated here whenever the ref/change bits were updated, causing it to point to the wrong area of memory. Instead of creating a fake PTE, just update the real address at the end. Sign

Re: [Qemu-devel] [PULL 00/12] target-xtensa queue

2012-03-03 Thread Blue Swirl
On Sun, Feb 26, 2012 at 17:34, Max Filippov wrote: >> Hi. >> >> This is a pull request for my current target-xtensa queue. >> Changes in the queue are: >> - 'info tlb' monitor command; >> - debug option implementation; >> - a few minor fixes. > > ping? Thanks, pulled. >> >> Debug option series h

Re: [Qemu-devel] [PATCH] usb: Fix signature of stub usb_host_device_open

2012-03-03 Thread Blue Swirl
Thanks, applied. On Thu, Mar 1, 2012 at 09:43, Jan Kiszka wrote: > This was a breakage of 3741715cf2. > > Signed-off-by: Jan Kiszka > --- >  usb-stub.c |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/usb-stub.c b/usb-stub.c > index 9c3fcea..b4e10c1 100644 > --- a/u

Re: [Qemu-devel] [PULL 0/4] arm-devs queue

2012-03-03 Thread Blue Swirl
On Fri, Mar 2, 2012 at 12:07, Peter Maydell wrote: > Hi; this is a pullreq for the arm-devs queue; nothing hugely exciting > here unless you count the final part of the -dtb support. Please pull. Thanks, pulled. > thanks > -- PMM > > The following changes since commit 7c51c1aa03a52b9fd75ed1ade2e

Re: [Qemu-devel] i.MX support

2012-03-03 Thread Andreas Färber
Hi, Am 02.03.2012 17:29, schrieb Pierre Ficheux: > I'm looking for information about ARM/i.MX support in QEMU (i.MX23). > I've found some patches around but I didn't find anything in the Git tree. > > Here is a discussion from 2011 about i.MX31 patches: > > http://comments.gmane.org/gmane.comp.e

Re: [Qemu-devel] [PATCH] Fix build with stub USB backend

2012-03-03 Thread Andreas Färber
Am 03.03.2012 17:38, schrieb Nathan Whitehorn: > Recent changes to the signature of usb_host_device_open() have broken > the stub USB backend. This updates the stub version of > usb_host_device_open() to correspond to the new API. > > Signed-off-by: Nathan Whitehorn Looks like a duplicate, a sim

Re: [Qemu-devel] [PATCH] PPC: Add PIR register to POWER7 CPU

2012-03-03 Thread Andreas Färber
Am 03.03.2012 17:36, schrieb Nathan Whitehorn: > The POWER7 emulation is missing the Processor Identification Register, > mandatory in recent POWER CPUs, that is required for SMP on at least > some operating systems (e.g. FreeBSD) to function properly. This patch > copies the existing PIR code from

Re: [Qemu-devel] [PATCH] PPC: Fix large page support in TCG

2012-03-03 Thread Andreas Färber
Am 03.03.2012 17:39, schrieb Nathan Whitehorn: > Fix large page support in TCG. The old code would overwrite the large > page table entry with the fake 4 KB > one generated here whenever the ref/change bits were updated, causing it > to point to the wrong area of memory. Instead of creating a fake

Re: [Qemu-devel] Support for Nested Paging

2012-03-03 Thread 陳韋任
> Does QEMU emulate the Nested Page Tables implemented by AMD-V architecture or > the Intel VT? I think the answer is no. > Also I am trying to understand the QEMU source with an objective of > participating in the Google Summer of Code and contributing to QEMU. I have > tried tracing throu

Re: [Qemu-devel] [PATCH 7/7] pseries: Configure PCI bridge using properties

2012-03-03 Thread Andreas Färber
Am 28.02.2012 04:18, schrieb David Gibson: > From: Alexey Kardashevskiy > > Currently, the function spapr_create_phb() uses its parameters to > initialize the correct memory windows for the new PCI Host Bridge > (PHB). This is not the way things are supposed to be done with qdevs, > and means yo

Re: [Qemu-devel] [PATCH] Add -netdev to man page

2012-03-03 Thread Miroslav Rezanina
- Original Message - > From: "Markus Armbruster" > To: "Miroslav Rezanina" > Cc: qemu-devel@nongnu.org > Sent: Thursday, March 1, 2012 4:50:35 PM > Subject: Re: [Qemu-devel] [PATCH] Add -netdev to man page > > Miroslav Rezanina writes: > > > There's missing -netdev description in the

Re: [Qemu-devel] [PATCH] PCI Using macro definition instead of a simple digit

2012-03-03 Thread Andreas Färber
Am 03.03.2012 13:38, schrieb Wanpeng Li: > PCI_CLASS_DISPLAY_VGA has already defined in hw/pci_ids.h, so use the > macro definition instead of a simple digit. > > Signed-off-by: Wanpeng Li Number matches, Acked-by: Andreas Färber Cc'ing mst. There's probably much more uses of magic number in

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Alexander Graf
On 02.03.2012, at 18:49, Peter Maydell wrote: > On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: >> I found that running a debian arm5 bash with qemu runs into varying >> problems with -R but works without. > > So I had a look at this this afternoon, and what seems to be happening > is t

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Alexander Graf
On 03.03.2012, at 22:02, Alexander Graf wrote: [...] > > $ qemu-arm -R $(( 0x1000 )) ./brk > mmap: 0x935000 > current brk: 0x > -8000 ---p 00:00 0 > 8000-9000 r-xp 08:09 1248935408 /brk > 9000-0001 ---p 00:00 0 > 000100

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Paul Brook
> In QEMU with -R > > $ qemu-arm -R $(( 0x1000 )) ./brk > mmap: 0x935000 > current brk: 0x > -8000 ---p 00:00 0 > 8000-9000 r-xp 08:09 1248935408 /brk > 9000-0001 ---p 00:00 0 > 0001-00011000 r--p 08:09 12489

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread malc
On Sat, 3 Mar 2012, Alexander Graf wrote: > > On 02.03.2012, at 18:49, Peter Maydell wrote: > > > On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: > >> I found that running a debian arm5 bash with qemu runs into varying > >> problems with -R but works without. > > > > So I had a look at

[Qemu-devel] [PATCH] linux-user: map at TARGET_UNMAPPED_BASE with reserved_va

2012-03-03 Thread Alexander Graf
When mmap()'ing memory somewhere where it's not allowed, we should not default to the "next free page" which could be right after brk()'ed memory, but rather at TARGET_UNMAPPED_BASE, which ensures that brk() can extend its space later on. Reported-by: Bernhard M. Wiedemann Signed-off-by: Alexande

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Andreas Schwab
Paul Brook writes: >> 15545 brk(NULL) = 0x00012000 >> 15545 brk(0x00812000) = 0x00012000 > > This is your bug. According to the trace above, the brk call fails, but > returns success anyway. A quick look at do_brk confirms this suspicion. This is not a bug. The brk syscall always returns the

[Qemu-devel] [PATCH] linux-user: guard mmap_next_start from specific maps

2012-03-03 Thread Alexander Graf
If the guest process tells us to map at a specific address, we shouldn't increase the "last automatic mapping ended here" variable. This patch brings the reserved_va code in line with the default case. Signed-off-by: Alexander Graf --- linux-user/mmap.c |6 +- 1 files changed, 5 inserti

[Qemu-devel] [PATCH v2] linux-user: map at TARGET_UNMAPPED_BASE with reserved_va

2012-03-03 Thread Alexander Graf
When mmap()'ing memory somewhere where it's not allowed, we should not default to the "next free page" which could be right after brk()'ed memory, but rather at TARGET_UNMAPPED_BASE, which ensures that brk() can extend its space later on. Reported-by: Bernhard M. Wiedemann Signed-off-by: Alexande

Re: [Qemu-devel] [PATCH] linux-user: map at TARGET_UNMAPPED_BASE with reserved_va

2012-03-03 Thread Paul Brook
> When mmap()'ing memory somewhere where it's not allowed, we should not > default to the "next free page" which could be right after brk()'ed memory, > but rather at TARGET_UNMAPPED_BASE, which ensures that brk() can extend its > space later on. NACK, As discussed on IRC. Effectively prevents mm

Re: [Qemu-devel] [PATCH] linux-user: guard mmap_next_start from specific maps

2012-03-03 Thread Paul Brook
> If the guest process tells us to map at a specific address, we shouldn't > increase the "last automatic mapping ended here" variable. That sounds reasonable, in fact I'd go further. Tests on an x86-linux machine (both 32-bit and 64-bit userspace) show that if the requested address is not avai

[Qemu-devel] NBD broken ?

2012-03-03 Thread Laurent Vivier
Hi, since commit ae255e523, qemu with NBD hangs at startup (when it tries to access the disk): commit ae255e523c256cf0708f1c16cb946ff96340a800 Author: Paolo Bonzini Date: Thu Sep 8 14:28:59 2011 +0200 nbd: switch to asynchronous operation Signed-off-by: Paolo Bonzini Reverting

[Qemu-devel] [PATCH] linux-user: resolve reserved_va vma downwards

2012-03-03 Thread Alexander Graf
After consulting with Paul Brook, we concluded that it's best to search the VMA space downwards, so that we don't even get the chance to conflict with the brk range. This patch resolves a bunch of allocation conflicts when using -R. Signed-off-by: Alexander Graf --- This replaces the other pat

[Qemu-devel] [Bug 946043] [NEW] Serial Named Pipe Unrecognized Windows 7

2012-03-03 Thread gentry
Public bug reported: I created a named pipe serial hardware and supplied '/tmp/debug' which I created using mkfifo This is the snippet from ps -aux -chardev pipe,id=charserial0,path=/tmp/debug -device isa-serial,chardev=charserial0,id=serial0 failure@ubuntu1:~$ ls -al /tmp/debug* prwxrwxrwx 1 j

Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]

2012-03-03 Thread Zhi Yong Wu
On Sun, Mar 4, 2012 at 1:12 AM, Peter Maydell wrote: > 2012/3/3 Zhi Yong Wu : >> thanks a lot for your help, they are very in theory.:). actually these >> concepts all exist in QEMU. I would like to know how they work >> together. > > It's a mess. qemu_irq is the most fundamental data type we > us

Re: [Qemu-devel] BlockDriverState stack and BlockListeners

2012-03-03 Thread Ori Mamluk
On 03/03/2012 13:46, Stefan Hajnoczi wrote: On Wed, Feb 29, 2012 at 8:38 AM, Ori Mamluk wrote: I think the BlockFilter direction goes very well with our plans for a replication module. I guess it would take some discussions and time to form a solid layer for the BlockFilters, and I'd like to mo

[Qemu-devel] KVM/QEMU: Support executing from flash device

2012-03-03 Thread Jordan Justen
On Tue, Oct 25, 2011 at 00:47, Avi Kivity wrote: > The core issue that kvm (the kernel part) supports two styles of memory: > read/write RAM, and read/write MMIO.  ROM wants writes to be ignored, > and rom/device wants reads serviced from memory and writes serviced by > userspace (as MMIO). > > It

[Qemu-devel] [PATCH] target-mips: Fix some helper functions (VR54xx multiplication)

2012-03-03 Thread Stefan Weil
Commits b5dc7732e1cc2fb549e48b7b5d664f2c79628e2e and be24bb4f3007c3e07cbf1934f7e781493d876ab7 optimized the code and removed the correct setting of t0. Fix this. gcc-4.7 detected this bug because parameter arg1 was unused but set in set_HIT0_LO and set_HI_LOT0. Cc: Aurelien Jarno Signed-off-by:

[Qemu-devel] [PATCH v2] Add -netdev to man page

2012-03-03 Thread Miroslav Rezanina
There's missing -netdev description in the man page for qemu. As this is recommended way to create network backend, lack of documentation can discourage its usage. Signed-off-by: Miroslav Rezanina V2: - Fixed spelling errors - Fixed net and dhcpstart range values Patch: - diff --git a/qemu-