[Qemu-devel] Re: [PATCH RFC] virtio: put last seen used index into ring itself

2010-05-06 Thread Rusty Russell
On Thu, 6 May 2010 03:49:46 pm Michael S. Tsirkin wrote: > Now, I also added an mb() in guest between read and write so > that last used index write can not get ahead of used index read. > It does feel good to have it there, but I can not say why > it's helpful. Works fine without it, but then thes

Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used index into ring itself

2010-05-06 Thread Rusty Russell
On Thu, 6 May 2010 07:30:00 pm Avi Kivity wrote: > On 05/05/2010 11:58 PM, Michael S. Tsirkin wrote: > > + /* We publish the last-seen used index at the end of the available ring. > > +* It is at the end for backwards compatibility. */ > > + vr->last_used_idx =&(vr)->avail->ring[num]; > > +

[Qemu-devel] Re: Endless loop in qcow2_alloc_cluster_offset

2010-05-06 Thread Marcelo Tosatti
On Thu, Nov 19, 2009 at 01:19:55PM +0100, Jan Kiszka wrote: > Hi, > > I just managed to push a qemu-kvm process (git rev. b496fe3431) into an > endless loop in qcow2_alloc_cluster_offset, namely over > QLIST_FOREACH(old_alloc, &s->cluster_allocs, next_in_flight): > > (gdb) bt > #0 0x0048

Re: [Qemu-devel] Re: [PATCH] Remove IO_MEM_SUBWIDTH.

2010-05-06 Thread Artyom Tarasenko
2010/4/28 Artyom Tarasenko : > 2010/4/27 Richard Henderson : >> On 04/26/2010 02:54 PM, Artyom Tarasenko wrote: >>> This patch introduces a regression. qemu crashes on lance test: >> >> I'm not sure how to get to this, since the sparc-test images don't >> include ifconfig, and I havn't been able to

[Qemu-devel] Re: vgabios + qemu: issues and plans.

2010-05-06 Thread Gerd Hoffmann
On 05/06/10 22:19, Sebastian Herbszt wrote: Gerd Hoffmann wrote: Hi, Works for stdvga and qxl. vmware fails as it has the memory at pci region 1 (region 0 has ioports) and it seems vgabios isn't prepared to handle that ... Do you mean vgabios currently doesn't work with qemu and "-vga vmware

Re: [Qemu-devel] [PATCH] sparc64: implement global translation table entries v1

2010-05-06 Thread Blue Swirl
Thanks, applied all. On 5/4/10, Igor V. Kovalenko wrote: > From: Igor V. Kovalenko > > - match global tte against any context > - show global tte in MMU dump > > v0->v1: added default case to switch statement in demap_tlb > - should fix gcc warning about uninitialized context variable > > S

[Qemu-devel] Re: vgabios + qemu: issues and plans.

2010-05-06 Thread Sebastian Herbszt
Gerd Hoffmann wrote: Hi, Works for stdvga and qxl. vmware fails as it has the memory at pci region 1 (region 0 has ioports) and it seems vgabios isn't prepared to handle that ... Do you mean vgabios currently doesn't work with qemu and "-vga vmware" ? It works, but uses the bochs lfb at t

[Qemu-devel] [PATCH] darwin-user: Add missing static attribute

2010-05-06 Thread Stefan Weil
Function usage is only used locally, so add "static". Signed-off-by: Stefan Weil --- darwin-user/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/darwin-user/main.c b/darwin-user/main.c index ade7d48..175e12f 100644 --- a/darwin-user/main.c +++ b/darwin-user/main.

[Qemu-devel] [PATCH] mips-dis: Add missing static attributes

2010-05-06 Thread Stefan Weil
mips_abi_choices and mips_arch_choices are only used locally. Signed-off-by: Stefan Weil --- mips-dis.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mips-dis.c b/mips-dis.c index 56bffe5..4623a1c 100644 --- a/mips-dis.c +++ b/mips-dis.c @@ -3035,7 +3035,7 @@ struct

[Qemu-devel] [PATCH] Add missing 'static' attribute

2010-05-06 Thread Stefan Weil
Function usage() is only used locally. Signed-off-by: Stefan Weil --- tests/qruncom.c |2 +- tests/runcom.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qruncom.c b/tests/qruncom.c index a8d0ef6..079f7a2 100644 --- a/tests/qruncom.c +++ b/tests/qruncom.c @

