Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-16 Thread Kevin O'Connor
On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: >> Something that is likely related, I am seeing reboot failures in >> seabios's pmm_free. Immediately after loading gpxe, seabios is in an >> endless loop there, likely due to memory corruption. >> >> This is with -smp 2, rebooting F

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Jamie Lokier
Anthony Liguori wrote: > Kevin Wolf wrote: > >We're leaking file descriptors to child processes. Set FD_CLOEXEC on file > >descriptors that don't need to be passed to children to stop this > >misbehaviour. > > > >Signed-off-by: Kevin Wolf > > > >pid = fork(); >if (pid == 0) { >

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Jamie Lokier
Ian Molton wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jamie Lokier wrote: > > Ian Molton wrote: > >> Heres my patch to virtio-console. The device is now specified like this: > >> > >> - -chardev file,path=/path/to/testfile,id=test > >> - -device virtio-console-pci,chardev=test >

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Anthony Liguori
Kevin Wolf wrote: We're leaking file descriptors to child processes. Set FD_CLOEXEC on file descriptors that don't need to be passed to children to stop this misbehaviour. Signed-off-by: Kevin Wolf pid = fork(); if (pid == 0) { int open_max = sysconf(_SC_OPEN_MAX), i;

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Ian Molton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jamie Lokier wrote: > Ian Molton wrote: >> Heres my patch to virtio-console. The device is now specified like this: >> >> - -chardev file,path=/path/to/testfile,id=test >> - -device virtio-console-pci,chardev=test Note, I think the patch above is brok

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Jamie Lokier
Jamie Lokier wrote: > Blue Swirl wrote: > > On Mon, Nov 16, 2009 at 2:47 PM, Kevin Wolf wrote: > > > Am 13.11.2009 22:05, schrieb Blue Swirl: > > >> On Fri, Nov 13, 2009 at 5:17 PM, Kevin Wolf wrote: > > >>> We're leaking file descriptors to child processes. Set FD_CLOEXEC on > > >>> file > > >>

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Jamie Lokier
Blue Swirl wrote: > On Mon, Nov 16, 2009 at 2:47 PM, Kevin Wolf wrote: > > Am 13.11.2009 22:05, schrieb Blue Swirl: > >> On Fri, Nov 13, 2009 at 5:17 PM, Kevin Wolf wrote: > >>> We're leaking file descriptors to child processes. Set FD_CLOEXEC on file > >>> descriptors that don't need to be passe

Re: [Qemu-devel] QEMU redesigned for MPI (Message Passing Interface)

2009-11-16 Thread Jamie Lokier
Mulyadi Santosa wrote: > Hi Victor... > > On 11/13/09, Victor Vasilchenko wrote: > > The only BIG question - what virtualization software can support MPI to > > effectively work on cluster ? > > > > I am asking this question to QEMU team cause I believe QEMU can be the one. > > If you have any id

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-16 Thread Anthony Liguori
Jamie Lokier wrote: Gerd Hoffmann wrote: On 11/16/09 20:24, Anthony Liguori wrote: If we were going to introduce a light weight block protocol like this, I'd rather it be implemented in SeaBIOS as a block driver. Ok. That would mean to replace the option rom with a seabios patch

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/16 Blue Swirl : > On Mon, Nov 16, 2009 at 7:19 PM, Artyom Tarasenko > wrote: >> 2009/11/16 Blue Swirl : >>> On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko >>> wrote: 2009/11/15 Blue Swirl : > On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko > wrote: >> 2009/11/14 Blu

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Jamie Lokier
Ian Molton wrote: > Heres my patch to virtio-console. The device is now specified like this: > > - -chardev file,path=/path/to/testfile,id=test > - -device virtio-console-pci,chardev=test It'd be nice if some options on the qemu command line (or config file) resulted in the guest kernel getting e

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/16 Jamie Lokier : > Artyom Tarasenko wrote: >> I don't know, how the real sun4m reacts in the case where irq stays >> on, not being cleared. >> It can not be though that it would try to process irq for every next >> tick. The CPU must have some time to clear the pending irq, so it must >> b

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-16 Thread Jamie Lokier
Gerd Hoffmann wrote: > On 11/16/09 20:24, Anthony Liguori wrote: > >If we were going to introduce a light weight block protocol like this, > >I'd rather it be implemented in SeaBIOS as a block driver. > > Ok. That would mean to replace the option rom with a seabios patch. > The qemu code will be

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Jamie Lokier
Artyom Tarasenko wrote: > I don't know, how the real sun4m reacts in the case where irq stays > on, not being cleared. > It can not be though that it would try to process irq for every next > tick. The CPU must have some time to clear the pending irq, so it must > be edge triggered too, at least in

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Jamie Lokier
Blue Swirl wrote: > This patch makes the interrupts latch: ignore source clearing the > interrupt. It seems be ~okay for my usual test setup, but does not > help NetBSD 1.3.3. Some other NetBSD tests are changed, but they > crashed before. I'd expect the worst that would happen is "spurious interr

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Jamie Lokier
Artyom Tarasenko wrote: > 2009/11/15 Blue Swirl : > > On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko > > wrote: > >> 2009/11/14 Blue Swirl : > >>> On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko > >>> wrote: > According to NCR89C105 documentation > http://www.ibiblio.org/pub/histor

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Blue Swirl
On Mon, Nov 16, 2009 at 7:19 PM, Artyom Tarasenko wrote: > 2009/11/16 Blue Swirl : >> On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko >> wrote: >>> 2009/11/15 Blue Swirl : On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko wrote: > 2009/11/14 Blue Swirl : >> On Sat, Nov 14, 20

Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was OK under SUSE-10.3)

2009-11-16 Thread Sergei Steshenko
--- On Mon, 11/16/09, Sergei Steshenko wrote: > From: Sergei Steshenko > Subject: Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was > OK under SUSE-10.3) > To: "Blue Swirl" > Cc: qemu-devel@nongnu.org > Date: Monday, November 16, 2009, 8:22 AM > > > --- On Mon, 11/16/09, B

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Gerd Hoffmann
On 11/16/09 19:53, Paul Brook wrote: We can also limit the amout of host memory we allow the guest to consume, so uncooperative guests can't push the host into swap. This is not implemented today, indicating that it hasn't been a problem so far. Capping the amount of memory required for a tran

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Ryan Harper
* Gerd Hoffmann [2009-11-16 14:42]: > Hi, > > >>Suggestions for other guests which might be sensitive to changes like > >>this? Maybe even some which don't work with the current lsi emulation? > > > >XP 64-bit, 2k3 32/64, 2k8 32/64 > > > >64-bit is important because the DMA mode of the lsi dri

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-16 Thread Anthony Liguori
Gerd Hoffmann wrote: On 11/16/09 20:24, Anthony Liguori wrote: If we were going to introduce a light weight block protocol like this, I'd rather it be implemented in SeaBIOS as a block driver. Ok. That would mean to replace the option rom with a seabios patch. The qemu code will be unmodifie

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Gerd Hoffmann
Hi, Suggestions for other guests which might be sensitive to changes like this? Maybe even some which don't work with the current lsi emulation? XP 64-bit, 2k3 32/64, 2k8 32/64 64-bit is important because the DMA mode of the lsi driver is different when the 64-bit versions of the win drive

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-16 Thread Gerd Hoffmann
On 11/16/09 20:24, Anthony Liguori wrote: If we were going to introduce a light weight block protocol like this, I'd rather it be implemented in SeaBIOS as a block driver. Ok. That would mean to replace the option rom with a seabios patch. The qemu code will be unmodified though (except for t

