[Qemu-devel] [PATCH 08/18] kvm: Handle kvm_init_vcpu errors

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Do not ignore errors of kvm_init_vcpu, they are fatal. Signed-off-by: Jan Kiszka --- cpus.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index b6f1cfb..33b604e 100644 --- a/cpus.c +++ b/cpus.c @@ -412,14 +412,19 @@ void

[Qemu-devel] [PATCH 09/18] Refactor kvm&tcg function names in cpus.c

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Pure interface cosmetics: Ensure that only kvm core services (as declared in kvm.h) start with "kvm_". Prepend "qemu_" to those that violate this rule in cpus.c. Also rename the corresponding tcg functions for the sake of consistency. Signed-off-by: Jan Kiszka --- cpus.c | 1

[Qemu-devel] [PATCH 00/18] [uq/master] MCE & IO exit fixes, prepare for VCPU loop reuse

2011-01-10 Thread Jan Kiszka
This series has three major topics: - add required kernel reentry after IO exits - provide MCE forwarding under !CONFIG_IOTHREAD - prepare kvm_cpu_exec for qemu-kvm reuse Along these lines, several cleanups and simplifcations are applied to cpus.c and the KVM VCPU execution bits. The first patc

[Qemu-devel] [PATCH 03/18] kvm: Provide sigbus services arch-independently

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Provide arch-independent kvm_on_sigbus* stubs to remove the #ifdef'ery from cpus.c. This patch also fixes --disable-kvm build by providing the missing kvm_on_sigbus_vcpu kvm-stub. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Alexander Graf --- cpus.c | 10 -

[Qemu-devel] [PATCH 04/18] Refactor signal setup functions in cpus.c

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Move {tcg,kvm}_init_ipi and block_io_signals to avoid prototypes, rename the former two to clarify that they deal with more than SIG_IPI. No functional changes. The forward declaration of sigbus_handler is just temporarily, it will be moved in a succeeding patch. qemu_kvm_init_c

[Qemu-devel] [PATCH 06/18] kvm: Refactor qemu_kvm_eat_signals

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka We do not use the timeout, so drop its logic. As we always poll our signals, we do not need to drop the global lock. Removing those calls allows some further simplifications. Also fix the error processing of sigpending at this chance. Signed-off-by: Jan Kiszka --- cpus.c | 2

[Qemu-devel] [PATCH 17/18] kvm: x86: Prepare VCPU loop for in-kernel irqchip

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Effectively no functional change yet as kvm_irqchip_in_kernel still only returns 0, but this patch will allow qemu-kvm to adopt the VCPU loop of upsteam KVM. Signed-off-by: Jan Kiszka --- target-i386/kvm.c | 78 - 1 files c

[Qemu-devel] [PATCH 10/18] Fix a few coding style violations in cpus.c

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka No functional changes. Signed-off-by: Jan Kiszka --- cpus.c | 96 ++- 1 files changed, 58 insertions(+), 38 deletions(-) diff --git a/cpus.c b/cpus.c index e482fdb..89b4bd7 100644 --- a/cpus.c +++ b/cpus.c @@ -130,

[Qemu-devel] [PATCH 15/18] kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka The reset we issue on KVM_EXIT_SHUTDOWN implies that we should also leave the VCPU loop. As we now check for exit_request which is set by qemu_system_reset_request, this bug is no longer critical. Still it's an unneeded extra turn. Signed-off-by: Jan Kiszka --- kvm-all.c |

[Qemu-devel] [PATCH 13/18] kvm: Unconditionally reenter kernel after IO exits

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka KVM requires to reenter the kernel after IO exits in order to complete instruction emulation. Failing to do so will leave the kernel state inconsistently behind. To ensure that we will get back ASAP, we issue a self-signal that will cause KVM_RUN to return once the pending operat