[Qemu-devel] [PATCH 2/2] parallels: use qemu block API

2010-05-06 Thread Christoph Hellwig
Use bdrv_pwrite to access the backing device instead of pread, and convert the driver to implementing the bdrv_open method which gives it an already opened BlockDriverState for the underlying device. Signed-off-by: Christoph Hellwig Index: qemu-kevin/block/parallels.c ===

[Qemu-devel] [PATCH 1/2] parallels: use pread

2010-05-06 Thread Christoph Hellwig
Use pread instead of lseek + read in preparation of using the qemu block API. Signed-off-by: Christoph Hellwig Index: qemu-kevin/block/parallels.c === --- qemu-kevin.orig/block/parallels.c 2010-05-06 21:59:25.809255629 +0200 +++

Re: [Qemu-devel] [PATCH] block: Fix bdrv_commit

2010-05-06 Thread Christoph Hellwig
On Thu, May 06, 2010 at 04:44:34PM +0200, Kevin Wolf wrote: > When reopening the image, don't guess the driver, but use the same driver as > was used before. This is important if the format=... option was used for that > image. > > Signed-off-by: Kevin Wolf Looks good, Reviewed-by: Christoph H

Re: [Qemu-devel] [PATCH] block: Fix protocol detection for Windows devices

2010-05-06 Thread Christoph Hellwig
On Thu, May 06, 2010 at 02:56:38PM +0200, Kevin Wolf wrote: > We can't assume the file protocol for Windows devices, they need the same > detection as other files for which an explicit protocol is not specified. Looks good, Reviewed-by: Christoph Hellwig

Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions.