[Qemu-devel] [PATCH] vga-pci: Fix access to linear framebuffer

2009-11-16 Thread Stefan Weil
Anthony Liguori's patch fixes the problems with vga display in graphical mode and SeaBIOS. I only adapted some values for vga-pci. Signed-off-by: Stefan Weil --- hw/vga-pci.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/vga-pci.c b/hw/vga-pci.c index 234d581.

[Qemu-devel] Re: Build failure on mingw

2009-11-16 Thread malc
On Mon, 16 Nov 2009, Sebastian Herbszt wrote: > malc wrote: > > On Sat, 14 Nov 2009, Sebastian Herbszt wrote: [..snip..] > > > > Neither is/was correct, does escaping $@ in rules make (i.e. \$@) have > > any effect? > > Changing it to \$@ makes it compile again: > > $ grep MMD rules.mak

[Qemu-devel] Re: Build failure on mingw

2009-11-16 Thread Sebastian Herbszt
malc wrote: On Sat, 14 Nov 2009, Sebastian Herbszt wrote: v0.11.0-rc0-1630-g51cc2e7 fails to build on mingw with gcc version 3.4.5 (mingw32 special) and GNU Make version 3.79.1. gcc -I/home/sh/vm/qemu/v0.11.0-rc0-1630-g51cc2e7/slirp -Wold-style-definition -I. -I/home/sh/vm/qemu/v0.11.0-rc0-163

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-16 Thread Anthony Liguori
Gerd Hoffmann wrote: Hi, How about this one? extboot rom and interface are unmodified. The windup in qemu is very different though. It is now implemented as isa bus device (which is what extboot actually is). It is properly integrated into qdev. It is much less invasive than the previous