[Qemu-devel] [PATCH 02/18] kvm: Drop redundant kvm_enabled from kvm_cpu_thread_fn

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- cpus.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 4c9928e..8af53a9 100644 --- a/cpus.c +++ b/cpus.c @@ -597,8 +597,8 @@ static void *kvm_cpu_thread_fn(void *arg) qemu_mutex_lock(&qemu_gl

[Qemu-devel] [PATCH 05/18] kvm: Set up signal mask also for !CONFIG_IOTHREAD

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Block SIG_IPI and SIGBUS, unblock them during KVM_RUN, just like in io-thread mode. This will be required to process SIGBUS and for self-IPIs. As Windows doesn't support signal services, we need to provide a stub for the init function. Signed-off-by: Jan Kiszka --- cpus.c |

[Qemu-devel] [PATCH 18/18] kvm: Drop return values from kvm_arch_pre/post_run

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka We do not check them, and the only arch with non-empty implementations always returns 0 (this is also true for qemu-kvm). Signed-off-by: Jan Kiszka CC: Alexander Graf --- kvm.h |5 ++--- target-i386/kvm.c |8 ++-- target-ppc/kvm.c |6 ++ ta

[Qemu-devel] [PATCH 01/18] Revert "kvm: Drop return value of kvm_cpu_exec"

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka This reverts commit e60806755e2b74a34813c73ec61c33d38d102286. --- kvm-all.c |6 -- kvm-stub.c |4 ++-- kvm.h |2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index a5e9246..4ab5f5c 100644 --- a/kvm-all.c +++ b/kvm-

[Qemu-devel] [PATCH 11/18] Introduce VCPU self-signaling service

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Introduce qemu_cpu_kick_self to send SIG_IPI to the calling VCPU context. First user will be kvm. Signed-off-by: Jan Kiszka --- cpus.c| 19 ++- qemu-common.h |1 + 2 files changed, 19 insertions(+), 1 deletions(-) diff --git a/cpus.c b/cpus.c ind

[Qemu-devel] [PATCH 07/18] kvm: Add MCE signal support for !CONFIG_IOTHREAD

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Currently, we only configure and process MCE-related SIGBUS events if CONFIG_IOTHREAD is enabled. Fix this by factoring out the required handler registration and system configuration. Make sure that events happening over a VCPU context in non-threaded mode get dispatched as VCPU

[Qemu-devel] [PATCH 14/18] kvm: Remove static return code of kvm_handle_io

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Improve the readability of the exit dispatcher by moving the static return value of kvm_handle_io to its caller. Signed-off-by: Jan Kiszka --- kvm-all.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 429ab7a

[Qemu-devel] [PATCH 12/18] kvm: Move irqchip event processing out of inner loop

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Align with qemu-kvm and prepare for IO exit fix: There is no need to run kvm_arch_process_irqchip_events in the inner VCPU loop. Any state change this service processes will first cause an exit from kvm_cpu_exec anyway. And we will have to reenter the kernel on IO exits unconditi

[Qemu-devel] [PATCH 16/18] kvm: Separate TCG from KVM cpu execution

2011-01-10 Thread Jan Kiszka
From: Jan Kiszka Mixing up TCG bits with KVM already led to problems around eflags emulation on x86. Moreover, quite some code that TCG requires on cpu enty/exit is useless for KVM. So dispatch between tcg_cpu_exec and kvm_cpu_exec as early as possible. The core logic of cpu_halted from cpu_exec

[Qemu-devel] Re: [PATCH] add event queueing to USB HID

2011-01-10 Thread Paolo Bonzini
On 01/07/2011 08:59 AM, Gerd Hoffmann wrote: On 12/23/10 15:57, Paolo Bonzini wrote: The polling nature of the USB HID device makes it very hard to double click or drag while on a high-latency VNC connection. This patch, based on work done in the Xen qemu-dm tree by Ian Jackson, fixes this bug b

Re: [Qemu-devel] [PATCH 2/2] qcow2: fix unaligned access

2011-01-10 Thread Kevin Wolf
Am 01.01.2011 21:50, schrieb Aurelien Jarno: > cpu_to_be64w() is called with an obviously non-aligned pointer. Use > cpu_to_be64wu() instead. It fixes unaligned accesses errors on IA64 > hosts. > > Cc: Kevin Wolf > Signed-off-by: Aurelien Jarno Thanks, applied to the block branch. Kevin

[Qemu-devel] Re: [PATCH] cris: remove a write-only variable

2011-01-10 Thread Edgar E. Iglesias
On Sun, Jan 09, 2011 at 04:56:59PM +, Blue Swirl wrote: > Avoid a warning with GCC 4.6.0: > /src/qemu/target-cris/translate.c: In function > 'gen_intermediate_code_internal': > /src/qemu/target-cris/translate.c:3185:25: error: variable > 'orig_flags' set but not used [-Werror=unused-but-set-va

[Qemu-devel] [PATCH V5 1/4] nmi: convert cpu_index to cpu-index

2011-01-10 Thread Lai Jiangshan
"cpu-index" is better name. Signed-off-by: Lai Jiangshan --- diff --git a/hmp-commands.hx b/hmp-commands.hx index df134f8..99b96a8 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -721,7 +721,7 @@ ETEXI #if defined(TARGET_I386) { .name = "nmi", -.args_type = "c

[Qemu-devel] [PATCH V5 4/4] nmi: report error(QError) when the cpu-index is invalid

2011-01-10 Thread Lai Jiangshan
When cpu-index is found invalid in runtime, it will report QERR_INVALID_PARAMETER_VALUE. Signed-off-by: Lai Jiangshan --- diff --git a/monitor.c b/monitor.c index 1bee840..7402c0f 100644 --- a/monitor.c +++ b/monitor.c @@ -2535,6 +2535,7 @@ static int do_inject_nmi(Monitor *mon, const QDict *qd

[Qemu-devel] [PATCH V5 3/4] qmp, nmi: convert do_inject_nmi() to QObject

2011-01-10 Thread Lai Jiangshan
Make we can inject NMI via qemu-monitor-protocol. We use "inject-nmi" for the qmp command name, the meaning is clearer. Signed-off-by: Lai Jiangshan --- diff --git a/hmp-commands.hx b/hmp-commands.hx index a49fcd4..4db413d 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -724,7 +724,8 @@ ET

[Qemu-devel] [PATCH V5 2/4] nmi: make cpu-index argument optional

2011-01-10 Thread Lai Jiangshan
When the argument "cpu-index" is not given, then "nmi" command will inject NMI on all CPUs. This simulate the nmi button on physical machine. Thanks to Markus Armbruster for correcting the logic detecting "cpu-index" is given or not. Signed-off-by: Lai Jiangshan --- diff --git a/hmp-commands.h

[Qemu-devel] Re: [PATCH 00/18] [uq/master] MCE & IO exit fixes, prepare for VCPU loop reuse

2011-01-10 Thread Jan Kiszka
Am 10.01.2011 09:31, Jan Kiszka wrote: > This series has three major topics: > - add required kernel reentry after IO exits > - provide MCE forwarding under !CONFIG_IOTHREAD > - prepare kvm_cpu_exec for qemu-kvm reuse > > Along these lines, several cleanups and simplifcations are applied to > c

[Qemu-devel] Re: [PATCH 03/18] kvm: Provide sigbus services arch-independently

2011-01-10 Thread Paolo Bonzini
On 01/10/2011 09:31 AM, Jan Kiszka wrote: +int kvm_on_sigbus_vcpu(CPUState *env, int code, void *addr) +{ +return kvm_on_sigbus_vcpu(env, code, addr); +} + +int kvm_on_sigbus(int code, void *addr) +{ +return kvm_on_sigbus(code, addr); +} Missing arch_ here? Paolo

[Qemu-devel] Re: [PATCH 06/18] kvm: Refactor qemu_kvm_eat_signals

2011-01-10 Thread Paolo Bonzini
On 01/10/2011 09:31 AM, Jan Kiszka wrote: From: Jan Kiszka We do not use the timeout, so drop its logic. As we always poll our signals, we do not need to drop the global lock. Removing those calls allows some further simplifications. Also fix the error processing of sigpending at this chance. S

[Qemu-devel] Re: [PATCH 0/5] Fix migration with NFS & iscsi/Fiber channel

2011-01-10 Thread Juan Quintela
Juan Quintela wrote: > Hi Nack myself :-( After discussions with hch on irc, he "convinced" me that only way to fix the problem is forcing O_DIRECT if migration is going to happen. So, changing patchset to check that cache=none is used in all read/write devices. Later, Juan. > This patch set

[Qemu-devel] KVM call agenda for Jan 11

2011-01-10 Thread Juan Quintela
Please send any agenda items you are interested in covering. - KVM Forum 2011 (Jes). thanks, Juan.

[Qemu-devel] Re: [PATCH v4] savevm: Fix no_migrate

2011-01-10 Thread Daniel P. Berrange
On Fri, Jan 07, 2011 at 03:13:25PM -0700, Alex Williamson wrote: > The no_migrate save state flag is currently only checked in the > last phase of migration. This means that we potentially waste > a lot of time and bandwidth with the live state handlers before > we ever check the no_migrate flags.

[Qemu-devel] [PATCH] cutils: Use int64_t instead of ssize_t for strtosz()

2011-01-10 Thread Stefan Hajnoczi
The strtosz() function parses byte count strings and converts K, M, G units. The ssize_t type is not appropriate because block devices need 64-bit range even on 32-bit hosts. Switch from ssize_t to int64_t. Signed-off-by: Stefan Hajnoczi --- cutils.c |8 monitor.c |2

[Qemu-devel] Re: [PATCH 03/18] kvm: Provide sigbus services arch-independently

2011-01-10 Thread Jan Kiszka
Am 10.01.2011 11:13, Paolo Bonzini wrote: > On 01/10/2011 09:31 AM, Jan Kiszka wrote: >> +int kvm_on_sigbus_vcpu(CPUState *env, int code, void *addr) >> +{ >> +return kvm_on_sigbus_vcpu(env, code, addr); >> +} >> + >> +int kvm_on_sigbus(int code, void *addr) >> +{ >> +return kvm_on_sigbus(c

[Qemu-devel] Re: [PATCH] cutils: Use int64_t instead of ssize_t for strtosz()

2011-01-10 Thread Jes Sorensen
On 01/10/11 11:29, Stefan Hajnoczi wrote: > The strtosz() function parses byte count strings and converts K, M, G > units. The ssize_t type is not appropriate because block devices need > 64-bit range even on 32-bit hosts. Switch from ssize_t to int64_t. Hmmm I think this is identical to the pat

Re: [Qemu-devel] Re: [PATCH] cutils: Use int64_t instead of ssize_t for strtosz()

2011-01-10 Thread Stefan Hajnoczi
On Mon, Jan 10, 2011 at 10:33 AM, Jes Sorensen wrote: > On 01/10/11 11:29, Stefan Hajnoczi wrote: >> The strtosz() function parses byte count strings and converts K, M, G >> units.  The ssize_t type is not appropriate because block devices need >> 64-bit range even on 32-bit hosts.  Switch from ss

Re: [Qemu-devel] [RFC][PATCH] lsi53c895a: Update dnad when skipping MSGOUT bytes

2011-01-10 Thread Stefan Hajnoczi
On Sun, Jan 9, 2011 at 11:19 PM, Nicholas A. Bellinger wrote: > It's also worth mentioning that the sym53c8xx driver still works without > this patch, which may be attributed to the Win2003 driver perhaps > either: > > *) Sending contiguous 'Extended Messages' instead of individual messages > (as

Re: [Qemu-devel] Linux as VirtualBox quest OS with QEMU running Solaris

2011-01-10 Thread Mateusz Loskot
On 07/01/11 17:36, Michal Suchanek wrote: On 7 January 2011 18:28, Mateusz Loskot wrote: Hi, First, I'm sorry if my question does not belong here. The qemu-devel says it's "devel", but I can't find any qemu-users mailing list. I have seen it once but could not find it either when searching f

Re: [Qemu-devel] Linux as VirtualBox quest OS with QEMU running Solaris

2011-01-10 Thread Mateusz Loskot
On 07/01/11 18:15, Stefan Weil wrote: Am 07.01.2011 18:28, schrieb Mateusz Loskot: Hi, First, I'm sorry if my question does not belong here. The qemu-devel says it's "devel", but I can't find any qemu-users mailing list. I have no experience with QEMU. I've been using x86-only virtualization s

Re: [Qemu-devel] Linux as VirtualBox quest OS with QEMU running Solaris

2011-01-10 Thread Mateusz Loskot
On 07/01/11 20:37, Blue Swirl wrote: On Fri, Jan 7, 2011 at 5:28 PM, Mateusz Loskot wrote: Hi, First, I'm sorry if my question does not belong here. The qemu-devel says it's "devel", but I can't find any qemu-users mailing list. A forum exists: http://qemu-forum.ipi.fi/ Good to know. Thoug

[Qemu-devel] Re: KVM call agenda for Jan 11

2011-01-10 Thread Juan Quintela
Juan Quintela wrote: Now sent it to the right kvm list. Sorry for the second sent. > Please send any agenda items you are interested in covering. > > - KVM Forum 2011 (Jes). > > thanks, Juan.

Re: [Qemu-devel] [PATCH 0/5] usb-ccid (v14)

2011-01-10 Thread Gerd Hoffmann
On 01/08/11 11:28, Alon Levy wrote: This patchset adds three new devices, usb-ccid, ccid-card-passthru and ccid-card-emulated, providing a CCID bus, a simple passthru protocol implementing card requiring a client, and a standalone emulated card. It also introduces a new directory libcaccard with

Re: [Qemu-devel] [PATCH 6/7] lan9118: fix a buffer overflow

2011-01-10 Thread Markus Armbruster
Blue Swirl writes: > Fix a buffer overflow, reported by cppcheck: > [/src/qemu/hw/lan9118.c:849]: (error) Buffer access out-of-bounds: s.eeprom > > All eeprom handling code assumes that the size of eeprom is 128. > > Signed-off-by: Blue Swirl > --- > hw/lan9118.c |2 +- > 1 files changed, 1

Re: [Qemu-devel] [PATCH 0/7] cppcheck fixes

2011-01-10 Thread Markus Armbruster
Blue Swirl writes: > This patch set fixes bugs found by cppcheck. > > http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page > > Blue Swirl (7): > vnc-auth-sasl: fix a memory leak > loader: fix a file descriptor leak > vvfat: fix a file descriptor leak > qemu-io: fix a m

Re: [Qemu-devel] Re: KVM call agenda for Jan 11

2011-01-10 Thread Jes Sorensen
On 01/10/11 12:59, Juan Quintela wrote: > Juan Quintela wrote: > > Now sent it to the right kvm list. Sorry for the second sent. > >> Please send any agenda items you are interested in covering. >> >> - KVM Forum 2011 (Jes). Just to add a bit more background. Last year we discussed the issue o

[Qemu-devel] [PATCH] linux-user: Add configure check for linux/fiemap.h and IOC_FS_FIEMAP

2011-01-10 Thread Peter Maydell
Add a configure check for the existence of linux/fiemap.h and the IOC_FS_FIEMAP ioctl. This fixes a compilation failure on Linux systems which don't have that header file. Signed-off-by: Peter Maydell --- configure| 20 linux-user/ioctls.h |2 +- linux-use

[Qemu-devel] [PATCH 4/6] vnc/spice: fix "never" and "now" expire_time

2011-01-10 Thread Gerd Hoffmann
From: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- monitor.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index f258000..038d532 100644 --- a/monitor.c +++ b/monitor.c @@ -1136,9 +1136,9 @@ static int expire_password(Monitor *mon, cons

[Qemu-devel] [PATCH 2/6] spice: client migration.

2011-01-10 Thread Gerd Hoffmann
Handle spice client migration, i.e. inform a spice client connected about the new host and connection parameters, so it can move over the connection automatically. Signed-off-by: Gerd Hoffmann --- hmp-commands.hx | 20 qmp-commands.hx | 35 +++

[Qemu-devel] [PULL 0/6] spice patch queue

2011-01-10 Thread Gerd Hoffmann
Hi, Here is a bunch of spice patches accumuled this year, they all have been on the list for review. please pull, Gerd The following changes since commit 8aaf42ed0f203da63860b0a3ab3ff2bdfe9b4cb0: slirp: fix unaligned access in bootp code (2011-01-10 10:56:25 +0100) are available in the g

[Qemu-devel] [PATCH 5/6] spice/qxl: zap spice 0.4 migration compatibility bits

2011-01-10 Thread Gerd Hoffmann
Live migration from and to spice 0.4 qxl devices isn't going to work. Rip out the bits which attempt to support that. Zap the subsection logic which is obsolete now. Bumb the version to make a clean cut. This should obviously go in before 0.14 is released. Signed-off-by: Gerd Hoffmann --- hw/q

[Qemu-devel] [PATCH 3/6] spice: MAINTAINERS update

2011-01-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- MAINTAINERS |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 59effc7..25103dd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -383,6 +383,14 @@ S: Odd Fixes F: gdbstub* F: gdb-xml/ +SPICE +M: Gerd H

[Qemu-devel] Re: KVM call agenda for Jan 11

2011-01-10 Thread Juan Quintela
Juan Quintela wrote: > Juan Quintela wrote: > > Now sent it to the right kvm list. Sorry for the second sent. > >> Please send any agenda items you are interested in covering. >> >> - KVM Forum 2011 (Jes). >> >> thanks, Juan. - migration and block devices: a mess. * patches I sent last week:

[Qemu-devel] [PATCH 1/6] add migration state change notifiers

2011-01-10 Thread Gerd Hoffmann
This patch adds functions to register and unregister notifiers for migration state changes and a function to query the migration state. The notifier is called on every state change. Once after establishing a new migration object (which is in active state then) and once when the state changes from

[Qemu-devel] [PATCH 6/6] spice: add chardev (v4)

2011-01-10 Thread Gerd Hoffmann
From: Alon Levy Adding a chardev backend for spice, where spice determines what to do with it based on the name attribute given during chardev creation. For usage by spice vdagent in conjunction with a properly named virtio-serial device, and future smartcard channel usage. Example usage: qemu

Re: [Qemu-devel] Re: KVM call agenda for Jan 11

2011-01-10 Thread Stefan Hajnoczi
On Mon, Jan 10, 2011 at 1:05 PM, Jes Sorensen wrote: > On 01/10/11 12:59, Juan Quintela wrote: >> Juan Quintela wrote: >> >> Now sent it to the right kvm list.  Sorry for the second sent. >> >>> Please send any agenda items you are interested in covering. >>> >>> - KVM Forum 2011 (Jes). > > Just

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 01:13:25PM +0100, Alexander Graf wrote: > > On 06.01.2011, at 23:12, Aurelien Jarno wrote: > > > Hi, > > > > I have just sent a tcg/arm patch concerning code retranslation. You > > might want to look at the description (copied below), as from a first > > glance ppc, s390

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 15:00, Aurelien Jarno wrote: > On Mon, Jan 10, 2011 at 01:13:25PM +0100, Alexander Graf wrote: >> >> On 06.01.2011, at 23:12, Aurelien Jarno wrote: >> >>> Hi, >>> >>> I have just sent a tcg/arm patch concerning code retranslation. You >>> might want to look at the description

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 03:07:52PM +0100, Alexander Graf wrote: > > On 10.01.2011, at 15:00, Aurelien Jarno wrote: > > > On Mon, Jan 10, 2011 at 01:13:25PM +0100, Alexander Graf wrote: > >> > >> On 06.01.2011, at 23:12, Aurelien Jarno wrote: > >> > >>> Hi, > >>> > >>> I have just sent a tcg/ar

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 15:15, Aurelien Jarno wrote: > On Mon, Jan 10, 2011 at 03:07:52PM +0100, Alexander Graf wrote: >> >> On 10.01.2011, at 15:00, Aurelien Jarno wrote: >> >>> On Mon, Jan 10, 2011 at 01:13:25PM +0100, Alexander Graf wrote: On 06.01.2011, at 23:12, Aurelien Jarno wrote:

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 03:20:40PM +0100, Alexander Graf wrote: > > On 10.01.2011, at 15:15, Aurelien Jarno wrote: > > > On Mon, Jan 10, 2011 at 03:07:52PM +0100, Alexander Graf wrote: > >> > >> On 10.01.2011, at 15:00, Aurelien Jarno wrote: > >> > >>> On Mon, Jan 10, 2011 at 01:13:25PM +0100,

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 15:23, Aurelien Jarno wrote: > On Mon, Jan 10, 2011 at 03:20:40PM +0100, Alexander Graf wrote: >> >> On 10.01.2011, at 15:15, Aurelien Jarno wrote: >> >>> On Mon, Jan 10, 2011 at 03:07:52PM +0100, Alexander Graf wrote: On 10.01.2011, at 15:00, Aurelien Jarno wrote:

Re: [Qemu-devel] [PATCH 1/4] qdev: Add a description field for qdev properties for documentation

2011-01-10 Thread Markus Armbruster
Amit Shah writes: [...] > diff --git a/hw/qdev.c b/hw/qdev.c > index 6fc9b02..168d0f6 100644 > --- a/hw/qdev.c > +++ b/hw/qdev.c > @@ -185,7 +185,8 @@ int qdev_device_help(QemuOpts *opts) > if (!prop->info->parse) { > continue; /* no way to set it, don't show */ >

Re: [Qemu-devel] [PATCH 0/5] usb-ccid (v14)

2011-01-10 Thread Alon Levy
On Mon, Jan 10, 2011 at 01:44:32PM +0100, Gerd Hoffmann wrote: > On 01/08/11 11:28, Alon Levy wrote: > >This patchset adds three new devices, usb-ccid, ccid-card-passthru and > >ccid-card-emulated, providing a CCID bus, a simple passthru protocol > >implementing card requiring a client, and a stand

[Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 03:29:28PM +0100, Alexander Graf wrote: > > On 10.01.2011, at 15:23, Aurelien Jarno wrote: > > > On Mon, Jan 10, 2011 at 03:20:40PM +0100, Alexander Graf wrote: > >> > >> On 10.01.2011, at 15:15, Aurelien Jarno wrote: > >> > >>> On Mon, Jan 10, 2011 at 03:07:52PM +0100,

Re: [Qemu-devel] [PATCH 2/4] virtio-serial: Add description fields for qdev properties

2011-01-10 Thread Markus Armbruster
Amit Shah writes: > Document the parameters for the virtserialport and virtioconsole > devices. > > Example: > > $ ./x86_64-softmmu/qemu-system-x86_64 -device virtserialport,? > virtserialport.nr=uint32, The 'number' for the port for \ > predictable port numbers. Use this to spawn ports if you \

Re: [Qemu-devel] [PATCH 0/4] [RESEND] [REBASE] Auto-document qdev devices

2011-01-10 Thread Markus Armbruster
Amit Shah writes: > Hello, > > This is yet another rebase of the patchset I'd sent earlier. > > Changes: > - fixups and new strings for the bootorder patches > - new string for the discard property for block devices. > > The usual notes apply: this is just the start, just getting the > framewor

Re: [Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Edgar E. Iglesias
On Mon, Jan 10, 2011 at 03:20:40PM +0100, Alexander Graf wrote: > > On 10.01.2011, at 15:15, Aurelien Jarno wrote: > > > On Mon, Jan 10, 2011 at 03:07:52PM +0100, Alexander Graf wrote: > >> > >> On 10.01.2011, at 15:00, Aurelien Jarno wrote: > >> > >>> On Mon, Jan 10, 2011 at 01:13:25PM +0100,

[Qemu-devel] Re: [PATCH v4] savevm: Fix no_migrate

2011-01-10 Thread Alex Williamson
On Mon, 2011-01-10 at 10:24 +, Daniel P. Berrange wrote: > On Fri, Jan 07, 2011 at 03:13:25PM -0700, Alex Williamson wrote: > > The no_migrate save state flag is currently only checked in the > > last phase of migration. This means that we potentially waste > > a lot of time and bandwidth with

Re: [Qemu-devel] Re: tcg/{ppc, s390, sparc}: branch target and code retranslation

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 15:51, Edgar E. Iglesias wrote: > On Mon, Jan 10, 2011 at 03:20:40PM +0100, Alexander Graf wrote: >> >> On 10.01.2011, at 15:15, Aurelien Jarno wrote: >> >>> On Mon, Jan 10, 2011 at 03:07:52PM +0100, Alexander Graf wrote: On 10.01.2011, at 15:00, Aurelien Jarno wrot

Re: [Qemu-devel] [PATCH 2/6] spice: client migration.

2011-01-10 Thread Daniel P. Berrange
On Mon, Jan 10, 2011 at 02:31:47PM +0100, Gerd Hoffmann wrote: > Handle spice client migration, i.e. inform a spice client connected > about the new host and connection parameters, so it can move over the > connection automatically. > > Signed-off-by: Gerd Hoffmann > --- > hmp-commands.hx | 20

Re: [Qemu-devel] [PATCH 2/6] spice: client migration.

2011-01-10 Thread Alon Levy
On Mon, Jan 10, 2011 at 03:49:34PM +, Daniel P. Berrange wrote: > On Mon, Jan 10, 2011 at 02:31:47PM +0100, Gerd Hoffmann wrote: > > Handle spice client migration, i.e. inform a spice client connected > > about the new host and connection parameters, so it can move over the > > connection autom

Re: [Qemu-devel] KVM call agenda for Jan 11

2011-01-10 Thread Anthony Liguori
On 01/10/2011 04:17 AM, Juan Quintela wrote: Please send any agenda items you are interested in covering. - KVM Forum 2011 (Jes). - Spice guest agent (Alon) Regards, Anthony Liguori thanks, Juan.

Re: [Qemu-devel] [PATCH 2/6] spice: client migration.

2011-01-10 Thread Gerd Hoffmann
On 01/10/11 16:57, Alon Levy wrote: +spice_migrate_info +-- + +Set the spice connection info for the migration target. The spice +server will ask the spice client to automatically reconnect using the +new parameters (if specified) once the vm migration finished +successfully. + +

Re: [Qemu-devel] [PATCH 2/6] spice: client migration.

2011-01-10 Thread Daniel P. Berrange
On Mon, Jan 10, 2011 at 05:08:40PM +0100, Gerd Hoffmann wrote: > On 01/10/11 16:57, Alon Levy wrote: > >>>+spice_migrate_info > >>>+-- > >>>+ > >>>+Set the spice connection info for the migration target. The spice > >>>+server will ask the spice client to automatically reconnect us

Re: [Qemu-devel] [PATCH] linux-user: fix for loopmount ioctl

2011-01-10 Thread Martin Mohring
On 01/09/2011 12:25 AM, Martin Mohring wrote: > Hi, > > I had fixed the loopmount ioctl for linux-user, working correctly for arm, > mips, ppc32 and sh4. > > Martin > > ping Aurelien, Riku, is that patch ok? Its only 2 lines of change to activate an ioctl.

[Qemu-devel] [PATCH] arm-dis: Include opcode hex when doing disassembly

2011-01-10 Thread Peter Maydell
Enhance the ARM disassembler used for debugging so that it includes the hex dump of the opcode as well as the symbolic disassembly. Signed-off-by: Peter Maydell --- This is based on meego-qemu commit e548a60c with a change suggested last time that patch was sent to qemu-devel: http://www.mail-arc

Re: [Qemu-devel] [PATCH 2/6] spice: client migration.

2011-01-10 Thread Gerd Hoffmann
Hi, I like client_migrate_info and it fits both spice+vnc naming too. Given that vnc just needs hostname and port (which are present already) and the arguments not used by vnc are optional all we need to do is rename the command and add a "protocol" argument similar to "set_password", correct

[Qemu-devel] [PATCH applied] virtio: move vmstate change tracking to core

2011-01-10 Thread Michael S. Tsirkin
Move tracking vmstate change from virtio-net to virtio.c as it is going to be used by virito-blk and virtio-pci for the ioeventfd support. Signed-off-by: Michael S. Tsirkin --- Just wanted to call attention to this patch which is part of the ioeventfd series (was part of a larger patch but I spl

Re: [Qemu-devel] [PATCH] arm-dis: Include opcode hex when doing disassembly

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 04:16:26PM +, Peter Maydell wrote: > Enhance the ARM disassembler used for debugging so that it includes > the hex dump of the opcode as well as the symbolic disassembly. > > Signed-off-by: Peter Maydell > --- > This is based on meego-qemu commit e548a60c with a change

Re: [Qemu-devel] Re: [PATCH 5/7] tcg-i386: Implement deposit operation.

2011-01-10 Thread Aurelien Jarno
On Sun, Jan 09, 2011 at 04:43:22PM -0800, Richard Henderson wrote: > On 01/09/2011 04:16 PM, Aurelien Jarno wrote: > > The code being written now or latter doesn't change the question to know > > if it is always possible to allocate one scratch register here on i386. > > Yes. > > Here there's onl

[Qemu-devel] [RFC][PATCH 2/2] qcow2: Use QcowCache

2011-01-10 Thread Kevin Wolf
Use the new functions of qcow2-cache.c for everything that works on refcount block and L2 tables. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 206 ++-- block/qcow2-refcount.c | 249 +++- block/qcow2.c

[Qemu-devel] [RFC][PATCH 0/2] qcow2 metadata cache

2011-01-10 Thread Kevin Wolf
block-queue turned out to be too big effort to be useful for quickly fixing the performance problems that qcow2 got since we introduced the metadata flushes. While I still think the idea is right, it needs more time and qcow2 doesn't have more time. Let's come back to block-queue later when the mos

[Qemu-devel] [PATCH] qemu-img snapshot: Use writeback caching

2011-01-10 Thread Kevin Wolf
None of the other qemu-img subcommands uses writethrough, and there's no reason why snapshot should be special. Signed-off-by: Kevin Wolf --- qemu-img.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index afd9ed2..1e65ea8 100644 --- a/qemu-img.

Re: [Qemu-devel] [PULL] piix, pci, qdev

2011-01-10 Thread Anthony Liguori
On 12/27/2010 11:21 AM, Michael S. Tsirkin wrote: The sysbus change is already in master, but I didn't want to rebase the tree. I verified there's no conflict when merging. The only thing that might be controversial here is the bridge migration path, but the patch was out for pretty long without

Re: [Qemu-devel] Linux as VirtualBox quest OS with QEMU running Solaris

2011-01-10 Thread Stefan Weil
Am 10.01.2011 12:19, schrieb Mateusz Loskot: On 07/01/11 18:15, Stefan Weil wrote: Am 07.01.2011 18:28, schrieb Mateusz Loskot: Hi, First, I'm sorry if my question does not belong here. The qemu-devel says it's "devel", but I can't find any qemu-users mailing list. I have no experience with Q

[Qemu-devel] [RFC][PATCH 1/2] qcow2: Add QcowCache

2011-01-10 Thread Kevin Wolf
This adds some new cache functions to qcow2 which can be used for caching refcount blocks and L2 tables. When used with cache=writethrough they work like the old caching code which is spread all over qcow2, so for this case we have merely a cleanup. The interesting case is with writeback caching (

Re: [Qemu-devel] [PATCH] arm-dis: Include opcode hex when doing disassembly

2011-01-10 Thread Peter Maydell
On 10 January 2011 10:49, Aurelien Jarno wrote: > Strangely on arm host, the opcode hex is already included, as shown > below: > > | OUT: [size=308] > | 0x01001ec0:  e5974004  ldr      r4, [r7, #4] > | 0x01001ec4:  e1a04804  lsl      r4, r4, #16 > | 0x01001ec8:  e1a04824  lsr      r4, r4, #16 > |

Re: [Qemu-devel] [PATCH] arm-dis: Include opcode hex when doing disassembly

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 11:09:28AM -0600, Peter Maydell wrote: > On 10 January 2011 10:49, Aurelien Jarno wrote: > > Strangely on arm host, the opcode hex is already included, as shown > > below: > > > > | OUT: [size=308] > > | 0x01001ec0:  e5974004  ldr      r4, [r7, #4] > > | 0x01001ec4:  e1a048

[Qemu-devel] [PATCH 1/3] MAINTAINERS: fix typos

2011-01-10 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- MAINTAINERS |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 59effc7..98af4ab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -202,7 +202,7 @@ M: Edgar E. Iglesias S: Maintained F: hw/etraxfs.c -M86K M

[Qemu-devel] [PATCH 2/3] MAINTAINERS: Change MIPS and SH4 maintainers

2011-01-10 Thread Aurelien Jarno
Since nobody else seems interested in maintaining MIPS and SH4 targets, and as I have done most of the recent code changes, let officialize that. Signed-off-by: Aurelien Jarno --- MAINTAINERS |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINER

[Qemu-devel] [PATCH] tcg arm/mips/ia64: add a comment about retranslation and caches

2011-01-10 Thread Aurelien Jarno
Add a comment about cache coherency and retranslation, so that people developping new targets based on existing ones are warned of the issue. Cc: Alexander Graf Cc: Edgar E. Iglesias Signed-off-by: Aurelien Jarno --- tcg/arm/tcg-target.c |3 +++ tcg/ia64/tcg-target.c |3 +++ tcg/mips/

[Qemu-devel] [PATCH 3/3] MAINTAINERS: add entries for TCG

2011-01-10 Thread Aurelien Jarno
The MAINTAINERS file was lacking entries concerning the TCG code, add them based on the git history. For the common TCG code, is probably better to keep qemu-de...@non-gnu.org as this code can break easily, so it's better to get it reviewed by a few persons. v1 -> v2: - Changed i386 as maintained

[Qemu-devel] Re: [PATCH 3/3] MAINTAINERS: add entries for TCG

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 18:34, Aurelien Jarno wrote: > The MAINTAINERS file was lacking entries concerning the TCG code, add > them based on the git history. > > For the common TCG code, is probably better to keep qemu-de...@non-gnu.org > as this code can break easily, so it's better to get it reviewe

[Qemu-devel] Re: [PATCH v4] savevm: Fix no_migrate

2011-01-10 Thread Alex Williamson
On Sun, 2011-01-09 at 12:47 +0200, Michael S. Tsirkin wrote: > On Fri, Jan 07, 2011 at 03:13:25PM -0700, Alex Williamson wrote: > > The no_migrate save state flag is currently only checked in the > > last phase of migration. This means that we potentially waste > > a lot of time and bandwidth with

[Qemu-devel] Re: [PATCH 3/3] MAINTAINERS: add entries for TCG

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 18:34, Aurelien Jarno wrote: > Cc: Andrzej Zaborowski ^- That email address always bounces for me. Are you sure it's still valid? Alex

[Qemu-devel] Re: [PATCH] tcg arm/mips/ia64: add a comment about retranslation and caches

2011-01-10 Thread Alexander Graf
On 10.01.2011, at 18:34, Aurelien Jarno wrote: > Add a comment about cache coherency and retranslation, so that people > developping new targets based on existing ones are warned of the issue. > > Cc: Alexander Graf > Cc: Edgar E. Iglesias > Signed-off-by: Aurelien Jarno Thanks :) Acked-by

Re: [Qemu-devel] Linux as VirtualBox quest OS with QEMU running Solaris

2011-01-10 Thread Mateusz Loskot
On 10/01/11 17:08, Stefan Weil wrote: Am 10.01.2011 12:19, schrieb Mateusz Loskot: On 07/01/11 18:15, Stefan Weil wrote: There are no precompiled windows binaries of current qemu, so you will have to compile them yourself (which is not difficult once you have the correct mingw environment). G

Re: [Qemu-devel] Re: [PATCH 3/3] MAINTAINERS: add entries for TCG

2011-01-10 Thread andrzej zaborowski
On 10 January 2011 18:46, Alexander Graf wrote: > > On 10.01.2011, at 18:34, Aurelien Jarno wrote: > >> Cc: Andrzej Zaborowski > > ^- That email address always bounces for me. Are you sure it's still valid? It is outdated, please use or alternatively just the mailling list. Cheers

Re: [Qemu-devel] Re: [PATCH 3/3] MAINTAINERS: add entries for TCG

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 07:01:47PM +0100, andrzej zaborowski wrote: > On 10 January 2011 18:46, Alexander Graf wrote: > > > > On 10.01.2011, at 18:34, Aurelien Jarno wrote: > > > >> Cc: Andrzej Zaborowski > > > > ^- That email address always bounces for me. Are you sure it's still valid? > > It

[Qemu-devel] [Bug 544527] Re: usbfs is bugged with >2.6.32.9 and <=2.6.33 (breaks VMWare, Qemu, sane scanners, ...)

2011-01-10 Thread Jeremy Foshee
** Changed in: linux (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/544527 Title: usbfs is bugged with >2.6.32.9 and <=2.6.33 (breaks VMWare, Qe

  1   2   >