[Qemu-devel] Re: [PATCH] add support for protocol driver create_options

2010-05-24 Thread MORITA Kazutaka
At Fri, 21 May 2010 13:40:31 +0200, Kevin Wolf wrote: Am 20.05.2010 07:36, schrieb MORITA Kazutaka: This patch enables protocol drivers to use their create options which are not supported by the format. For example, protcol drivers can use a backing_file option with raw format.

[Qemu-devel] Re: [PATCH] add support for protocol driver create_options

2010-05-24 Thread MORITA Kazutaka
At Fri, 21 May 2010 18:57:36 +0200, Kevin Wolf wrote: Am 20.05.2010 07:36, schrieb MORITA Kazutaka: + +/* + * Append an option list (list) to an option list (dest). + * + * If dest is NULL, a new copy of list is created. + * + * Returns a pointer to the first element of dest (or

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

2010-05-24 Thread Avi Kivity
On 05/23/2010 07:30 PM, Michael S. Tsirkin wrote: Maybe we should use atomics on index then? This should only be helpful if you access the cacheline several times in a row. That's not the case in virtio (or here). So why does it help? We actually do access the

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread MORITA Kazutaka
At Sun, 23 May 2010 15:01:59 +0300, Avi Kivity wrote: On 05/21/2010 12:29 AM, Anthony Liguori wrote: I'd be more interested in enabling people to build these types of storage systems without touching qemu. Both sheepdog and ceph ultimately transmit I/O over a socket to a central

[Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)

2010-05-24 Thread Michael Tokarev
** Tags added: 32bit migration qemu-kvm sigsegv -- migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) https://bugs.launchpad.net/bugs/584121 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: On

[Qemu-devel] [Bug 584131] Re: some guests hangs after migration (qemu-kvm-0.12)

2010-05-24 Thread Michael Tokarev
** Tags added: irq lost migration qemu-kvm -- some guests hangs after migration (qemu-kvm-0.12) https://bugs.launchpad.net/bugs/584131 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Status in Debian GNU/Linux: New

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

2010-05-24 Thread Michael S. Tsirkin
On Mon, May 24, 2010 at 09:37:05AM +0300, Avi Kivity wrote: On 05/23/2010 07:30 PM, Michael S. Tsirkin wrote: Maybe we should use atomics on index then? This should only be helpful if you access the cacheline several times in a row. That's not the case in virtio (or here).

[Qemu-devel] [PATCH v2 1/3] add some tests for invalid JSON

2010-05-24 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- check-qjson.c | 98 - 1 files changed, 97 insertions(+), 1 deletions(-) diff --git a/check-qjson.c b/check-qjson.c index 109e777..a04e334 100644 --- a/check-qjson.c +++ b/check-qjson.c

[Qemu-devel] [PATCH 2/5] Factorize common migration incoming code

2010-05-24 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- migration-exec.c | 14 +- migration-fd.c | 14 +- migration-tcp.c | 15 ++- migration-unix.c | 15 ++- migration.c | 13 + migration.h |2 ++ 6 files

[Qemu-devel] [PATCH 0/5] Add QMP migration events

2010-05-24 Thread Juan Quintela
Hi This series does: - exit incoming migration on failure. For exec/fd migrations, once there was a failure, there was nothing useful to do. And for tcp migration, not exiting created interesting bugs when trying to migrate again to a process with a faild migration. - Factorize common

[Qemu-devel] [PATCH 1/5] Exit if incoming migration fails

2010-05-24 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- migration.c | 14 +++--- migration.h |2 +- vl.c|5 - 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/migration.c b/migration.c index 05f6cc5..cf30a8e 100644 --- a/migration.c +++ b/migration.c @@

[Qemu-devel] [PATCH 3/5] QMP: Introduce MIGRATION events

2010-05-24 Thread Juan Quintela
They are emitted when migration starts, ends, has a failure or is canceled. Signed-off-by: Juan Quintela quint...@redhat.com --- QMP/qmp-events.txt | 50 ++ monitor.c | 12 monitor.h |4 3 files changed,

[Qemu-devel] [PATCH 4/5] QMP: Emit migration events on incoming migration

2010-05-24 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- migration.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 6ab5d90..7fba993 100644 --- a/migration.c +++ b/migration.c @@ -56,10 +56,13 @@ int qemu_start_incoming_migration(const char

[Qemu-devel] [PATCH 5/5] QMP: Emit migration events on outgoing migration

2010-05-24 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- migration-exec.c |3 ++- migration-fd.c |1 + migration-tcp.c |2 ++ migration-unix.c |2 ++ migration.c |5 + 5 files changed, 12 insertions(+), 1 deletions(-) diff --git a/migration-exec.c b/migration-exec.c

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Stefan Hajnoczi
On Sun, May 23, 2010 at 1:01 PM, Avi Kivity a...@redhat.com wrote: On 05/21/2010 12:29 AM, Anthony Liguori wrote: I'd be more interested in enabling people to build these types of storage systems without touching qemu. Both sheepdog and ceph ultimately transmit I/O over a socket to a central

RE: [Qemu-devel] Graphics Device Passthrough

2010-05-24 Thread Stefano Stabellini
On Sun, 23 May 2010, adhyas.avas...@nokia.com wrote: In the options for qemu, I did see an option that allowed me to define a host bus:dev:fn number to be accessible to the guest. This was not one of the USB options I believe. So I assumed some kind of pass-through support is present. For

[Qemu-devel] [PATCH v2 0/3] json lexer tests and removal of lookahead

2010-05-24 Thread Paolo Bonzini
This is the same as the patches I sent last Friday, but split better and without the extraneous change to the seabios submodule. v1-v2: rearranged patches more coherently Paolo Bonzini (3): add some tests for invalid JSON implement optional lookahead in json lexer remove unnecessary

[Qemu-devel] Re: [PATCH 1/5] Exit if incoming migration fails

2010-05-24 Thread Paolo Bonzini
-void qemu_start_incoming_migration(const char *uri) +int qemu_start_incoming_migration(const char *uri) { const char *p; +int ret = -1; Maybe -ENOSYS or -EPROTONOSUPPORT, since the *_start_incoming_migration functions return a negative errno value? if (incoming) { -

[Qemu-devel] Re: [PATCH 3/5] QMP: Introduce MIGRATION events

2010-05-24 Thread Paolo Bonzini
On 05/24/2010 10:25 AM, Juan Quintela wrote: +MIGRATION_CANCELED +-- + +Emitted when migration is canceled. This is emitted in the source. +Target will emit MIGRATION_CANCELED (no way to differentiate a FAILED +and CANCELED migration). Copy-paste error? (or if not, parse error

[Qemu-devel] [PATCH v2 2/3] implement optional lookahead in json lexer

2010-05-24 Thread Paolo Bonzini
Not requiring one extra character when lookahead is not necessary ensures that clients behave properly even if they, for example, send QMP requests without a trailing newline. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- json-lexer.c | 58

[Qemu-devel] [PATCH v2 3/3] remove unnecessary lookaheads

2010-05-24 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- json-lexer.c | 48 1 files changed, 16 insertions(+), 32 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 41b37f4..ec96fb4 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -29,7

[Qemu-devel] Re: [[RfC PATCH]] linux fbdev display driver prototype.

2010-05-24 Thread Stefano Stabellini
On Fri, 21 May 2010, Julian Pidancet wrote: This looks very promissing. I just got a couple of observations: - Your patch does not work on my machine with the vesafb driver. It reports can't handle 8 bpp frame buffers. It turns out that the vesafb driver seems to initialize the

[Qemu-devel] strange bug with virtio-blk-pci properties

2010-05-24 Thread Gleb Natapov
Running: $ qemu-system-x86_64 -device virtio-blk-pci,logical_block_size=4096,physical_block_size=4096,drive=boot -drive file=/tmp/a.qcow2,if=none,id=boot gives me: Floating point exception The crash is in hw/virtio-blk.c:505 blkcfg.blk_size is zero because s-conf-logical_block_size is zero.

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

2010-05-24 Thread Avi Kivity
On 05/24/2010 11:05 AM, Michael S. Tsirkin wrote: Okay, but why is lockunshare faster than unshare? No idea. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Avi Kivity
On 05/24/2010 11:27 AM, Stefan Hajnoczi wrote: On Sun, May 23, 2010 at 1:01 PM, Avi Kivitya...@redhat.com wrote: On 05/21/2010 12:29 AM, Anthony Liguori wrote: I'd be more interested in enabling people to build these types of storage systems without touching qemu. Both sheepdog and

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Avi Kivity
On 05/24/2010 10:12 AM, MORITA Kazutaka wrote: At Sun, 23 May 2010 15:01:59 +0300, Avi Kivity wrote: On 05/21/2010 12:29 AM, Anthony Liguori wrote: I'd be more interested in enabling people to build these types of storage systems without touching qemu. Both sheepdog and ceph

[Qemu-devel] Hi. Regarding QEMU's GDB server and MMU

2010-05-24 Thread Ari Yoskovitz
Hi all. I am very new to dev for QEMU, so I have some very basic questions. 1) I understand that QEMU has a built-in GDB server that is somewhat a simulation of a JTAG device on dev boards, connected directly to the CPU. Is that a correct analogy? 2) How can the GDB server handle a MMU? Would it

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread MORITA Kazutaka
At Mon, 24 May 2010 14:05:58 +0300, Avi Kivity wrote: On 05/24/2010 10:12 AM, MORITA Kazutaka wrote: At Sun, 23 May 2010 15:01:59 +0300, Avi Kivity wrote: On 05/21/2010 12:29 AM, Anthony Liguori wrote: I'd be more interested in enabling people to build these types of

[Qemu-devel] Unable to install Windows XP and 2003 with libvirt

2010-05-24 Thread Laurent Léonard
The problem has already been reported on the list here : http://lists.nongnu.org/archive/html/qemu-devel/2010-03/msg01725.html Any information on what can be done to solve that problem ? Is there any available patch for KVM ? Thank you, -- Laurent Léonard

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Avi Kivity
On 05/24/2010 02:42 PM, MORITA Kazutaka wrote: The server would be local and talk over a unix domain socket, perhaps anonymous. nbd has other issues though, such as requiring a copy and no support for metadata operations such as snapshot and file size extension. Sorry, my explanation

[Qemu-devel] Re: [PATCH 1/5] Exit if incoming migration fails

2010-05-24 Thread Michael S. Tsirkin
On Mon, May 24, 2010 at 10:25:25AM +0200, Juan Quintela wrote: Signed-off-by: Juan Quintela quint...@redhat.com --- migration.c | 14 +++--- migration.h |2 +- vl.c|5 - 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/migration.c b/migration.c

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Cláudio Martins
On Mon, 24 May 2010 14:56:29 +0300 Avi Kivity a...@redhat.com wrote: On 05/24/2010 02:42 PM, MORITA Kazutaka wrote: The server would be local and talk over a unix domain socket, perhaps anonymous. nbd has other issues though, such as requiring a copy and no support for metadata

Re: [Qemu-devel] [PATCH 1/2] ioport: add function to check whenever a port is assigned or not

2010-05-24 Thread Paul Brook
+int is_ioport_assigned(pio_addr_t addr) Shouldn't we move this into register_ioport_{read,write}, and have that fail if the port has already been assigned? Paul

[Qemu-devel] Re: [PATCH v2 12/15] monitor: Add basic device state visualization

2010-05-24 Thread Luiz Capitulino
On Sun, 23 May 2010 09:57:43 +0200 Jan Kiszka jan.kis...@web.de wrote: Avi Kivity wrote: [...] +- full: report full state (json-bool, optional) Is this needed for QMP? The client can always truncate it to any length. The effect may not be needed for QMP, but I do need this

[Qemu-devel] [RFC/ PATCH 0/4] qemu: Extend AIO threading framework to a generic one.

2010-05-24 Thread Gautham R Shenoy
Hi, This patch series is strictly RFC only. It decouples the asynchrnous threading framework implementation from posix-aio-compat.c to implement a generic asynchrnous task offloading threading framework which can be used by other subsystems within QEMU. Currently within QEMU, the AIO subsystem

[Qemu-devel] [RFC/ PATCH 1/4] qemu: Generic asynchronous threading framework to offload tasks

2010-05-24 Thread Gautham R Shenoy
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch creates a generic asynchronous-task-offloading infrastructure. It's extracted out of the threading framework that is being used by paio. The reason for extracting out this generic infrastructure of the posix-aio-compat.c is so

[Qemu-devel] [RFC/ PATCH 2/4] qemu: Convert AIO code to use the generic threading infrastructure.

2010-05-24 Thread Gautham R Shenoy
This patch makes the paio subsystem use the generic work offloading infrastructure, there by decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy e...@in.ibm.com --- posix-aio-compat.c | 155

[Qemu-devel] [RFC/ PATCH 3/4] virtio-9p: Add async helper functions

2010-05-24 Thread Gautham R Shenoy
Add helper functions to enable virtio-9p make use of the generic asynchronous threading framework for offloading blocking tasks such as making posix calls on to the asynchronous threads and handle the post_posix_operations() from the context of the iothread. This frees the vcpu thread to process

[Qemu-devel] [RFC/ PATCH 4/4] virtio-9p: convert lstat to use async infrastructure.

2010-05-24 Thread Gautham R Shenoy
This patch converts v9fs_stat() to make use of the async infrastructure. Every call to v9fs_stat() is processed in the context of the vcpu thread before offloading the actual stat operation onto an async-thread. The post operation is handled in the context of the io-thread which in turn does the

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread MORITA Kazutaka
At Mon, 24 May 2010 14:56:29 +0300, Avi Kivity wrote: On 05/24/2010 02:42 PM, MORITA Kazutaka wrote: The server would be local and talk over a unix domain socket, perhaps anonymous. nbd has other issues though, such as requiring a copy and no support for metadata operations such as

Re: [Qemu-devel] [RFC/ PATCH 1/4] qemu: Generic asynchronous threading framework to offload tasks

2010-05-24 Thread malc
On Mon, 24 May 2010, Gautham R Shenoy wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch creates a generic asynchronous-task-offloading infrastructure. It's extracted out of the threading framework that is being used by paio. The reason for extracting out this

Re: [Qemu-devel] [RFC/ PATCH 1/4] qemu: Generic asynchronous threading framework to offload tasks

2010-05-24 Thread Corentin Chary
On Mon, May 24, 2010 at 2:53 PM, Gautham R Shenoy e...@in.ibm.com wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch creates a generic asynchronous-task-offloading infrastructure. It's extracted out of the threading framework that is being used by paio. The reason for

[Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number

2010-05-24 Thread C de-Avillez
Marking Triaged/Medium. Debian has accepted the patch, and a new (patched) package is in Unstable. May be considered for SRU-ing into 10.04 LTS, so nominating. ** Changed in: qemu-kvm (Ubuntu) Importance: Undecided = Medium ** Changed in: qemu-kvm (Ubuntu) Status: New = Triaged **

[Qemu-devel] [PATCH 1/6] Create again config-device.h and config.devices.h

2010-05-24 Thread Juan Quintela
This were disabled in (it is reverted by hand because lot of code has changed since then). commit a992fe3d0fc185112677286f7a02204d8245b61e Author: Paul Brook p...@codesourcery.com Date: Sun Nov 22 16:25:30 2009 + Makefile dependencies for device configs Signed-off-by: Juan Quintela

[Qemu-devel] [PATCH 6/6] Create CONFIG_HPET

2010-05-24 Thread Juan Quintela
Compile hpet.o depending of CONFIG_HPET. Simplify testing for using this functions once there. Create inline stabs for the exported functions. Signed-off-by: Juan Quintela quint...@redhat.com --- Makefile.target|3 ++- config.h | 10

[Qemu-devel] [PATCH 4/6] Make hpet_in_legacy_mode() return 0 for !TARGET_I386

2010-05-24 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- hw/hpet_emul.h | 12 ++-- hw/mc146818rtc.c |6 -- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/hpet_emul.h b/hw/hpet_emul.h index 7e9b610..b6fae0a 100644 --- a/hw/hpet_emul.h +++ b/hw/hpet_emul.h @@

[Qemu-devel] Re: [PATCH, RFC 4/4] Compile mc146818 only once

2010-05-24 Thread Jan Kiszka
Blue Swirl wrote: 8 compilations less for the full build. Signed-off-by: Blue Swirl blauwir...@gmail.com ... diff --git a/default-configs/sparc64-softmmu.mak b/default-configs/sparc64-softmmu.mak index 1cc3f13..6ab0cf4 100644 --- a/default-configs/sparc64-softmmu.mak +++

[Qemu-devel] Re: [RFC PATCH] AMD IOMMU emulation

2010-05-24 Thread Joerg Roedel
Hi Eduard, On Thu, May 20, 2010 at 04:50:07PM +0300, Eduard - Gabriel Munteanu wrote: + --enable-amd-iommu-emul) amd_iommu=yes + ;; A compile-time option is a good idea. +/* MMIO registers */ +#define MMIO_DEVICE_TABLE 0x +#define MMIO_COMMAND_BASE 0x0008 +#define