Re: [Qemu-devel] Standard vga breakage

2009-11-16 Thread Anthony Liguori
Stefan Weil wrote: malc schrieb: On Sun, 15 Nov 2009, Gleb Natapov wrote: On Sun, Nov 15, 2009 at 06:22:40PM +0300, malc wrote: On Sun, 15 Nov 2009, Blue Swirl wrote: On Sun, Nov 15, 2009 at 3:25 AM, malc wrote: debian-503-i386-netinst.iso when booted on

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Ryan Harper
* Gerd Hoffmann [2009-11-16 12:38]: > On 11/11/09 17:38, Paul Brook wrote: > >>>It may be that it's > >>>hard/impossible to get both command queueing and zero-copy. > >> > >>I have it working. > > > >More likely you have a nasty hack that happens to work with the Linux > >drivers. > > Linux wor

[Qemu-devel] [PATCH] configure: Fix spelling in comment and rework the comment

2009-11-16 Thread Stefan Weil
* Replace vill -> will. * Comment was formatted to make it more readable and to conform to the coding standard, too. * Description of foo="" was completed. Signed-off-by: Stefan Weil --- configure | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/conf

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Paul Brook
On Monday 16 November 2009, Gerd Hoffmann wrote: > On 11/11/09 17:38, Paul Brook wrote: > >>> That cap is important. > >>> For scsi-generic you probably don't have a choice because of the way > >>> the kernel interface works. > >> > >> Exactly. And why is the cap important for scsi-disk if scsi-ge

Re: [Qemu-devel] Standard vga breakage

2009-11-16 Thread Stefan Weil
malc schrieb: > On Sun, 15 Nov 2009, Stefan Weil wrote: > > >> malc schrieb: >> >>> On Sun, 15 Nov 2009, Gleb Natapov wrote: >>> > > [..snip..] > > >> Here is a summary of my analysis of this problem: >> >> Graphics mode memory (ram 0xe000 ...) is not mapped >> in QEMU address

[Qemu-devel] [PATCH 1/2] extboot: add option rom.

2009-11-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile|2 +- pc-bios/optionrom/Makefile |2 +- pc-bios/optionrom/extboot.S | 680 +++ 3 files changed, 682 insertions(+), 2 deletions(-) create mode 100644 pc-bios/optionrom/extboot.S diff

[Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-16 Thread Gerd Hoffmann
Hi, How about this one? extboot rom and interface are unmodified. The windup in qemu is very different though. It is now implemented as isa bus device (which is what extboot actually is). It is properly integrated into qdev. It is much less invasive than the previous version. The patch jus

[Qemu-devel] [PATCH 2/2] extboot: qemu code.

2009-11-16 Thread Gerd Hoffmann
booting from scsi + virtio works now. usage: -device extboot,drive= where is the name of your boot drive. You can either use the names qemu assignes by default (virtio0, scsi0-hd0, ...) or explitly name your drives via '-drive id=,...' and use that one. Signed-off-by: Gerd Hoffmann --- Makef

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Gerd Hoffmann
On 11/11/09 17:38, Paul Brook wrote: That cap is important. For scsi-generic you probably don't have a choice because of the way the kernel interface works. Exactly. And why is the cap important for scsi-disk if scsi-generic does fine without? With scsi-generic you're at the mercy of what th

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Ian Molton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerd Hoffmann wrote: > Maybe ... > >-chardev socket,id=egd,host=egd.domain.tld,port=whatever >-device virtio-rng,chardev=egd I've had a go at modifying virtio-console.c to use these semantics, attached below. I'd appreciate it if you could l

Re: [Qemu-devel] QEMU redesigned for MPI (Message Passing Interface)

2009-11-16 Thread Anthony Liguori
Victor Vasilchenko wrote: Good day, I've got an idea in my head and can't get rid of it - neither can I find any solution on web. The idea is to use the Virtualization Software with the purpose OPPOSITE to it's natural way. The practical example below will explain it completely: 1) we tak

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/16 Blue Swirl : > On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko > wrote: >> 2009/11/15 Blue Swirl : >>> On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko >>> wrote: 2009/11/14 Blue Swirl : > On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko > wrote: >> According to N

[Qemu-devel] [PATCH v2 9/9] Do GSI routing

2009-11-16 Thread Glauber Costa
To follow correctly what our bios ACPI tables say, we have to be able to program our irqchips with GSI routing mappings. This support is already in qemu-kvm Signed-off-by: Glauber Costa --- kvm-all.c |6 ++- kvm.h |3 + target-i386/kvm.c | 118 +++

[Qemu-devel] [PATCH v2 8/9] Initialize in-kernel irqchip

2009-11-16 Thread Glauber Costa
Now that we have all devices set up, this patch initializes the irqchip. This is dependant on the io-thread, since we need someone to pull ourselves out of the halted state. I believe this should be the default when we are running over the io-thread. Later on, I plan to post a patch that makes it

[Qemu-devel] [PATCH v2 7/9] provide apic-kvm

2009-11-16 Thread Glauber Costa
This patch provides the file apic-kvm.c, which implements a schim over the kvm in-kernel APIC. Signed-off-by: Glauber Costa --- Makefile.target |2 +- hw/apic-kvm.c | 157 + hw/pc.c |6 ++- hw/pc.h |2 + k

[Qemu-devel] [PATCH v2 5/9] Don't call apic functions directly from kvm code

2009-11-16 Thread Glauber Costa
It is actually not necessary to call a tpr function to save and load cr8, as cr8 is part of the processor state, and thus, it is much easier to just add it to CPUState. As for apic base, wrap kvm usages, so we can call either the qemu device, or the in kernel version. Signed-off-by: Glauber Costa

[Qemu-devel] [PATCH v2 6/9] export kvm_put_mp_state

2009-11-16 Thread Glauber Costa
We'll use it from inside the in-kernel apic chip, so get it into a header file. Signed-off-by: Glauber Costa --- target-i386/cpu.h |4 target-i386/kvm.c |2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index e5470f7..c671894

[Qemu-devel] [PATCH v2 4/9] provide i8259-kvm

2009-11-16 Thread Glauber Costa
This patch provides the file i8259-kvm.c, which implements a schim over the kvm in-kernel PIC. Signed-off-by: Glauber Costa --- Makefile.target |2 +- hw/i8259-kvm.c | 112 +++ hw/pc.c |8 +++- hw/pc.h |1 + kvm-al

[Qemu-devel] [PATCH v2 3/9] provide apic_set_irq_delivered

2009-11-16 Thread Glauber Costa
i8259 chip will use it, so provide it, and export it through pc.h Signed-off-by: Glauber Costa --- hw/apic.c |5 + hw/pc.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 87e7dc0..482bb1e 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -38

[Qemu-devel] [PATCH v2 2/9] Provide ioapic-kvm

2009-11-16 Thread Glauber Costa
This patch provides the file ioapic-kvm.c, which implements a schim over the kvm in-kernel IO APIC. Signed-off-by: Glauber Costa --- Makefile.target |2 + hw/ioapic-kvm.c | 90 +++ hw/pc.c |7 - hw/pc.h |2 + k

[Qemu-devel] [PATCH v2 1/9] introduce VMSTATE_U64

2009-11-16 Thread Glauber Costa
Slightly modified version of a patch already included in qemu-kvm: This is a patch actually written by Juan, which, according to him, he plans on posting to qemu.git. Problem is that linux defines u64 in a way that is type-uncompatible with uint64_t. I am including it here, because it is a depend

[Qemu-devel] [PATCH v2 0/9] in-kernel irqchip

2009-11-16 Thread Glauber Costa
This is the second version of the in-kernel irqchip patchset. It is pretty straightforward, and basically the same thing that was already in staging. Just now kvm_put_mp_state() became i386-specific, and had to go into a header.

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Avi Kivity
On 11/16/2009 06:21 PM, Blue Swirl wrote: How exactly would you do that? The only way I see to do it would be using void*, but I'm not sure if this really is an improvement. Instead of sockaddr_in vs. sockaddr and the lame casts in between, we could have QSockAddr which magically works.

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
> It looks like something is depending on this broken behaviour. Or that I shouldn't have used bitwise "not" where boolean "not" were actually meant. cpu_set_irq() is not the source of spurious interrupts, sorry for the noise.

Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was OK under SUSE-10.3)

