[Qemu-devel] sparc64 lazy conditional codes evaluation

2010-05-03 Thread Igor Kovalenko
Hi! There is an issue with lazy conditional codes evaluation where we return from trap handler with mismatching conditionals. I seldom reproduce it here when dragging qemu window while machine is working through silo initialization. I use gentoo minimal cd install-sparc64-minimal-20100322.iso but

[Qemu-devel] [PATCH 0/3] sparc64: improve mmu context handling

2010-05-03 Thread Igor V. Kovalenko
The following series implements more sparc64 MMU bits. We now support secondary and nucleus contexts referenced by alternate space access instructions, and handle global MMU translation entries. --- Igor V. Kovalenko (3): sparc64: more ultrasparc asi extensions for disassembler sparc

[Qemu-devel] [PATCH 1/3] sparc64: more ultrasparc asi extensions for disassembler

2010-05-03 Thread Igor V. Kovalenko
From: Igor V. Kovalenko Signed-off-by: Igor V. Kovalenko --- sparc-dis.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/sparc-dis.c b/sparc-dis.c index 611e74f..cdd337a 100644 --- a/sparc-dis.c +++ b/sparc-dis.c @@ -2153,6 +2153,28 @@ static const

[Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries

2010-05-03 Thread Igor V. Kovalenko
From: Igor V. Kovalenko - match global tte against any context - show global tte in MMU dump Signed-off-by: Igor V. Kovalenko --- target-sparc/cpu.h | 18 target-sparc/helper.c| 33 - target-sparc/op_helper.c | 52 +++

[Qemu-devel] [PATCH 3/3] sparc64: handle asi referencing nucleus and secondary MMU contexts

2010-05-03 Thread Igor V. Kovalenko
From: Igor V. Kovalenko - increase max supported MMU modes to 6 - handle nucleus context asi - handle secondary context asi - handle non-faulting loads from secondary context Signed-off-by: Igor V. Kovalenko --- softmmu_exec.h | 25 - target-sparc/cpu.h | 13 ++- target

[Qemu-devel] Re: [PATCH 2/2] virtio-console: Notify resize to the guest.

2010-05-03 Thread Amit Shah
On (Mon) May 03 2010 [12:06:33], Amit Shah wrote: > From: Kusanagi Kouichi > > I tested this patch as follows: I put printf()s into involved > functions. Then ran qemu on a terminal emulator, and resized it. The > guest kernel gets initial size, and follows host resize. Both singleport > and mult

[Qemu-devel] Re: [PATCH] block: Remove semicolon in BDRV_SECTOR_MASK macro

2010-05-03 Thread Kevin Wolf
Am 01.05.2010 08:23, schrieb Stefan Hajnoczi: > Signed-off-by: Stefan Hajnoczi > --- > block.h |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/block.h b/block.h > index 05ad572..bb9a697 100644 > --- a/block.h > +++ b/block.h > @@ -38,7 +38,7 @@ typedef struct QEMUS

[Qemu-devel] Re: [PATCH] Revert "PCI: Convert pci_device_hot_add() to QObject"

2010-05-03 Thread Markus Armbruster
Luiz Capitulino writes: > On Mon, 26 Apr 2010 19:44:19 +0200 > Markus Armbruster wrote: > >> We don't want pci_add in QMP. Use device_add instead. >> >> This reverts commit 7a344f7ac7bb651d0556a933ed8060d3a9e5d949. >> >> Conflicts: >> >> hw/pci-hotplug.c >> sysemu.h >> >> Signed-o

[Qemu-devel] Re: [RFC PATCH 05/20] Introduce put_vector() and get_vector to QEMUFile and qemu_fopen_ops().

2010-05-03 Thread Yoshiaki Tamura
2010/4/23 Avi Kivity : > On 04/23/2010 04:22 PM, Anthony Liguori wrote: >>> >>> I currently don't have data, but I'll prepare it. >>> There were two things I wanted to avoid. >>> >>> 1. Pages to be copied to QEMUFile buf through qemu_put_buffer. >>> 2. Calling write() everytime even when we want to

[Qemu-devel] hw/iov.[ch]?

2010-05-03 Thread Christoph Hellwig
Any reasons these files are under hw? They're completely generic routines that might come in handy for block work, too.

Re: [Qemu-devel] hw/iov.[ch]?

2010-05-03 Thread Amit Shah
On (Mon) May 03 2010 [12:17:28], Christoph Hellwig wrote: > Any reasons these files are under hw? They're completely generic > routines that might come in handy for block work, too. No particular reason. They can be moved around. Amit

[Qemu-devel] [RfC PATCH] vnc: rich cursor support.

2010-05-03 Thread Gerd Hoffmann
Hi, Simple patch. Difficuilt matter. Not really sure where to go from here ... The whole thing is about local cursor support, i.e. just let the UI (sdl, vnc viewer, spice client, ...) draw the mouse pointer directly, without round trip to the guest for mouse pointer rendering. Current state

[Qemu-devel] Re: [RFC PATCH 05/20] Introduce put_vector() and get_vector to QEMUFile and qemu_fopen_ops().

2010-05-03 Thread Anthony Liguori
On 05/03/2010 04:32 AM, Yoshiaki Tamura wrote: 2010/4/23 Avi Kivity: On 04/23/2010 04:22 PM, Anthony Liguori wrote: I currently don't have data, but I'll prepare it. There were two things I wanted to avoid. 1. Pages to be copied to QEMUFile buf through qemu_put_buffer. 2. Calling wri

Re: [Qemu-devel] Latest git doesn't compile

2010-05-03 Thread Anthony Liguori
On 05/01/2010 11:25 AM, Nigel Horne wrote: On 05/01/2010 09:39 AM, Lucas Meneghel Rodrigues wrote: On Sat, 2010-05-01 at 09:29 -0400, Nigel Horne wrote: ./configure --enable-linux-aio --enable-io-thread --enable-kvm make clean ... gcc: block/blkdebug.o: No such file or directory -Nigel A test

Re: [Qemu-devel] [RfC PATCH] vnc: rich cursor support.

2010-05-03 Thread Anthony Liguori
On 05/03/2010 06:59 AM, Gerd Hoffmann wrote: Hi, Simple patch. Difficuilt matter. Not really sure where to go from here ... It'll be a complicated patch :-) I looked at this a while ago and there are a few gotchas. The whole thing is about local cursor support, i.e. just let the

Re: [Qemu-devel] [RfC PATCH] vnc: rich cursor support.

2010-05-03 Thread Gerd Hoffmann
On 05/03/10 14:20, Anthony Liguori wrote: On 05/03/2010 06:59 AM, Gerd Hoffmann wrote: Hi, Simple patch. Difficuilt matter. Not really sure where to go from here ... It'll be a complicated patch :-) I looked at this a while ago and there are a few gotchas. Yea, /me isn't surprised after dig

[Qemu-devel] Re: [PULL 00/18] Block patches

2010-05-03 Thread Anthony Liguori
On 04/30/2010 09:00 AM, Kevin Wolf wrote: Hi Anthony, this is the second part of the block patches in my queue that I promised in the pull request last week. I also included the high watermark patch even if it didn't sit on the list for a very long time - but the people that I expected to commen

[Qemu-devel] Re: [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-05-03 Thread Anthony Liguori
On 04/26/2010 12:58 PM, Marcelo Tosatti wrote: The following changes since commit a303f9e37b87ced34e966dc2c0b7f86bc5e74035: Blue Swirl (1): sh4: remove dead assignments, spotted by clang analyzer are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-k

Re: [Qemu-devel] [PATCH 1/2] qemu-error: Introduce get_errno_name()

2010-05-03 Thread Markus Armbruster
Luiz Capitulino writes: > We need to expose errno in QMP, for three reasons: > > 1. Some error handling functions print errno codes to the user, > while it's debatable whether this is good or not from a user > perspective, sometimes it's the best we can do because it's > what sys

Re: [Qemu-devel] [PATCH 2/2] QMP: Add 'reason' member to the BLOCK_IO_ERROR event

2010-05-03 Thread Anthony Liguori
On 04/29/2010 12:30 PM, Luiz Capitulino wrote: On Wed, 28 Apr 2010 18:24:29 -0500 Anthony Liguori wrote: On 04/28/2010 03:32 PM, Luiz Capitulino wrote: It's a parsable errno string representation, this is needed because some management tools want to base their action on the error ca

Re: [Qemu-devel] [PATCH 1/2] qemu-error: Introduce get_errno_name()

2010-05-03 Thread Anthony Liguori
On 05/03/2010 08:06 AM, Markus Armbruster wrote: Luiz Capitulino writes: We need to expose errno in QMP, for three reasons: 1. Some error handling functions print errno codes to the user, while it's debatable whether this is good or not from a user perspective, sometimes it

Re: [Qemu-devel] [PATCH] qemu-nbd: Improve error reporting

2010-05-03 Thread Kevin Wolf
Am 02.05.2010 23:50, schrieb Ryota Ozaki: > - use err(3) instead of errx(3) if errno is available > to report why failed > - let fail prior to daemon(3) if opening a nbd file > is likely to fail after daemonizing to avoid silent > failure exit > - add missing 'ret = 1' when unix_socket_outgoi

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

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

[Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1

2010-05-03 Thread Corentin Chary
cc1: warnings being treated as errors vnc-auth-sasl.c: In function ‘vnc_client_write_sasl’: vnc-auth-sasl.c:50: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘size_t’ vnc-auth-sasl.c:50: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘size_t’ make: *** [vnc-auth-s

[Qemu-devel] [PATCH] vnc: split encoding in specific files

2010-05-03 Thread Corentin Chary
This will allow to implement new encodings (tight, zrle, ..) in a cleaner way. This may hurt performances, because some functions like vnc_convert_pixel are not static anymore, but should not be a problem with gcc 4.5 and the new -flto. Signed-off-by: Corentin Chary --- Makefile |

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

2010-05-03 Thread Anthony Liguori
On 05/03/2010 07:31 AM, Corentin Chary wrote: > From RFB specs: "The order of the encoding types given in this message is a hint bby the client as to its preference (the first encoding specified being most preferred)" Signed-off-by: Corentin Chary --- vnc.c | 11 +++ 1 files changed

[Qemu-devel] Re: [PATCH] vnc: split encoding in specific files

2010-05-03 Thread Anthony Liguori
On 05/03/2010 07:31 AM, Corentin Chary wrote: This will allow to implement new encodings (tight, zrle, ..) in a cleaner way. This may hurt performances, because some functions like vnc_convert_pixel are not static anymore, but should not be a problem with gcc 4.5 and the new -flto. Signed-off-by

[Qemu-devel] Re: [RFC PATCH 05/20] Introduce put_vector() and get_vector to QEMUFile and qemu_fopen_ops().

2010-05-03 Thread Yoshiaki Tamura
2010/5/3 Anthony Liguori : > On 05/03/2010 04:32 AM, Yoshiaki Tamura wrote: >> >> 2010/4/23 Avi Kivity: >> >>> >>> On 04/23/2010 04:22 PM, Anthony Liguori wrote: >>> > > I currently don't have data, but I'll prepare it. > There were two things I wanted to avoid. > > 1. Pages to

[Qemu-devel] Re: [RFC PATCH 05/20] Introduce put_vector() and get_vector to QEMUFile and qemu_fopen_ops().

2010-05-03 Thread Anthony Liguori
On 05/03/2010 10:36 AM, Yoshiaki Tamura wrote: Great! I also wanted to test with 10GE but I'm physically away from my office now, and can't set up the test environment. I'll measure the numbers w/ 10GE next week. BTW, I was thinking to write a patch to separate threads for both sender and rece

Re: [Qemu-devel] [PATCH 1/2] QMP: Introduce commands doc

2010-05-03 Thread Markus Armbruster
Luiz Capitulino writes: > One of the most important missing feature in QMP today is its > supported command documentation. > > The plan is to make it part of self-description support, however > self-description is a big task we have been postponing for a > long time now and still don't know when

Re: [Qemu-devel] Re: [PATCH] Revert "PCI: Convert pci_device_hot_add() to QObject"

2010-05-03 Thread Anthony Liguori
On 05/03/2010 04:29 AM, Markus Armbruster wrote: Luiz Capitulino writes: On Mon, 26 Apr 2010 19:44:19 +0200 Markus Armbruster wrote: We don't want pci_add in QMP. Use device_add instead. This reverts commit 7a344f7ac7bb651d0556a933ed8060d3a9e5d949. Conflicts: hw/pci-ho

Re: [Qemu-devel] [PATCH 3/3] qemu-nbd: Improve error reporting

2010-05-03 Thread Anthony Liguori
On 03/29/2010 06:03 AM, Kevin Wolf wrote: Am 28.03.2010 19:07, schrieb Ryota Ozaki: - use err(3) instead of errx(3) if errno is available to report why failed - let fail prior to daemon(3) if opening a nbd file is likely to fail after daemonizing to avoid silent failure exit - add m

Re: [Qemu-devel] [PATCH] Fix qemu mouse Set_Protocol behavior

2010-05-03 Thread Anthony Liguori
On 05/01/2010 09:38 PM, Kevin O'Connor wrote: The QEMU USB mouse claims to support the "boot" protocol (bInterfaceSubClass is 1). However, the mouse rejects the Set_Protocol command. The qemu mouse does support the "boot" protocol specification, so a simple fix is to just enable the Set_Portoco

[Qemu-devel] Re: [PATCH] Add KVM CFLAGS to vhost build

2010-05-03 Thread Jan Kiszka
Jan Kiszka wrote: > The configure test of vhost uses KVM CFLAGS, so the build must use them > as well. Otherwise we specifically miss what --kerneldir provides. > Ping. Jan > Signed-off-by: Jan Kiszka > --- > Makefile.target |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > d

[Qemu-devel] [PATCH 0/7] alpha-linux syscall fixes

2010-05-03 Thread Richard Henderson
I've been doing a bit of testing of the alpha TCG port by running QEMU compiled for alpha on QEMU compiled for x86-64. Which is an interesting challenge for the linux-user code, and has found a few bugs. r~ Richard Henderson (7): alpha-linux-user: Fix brk error return. alpha-linux-user: F

[Qemu-devel] [PATCH 2/7] alpha-linux-user: Fix siginfo.si_addr for SIGSEGV and SIGBUS.

2010-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 18b52c0..e35c124 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2434,7 +2434,7 @@ void cpu_loop (CPUState *env

[Qemu-devel] [PATCH 1/7] alpha-linux-user: Fix brk error return.

2010-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 17599eb..81e09b3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -718,9 +718,17 @@ abi_l

[Qemu-devel] [PATCH 4/7] alpha-linux-user: Fix pipe return mechanism.

2010-05-03 Thread Richard Henderson
At the same time, tidy the code wrt MIPS and SH4 which have the same two register return mechanism. Fix confusion between pipe and pipe2 with an explicit flags=0, when the guest will not be using the two register return mechanism. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 30

[Qemu-devel] [PATCH 3/7] alpha-linux-user: Add correct sigaction constants.

2010-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall_defs.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 63c2bc3..e41b6b9 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -33

[Qemu-devel] [PATCH 6/7] alpha-linux-user: Fix sigsuspend parameters.

2010-05-03 Thread Richard Henderson
Alpha passes the signal set in a register, not by reference. Signed-off-by: Richard Henderson --- linux-user/syscall.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8a6cbaf..899b76f 100644 --- a/linux-user/syscall.c

[Qemu-devel] [PATCH 5/7] alpha-linux-user: Fix getxpid.

2010-05-03 Thread Richard Henderson
Put ppid in the second return register. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3b0e169..8a6cbaf 100644 --- a/linux-user/syscall.c +++ b/linux-us

[Qemu-devel] [PATCH 7/7] alpha-linux-user: Fix sigprocmask.

2010-05-03 Thread Richard Henderson
Alpha passes oldset by value in a register, and returns the newset as the return value; as compared to the standard implementation in which both are passed by reference. This requires being able to distinguish negative return values that are not errors. Do this in the same way as the Alpha Linux

Re: [Qemu-devel] [PATCH] Fix tiny leak in qemu_opts_parse

2010-05-03 Thread Anthony Liguori
On 04/29/2010 11:24 AM, Jan Kiszka wrote: qemu_opts_create duplicates the id we pass in case it shall be stored in the opts. So we do not need to dup it in qemu_opts_parse, leaking a few bytes this way. Signed-off-by: Jan Kiszka Applied. Thanks. Regards, Anthony Liguori --- qemu-opti

Re: [Qemu-devel] [PATCH v2 1/2] lsi: Purge request queue on soft reset

2010-05-03 Thread Anthony Liguori
On 04/30/2010 07:06 AM, Jan Kiszka wrote: Avoid keeping zombie requests across controller reset by purging the queue and also dropping the currently active request. Signed-off-by: Jan Kiszka Applied all. Thanks. Regards, Anthony Liguori --- hw/lsi53c895a.c | 11 +++ 1 file

Re: [Qemu-devel] [PATCH] block: add logical_block_size property

2010-05-03 Thread Artyom Tarasenko
2010/3/4 Christoph Hellwig : > > Add a logical block size attribute as various guest side tools only > increase the filesystem sector size based on it, not the advisory > physical block size. > > For scsi we already have support for a different logical block size > in place for CDROMs that we can b

Re: [Qemu-devel] [PATCH 07/22] qemu-error: Introduce get_errno_string()

2010-05-03 Thread Anthony Liguori
On 04/21/2010 03:28 AM, Daniel P. Berrange wrote: On Tue, Apr 20, 2010 at 06:09:37PM -0300, Luiz Capitulino wrote: There are error handling functions in QEMU which print errno codes to the user. While it's debatable if this is good from a user perspective, sometimes it's the best you can do

Re: [Qemu-devel] [PATCH] block: read-only: open cdrom as read-only when using monitor's change command

2010-05-03 Thread Anthony Liguori
On 04/25/2010 11:30 AM, Naphtali Sprei wrote: Current code of monitor command: 'change', used to open file for read-write uncoditionally. Change to open it as read-only for CDROM, and read-write for all others. Signed-off-by: Naphtali Sprei Applied. Thanks. Regards, Anthony Liguori --

Re: [Qemu-devel] [PATCH] Fix boot once option

2010-05-03 Thread Anthony Liguori
On 04/30/2010 04:21 PM, Alex Williamson wrote: The boot once options seems to have gotten broken since it originally went in. We need to wait until the second time restore_boot_devices() gets called before restoring the standard boot order and removing itself from the reset list. Signed-off-by:

Re: [Qemu-devel] [PATCH] QMP: Introduce RESUME event

2010-05-03 Thread Anthony Liguori
On 04/27/2010 06:35 PM, Luiz Capitulino wrote: It's emitted when the Virtual Machine resumes execution. We currently have the STOP event but don't have the matching RESUME one, this means that clients are notified when the VM is stopped but don't get anything when it resumes. Let's fix that as

[Qemu-devel] Re: [PATCH] Add KVM CFLAGS to vhost build

2010-05-03 Thread Michael S. Tsirkin
On Tue, Apr 06, 2010 at 01:31:29PM +0200, Jan Kiszka wrote: > The configure test of vhost uses KVM CFLAGS, so the build must use them > as well. Otherwise we specifically miss what --kerneldir provides. > > Signed-off-by: Jan Kiszka Acked-by: Michael S. Tsirkin > --- > Makefile.target |2

Re: [Qemu-devel] [PATCH] Add KVM CFLAGS to vhost build

2010-05-03 Thread Anthony Liguori
On 04/06/2010 06:31 AM, Jan Kiszka wrote: The configure test of vhost uses KVM CFLAGS, so the build must use them as well. Otherwise we specifically miss what --kerneldir provides. Signed-off-by: Jan Kiszka Applied. Thanks. Regards, Anthony Liguori --- Makefile.target |2 +- 1 f

Re: [Qemu-devel] [PATCH] vnc: split encoding in specific files

2010-05-03 Thread Anthony Liguori
On 05/03/2010 07:31 AM, Corentin Chary wrote: This will allow to implement new encodings (tight, zrle, ..) in a cleaner way. This may hurt performances, because some functions like vnc_convert_pixel are not static anymore, but should not be a problem with gcc 4.5 and the new -flto. Signed-off-by

Re: [Qemu-devel] [PATCH] fix curses update

2010-05-03 Thread Anthony Liguori
On 04/22/2010 09:08 AM, Bernhard Kauer wrote: Hi, I believe this issue has come up before with a similar patch but well i've submitted such a patch more than two years ago. Unfortunatelly it got never applied, so that I have to patch my Qemu on every update... someone checked

Re: [Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1

2010-05-03 Thread Anthony Liguori
On 05/03/2010 07:31 AM, Corentin Chary wrote: cc1: warnings being treated as errors vnc-auth-sasl.c: In function ‘vnc_client_write_sasl’: vnc-auth-sasl.c:50: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘size_t’ vnc-auth-sasl.c:50: error: format ‘%d’ expects type ‘int’, but arg

Re: [Qemu-devel] [PATCH] fix whitespace bogon in some versions of make

2010-05-03 Thread Anthony Liguori
On 04/26/2010 04:52 PM, Nathan Froyd wrote: With three different make binaries I have available, configuring a pristine QEMU tree and attempting to make gives the cryptic: Makefile:27: *** missing separator. Stop. This patch fixes it (presumably because it makes the output of `set-vpath' be an

Re: [Qemu-devel] [PATCH] virtio-serial: Fix check for 'assert'; prevent NULL derefs

2010-05-03 Thread Anthony Liguori
On 04/30/2010 06:13 AM, Amit Shah wrote: In the flush_queued_data() function, we expect port to be valid. Assert only for port and not port || discard. Reported-by: Juan Quintela Signed-off-by: Amit Shah Applied. Thanks. Regards, Anthony Liguori --- hw/virtio-serial-bus.c |2 +-

Re: [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -device parm

2010-05-03 Thread Anthony Liguori
On 04/20/2010 02:28 AM, Gerd Hoffmann wrote: Hi, Not much traffic on this thread ;-) Indeed ;) I can see the usefulness of an init_late() to generalize post device setup issues. I assume then that you didn't have any other issues with my patch, other than general code structure concerns?

Re: [Qemu-devel] [PATCH] Fix the RARP protocol ID

2010-05-03 Thread Anthony Liguori
On 04/24/2010 07:54 AM, Stefan Berger wrote: The packet(s) sent out after migration are supposed to be RAPR type of packets. If they are supposed to go anywhere useful, the RAPR ethernet identifier needs to be fix. Also see http://www.iana.org/assignments/ethernet-numbers for 0x8035 for RARP. S

Re: [Qemu-devel] [PATCH -V6 00/21] virtio-9p: paravirtual file system passthrough

2010-05-03 Thread Anthony Liguori
On 04/29/2010 07:14 AM, Aneesh Kumar K.V wrote: Hi, This patch series adds VirtFS to QEMU. VirtFS is code named for a 9P filesystem server in QEMU enabling paravirtual filesystem pass-trhough between KVM host and guest. Applied all. Thanks. Regards, Anthony Liguori VirtFS is intended

Re: [Qemu-devel] [PATCH 2/2] VirtIO RNG

2010-05-03 Thread Anthony Liguori
On 03/30/2010 09:13 AM, Ian Molton wrote: > From 5f484301d73fa53009bbcd430f8ae85868b67772 Mon Sep 17 00:00:00 2001 From: Ian Molton Date: Tue, 17 Nov 2009 14:34:12 + Subject: [PATCH 2/4] virtio: Add virtio-rng driver This patch adds support for virtio-rng. Data is read from a charde

Re: [Qemu-devel] [PATCH] Changes to usb-linux to conform to coding style

2010-05-03 Thread Anthony Liguori
On 04/24/2010 11:26 AM, David Ahern wrote: Signed-off-by: David Ahern Applied. Thanks. Regards, Anthony Liguori --- usb-linux.c | 374 +++ 1 files changed, 224 insertions(+), 150 deletions(-) diff --git a/usb-linux.c b/usb-lin

Re: [Qemu-devel] [patch 01/02] create empty_slot device

2010-05-03 Thread Anthony Liguori
On 04/16/2010 06:10 PM, Artyom Tarasenko wrote: create empty_slot device The empty_slot device emulates known to a bus but not connected devices. Signed-off-by: Artyom Tarasenko --- What's this for? Is there a 2/2 missing? Regards, Anthony Liguori hw/empty_slot.c | 92 +++

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

2010-05-03 Thread Blue Swirl
On 5/3/10, Igor Kovalenko wrote: > Hi! > > There is an issue with lazy conditional codes evaluation where > we return from trap handler with mismatching conditionals. > > I seldom reproduce it here when dragging qemu window while > machine is working through silo initialization. I use gentoo m

Re: [Qemu-devel] [patch 01/02] create empty_slot device

2010-05-03 Thread Blue Swirl
On 5/3/10, Anthony Liguori wrote: > On 04/16/2010 06:10 PM, Artyom Tarasenko wrote: > > > create empty_slot device > > > > The empty_slot device emulates known to a bus but not connected devices. > > > > Signed-off-by: Artyom Tarasenko > > --- > > > > > > What's this for? It provides a dummy dev

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

2010-05-03 Thread Igor Kovalenko
On Mon, May 3, 2010 at 11:24 PM, Blue Swirl wrote: > On 5/3/10, Igor Kovalenko wrote: >> Hi! >> >>  There is an issue with lazy conditional codes evaluation where >>  we return from trap handler with mismatching conditionals. >> >>  I seldom reproduce it here when dragging qemu window while >>  m

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

2010-05-03 Thread Blue Swirl
On 5/3/10, Igor Kovalenko wrote: > On Mon, May 3, 2010 at 11:24 PM, Blue Swirl wrote: > > On 5/3/10, Igor Kovalenko wrote: > >> Hi! > >> > >> There is an issue with lazy conditional codes evaluation where > >> we return from trap handler with mismatching conditionals. > >> > >> I seldo

Re: [Qemu-devel] [PATCH v4 1/4] Modify DIRTY_FLAG value and introduce DIRTY_IDX to use as indexes of bit-based phys_ram_dirty.

2010-05-03 Thread Anthony Liguori
Hi Yoshi, Could you rebase this series and resubmit? It conflicts with the latest HEAD. Regards, Anthony Liguori On 04/19/2010 10:40 PM, Yoshiaki Tamura wrote: Replaces byte-based phys_ram_dirty bitmap with four (MASTER, VGA, CODE, MIGRATION) bit-based phys_ram_dirty bitmap. On allocation

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

2010-05-03 Thread Igor Kovalenko
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: >>  > On 5/3/10, Igor Kovalenko wrote: >>  >> Hi! >>  >> >>  >>  There is an issue with lazy conditional codes evaluation where >>  >>  we return from trap

Re: [Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries

2010-05-03 Thread Blue Swirl
On 5/3/10, Igor V. Kovalenko wrote: > From: Igor V. Kovalenko > > - match global tte against any context > - show global tte in MMU dump > > Signed-off-by: Igor V. Kovalenko I get this error: CCsparc64-softmmu/op_helper.o cc1: warnings being treated as errors /src/qemu/target-sparc/op_

Re: [Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries

2010-05-03 Thread Igor Kovalenko
On Tue, May 4, 2010 at 12:06 AM, Blue Swirl wrote: > On 5/3/10, Igor V. Kovalenko wrote: >> From: Igor V. Kovalenko >> >>  - match global tte against any context >>  - show global tte in MMU dump >> >>  Signed-off-by: Igor V. Kovalenko > > I get this error: >  CC    sparc64-softmmu/op_helper.o

Re: [Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries

2010-05-03 Thread Blue Swirl
On 5/3/10, Igor Kovalenko wrote: > On Tue, May 4, 2010 at 12:06 AM, Blue Swirl wrote: > > On 5/3/10, Igor V. Kovalenko wrote: > >> From: Igor V. Kovalenko > >> > >> - match global tte against any context > >> - show global tte in MMU dump > >> > >> Signed-off-by: Igor V. Kovalenko >

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

2010-05-03 Thread Frank Berreth
Hello, I am using a modified patch for the ivshmem device that was posted here recently and discovered some performance issues with it. Essentially I measure write performance into the PCI memory that is mapped into the VM as really slow (about 60mb/sec). I assume that is because there is trapping

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

2010-05-03 Thread Elek Roland
On v, 2010-05-02 at 17:56 +0200, Elek Roland wrote: > I'm going to try the patch in practice as > soon as I finish my university project. (It's due today.) I've tried the patch, and I can confirm that it does provide an AHCI device and a SATA disk. It shows up in qemu as an Intel Corporation 82801

Re: [Qemu-devel] [patch 01/02] create empty_slot device

2010-05-03 Thread Artyom Tarasenko
2010/5/3 Anthony Liguori : > On 04/16/2010 06:10 PM, Artyom Tarasenko wrote: >> >> create empty_slot device >> >> The empty_slot device emulates known to a bus but not connected devices. >> >> Signed-off-by: Artyom Tarasenko >> --- >> > > What's this for? It's an empty slot for a bus with a handsh

[Qemu-devel] Qemu-KVM 0.12.3 and Multipath -> Assertion

2010-05-03 Thread Peter Lieven
Hi Qemu/KVM Devel Team, i'm using qemu-kvm 0.12.3 with latest Kernel 2.6.33.3. As backend we use open-iSCSI with dm-multipath. Multipath is configured to queue i/o if no path is available. If we create a failure on all paths, qemu starts to consume 100% CPU due to i/o waits which is ok so far.

[Qemu-devel] [PATCH] Fix --enable-user-pie compilation.

2010-05-03 Thread Richard Henderson
We forgot to propagate -fpie to the libdis-user directory. Signed-off-by: Richard Henderson --- configure |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 87942f4..dc11b65 100755 --- a/configure +++ b/configure @@ -2344,6 +2344,9 @@ for d in

[Qemu-devel] [PATCH 2/2] tcg: Use INDEX_op_qemu_ld32 for 32-bit results.

2010-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/tcg-op.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h index bafac2b..aa436de 100644 --- a/tcg/tcg-op.h +++ b/tcg/tcg-op.h @@ -2172,12 +2172,20 @@ static inline void tcg_gen_qemu_ld16s(TCGv ret,

[Qemu-devel] [PATCH 1/2] tcg: Add TYPE parameter to tcg_out_mov.

2010-05-03 Thread Richard Henderson
Mirror tcg_out_movi in having a TYPE parameter. This allows x86_64 to perform the move at the proper width, which may elide a REX prefix. Update all targets to match. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c|2 +- tcg/hppa/tcg-target.c | 38 ++---

[Qemu-devel] [PATCH 0/2] two tcg improvements

2010-05-03 Thread Richard Henderson
The first patch allows the x86-64 port to avoid the REX.W prefix on moves, by allowing reg-reg moves to be typed just as reg-imm moves already are. This does require trivial changes to each port. The second patch fixes an oversight in commit 86feb1c860dc38e9c89e787c5210e8191800385e whereby I on

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

2010-05-03 Thread Alexander Graf
Hi Chong (or Qiao? Which one is your first name?), Upfront - please don't top post. Top posting is when you write your reply at the top of the mail. This is considered bad style on most open source mailing lists. Instead, people here usually send "inline" comments. So they put their reply below

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

2010-05-03 Thread 乔崇
Alexander Graf 写道: Hi Chong (or Qiao? Which one is your first name?), Thanks your advice,My first name is Chong. Upfront - please don't top post. Top posting is when you write your reply at the top of the mail. This is considered bad style on most open source mailing lists. Instead,

[Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2010-05-03 Thread Kenneth Johansson
I'm trying to setup a debian root that I can chroot into for armel and mips from an ubuntu 9.10 x86_64. While I have it working for armel on a specific qemu the mips target is more problematic. first both fail for qemu newer than 6173d56bdcb53389c54e803873e6bf8f87836a4f. doing /sbin/ldconfig. I

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

2010-05-03 Thread 乔崇
I add Sebastian Herbsz's patch,add WIN_WIN_STANDBYNOW1 support to fix hw_error on linux shut down etc. I am not familiar with git send-email,I am studying it now :). Sebastian Herbszt 写道: Hi again, please consider the following minor changes: - debug output with DEBUG_AHCI - set port count

Re: [Qemu-devel] Latest git doesn't compile

2010-05-03 Thread Nigel Horne
Does a simple make work? Either way, please attach the full output from configure and make and use the V=1 option to make. Yes But things have moved on, I've done a 'git pull' and now all compiles OK. Thanks for the fix. Regards, Anthony Liguori -Nigel

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

2010-05-03 Thread Rusty Russell
On Fri, 19 Feb 2010 08:52:20 am Michael S. Tsirkin wrote: > I took a stub at documenting CMD and FLUSH request types in virtio > block. Christoph, could you look over this please? > > I note that the interface seems full of warts to me, > this might be a first step to cleaning them. ISTR Christo

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

2010-05-03 Thread Gerhard Wiesinger
On Sat, 24 Apr 2010, Gerhard Wiesinger wrote: Guess problems comes from the following commit (not yet verified): commit 37c34d9d5d87ea9d51760310c8863b82cb8c055a Author: Anthony Liguori Date: Wed Mar 10 09:38:29 2010 -0600 input: make vnc use mouse mode notifiers When we switch to absol

[Qemu-devel] KVM call agenda for May 4

2010-05-03 Thread Chris Wright
Please send in any agenda items you are interested in covering. If we have a lack of agenda items I'll cancel the week's call. thanks, -chris

Re: [Qemu-devel] [PATCH 2/3] Compile vl.c once

2010-05-03 Thread TeLeMan
This patch breaks cpu list("-cpu ?"). -- SUN OF A BEACH On Fri, Apr 16, 2010 at 03:08, Blue Swirl wrote: > Since kvm.h can be used in files compiled once, > we can partially revert > b33612d03540fda7fa67485f1c20395beb7a2bf0. > > Signed-off-by: Blue Swirl > --- >  Makefile.objs   |    2 +- >  

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

2010-05-03 Thread Stefan Hajnoczi
A userspace barrier API would be very useful instead of doing fsync when only ordering is required. I'd like to follow that discussion too. Stefan On 4 May 2010 05:39, "Rusty Russell" wrote: On Fri, 19 Feb 2010 08:52:20 am Michael S. Tsirkin wrote: > I took a stub at documenting CMD and FLU...