[Qemu-devel] Re: [PATCH, RFC 1/4] mc146818: move hpet handling to pc.c

2010-05-24 Thread Jan Kiszka
Blue Swirl wrote: On Sun, May 23, 2010 at 3:40 PM, Jan Kiszka jan.kis...@web.de wrote: Blue Swirl wrote: Move hpet_in_legacy_mode check from mc146818.c to pc.c. Remove the optimization where the periodic timer is disabled if hpet is in legacy mode. Signed-off-by: Blue Swirl

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Jan Kiszka
Juan Quintela wrote: Hi This series: a- bring back the support for config-devices.h Paul was the one that removed my previous submission. You can see on the last patch why I want config-devices.h b- move all hpet code to hpet.c/hpet_emul.h In the last patch, I add

Re: [Qemu-devel] linux-user mmap bug

2010-05-24 Thread Richard Henderson
On 05/24/2010 07:57 AM, Edgar E. Iglesias wrote: I took a look at the code again and I dont really understand how the particular case when we get a high address from the kernel while mmap_min_addr is busy case is supposed to work :/ In fact, for CRIS it never works on my host. Indeed, there

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Juan Quintela
Jan Kiszka jan.kis...@web.de wrote: Juan Quintela wrote: Unless this is deadly urgent, please hold it back until we sorted out some more fundamental issues with the HPET, specifically ported it to qdev. This series are independent of the qdev change (it almost don't change hpet code at all).

[Qemu-devel] Final Notice: Please Review

2010-05-24 Thread Brandon Morgan
Hello Candidate, As you know, you have been considered for inclusion in the upcoming 2010 Edition of Who's Who for Executives and Professionals, which is scheduled for publication in late 2010. Despite our efforts to contact you, we have still not received your contact information. Who's

[Qemu-devel] [RFC 0/3] Tracing framework for QEMU

2010-05-24 Thread Prerna Saxena
Hi all, The following patchset includes a simple implementation for qemu tracing. This introduces a framework for : i) Internal buffers for QEMU, and API for logging traces therein. ii) Tracepoint framework that logs traces to the buffer and also interprets already logged traces.