2009-11-16 Thread Sergei Steshenko
--- On Mon, 11/16/09, Blue Swirl wrote: > From: Blue Swirl > Subject: Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was > OK under SUSE-10.3) > To: "Sergei Steshenko" > Cc: qemu-devel@nongnu.org > Date: Monday, November 16, 2009, 7:54 AM > On Mon, Nov 16, 2009 at 6:42 AM, >

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Blue Swirl
On Mon, Nov 16, 2009 at 2:47 PM, Kevin Wolf wrote: > Am 13.11.2009 22:05, schrieb Blue Swirl: >> On Fri, Nov 13, 2009 at 5:17 PM, Kevin Wolf wrote: >>> We're leaking file descriptors to child processes. Set FD_CLOEXEC on file >>> descriptors that don't need to be passed to children to stop this

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Blue Swirl
On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko wrote: > 2009/11/15 Blue Swirl : >> On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko >> wrote: >>> 2009/11/14 Blue Swirl : On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko wrote: > According to NCR89C105 documentation > http:/

Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was OK under SUSE-10.3)

2009-11-16 Thread Blue Swirl
On Mon, Nov 16, 2009 at 6:42 AM, Sergei Steshenko wrote: > Hello All, > > I've been routinely building QEMU up to (inclusive) version 0.10.6 on my > SUSE-10.3 box - in the framework of my own AppsFromScratch. > > Over the weekend I've upgraded to SUSE-11.1 and now the build fails with > these mess

[Qemu-devel] [PATCH v2] Don't leak file descriptors

2009-11-16 Thread Kevin Wolf
We're leaking file descriptors to child processes. Set FD_CLOEXEC on file descriptors that don't need to be passed to children to stop this misbehaviour. Signed-off-by: Kevin Wolf --- block/raw-posix.c |2 +- gdbstub.c |6 +++ kvm-all.c |2 +- migration-tcp.c|

Re: [Qemu-devel] Re: [PATCH 01/12] TCG "sync" op

2009-11-16 Thread Alexander Graf
Paul Brook wrote: >>> While sync appears attractive as a quick hack to achieve this, I think it >>> is liable to be abused, and cause us serious pain long-term. If you need >>> an easy solution then use ld/st (as with ARM VFP registers). If you want >>> a good solution then fix whichever bit of TCG

[Qemu-devel] Re: [RFC] KVM Fault Tolerance: Kemari for KVM