2010-05-06 Thread Gerd Hoffmann
+static const char cursor_left_ptr_32[32*32] = { +"" +" X " +" XX " +" X.X" +" X..X " +" X...X

Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions.

2010-05-06 Thread Blue Swirl
On 5/6/10, Gerd Hoffmann wrote: > > > > > +static const char cursor_left_ptr_32[32*32] = { > > > +"" > > > +" X " > > > +" XX " > > > +" X.X" > > > +" X..X

[Qemu-devel] Re: vgabios + qemu: issues and plans.

2010-05-06 Thread Gerd Hoffmann
Hi, Works for stdvga and qxl. vmware fails as it has the memory at pci region 1 (region 0 has ioports) and it seems vgabios isn't prepared to handle that ... Do you mean vgabios currently doesn't work with qemu and "-vga vmware" ? It works, but uses the bochs lfb at the magic address 0xe00

[Qemu-devel] Re: Qemu - samba share help

2010-05-06 Thread Jan Kiszka
Arpit Patel wrote: > Hi All, > > I am trying to share files between host OS and guest OS, both are Ubuntu. > > Here is the command line that I am using to start guest OS > *qemu -kernel kernelimage -initrd initrd.img /dev/zero -append "cmdline" > -smb /tmp* > * > * > After which I tried to *mount

[Qemu-devel] Re: Re: [RFC] [PATCH] add ahci support into qemu

2010-05-06 Thread Sebastian Herbszt
Stuart Brady wrote: On Tue, May 04, 2010 at 10:51:37PM +0200, Sebastian Herbszt wrote: >diff --git a/hw/pci_ids.h b/hw/pci_ids.h >index fe7a121..4d4de93 100644 >--- a/hw/pci_ids.h >+++ b/hw/pci_ids.h >@@ -97,3 +97,4 @@ >#define PCI_DEVICE_ID_INTEL_82371AB 0x7111 >#define PCI_DEVICE_ID_INTEL

[Qemu-devel] Re: sparc64 lazy conditional codes evaluation

2010-05-06 Thread Blue Swirl
On 5/5/10, Igor Kovalenko wrote: > On Wed, May 5, 2010 at 12:21 AM, Blue Swirl wrote: > > On 5/3/10, Igor Kovalenko wrote: > >> On Mon, May 3, 2010 at 11:54 PM, Blue Swirl wrote: > >> > On 5/3/10, Igor Kovalenko wrote: > >> >> On Mon, May 3, 2010 at 11:24 PM, Blue Swirl > wrote: > >>

[Qemu-devel] [PATCH] block/vdi: Allow disk images of size 0

2010-05-06 Thread Stefan Weil
Even it is not very useful, users may create images of size 0. Without the special option CONFIG_ZERO_MALLOC, qemu_mallocz aborts execution when it is told to allocate 0 bytes, so avoid this kind of call. Cc: Kevin Wolf Signed-off-by: Stefan Weil --- block/vdi.c |9 +++-- 1 files chang

[Qemu-devel] [PATCH 4/5] tcg-ia64: Load GUEST_BASE into a register.

2010-05-06 Thread Richard Henderson
Saves one bundle per memory operation. Signed-off-by: Richard Henderson --- tcg/ia64/tcg-target.c | 132 1 files changed, 88 insertions(+), 44 deletions(-) diff --git a/tcg/ia64/tcg-target.c b/tcg/ia64/tcg-target.c index acd4ce8..0d275e9 100644

Re: [Qemu-devel] eepro100: missing gpxe-eepro100-80862449.rom?

2010-05-06 Thread Stefan Weil
Am 05.05.2010 22:03, schrieb Sebastian Herbszt: eepro100_register_devices() references three option roms: - gpxe-eepro100-80861209.rom - gpxe-eepro100-80861229.rom - gpxe-eepro100-80862449.rom The last one seems to be missing because it's not in the pc-bios directory. Sebastian Yes, it is m

[Qemu-devel] [PATCH] vdi: Fix image opening and creation for odd disk sizes

2010-05-06 Thread Stefan Weil
This patch fixes a regression introduced by commit 95a2f9bc588c3f83375d87b0a9394f89a1bcfada. The fix is based on a patch from Kevin Wolf. Here his comment: "The number of blocks needs to be rounded up to cover all of the virtual hard disk. Without this fix, we can't even open our own images if th

[Qemu-devel] Re: vgabios + qemu: issues and plans.

2010-05-06 Thread Sebastian Herbszt
Gerd Hoffmann wrote: First, I'd like to be able to load the vgabios via PCI ROM bar on all pci vga cards (stdvga, vmware, soon qxl). The PCI ID in the bios has to match the PCI ID of the card, so we'll need a bunch of vga bios binaries, all identical except for the PCI ID. Or we need some kind

[Qemu-devel] [PATCH 1/5] tcg: Initialize the prologue after GUEST_BASE is fixed.

2010-05-06 Thread Richard Henderson
This will allow backends to make intelligent choices about how to implement GUEST_BASE. Signed-off-by: Richard Henderson --- bsd-user/main.c |9 - exec.c|5 + linux-user/main.c |9 - tcg/tcg.c |3 +++ tcg/tcg.h |1 + 5 files c

Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions.

2010-05-06 Thread Blue Swirl
On 5/5/10, Gerd Hoffmann wrote: > Add a new cursor type to console.h and a bunch of functions to > deal with cursors the (new) cursor.c file. > > Signed-off-by: Gerd Hoffmann > --- > Makefile.objs |3 +- > console.h | 24 ++- > cursor.c | 208 >

[Qemu-devel] Re: vgabios + qemu: issues and plans.

2010-05-06 Thread Sebastian Herbszt
Gerd Hoffmann wrote: Hi, First, I'd like to be able to load the vgabios via PCI ROM bar on all pci vga cards (stdvga, vmware, soon qxl). The PCI ID in the bios has to match the PCI ID of the card, so we'll need a bunch of vga bios binaries, all identical except for the PCI ID. Or we need some

[Qemu-devel] Re: [PATCH] vdi: Fix image creation

2010-05-06 Thread Stefan Weil
Am 06.05.2010 14:55, schrieb Kevin Wolf: The number of blocks needs to be rounded up to cover all of the virtual hard disk. Without this fix, we can't even open our own images if their size is not a multiple of the block size. Signed-off-by: Kevin Wolf --- block/vdi.c | 2 +- 1 files changed,

[Qemu-devel] Re: [PATCH v5 4/5] Inter-VM shared memory PCI device

2010-05-06 Thread Cam Macdonell
On Thu, May 6, 2010 at 11:32 AM, Anthony Liguori wrote: > On 04/21/2010 12:53 PM, 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

[Qemu-devel] Re: [Commit 20d97356] Fix OpenBSD build

2010-05-06 Thread Blue Swirl
On 5/5/10, Kevin Wolf wrote: > Hi Blue Swirl, > > did I miss the patch posted for this commit? I can't find it on the > mailing list. I think the BlockDriver declarations should really stay at > the end of the source file of each driver. > > What about using a different way to get rid of the s

Re: [Qemu-devel] [PATCH] QMP: Spec: Private Extensions support

2010-05-06 Thread Anthony Liguori
On 05/06/2010 10:52 AM, Markus Armbruster wrote: Anthony, no reply from you; did it fall through the cracks? If you're fine with my draft, I'll turn it into a proper patch. Yes, sorry, I thought I had already responded as such. Regards, Anthony Liguori Markus Armbruster writes:

[Qemu-devel] [PATCH 2/5] tcg-hppa: Load GUEST_BASE as an immediate.

2010-05-06 Thread Richard Henderson
Now that the prologue is generated after GUEST_BASE is fixed, we can load it as an immediate, and also avoid reserving the register if it isn't necessary. Signed-off-by: Richard Henderson --- tcg/hppa/tcg-target.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH 3/5] tcg-ia64: Fix some register usage issues.

2010-05-06 Thread Richard Henderson
(1) The output registers were not marked call-clobbered, even though they can be modified by called functions. (2) The thread pointer was not marked reserved. (3) R4-R6 are call-saved, but not saved by the prologue. Rather than save them, mark them reserved so that we don't use them. Sign

[Qemu-devel] Re: [PATCH v5 4/5] Inter-VM shared memory PCI device

2010-05-06 Thread Anthony Liguori
On 04/21/2010 12:53 PM, 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] [PATCH 5/5] tcg-ppc: Conditionally reserve TCG_GUEST_BASE_REG.

2010-05-06 Thread Richard Henderson
We need not reserve the register unless we're going to use it. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c |8 tcg/ppc64/tcg-target.c |9 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c index ce

[Qemu-devel] [PATCH 0/5] tcg: Initialize prologue after guest_base fixed

2010-05-06 Thread Richard Henderson
By doing this we can make any number of decisions about code generation during the prologue. For instance, we can decide whether or not to reserve a register to hold the value of GUEST_BASE. This fixes a latent bug in the two ppc ports in that GUEST_BASE was being loaded as an immediate before t

Re: [Qemu-devel] Re: How to map PCI memory into the VM without trapping

2010-05-06 Thread Cam Macdonell
On Wed, May 5, 2010 at 5:20 PM, Frank Berreth wrote: > Hi there, > this is just an update if you are interested in the outcome. I turns out > that my initial assumption that there would be page faults/trapping on the > memory pages was false. The reason the throughput is so low is because the > me

[Qemu-devel] Adding AUDIO CD support in Qemu : Buffer I/O Error on device sr0

2010-05-06 Thread Shubham Mankhand
Dear Developers, I am working on a Xen HVM platform and trying to add AUDIO CD support to Qemu. I modified ide_atapi_cmd function to handle audio media. This includes changing cdrom_read_toc to set ADR/Control bits to 0x10 if media is CDS_AUDIO. Changed GPCMD_MODE_SENSE_10 case to include cdda bit

Re: [Qemu-devel] [PATCH] QMP: Spec: Private Extensions support

2010-05-06 Thread Markus Armbruster
Anthony, no reply from you; did it fall through the cracks? If you're fine with my draft, I'll turn it into a proper patch. Markus Armbruster writes: > Anthony asked me to take a stab at rewriting his draft to something more > along the lines of what I'm thinking. Here goes. I put some remar

[Qemu-devel] [PATCH] vdi: Fix image creation

2010-05-06 Thread Kevin Wolf
The number of blocks needs to be rounded up to cover all of the virtual hard disk. Without this fix, we can't even open our own images if their size is not a multiple of the block size. Signed-off-by: Kevin Wolf --- block/vdi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --

Re: [Qemu-devel] question on virtio

2010-05-06 Thread Jamie Lokier
Michael S. Tsirkin wrote: > Hi! > I see this in virtio_ring.c: > > /* Put entry in available array (but don't update avail->idx * > until they do sync). */ > > Why is it done this way? > It seems that updating the index straight away would be simpler, while > this might allow the

Re: [Qemu-devel] vgabios + qemu: issues and plans.

2010-05-06 Thread Isaku Yamahata
On Wed, May 05, 2010 at 03:38:21PM +0200, Gerd Hoffmann wrote: > Hi, > > Today we have two vgabios versions in qemu: The standard one > (vgabios.bin) and the cirrus one (vgabios-cirrus.bin). > > The cirrus vgabios is a PCI ROM. We can (and do) load it into the ROM > PCI bar. The vgabios ch

Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used index into ring itself

2010-05-06 Thread Avi Kivity
On 05/05/2010 11:58 PM, Michael S. Tsirkin wrote: + /* We publish the last-seen used index at the end of the available ring. +* It is at the end for backwards compatibility. */ + vr->last_used_idx =&(vr)->avail->ring[num]; + /* Verify that last used index does not spill

[Qemu-devel] Re: [PATCH] block: Fix bdrv_commit

2010-05-06 Thread Naphtali Sprei
Kevin Wolf wrote: > When reopening the image, don't guess the driver, but use the same driver as > was used before. This is important if the format=... option was used for that > image. > > Signed-off-by: Kevin Wolf > --- > block.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-

Re: [Qemu-devel] Fate of the read-only block drivers?

2010-05-06 Thread Kevin Wolf
Am 05.05.2010 20:27, schrieb Christoph Hellwig: > Currently we have four very simple, read-only block drivers in the > tree: > > - cloop: > This one is known buggy for non-trivial use and didn't get > any chance but the usual API changes and cleanup sweeps > since it was commite

[Qemu-devel] [PATCH][RESEND] exec: optimize lduw_phys and stw_phys

2010-05-06 Thread Bernhard Kohl
Implementation of the optimized code for these two functions. This is necessary for virtio which reads and writes VirtQueue index fields using these functions. The assumption is that this are atomic operations, which is not the case, if the memcpy() function which is used in the non optimized cod

[Qemu-devel] Bug in net/socket.c: info_str is overwritten

2010-05-06 Thread Miguel Di Ciurcio Filho
Hi there, I'm working on the conversion of the 'info network' command do QMP, and I think I've found some problems. Running qemu like this: qemu -net socket,listen=: In net/socket.c, the function net_socket_listen_init() [1] is called and a listening socket is created. There is nothing regis

[Qemu-devel] [PATCH 4/4] vnc: adjust compression zstream level

2010-05-06 Thread Corentin Chary
Signed-off-by: Corentin Chary --- vnc-encoding-zlib.c |9 - vnc.h |1 + 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c index 6a16a79..29dd1b7 100644 --- a/vnc-encoding-zlib.c +++ b/vnc-encoding-zlib.c @@ -83,1

Re: [Qemu-devel] Re: [PATCH] virtio-spec: document block CMD and FLUSH

2010-05-06 Thread Jamie Lokier
Rusty Russell wrote: > On Wed, 5 May 2010 05:47:05 am Jamie Lokier wrote: > > Jens Axboe wrote: > > > On Tue, May 04 2010, Rusty Russell wrote: > > > > ISTR someone mentioning a desire for such an API years ago, so CC'ing > > > > the > > > > usual I/O suspects... > > > > > > It would be nice to h

[Qemu-devel] Re: [patch uq/master 5/9] kvm: synchronize state from cpu context

2010-05-06 Thread Avi Kivity
On 05/04/2010 03:45 PM, Marcelo Tosatti wrote: From: Jan Kiszka It is not safe to retrieve the KVM internal state of a given cpu while its potentially modifying it. Queue the request to run on cpu context, similarly to qemu-kvm. Even better is to query the state in the cpu thread; but tha

Re: [Qemu-devel] Re: [PATCH] virtio-spec: document block CMD and FLUSH

2010-05-06 Thread Jamie Lokier
Rusty Russell wrote: > > Seems over-zealous. > > If the recovery_header held a strong checksum of the recovery_data you would > > not need the first fsync, and as long as you have two places to write > > recovery > > data, you don't need the 3rd and 4th syncs. > > Just: > > > > write_internally

Re: [Qemu-devel] [PATCH] qemu: address todo comment in exec.c

2010-05-06 Thread Aurelien Jarno
On Tue, Apr 06, 2010 at 02:18:19PM +0300, Michael S. Tsirkin wrote: > exec.c has a comment 'XXX: optimize' for lduw_phys/stw_phys, > so let's do it, along the lines of stl_phys. > > The reason to address 16 bit accesses specifically is that virtio relies > on these accesses to be done atomically,

[Qemu-devel] [PATCH 1/4] vnc: set the right prefered encoding

2010-05-06 Thread Corentin Chary
>From RFB specs: "The order of the encoding types given in this message is a hint by the client as to its preference (the first encoding specified being most preferred)" Signed-off-by: Corentin Chary --- vnc.c | 15 +++ 1 files changed, 11 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] Call for 0.12.4

2010-05-06 Thread Anthony Liguori
On 05/06/2010 08:09 AM, Kevin Wolf wrote: Am 08.04.2010 20:37, schrieb Aurelien Jarno: 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 18

[Qemu-devel] [PATCH RFC] qemu/virtio: use last used index published by guest

2010-05-06 Thread Michael S. Tsirkin
Reduces irq_window in guest by only injecting an interrupt if guest has handled all buffers we used so far. Signed-off-by: Michael S. Tsirkin --- This is the qemu part of the story. hw/vhost_net.c |6 ++ hw/virtio.c| 15 +++ hw/virtio.h|4 3 files changed

[Qemu-devel] [PATCH] block: Fix bdrv_commit

2010-05-06 Thread Kevin Wolf
When reopening the image, don't guess the driver, but use the same driver as was used before. This is important if the format=... option was used for that image. Signed-off-by: Kevin Wolf --- block.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block.c b/block.c

Re: [Qemu-devel] vgabios + qemu: issues and plans.

2010-05-06 Thread Gerd Hoffmann
First, I'd like to be able to load the vgabios via PCI ROM bar on all pci vga cards (stdvga, vmware, soon qxl). The PCI ID in the bios has to match the PCI ID of the card, so we'll need a bunch of vga bios binaries, all identical except for the PCI ID. Or we need some kind of binary patching. O

Re: [Qemu-devel] [PATCH] vnc: set the right prefered encoding

2010-05-06 Thread Corentin Chary
On Tue, May 4, 2010 at 2:01 PM, Corentin Chary wrote: > From RFB specs: "The order of the encoding types given in this > message is a hint by the client as to its preference (the first > encoding specified being most preferred)" > > Signed-off-by: Corentin Chary > --- >  vnc.c |   14 ++--

[Qemu-devel] Re: [PATCH v7 4/6] char: Add qemu_chr_write_nb() for nonblocking writes

2010-05-06 Thread Gerd Hoffmann
I'm all for killing the blocking interface. Problem is that converting over all users isn't exactly trivial and we have plenty of them. IMHO it isn't realistic to do the switch with a single patch series. If we're agreed we ought to kill the blocking interface, let's define a new proper interfac

Re: [Qemu-devel] Re: [PATCH] virtio-spec: document block CMD and FLUSH

2010-05-06 Thread Rusty Russell
On Wed, 5 May 2010 03:33:43 pm Neil Brown wrote: > On Wed, 5 May 2010 14:28:41 +0930 > Rusty Russell wrote: > > > On Wed, 5 May 2010 05:47:05 am Jamie Lokier wrote: > > > Jens Axboe wrote: > > > > On Tue, May 04 2010, Rusty Russell wrote: > > > > > ISTR someone mentioning a desire for such an API

[Qemu-devel] Re: [PATCH RFC] virtio: put last seen used index into ring itself

2010-05-06 Thread Michael S. Tsirkin
On Thu, May 06, 2010 at 12:01:34PM +0930, Rusty Russell wrote: > On Thu, 6 May 2010 06:28:14 am Michael S. Tsirkin wrote: > > Rusty, > > this is a simplified form of a patch you posted in the past. > > I have a vhost patch that, using this feature, shows external > > to host bandwidth grow from 5 t

Re: [Qemu-devel] [PATCH 6/7] Fix zero-length write(2).

2010-05-06 Thread Aurelien Jarno
On Mon, Mar 29, 2010 at 10:54:42AM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson Thanks, applied. > --- > exec.c |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/exec.c b/exec.c > index 33854e1..d69194c 100644 > --- a/exec.c > +++ b/exec.c >

[Qemu-devel] Re: vgabios + qemu: issues and plans.

2010-05-06 Thread Gerd Hoffmann
Hi, First, I'd like to be able to load the vgabios via PCI ROM bar on all pci vga cards (stdvga, vmware, soon qxl). The PCI ID in the bios has to match the PCI ID of the card, so we'll need a bunch of vga bios binaries, all identical except for the PCI ID. Or we need some kind of binary patchi

Re: [Qemu-devel] Qemu - samba share help

2010-05-06 Thread Sergei Steshenko
You need to export your share on host OS. AFAIR in the guest OS the address to access SAMBA shares was 10.0.2.4. Regards, Sergei. --- On Wed, 5/5/10, Arpit Patel wrote: From: Arpit Patel Subject: [Qemu-devel] Qemu - samba share help To: qemu-devel@nongnu.org Date: Wednesday, May 5, 2010, 1

[Qemu-devel] [PATCH] A bit optimization for tlb_set_page() (resend)

2010-05-06 Thread Jun Koi
This patch avoids handling write watchpoints on read-only memory access. It also breaks the searching loop for watchpoint once the setup for handling watchpoint later is done. Signed-off-by: Jun Koi diff --git a/exec.c b/exec.c index 14d1fd7..6fd859f 100644 --- a/exec.c +++ b/exec.c @@ -2236,10

[Qemu-devel] Re: question on virtio

2010-05-06 Thread Rusty Russell
On Wed, 5 May 2010 08:39:47 pm Michael S. Tsirkin wrote: > Hi! > I see this in virtio_ring.c: > > /* Put entry in available array (but don't update avail->idx * > until they do sync). */ > > Why is it done this way? > It seems that updating the index straight away would be simple

[Qemu-devel] Re: How to map PCI memory into the VM without trapping

2010-05-06 Thread Frank Berreth
Hi there, this is just an update if you are interested in the outcome. I turns out that my initial assumption that there would be page faults/trapping on the memory pages was false. The reason the throughput is so low is because the memory was mapped non-cached. The VGA driver and the ivshmem driv

[Qemu-devel] [PATCH] pckbd: support for commands 0xf0-0xff: Pulse output bit

2010-05-06 Thread Bernhard Kohl
I use a legacy guest OS which sends the command 0xfd to the keyboard controller during initialization. To get rid of the message "qemu: unsupported keyboard cmd=0x%02x\n" I added support for the pulse output bit commands. Signed-off-by: Bernhard Kohl --- hw/pckbd.c | 23 --

[Qemu-devel] [PATCH] exec: optimize lduw_phys and stw_phys

2010-05-06 Thread Bernhard Kohl
Implementation of the optimized code for these two functions. This is necessary for virtio which reads and writes VirtQueue index fields using these functions. The assumption is that this are atomic operations, which is not the case, if the memcpy() function which is used in the non optimized cod

[Qemu-devel] [PATCH] pckbd: support for commands 0xf0-0xff: Pulse output bit

2010-05-06 Thread Bernhard Kohl
I use a legacy guest OS which sends the command 0xfd to the keyboard controller during initialization. To get rid of the message "qemu: unsupported keyboard cmd=0x%02x\n" I added support for the pulse output bit commands. Signed-off-by: Bernhard Kohl --- hw/pckbd.c | 23 --

Re: [Qemu-devel] Call for 0.12.4

2010-05-06 Thread Kevin Wolf
Am 08.04.2010 20:37, schrieb Aurelien Jarno: > 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 s

[Qemu-devel] [PATCH] block: Fix protocol detection for Windows devices

2010-05-06 Thread Kevin Wolf
We can't assume the file protocol for Windows devices, they need the same detection as other files for which an explicit protocol is not specified. Signed-off-by: Kevin Wolf --- block.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index 10a2

[Qemu-devel] Re: [patch uq/master 0/9] enable smp > 1 and related fixes

2010-05-06 Thread Avi Kivity
On 05/04/2010 03:45 PM, Marcelo Tosatti wrote: Applied all, thanks. -- error compiling committee.c: too many arguments to function

[Qemu-devel] Re: [patch uq/master 0/9] enable smp > 1 and related fixes

2010-05-06 Thread Avi Kivity
On 05/05/2010 09:24 PM, Anthony Liguori wrote: On 05/04/2010 07:45 AM, Marcelo Tosatti wrote: -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html How does this

[Qemu-devel] [PATCH 3/4] vnc: only use a single zlib stream

2010-05-06 Thread Corentin Chary
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding Signed-off-by: Corentin Chary --- vnc-encoding-zlib.c | 12 +--- vnc.h |2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c index 4a495ad..6a16a7

[Qemu-devel] [PATCH 2/4] vnc: really call zlib if we want zlib

2010-05-06 Thread Corentin Chary
Signed-off-by: Corentin Chary --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index a91c3a3..d0c0d00 100644 --- a/vnc.c +++ b/vnc.c @@ -655,7 +655,7 @@ static void send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { switch(v