[Qemu-devel] [PATCH 1/3]make tdb_hash available

2010-05-24 Thread Prerna Saxena
This function is used for hash table lookups by tracepoint framework. The patch adds trivial changes to reuse it. Regards, -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India Signed-off by : Prerna (pre...@linux.vnet.ibm.com) Index: qemu/qdict.c

[Qemu-devel] [PATCH 2/3] Tracepoint, buffer monitor framework

2010-05-24 Thread Prerna Saxena
Patch that implements tracepoint framework + trace buffer + monitor support. tracing can be enabled at compile time using --enable-trace switch, which compiles tracing support(all of these). Monitor commands introduced : 1. info trace : to see contents of trace buffer. 2. info tracepoints :

[Qemu-devel] [PATCH 02/10] target-mips: add microMIPS-specific bits to mips-defs.h

2010-05-24 Thread Nathan Froyd
There's a new ASE_MICROMIPS instruction flag, and some extra CP0_Config3 fields. The ISA and ISA_ON_EXC fields are specific to microMIPS. The DSP2P is for version 2 of the DSP ASE. Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/cpu.h |3 +++

[Qemu-devel] [PATCH 03/10] target-mips: add enum constants for various invocations of FOP

2010-05-24 Thread Nathan Froyd
Tweak gen_farith and its caller to use them. Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/translate.c | 266 --- 1 files changed, 180 insertions(+), 86 deletions(-) diff --git a/target-mips/translate.c