2009-11-16 Thread Avi Kivity
On 11/16/2009 04:18 PM, Fernando Luis Vázquez Cao wrote: Avi Kivity wrote: On 11/09/2009 05:53 AM, Fernando Luis Vázquez Cao wrote: Kemari runs paired virtual machines in an active-passive configuration and achieves whole-system replication by continuously copying the state of the system (dirt

Re: [Qemu-devel] Re: [PATCH 01/12] TCG "sync" op

2009-11-16 Thread Paul Brook
> > While sync appears attractive as a quick hack to achieve this, I think it > > is liable to be abused, and cause us serious pain long-term. If you need > > an easy solution then use ld/st (as with ARM VFP registers). If you want > > a good solution then fix whichever bit of TCG makes accessing a

[Qemu-devel] Target map while loading elf binary

2009-11-16 Thread Boyapati, Anitha
Can someone try with better explanation for offset calculation that is passed to target_mmap() ? More specifically, I am facing an "invalid argument" error while trying to load a simple elf binary. When debugged, it turned out that the check "if(offset & ~TARGET_PAGE_MASK)" throws this error - l

[Qemu-devel] Re: [RFC] KVM Fault Tolerance: Kemari for KVM

2009-11-16 Thread Fernando Luis Vázquez Cao
Avi Kivity wrote: On 11/09/2009 05:53 AM, Fernando Luis Vázquez Cao wrote: Kemari runs paired virtual machines in an active-passive configuration and achieves whole-system replication by continuously copying the state of the system (dirty pages and the state of the virtual devices) from the act

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-16 Thread Avi Kivity
On 11/16/2009 03:36 PM, Avi Kivity wrote: On 11/14/2009 09:47 PM, Kevin O'Connor wrote: Hi, On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The scenario is when failing to boot from network and falling back to bootin

Re: [Qemu-devel] Re: [PATCH 01/12] TCG "sync" op

2009-11-16 Thread Alexander Graf
Paul Brook wrote: > On Thursday 22 October 2009, Aurelien Jarno wrote: > >> On Wed, Oct 21, 2009 at 03:52:22PM +0200, Ulrich Hecht wrote: >> >>> sync allows concurrent accesses to locations in memory through different >>> TCG variables. This comes in handy when you are emulating CPU registe

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-16 Thread Avi Kivity
On 11/14/2009 09:47 PM, Kevin O'Connor wrote: Hi, On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The scenario is when failing to boot from network and falling back to booting from hard-disk (-boot nc). The cause

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Gerd Hoffmann
On 11/16/09 13:28, Ian Molton wrote: I've done something similar (below) My commandline looks like: - -virtiorng dev=/dev/foo,rate=1234 I added some properties to my driver which are obviously then filled in from the options code, and I do my init like this: There is no need for a new -virt

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-16 Thread Kevin Wolf
Am 13.11.2009 22:05, schrieb Blue Swirl: > On Fri, Nov 13, 2009 at 5:17 PM, Kevin Wolf wrote: >> We're leaking file descriptors to child processes. Set FD_CLOEXEC on file >> descriptors that don't need to be passed to children to stop this >> misbehaviour. > >> -c = accept(s, (struct soc

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Ian Molton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerd Hoffmann wrote: > Hi, Hi! Thanks for your reply - I should have posted to say I'd partially solved this. I have a question though, > Use a chardev property (look at serial.c, "isa-serial" device). > > Then you'll configure it on the qemu com

[Qemu-devel] Re: [PATCH] libxl: check for early failures of qemu-dm

2009-11-16 Thread Ian Jackson
I wrote: > This patch makes xl create check whether qemu-dm has started > correctly, and causes it to fail immediately with appropriate errors > if not. There are other bugfixes too. But I sent it to the wrong list. Sorry, Ian.

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/15 Blue Swirl : > On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko > wrote: >> 2009/11/14 Blue Swirl : >>> On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko >>> wrote: According to NCR89C105 documentation http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105

Re: [Qemu-devel] virtio-rng

2009-11-16 Thread Gerd Hoffmann
Hi, in qdev_init_chardev() the return value is picked based upon the name of the device. For now, I've added a third 'if clause' to match for my driver and pass through the CharDriverState * fron vl.c for my rng driver, however I'd like to solve this properly. Ignore qdev_init_chardev() ...

[Qemu-devel] Re: [PATCH 5/7] qdev: add qdev_foreach()

2009-11-16 Thread Gerd Hoffmann
On 11/12/09 21:29, Mark McLoughlin wrote: No doubt this is the worst idea ever, but the requirement is simple - some way to iterate all NICs in the system. Doesn't have net.c a list of all vlanclientstates it could use instead? cheers, Gerd

[Qemu-devel] Re: [PATCH 3/7] net: create the VLANClientState for NICs early

2009-11-16 Thread Gerd Hoffmann
Hi, diff --git a/hw/e1000.c b/hw/e1000.c index 00f6a57..d9c9f79 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1107,11 +1107,11 @@ static int pci_e1000_init(PCIDevice *pci_dev) checksum = (uint16_t) EEPROM_SUM - checksum; d->eeprom_data[EEPROM_CHECKSUM_REG] = checksum; -d->vc =

[Qemu-devel] Re: [PATCH 2/7] qdev: add "net-client" property

2009-11-16 Thread Gerd Hoffmann
On 11/12/09 21:28, Mark McLoughlin wrote: Rather than having each NIC create it's own client, let's create the client early and pass it down to the NIC. '-device $nic,net-client=$name' doesn't work ... One advantage is that we can add parameters which only the client knows about, without havi

Re: [Qemu-devel] QEMU redesigned for MPI (Message Passing Interface)

2009-11-16 Thread Mulyadi Santosa
Hi Victor... On 11/13/09, Victor Vasilchenko wrote: > The only BIG question - what virtualization software can support MPI to > effectively work on cluster ? > > I am asking this question to QEMU team cause I believe QEMU can be the one. > If you have any ideas or experiments or information - ple