[Qemu-devel] Re: [Patch] Simplify cpu_can_run()

2010-04-12 Thread Paolo Bonzini
On 04/12/2010 08:24 AM, Jun Koi wrote: diff --git a/cpus.c b/cpus.c index 0debe77..4adb66d 100644 --- a/cpus.c +++ b/cpus.c @@ -98,9 +98,7 @@ static void do_vm_stop(int reason) static int cpu_can_run(CPUState *env) { -if (env->stop) -return 0; -if (env->stopped || !vm_running

[Qemu-devel] Re: [PATCH 0/8] (v2) chardev, virtio-console: flow control, error handling, fixes

2010-04-12 Thread Gerd Hoffmann
On 04/08/10 00:58, Paul Brook wrote: Hello, This patchset introduces flow control to virtio-console and chardev-based virtio serial ports. This series is based on the previous series I sent on Mar 31st (00/17: v4: virtio-serial fixes, new abi for port discovery) The qemu chardevs can now return

[Qemu-devel] Re: [PATCH v2 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-12 Thread Avi Kivity
On 04/06/2010 03:51 AM, Yoshiaki Tamura wrote: Replaces byte-based phys_ram_dirty bitmap with three bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. index c74b0a4..9733892 100644 --- a/exec.c +++ b/exec.c @@ -110,7 +110,7 @@ uint8_t *code_gen_ptr; #if !

[Qemu-devel] Re: [PATCH v2 3/6] Modifies wrapper functions for byte-based phys_ram_dirty bitmap to bit-based phys_ram_dirty bitmap.

2010-04-12 Thread Avi Kivity
On 04/06/2010 03:51 AM, Yoshiaki Tamura wrote: Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- static inline int cpu_physical_memory_get_dirty_flags(ram_addr_t addr) { -return phys_ram_dirty[addr>> TARGET_PAGE_BITS]; + unsigned long mask; + int index = (addr>> TARG

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread Mohammed Gamal
On Mon, Apr 12, 2010 at 12:29 AM, Jamie Lokier wrote: > Javier Guerra Giraldez wrote: >> On Sat, Apr 10, 2010 at 7:42 AM, Mohammed Gamal wrote: >> > On Sat, Apr 10, 2010 at 2:12 PM, Jamie Lokier wrote: >> >> To throw a spanner in, the most widely supported filesystem across >> >> operating syste

Re: [Qemu-devel] Call for 0.12.4

2010-04-12 Thread Kevin Wolf
Am 11.04.2010 10:51, schrieb Aurelien Jarno: > On Sun, Apr 11, 2010 at 09:25:50AM +0200, Gerhard Wiesinger wrote: >> On Sat, 10 Apr 2010, Aurelien Jarno wrote: >> >>> On Sat, Apr 10, 2010 at 10:08:45PM +0200, Gerhard Wiesinger wrote: On Thu, 8 Apr 2010, Aurelien Jarno wrote: > Hi all,

Re: [Qemu-devel] [PATCH 6/6] [S390] Add firmware code

2010-04-12 Thread Carsten Otte
Aurelien Jarno wrote: I am not fully comfortable introducing a binary firmware based on a patch posted on a website. I see two options: - Get your patch merged into ZIPL, so that we can build the firmware directly from the ZIPL sources - Add the patch to the pc-bios/ directory Looks like we'll

[Qemu-devel] Re: Call for 0.12.4

2010-04-12 Thread Paolo Bonzini
On 04/08/2010 08:37 PM, Aurelien Jarno wrote: Hi all, A number of fixes have been accumulated in the stable-0.12 branch, and I think it's time to release a new stable version. I would like to see that happening for the end of next week (around the 18th of April). If you want to see some patches

[Qemu-devel] [PATCH v2] qemu-kvm: avoid strlen of NULL pointer

2010-04-12 Thread Jens Osterkamp
If the user wants to create a chardev of type socket but forgets to give a host= option, qemu_opt_get returns NULL. This NULL pointer is then fed into strlen a few lines below without a check which results in a segfault. This fixes it. Signed-off-by: Jens Osterkamp --- qemu-sockets.c |3 ++-

Re: [Qemu-devel] [PATCH] Remove un-needed code

2010-04-12 Thread Kevin Wolf
Am 10.04.2010 00:55, schrieb Bruce Rogers: > The set_geometry_hint call below is not needed - it's just setting what was > just read. > > Signed-Off-By: Bruce Rogers > diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c > index 9915840..bc4fa77 100644 > --- a/hw/virtio-blk.c > +++ b/hw/virtio-blk.c

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread Alexander Graf
On 12.04.2010, at 10:15, Mohammed Gamal wrote: > On Mon, Apr 12, 2010 at 12:29 AM, Jamie Lokier wrote: >> Javier Guerra Giraldez wrote: >>> On Sat, Apr 10, 2010 at 7:42 AM, Mohammed Gamal >>> wrote: On Sat, Apr 10, 2010 at 2:12 PM, Jamie Lokier wrote: > To throw a spanner in, the mos

Re: [Qemu-devel] Call for 0.12.4

2010-04-12 Thread Gerd Hoffmann
On 04/11/10 10:51, Aurelien Jarno wrote: On Sun, Apr 11, 2010 at 09:25:50AM +0200, Gerhard Wiesinger wrote: On Sat, 10 Apr 2010, Aurelien Jarno wrote: On Sat, Apr 10, 2010 at 10:08:45PM +0200, Gerhard Wiesinger wrote: On Thu, 8 Apr 2010, Aurelien Jarno wrote: Hi all, A number of fixes have

Re: [Qemu-devel] Problem with QEMU on KVM

2010-04-12 Thread Mulyadi Santosa
Hi Gerhard... On Sun, Apr 11, 2010 at 20:52, Gerhard Wiesinger wrote: > OK, uses the following ports: > Port 0x20: 8259 interrupt controller > Port 0x40: 8253 timer > > Interrupt 0x1A: > ah=0x00: fetches system timer counters > ah=0x02: reads the clock > ah=0x04: fetches date > > So there must be

[Qemu-devel] Re: [PATCH v2 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-12 Thread Yoshiaki Tamura
Avi Kivity wrote: On 04/06/2010 03:51 AM, Yoshiaki Tamura wrote: Replaces byte-based phys_ram_dirty bitmap with three bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. index c74b0a4..9733892 100644 --- a/exec.c +++ b/exec.c @@ -110,7 +110,7 @@ uint8_t *code_gen

[Qemu-devel] Re: [PATCH v2 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-12 Thread Avi Kivity
On 04/12/2010 12:39 PM, Yoshiaki Tamura wrote: Please put in some header file, maybe qemu-common.h. OK. BTW, is qemu-kvm.h planned to go upstream? No. Use kvm.h for kvm specific symbols (qemu-kvm.h includes it). Should be nicer as a loop calling a helper to allocate each bitmap. This pa

[Qemu-devel] Re: [PATCH v2 3/6] Modifies wrapper functions for byte-based phys_ram_dirty bitmap to bit-based phys_ram_dirty bitmap.

2010-04-12 Thread Yoshiaki Tamura
Avi Kivity wrote: On 04/06/2010 03:51 AM, Yoshiaki Tamura wrote: Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- static inline int cpu_physical_memory_get_dirty_flags(ram_addr_t addr) { - return phys_ram_dirty[addr>> TARGET_PAGE_BITS]; + unsigned long mask; + int index = (addr>> TA

[Qemu-devel] Re: [PATCH v2 3/6] Modifies wrapper functions for byte-based phys_ram_dirty bitmap to bit-based phys_ram_dirty bitmap.

2010-04-12 Thread Avi Kivity
On 04/12/2010 01:58 PM, Yoshiaki Tamura wrote: Is it necessary to update migration and vga bitmaps? We can simply update the master bitmap, and update the migration and vga bitmaps only when they need it. That can be done in a different patch. Let me explain the role of the master bitmap here

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Paul Brook
> The Problem: > > CONFIG_USER_ONLY kinda sorta tries to manage the distinction between > qemu memory and guest memory. This can be seen in the PAGE_RESERVED > frobbing and qemu_malloc etc. However, it doesn't handle random malloc > calls eg from libc itself or other libraries in use. > > Possibl

Re: [Qemu-devel] Re: [PATCH 0/8] (v2) chardev, virtio-console: flow control, error handling, fixes

2010-04-12 Thread Paul Brook
> >> The qemu chardevs can now return -EAGAIN when a non-blocking remote > >> isn't ready to accept more data. > >> > >> Comments? > > > > This is a major change in semantics. Are you sure all users handle this > > correctly? My guess is that most of the devices don't. > > I don't expect trouble h

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Avi Kivity
On 04/06/2010 02:18 AM, Aurelien Jarno wrote: (1) Enable softmmu for userland. This is of course the highest overhead, but will work for all combinations. This option would solve a lot of problems and simplify a lot of code: unaligned access on hosts requiring strict alignements, d

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread Jamie Lokier
Mohammed Gamal wrote: > On Mon, Apr 12, 2010 at 12:29 AM, Jamie Lokier wrote: > > Javier Guerra Giraldez wrote: > >> On Sat, Apr 10, 2010 at 7:42 AM, Mohammed Gamal > >> wrote: > >> > On Sat, Apr 10, 2010 at 2:12 PM, Jamie Lokier > >> > wrote: > >> >> To throw a spanner in, the most widely sup

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread Jamie Lokier
Alexander Graf wrote: > Also since -net user does support samba exporting already, This I'm interested in. Last time I tried to use it, the "smb=" option didn't work because Samba refused to run when launched with qemu's mini config file and launched as a regular user. It needed access to variou

Re: [Qemu-devel] Problem with QEMU on KVM

2010-04-12 Thread Jamie Lokier
Mulyadi Santosa wrote: > Hi Gerhard... > > On Sun, Apr 11, 2010 at 20:52, Gerhard Wiesinger wrote: > > OK, uses the following ports: > > Port 0x20: 8259 interrupt controller > > Port 0x40: 8253 timer > > > > Interrupt 0x1A: > > ah=0x00: fetches system timer counters > > ah=0x02: reads the clock >

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread Alexander Graf
On 12.04.2010, at 14:04, Jamie Lokier wrote: > Alexander Graf wrote: >> Also since -net user does support samba exporting already, > > This I'm interested in. Last time I tried to use it, the "smb=" > option didn't work because Samba refused to run when launched with > qemu's mini config file a

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread Alexander Graf
On 12.04.2010, at 13:58, Jamie Lokier wrote: > Mohammed Gamal wrote: >> On Mon, Apr 12, 2010 at 12:29 AM, Jamie Lokier wrote: >>> Javier Guerra Giraldez wrote: On Sat, Apr 10, 2010 at 7:42 AM, Mohammed Gamal wrote: > On Sat, Apr 10, 2010 at 2:12 PM, Jamie Lokier wrote: >> To

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Jamie Lokier
Daniel Veillard wrote: > On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > > It's not that hard to write this for trivial extra options: > > > >/bin/sh -c 'qemu "$0" "$@" -extra-flag' > > > > (if that works). > > That won't work because we expect the emulator to be a path to

[Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Fri, Apr 09, 2010 at 02:16:06PM -0400, Chris Lalancette wrote: > On 04/09/2010 10:27 AM, Daniel P. Berrange wrote: > >> Raw access to the qemu monitor will be disabled by default; the > >> tag enables the ability to send QMP (or > >> text, if you are using older qemu) messages straight through

Re: [Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > Richard W.M. Jones wrote: > > On Fri, Apr 09, 2010 at 10:06:51PM +0100, Jamie Lokier wrote: > > > Daniel P. Berrange wrote: > > > > I think this alteration of existing args is fr too complex & > > > > fragile, > > > > and way over

[Qemu-devel] [PATCH] Remove un-needed code

2010-04-12 Thread Bruce Rogers
The bdrv_set_geometry_hint call below is not needed - it's just setting what was just read. Signed-off-by: Bruce Rogers diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 9915840..bc4fa77 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -494,7 +494,6 @@ VirtIODevice *virtio_blk_init(Devi

Re: [Qemu-devel] [PATCH] Remove un-needed code

2010-04-12 Thread Bruce Rogers
On 4/12/2010 at 2:53 AM, Kevin Wolf wrote: > Am 10.04.2010 00:55, schrieb Bruce Rogers: >> The set_geometry_hint call below is not needed - it's just setting what was > just read. >> >> Signed-Off-By: Bruce Rogers > It needs to be "Signed-off-by" with lower-case o and b to be recognized > by

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 01:23:08PM +0100, Jamie Lokier wrote: > Daniel Veillard wrote: > > On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > > > Parsing libvirt output and having to guess which option corresponds to > > > what from the libvirt config sounds very fragile and also a ra

Re: [Qemu-devel] [PATCH] Remove un-needed code

2010-04-12 Thread Kevin Wolf
Am 12.04.2010 14:56, schrieb Bruce Rogers: > The bdrv_set_geometry_hint call below is not needed - it's just setting what > was just read. > > Signed-off-by: Bruce Rogers Almost. ;-) I fixed that additional space for you and applied the patch to the block branch. Kevin > > diff --git a/hw/vi

Re: [Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-12 Thread Chris Lalancette
On 04/12/2010 08:41 AM, Daniel P. Berrange wrote: >>> I don't think there's much to be gained from having an XML element to >>> turn on/off use of these APIs. If an app doesn't want to use them, it >>> can simply not link to libvirt-qemu.so >> >> The reason I wanted to do this was mostly for debug/

[Qemu-devel] Emulate Arm-Linux,But failed.

2010-04-12 Thread tek-life
hi,folks. I'm using qemu 0.12,and try to emulate the arm-linux on qemu for arm. But failed. The step is that: $ qemu-img create -f qcow hda.img 10G $ qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.26-2-versatile -initrd initrd.gz -hda hda.img -append "root=/dev/ram" The kernel file vmlinuz-2.

Re: [Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 09:56:50AM -0400, Chris Lalancette wrote: > On 04/12/2010 08:41 AM, Daniel P. Berrange wrote: > >>> I don't think there's much to be gained from having an XML element to > >>> turn on/off use of these APIs. If an app doesn't want to use them, it > >>> can simply not link to

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Richard Henderson
On 04/12/2010 04:25 AM, Paul Brook wrote: (1) Enable softmmu for userland. This is of course the highest overhead, but will work for all combinations. This has a significant performance hit, and gets very tricky for things like mmaped files. It has the advantage of actually working for s

[Qemu-devel] [PATCH] block: Split bdrv_open

2010-04-12 Thread Kevin Wolf
bdrv_open contains quite some code that is only useful for opening images (as opposed to opening files by a protocol), for example snapshots. This patch splits the code so that we have bdrv_open_file() for files (uses protocols), bdrv_open() for images (uses format drivers) and bdrv_do_open() for

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Richard Henderson
On 04/12/2010 04:48 AM, Avi Kivity wrote: (1) Enable softmmu for userland. This is of course the highest overhead, but will work for all combinations. ... You could reduce the overhead somewhat by using kvm for memory translation on hosts that support it. Of course tcg translation and syscall

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Avi Kivity
On 04/12/2010 05:55 PM, Richard Henderson wrote: You could reduce the overhead somewhat by using kvm for memory translation on hosts that support it. Of course tcg translation and syscall costs will grow by the exit overhead. I've thought about this a bit, and what seemed to be the stickler i

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread jvrao
Jamie Lokier wrote: > Mohammed Gamal wrote: >> 2- With respect to CIFS. I wonder how the shares are supposed to be >> exposed to the guest. Should the Samba server be modified to be able >> to use unix domain sockets instead of TCP ports and then QEMU >> communicating on these sockets. With that ap

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Alexander Graf
On 12.04.2010, at 17:09, Avi Kivity wrote: > On 04/12/2010 05:55 PM, Richard Henderson wrote: >> >>> You could reduce the overhead somewhat by using kvm for memory >>> translation on hosts that support it. Of course tcg translation and >>> syscall costs will grow by the exit overhead. >> >> I'v

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-12 Thread jvrao
Alexander Graf wrote: > On 12.04.2010, at 13:58, Jamie Lokier wrote: > >> Mohammed Gamal wrote: >>> On Mon, Apr 12, 2010 at 12:29 AM, Jamie Lokier wrote: Javier Guerra Giraldez wrote: > On Sat, Apr 10, 2010 at 7:42 AM, Mohammed Gamal > wrote: >> On Sat, Apr 10, 2010 at 2:12 PM,

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Avi Kivity
On 04/12/2010 06:39 PM, Alexander Graf wrote: Pass everything through memory; will there be many transitions apart from trapping instructions and missing translations? I don't see how that would help with the 64-on-32 issue. You still don't get a 64 bit address space from running insid

Re: [Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-12 Thread Luiz Capitulino
On Fri, 9 Apr 2010 15:27:17 +0100 "Daniel P. Berrange" wrote: > On Fri, Apr 09, 2010 at 09:41:39AM -0400, Chris Lalancette wrote: > > Hello, > > In response to a lot of the talk of qemud lately on qemu-devel, the > > libvirt community would like to put forward a proposal to help enable > > d

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Alexander Graf
On 12.04.2010, at 17:49, Avi Kivity wrote: > On 04/12/2010 06:39 PM, Alexander Graf wrote: >> >>> Pass everything through memory; will there be many transitions apart from >>> trapping instructions and missing translations? >>> >> I don't see how that would help with the 64-on-32 issue. Yo

Re: [Qemu-devel] [RFC] Host vs Guest memory allocation

2010-04-12 Thread Avi Kivity
On 04/12/2010 06:56 PM, Alexander Graf wrote: For fully system emulation on the other hand I can imagine quite some nice tricks one could pull. On PPC hosts you get a huge number of VSIDs that are basically like tags on the TLB. So if you'd give every x86 page table one VSID you'd potentially

[Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Jan Kiszka
Hi, we found an ugly issue of the (pseudo) flow-control mechanism in tap-based networks: In recent Linux kernels (>= 2.6.30), the tun driver does TX queue length accounting and stops sending packets if any local receiver does not return enough of them. This aims at throttling the TX side when the

Re: [Qemu-devel] Latest Git fails to compile in cpus.c

2010-04-12 Thread Marcelo Tosatti
On Sun, Apr 11, 2010 at 07:29:04PM +0300, Blue Swirl wrote: > On 4/8/10, Marcelo Tosatti wrote: > > On Wed, Apr 07, 2010 at 09:02:53PM +0300, Blue Swirl wrote: > > > On 4/7/10, malc wrote: > > > > On Wed, 7 Apr 2010, Nigel Horne wrote: > > > > > > > > > ./configure --enable-linux-aio --enab

Re: [Qemu-devel] Latest Git fails to compile in cpus.c

2010-04-12 Thread Blue Swirl
On 4/12/10, Marcelo Tosatti wrote: > On Sun, Apr 11, 2010 at 07:29:04PM +0300, Blue Swirl wrote: > > On 4/8/10, Marcelo Tosatti wrote: > > > On Wed, Apr 07, 2010 at 09:02:53PM +0300, Blue Swirl wrote: > > > > On 4/7/10, malc wrote: > > > > > On Wed, 7 Apr 2010, Nigel Horne wrote: > > > >

[Qemu-devel] ARM: Registering memory for KVM

2010-04-12 Thread Christoffer Dall
I am bringing changes from my implementation of KVM for ARM into the upstream version of QEMU and trying to do things right. My concern is how handle MMIO mapped device registration with KVM. In kvm_set_phys_mem(...) it's required that the flags are not >= IO_MEM_UNASSIGNED. However, for most of t

[Qemu-devel] Problem with DOS application and 286 DOS Extender application

2010-04-12 Thread Gerhard Wiesinger
Hello, I'm having a problem with a DOS application which uses a 286 DOS Extender, error message is as the following: unable to create task for execution Interrupt 10 (Ah) while creating task: Invalid task segment selector. Happens with QEMM386 and HIMEM.SYS/EMM386.EXE. I guess the application

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Paul Brook
> A major reason for this deadlock could likely be removed by shutting > down the tap (if peered) or dropping packets in user space (in case of > vlan) when a NIC is stopped or otherwise shut down. Currently most (if > not all) NIC models seem to signal both "queue full" and "RX disabled" > via !ca

[Qemu-devel] Re: [PATCH v4 1/3] Device specification for shared memory PCI device

2010-04-12 Thread Avi Kivity
On 04/08/2010 01:51 AM, Cam Macdonell wrote: (sorry about the late review) + +Regular Interrupts +-- + +If regular interrupts are used (due to either a guest not supporting MSI or the +user specifying not to use them on startup) then the value written to the lower +16-bits of th

[Qemu-devel] Re: [PATCH v4 2/3] Support adding a file to qemu's ram allocation

2010-04-12 Thread Avi Kivity
On 04/08/2010 01:51 AM, Cam Macdonell wrote: This avoids the need of using qemu_ram_alloc and mmap with MAP_FIXED to map a host file into guest RAM. This function mmaps the opened file anywhere and adds the memory to the ram blocks. Usage is qemu_ram_mmap(fd, size, MAP_SHARED, offset); --- c

[Qemu-devel] Re: [PATCH v4 3/3] Inter-VM shared memory PCI device

2010-04-12 Thread Avi Kivity
On 04/08/2010 01:52 AM, Cam Macdonell wrote: Support an inter-vm shared memory device that maps a shared-memory object as a PCI device in the guest. This patch also supports interrupts between guest by communicating over a unix domain socket. This patch applies to the qemu-kvm repository.

[Qemu-devel] Re: [PATCH v4] Shared memory uio_pci driver

2010-04-12 Thread Avi Kivity
On 04/08/2010 02:00 AM, Cam Macdonell wrote: This patch adds a driver for my shared memory PCI device using the uio_pci interface. The driver has three memory regions. The first memory region is for device registers for sending interrupts. The second BAR is for receiving MSI-X interrupts and th

[Qemu-devel] Re: [PATCH v4 1/3] Device specification for shared memory PCI device

2010-04-12 Thread Cam Macdonell
On Mon, Apr 12, 2010 at 3:34 PM, Avi Kivity wrote: > On 04/08/2010 01:51 AM, Cam Macdonell wrote: > > (sorry about the late review) > >> + >> +Regular Interrupts >> +-- >> + >> +If regular interrupts are used (due to either a guest not supporting MSI >> or the >> +user specifying n

[Qemu-devel] Re: [PATCH v4 0/3] PCI Shared memory device

2010-04-12 Thread Michael S. Tsirkin
On Wed, Apr 07, 2010 at 04:51:57PM -0600, Cam Macdonell wrote: > Latest patch for PCI shared memory device that maps a host shared memory > object > to be shared between guests FWIW, I still think it would be better to reuse virtio-pci spec for feature negotiation, control etc even if Anthony nac

[Qemu-devel] Re: Latest Git fails to compile in cpus.c

2010-04-12 Thread Nigel Horne
Blue Swirl: > Thanks for the ACK, applied. That's fixed it - thanks! -- Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter. NJH Music, ICQ#20252325 n...@bandsman.co.uk http://www.bandsman.co.uk

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Jamie Lokier
Paul Brook wrote: > > A major reason for this deadlock could likely be removed by shutting > > down the tap (if peered) or dropping packets in user space (in case of > > vlan) when a NIC is stopped or otherwise shut down. Currently most (if > > not all) NIC models seem to signal both "queue full" a

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Paul Brook
> But anyway, this flow control mechanism is buggy - what if instead of > an interface down, you just have a *slow* guest? That should not push > back so much that it makes other guests networking with each other > slow down. The OP described multiple guests connected via a host bridge. In this c

[Qemu-devel] [PATCH 03/10] target-alpha: Implement cvtlq inline.

2010-04-12 Thread Richard Henderson
It's a simple shift and mask sequence. Signed-off-by: Richard Henderson --- target-alpha/helper.h|1 - target-alpha/op_helper.c |7 --- target-alpha/translate.c | 23 ++- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/target-alpha/helper.h b

[Qemu-devel] [PATCH 05/10] target-alpha: Update commentary for opcode 0x1A.

2010-04-12 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/translate.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 29152fa..2c29337 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2535

[Qemu-devel] [PATCH 00/10] target-alpha improvments, version 5

2010-04-12 Thread Richard Henderson
Changes from v4->v5: * Re-base vs master, and accepted patches. * Address the comments from version 4. r~ Richard Henderson (10): target-alpha: Implement cpys{,n,e} inline. target-alpha: Implement rs/rc properly. target-alpha: Implement cvtlq inline. target-alpha: Emit goto_tb opco

[Qemu-devel] [PATCH 04/10] target-alpha: Emit goto_tb opcodes.

2010-04-12 Thread Richard Henderson
Use an ExitStatus enumeration instead of magic numbers as the return value from translate_one. Emit goto_tb opcodes when ending a TB via a direct branch. Signed-off-by: Richard Henderson --- target-alpha/translate.c | 339 ++ 1 files changed, 193 ins

[Qemu-devel] [PATCH 08/10] target-alpha: Fix load-locked/store-conditional.

2010-04-12 Thread Richard Henderson
Use an exception plus start_exclusive to implement the compare-and-swap. This follows the example set by the MIPS and PPC ports. Signed-off-by: Richard Henderson --- linux-user/main.c| 55 + target-alpha/cpu.h |6 +- target-alpha/helper.c|7 +- target-alph

[Qemu-devel] [PATCH 07/10] target-alpha: Indicate NORETURN status when raising exception.

2010-04-12 Thread Richard Henderson
When (indirectly) calling raise_exception, don't emit cleanup code at the end of the TB, as it is unused. Signed-off-by: Richard Henderson --- target-alpha/translate.c | 27 ++- 1 files changed, 14 insertions(+), 13 deletions(-) diff --git a/target-alpha/translate.c b/

[Qemu-devel] [PATCH 01/10] target-alpha: Implement cpys{, n, e} inline.

2010-04-12 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.h|4 -- target-alpha/op_helper.c | 18 -- target-alpha/translate.c | 79 +++-- 3 files changed, 75 insertions(+), 26 deletions(-) diff --git a/target-alpha/helper.h b/target-alpha

[Qemu-devel] [PATCH 06/10] target-alpha: Enable NPTL.

2010-04-12 Thread Richard Henderson
Signed-off-by: Richard Henderson --- configure|1 + linux-user/syscall.c |2 +- target-alpha/cpu.h | 29 ++--- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 966cd7d..7c60731 100755 --- a/configure +++ b

[Qemu-devel] [PATCH 10/10] Implement cpu_get_real_ticks for Alpha.

2010-04-12 Thread Richard Henderson
Signed-off-by: Richard Henderson --- qemu-timer.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/qemu-timer.h b/qemu-timer.h index d2e15f4..6e2d2e1 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -209,6 +209,19 @@ static inline int64_t cpu_get_real_ticks(voi

[Qemu-devel] [PATCH 09/10] target-alpha: Implement RPCC.

2010-04-12 Thread Richard Henderson
A minimal implementation that more or less corresponds to the user-level version used by target-i386. More hoops will want to be jumped through when alpha gets system-level emulation. Signed-off-by: Richard Henderson --- target-alpha/cpu.h |1 - target-alpha/op_helper.c |5 +++--

[Qemu-devel] [PATCH 02/10] target-alpha: Implement rs/rc properly.

2010-04-12 Thread Richard Henderson
This is a per-cpu flag; there's no need for a spinlock of any kind. We were also failing to manipulate the flag with $31 as a target reg and failing to clear the flag on execution of a return-from-interrupt instruction. Signed-off-by: Richard Henderson --- linux-user/main.c|7 ++

Re: [Qemu-devel] Problem with QEMU on KVM

2010-04-12 Thread Mulyadi Santosa
Hi Jamie... On Mon, Apr 12, 2010 at 19:07, Jamie Lokier wrote: > There are various -no-kvm-XXX options to try: > > -no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC > -no-kvm-pit     disable KVM kernel mode PIT > -no-kvm-pit-reinjection disable KVM kernel mode PIT interrupt reinjection I

[Qemu-devel] qemu per vm config file support

2010-04-12 Thread Manish Regmi
Hi, These days i am playing with qemu and kvm. The command line parameters can become very long. Is there any technical reason why config file is not implemented in qemu yet. I can understand that that can be taken care of by libvirt etc. but wouldn't it be good to have qemu support config file w

[Qemu-devel] Missing singlestep for already-translated code?

2010-04-12 Thread Jun Koi
Hi, I am looking into the singlestep command in monitor interface, and it seems that we only take into account the singlestep flag when we are translating code. So for the already-translated code, we will miss singlestep? Thanks, Jun

[Qemu-devel] Display emulation

2010-04-12 Thread Michael Qiu
Hi guys, I'm going to emulate a display controller with these features: 1. Multiple display layer, such as OSD/video/still picture/background. 2. Alpha blending By now, I think I should create SDL surface for osd, and yuv surface for video & other, then I should blit them together. please correct

Re: [Qemu-devel] Problem with DOS application and 286 DOS Extender application

2010-04-12 Thread Roy Tam
2010/4/13 Gerhard Wiesinger : > Hello, > > I'm having a problem with a DOS application which uses a 286 DOS Extender, > error message is as the following: > unable to create task for execution > Interrupt 10 (Ah) while creating task: Invalid task segment selector. > Happens with QEMM386 and HIMEM.S

[Qemu-devel] [PATCH] slirp: fix structure initialization in tcp_listen()

2010-04-12 Thread juha . riihimaki
From: Juha Riihimäki A data structure of type sockaddr_in is allocated from stack but not properly initialized. This may lead to a failure in the bind() call later on. Fixed by filling the contents of the structure with zeroes before using it. Signed-off-by: Juha Riihimäki --- slirp/socket.c |

Re: [Qemu-devel] qemu per vm config file support

2010-04-12 Thread Amit Shah
On (Mon) Apr 12 2010 [21:06:29], Manish Regmi wrote: > Hi, > These days i am playing with qemu and kvm. The command line parameters can > become very long. Is there any technical reason why config file is not > implemented in qemu yet. See -readconfig and -writeconfig. There's partial support fo