[Qemu-devel] [PATCH 01/10] target-mips: break out [ls][wd]c1 and rdhwr insn generation

2010-05-24 Thread Nathan Froyd
Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/translate.c | 106 ++- 1 files changed, 59 insertions(+), 47 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index c95ecb1..2075d09 100644 ---

[Qemu-devel] [PATCH 05/10] target-mips: small changes to use new FMT_ enums

2010-05-24 Thread Nathan Froyd
Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/translate.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 63844b8..cc445fb 100644 --- a/target-mips/translate.c +++

[Qemu-devel] [PATCH 04/10] target-mips: refactor {c, abs}.cond.fmt insns

2010-05-24 Thread Nathan Froyd
Move all knowledge about coprocessor-checking and register numbering into the gen_cmp* helper functions. Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/translate.c | 174 -- 1 files changed, 91 insertions(+), 83 deletions(-)

[Qemu-devel] [PATCH 00/10] target-mips: add microMIPS ASE support, v2

2010-05-24 Thread Nathan Froyd
This patch series adds support for the microMIPS ASE. microMIPS is a new ASE similar to MIPS16, but re-encodes the entire instruction set into 16-bit and 32-bit instructions--in contrast to MIPS16, which re-encodes only integer instructions. The mechanisms for going in and out of microMIPS mode

[Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine

2010-05-24 Thread Nathan Froyd
Signed-off-by: Nathan Froyd froy...@codesourcery.com --- hw/mips_mipssim.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index a747de5..cd6c2be 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -106,7 +106,9 @@ static

[Qemu-devel] [PATCH 08/10] target-mips: add microMIPS exception handler support

2010-05-24 Thread Nathan Froyd
Unlike MIPS16, microMIPS lets you choose the ISA mode for your exception handlers. Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/helper.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/target-mips/helper.c

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Paul Brook
Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could disable more devices/have more flexibility. Notice that in general, we (RHEL/KVM) are interested in a small subset of qemu devices. IMO this patch is a backwards step.

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Jan Kiszka
Juan Quintela wrote: Jan Kiszka jan.kis...@web.de wrote: Juan Quintela wrote: Unless this is deadly urgent, please hold it back until we sorted out some more fundamental issues with the HPET, specifically ported it to qdev. This series are independent of the qdev change (it almost don't

[Qemu-devel] [PATCH 07/10] target-mips: add microMIPS CPUs

2010-05-24 Thread Nathan Froyd
Signed-off-by: Nathan Froyd froy...@codesourcery.com --- target-mips/translate_init.c | 61 ++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c index b79ed56..8e17f4b 100644 ---

[Qemu-devel] [PATCH 3/3] Samples to add a tracepoint.

2010-05-24 Thread Prerna Saxena
Steps for adding a tracepoint : 1. In trace-entries.h, add a DECLARE_TRACE() in the said format. 2. In trace-entries.c: i) add a DEFINE_TRACE() for the tracepoint in the said format. ii) add an INIT_TRACE(name) for the tracepoint in the function init_tracepoints(void) 3. The call site

[Qemu-devel] [PATCH 09/10] linux-user: honor low bit of entry PC for MIPS

2010-05-24 Thread Nathan Froyd
Signed-off-by: Nathan Froyd froy...@codesourcery.com --- linux-user/main.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 18b52c0..76d443b 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -3192,7 +3192,9 @@ int

Re: [Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Anthony Liguori
On 05/24/2010 11:32 AM, Paul Brook wrote: Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could disable more devices/have more flexibility. Notice that in general, we (RHEL/KVM) are interested in a small subset of qemu

Re: [Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Paul Brook
On 05/24/2010 11:32 AM, Paul Brook wrote: Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could disable more devices/have more flexibility. Notice that in general, we (RHEL/KVM) are interested in a small subset of qemu

Re: [Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Anthony Liguori
On 05/24/2010 12:11 PM, Paul Brook wrote: I think we're saying the same thing. We already have a mechanism for avoiding things at build time - specifically config-devices.mak. We don't have a nice UI for it, but it's there. At worst your distro specific patch is a 1-line change to default-

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Juan Quintela
Paul Brook p...@codesourcery.com wrote: On 05/24/2010 11:32 AM, Paul Brook wrote: Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could disable more devices/have more flexibility. Notice that in general, we (RHEL/KVM)

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Anthony Liguori
On 05/24/2010 12:54 PM, Juan Quintela wrote: Paul Brookp...@codesourcery.com wrote: On 05/24/2010 11:32 AM, Paul Brook wrote: Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could disable more devices/have more

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Juan Quintela
Jan Kiszka jan.kis...@web.de wrote: This happens to us all the time for lots of devices. And the big problem is that there is no sane way to disable them :( If we can agree in a mechanism to disable them (like this one) or something similar, we could remove it. Our biggest problem with

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Jan Kiszka
Anthony Liguori wrote: On 05/24/2010 12:54 PM, Juan Quintela wrote: Paul Brookp...@codesourcery.com wrote: On 05/24/2010 11:32 AM, Paul Brook wrote: Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Jan Kiszka
Juan Quintela wrote: Paul Brook p...@codesourcery.com wrote: On 05/24/2010 11:32 AM, Paul Brook wrote: Notice that this patch was sent against hpet as one example, if we agree that this way of disabling devices is ok, we could disable more devices/have more flexibility. Notice that in

[Qemu-devel] Windows guest debugging on KVM/Qemu

2010-05-24 Thread Neo Jia
hi, I am using KVM/Qemu to debug my Windows guest according to KVM wiki page (http://www.linux-kvm.org/page/WindowsGuestDrivers/GuestDebugging). It works for me and also I can only use one Windows guest and bind its serial port to a TCP port and run Virtual Serial Ports Emulator on my Windows dev

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Christian Brunner
2010/5/24 MORITA Kazutaka morita.kazut...@lab.ntt.co.jp: However, I don't think nbd would be a good protocol.  My preference would be for a plugin API, or for a new local protocol that uses splice() to avoid copies. Both would be okay for Sheepdog.  I want to take a suitable approach for

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Anthony Liguori
On 05/24/2010 06:56 AM, Avi Kivity wrote: On 05/24/2010 02:42 PM, MORITA Kazutaka wrote: The server would be local and talk over a unix domain socket, perhaps anonymous. nbd has other issues though, such as requiring a copy and no support for metadata operations such as snapshot and file

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Anthony Liguori
On 05/24/2010 06:03 AM, Avi Kivity wrote: On 05/24/2010 11:27 AM, Stefan Hajnoczi wrote: On Sun, May 23, 2010 at 1:01 PM, Avi Kivitya...@redhat.com wrote: On 05/21/2010 12:29 AM, Anthony Liguori wrote: I'd be more interested in enabling people to build these types of storage systems without

Re: [Qemu-devel] Re: [PATCH 2/6] json-lexer: Handle missing escapes

2010-05-24 Thread Anthony Liguori
On 05/20/2010 02:22 PM, Luiz Capitulino wrote: On Thu, 20 May 2010 13:52:08 -0500 Anthony Liguorianth...@codemonkey.ws wrote: On 05/20/2010 01:47 PM, Luiz Capitulino wrote: On Thu, 20 May 2010 11:55:00 -0500 Anthony Liguorianth...@codemonkey.ws wrote: On 05/20/2010

Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm

2010-05-24 Thread Anthony Liguori
On 05/24/2010 02:07 PM, Christian Brunner wrote: 2010/5/24 MORITA Kazutakamorita.kazut...@lab.ntt.co.jp: However, I don't think nbd would be a good protocol. My preference would be for a plugin API, or for a new local protocol that uses splice() to avoid copies. Both would be

Re: [Qemu-devel] Re: [PATCH 2/6] json-lexer: Handle missing escapes

2010-05-24 Thread Luiz Capitulino
On Mon, 24 May 2010 14:29:58 -0500 Anthony Liguori anth...@codemonkey.ws wrote: On 05/20/2010 02:22 PM, Luiz Capitulino wrote: On Thu, 20 May 2010 13:52:08 -0500 Anthony Liguorianth...@codemonkey.ws wrote: On 05/20/2010 01:47 PM, Luiz Capitulino wrote: On Thu, 20 May

[Qemu-devel] [Bug 584510] Re: e1000 irq problems after live migration with qemu-kvm 0.12.4

2010-05-24 Thread Peter Lieven
I did 2 additional tests 1) Stop VM, Live Migrate, Continue - Triggers BUG 2) Stop VM, Continue - Does NOT trigger BUG. My guess it seems that pending interrupts are incorrectly transferred with kernel irqchip. As said earlier userspace irqchip does not trigger the bug. ** Project changed:

[Qemu-devel] [Bug 585113] [NEW] e1000 irq problems after live migration with qemu-kvm 0.12.4

2010-05-24 Thread Peter Lieven
Public bug reported: sorry for resubmitting. i accidently moved this bug to qemu-kvm at launchpad where it is stuck... After live migrating ubuntu 9.10 server (2.6.31-14-server) and suse linux 10.1 (2.6.16.13-4-smp) it happens sometimes that the guest runs into irq problems. i mention these 2

[Qemu-devel] Re: [PATCH, RFC 1/4] mc146818: move hpet handling to pc.c

2010-05-24 Thread Blue Swirl
On Mon, May 24, 2010 at 3:30 PM, Jan Kiszka jan.kis...@web.de wrote: Blue Swirl wrote: On Sun, May 23, 2010 at 3:40 PM, Jan Kiszka jan.kis...@web.de wrote: Blue Swirl wrote: Move hpet_in_legacy_mode check from mc146818.c to pc.c. Remove the optimization where the periodic timer is disabled if

Re: [Qemu-devel] [PATCH, RFC 2/4] Convert PCI devices to use pci_register_memory()

2010-05-24 Thread Anthony Liguori
On 05/23/2010 03:34 PM, Blue Swirl wrote: Signed-off-by: Blue Swirlblauwir...@gmail.com --- hw/cirrus_vga.c | 12 ++-- hw/e1000.c|2 +- hw/eepro100.c |2 +- hw/isa.h |1 + hw/isa_mmio.c | 18 -- hw/lsi53c895a.c |4

[Qemu-devel] [Bug 585113] Re: e1000 irq problems after live migration with qemu-kvm 0.12.4

2010-05-24 Thread Peter Lieven
I did 2 additional tests 1) Stop VM, Live Migrate, Continue - Triggers BUG 2) Stop VM, Continue - Does NOT trigger BUG. My guess it seems that pending interrupts are incorrectly transferred with kernel irqchip. As said earlier userspace irqchip does not trigger the bug. -- e1000 irq problems

[Qemu-devel] Re: [PATCH, RFC 4/4] Compile mc146818 only once

2010-05-24 Thread Blue Swirl
On Mon, May 24, 2010 at 3:31 PM, Jan Kiszka jan.kis...@web.de wrote: Blue Swirl wrote: 8 compilations less for the full build. Signed-off-by: Blue Swirl blauwir...@gmail.com ... diff --git a/default-configs/sparc64-softmmu.mak b/default-configs/sparc64-softmmu.mak index 1cc3f13..6ab0cf4

[Qemu-devel] Windows guest debugging on KVM/Qemu

2010-05-24 Thread Neo Jia
hi, I am using KVM/Qemu to debug my Windows guest according to KVM wiki page (http://www.linux-kvm.org/page/WindowsGuestDrivers/GuestDebugging). It works for me and also I can only use one Windows guest and bind its serial port to a TCP port and run Virtual Serial Ports Emulator on my Windows dev

Re: [Qemu-devel] Re: [RFC PATCH] AMD IOMMU emulation

2010-05-24 Thread Blue Swirl
On Mon, May 24, 2010 at 3:40 PM, Joerg Roedel j...@8bytes.org wrote: Hi Eduard, On Thu, May 20, 2010 at 04:50:07PM +0300, Eduard - Gabriel Munteanu wrote: +  --enable-amd-iommu-emul) amd_iommu=yes +  ;; A compile-time option is a good idea. +/* MMIO registers */ +#define

Re: [Qemu-devel] [PATCH -V3 1/7] virtio-9p: Introduces an option to specify the security model.

2010-05-24 Thread Anthony Liguori
On 05/21/2010 04:26 PM, Venkateswararao Jujjuri (JV) wrote: The new option is: -fsdev fstype,id=myid,path=/share_path/,security_model=[mapped|passthrough] -virtfs fstype,path=/share_path/,security_model=[mapped|passthrough],mnt_tag=tag In the case of mapped security model, files are created

Re: [Qemu-devel] [PATCH -V3 5/7] virtio-9p: Implemented security model for symlink and link.

2010-05-24 Thread Anthony Liguori
On 05/21/2010 04:26 PM, Venkateswararao Jujjuri (JV) wrote: Signed-off-by: Venkateswararao Jujjurijv...@linux.vnet.ibm.com --- hw/file-op-9p.h |4 +- hw/virtio-9p-local.c | 87 +++-- hw/virtio-9p.c | 24 ++ 3 files

[Qemu-devel] [RFT][PATCH 01/15] hpet: Catch out-of-bounds timer access

2010-05-24 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Also prevent out-of-bounds write access to the timers but don't spam the host console if it triggers. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/hpet.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hw/hpet.c

[Qemu-devel] [RFT][PATCH 04/15] hpet: Move static timer field initialization

2010-05-24 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Properly initialize HPETTimer::tn and HPETTimer::state once during hpet_init instead of (re-)writing them on every reset. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/hpet.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[Qemu-devel] Re: [PATCH 0/6] Make hpet a compile time option

2010-05-24 Thread Jan Kiszka
Juan Quintela wrote: We already have to disable hpet for 5.4 (1 year ago). It was done with a local hack because it was supposed that for next big release it would have been fixed. But this remains a RHEL issue. Redhat decided to compile out features that are unsupported, others seem to

[Qemu-devel] [RFT][PATCH 00/15] HPET cleanups, fixes, enhancements

2010-05-24 Thread Jan Kiszka
Not yet for merge (unless I happened to forgot adding bugs), just a Request For Testing (and for review, of course). This series grew beyond my initial plans and my current testing capabilities, Linux and Win7 are apparently still fine, but that's all I can say so far. To summarize contributions

[Qemu-devel] [RFT][PATCH 05/15] hpet: Convert to qdev

2010-05-24 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Register the HPET as a sysbus device and create it that way. As it can route its IRQs to any ISA IRQ, we need to connect it to all 24 of them. Once converted to qdev, we can move reset handler and vmstate registration into its hands as well. Signed-off-by:

[Qemu-devel] [RFT][PATCH 03/15] hpet: Silence warning on write to running main counter

2010-05-24 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Setting the main counter while the HPET is enabled may not be a good idea of the guest, but it is supported and should, thus, not spam the host console with warnings. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/hpet.c |4 ++-- 1 files

  1   2   >