[Qemu-devel] Re: S390 TCG target

2010-05-12 Thread Richard Henderson
Reference: http://lists.gnu.org/archive/html/qemu-devel/2009-12/msg01954.html > static const int tcg_target_call_iarg_regs[] = { > +TCG_REG_R2, > +TCG_REG_R3, > +TCG_REG_R4, > +TCG_REG_R5, > }; R6 is also an argument register. > +static void tcg_out_e3(TCGContext* s, int op, in

[Qemu-devel] [PATCH resend 1/6] MIPS: Initial support of bonito north bridge used by fulong mini pc

2010-05-12 Thread Huacai Chen
resend by git send-email to avoid line-wrapping Signed-off-by: Huacai Chen --- Makefile.target |1 + default-configs/mips64el-softmmu.mak |1 + hw/bonito.c | 950 ++ hw/mips.h|3

[Qemu-devel] [PATCH 02/12] kvm: set cpu_single_env around KVM_RUN ioctl

2010-05-12 Thread Marcelo Tosatti
Zero cpu_single_env before leaving global lock protection, and restore on return. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- kvm-all.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 6962b2b..fbd084c 100644 --- a/kvm-all.c

[Qemu-devel] [PATCH 2/2] Add cache=volatile parameter to -drive

2010-05-12 Thread Alexander Graf
Usually the guest can tell the host to flush data to disk. In some cases we don't want to flush though, but try to keep everything in cache. So let's add a new cache value to -drive that allows us to set the cache policy to most aggressive, disabling flushes. We call this mode "volatile", as guest

Re: [Qemu-devel] [PATCH] [S390] Remove warning in tcg stub (tcg_out_reloc)

2010-05-12 Thread Alexander Graf
On 12.05.2010, at 19:28, Aurelien Jarno wrote: > On Tue, May 11, 2010 at 09:50:34PM +0200, Alexander Graf wrote: >> >> Am 11.05.2010 um 19:26 schrieb Richard Henderson : >> >>> On 05/11/2010 09:47 AM, Stefan Weil wrote: Won't you get another warning about unreachable code because tcg_

[Qemu-devel] [PATCH 05/12] port qemu-kvm's on_vcpu code

2010-05-12 Thread Marcelo Tosatti
run_on_cpu allows to execute work on a given CPUState context. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpu-all.h |1 + cpu-defs.h|2 ++ cpus.c| 53 + qemu-common.h |8 4 files changed

[Qemu-devel] Re: [PATCH][RESEND] vmstate: fix breakage by 7e72abc382b700a72549e8147bdea413534eeedc

2010-05-12 Thread Juan Quintela
TeLeMan wrote: > cirrus_post_load() will be executed twice when loading vm states and then the > wrong physical memory will be registered. This issue may lead to crash qemu. > > Signed-off-by: TeLeMan Nice catch. Acked-by: Juan Quintela

[Qemu-devel] [PATCH] Fix qtypes' licenses

2010-05-12 Thread Luiz Capitulino
- Change from GPL to LGPL - Add license text when missing - Minor cosmetic changes to make all headers look the same Signed-off-by: Luiz Capitulino --- check-qdict.c |3 +++ check-qfloat.c |5 - check-qint.c|3 +++ check-qlist.c |4 ++-- check-qstring.c |3 +++ q

[Qemu-devel] [PATCH 08/12] move stop/stopped CPU_COMMON fields after area zeroed by reset

2010-05-12 Thread Marcelo Tosatti
cpu_reset zeroes CPUState upto breakpoints member. Contents of stop/stopped should not be zeroed on cpu_reset. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpu-defs.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu-defs.h b/cpu-defs.h index c764d6

[Qemu-devel] [PATCH 01/12] Fix -mem-path with hugetlbfs

2010-05-12 Thread Marcelo Tosatti
Fallback to qemu_vmalloc in case file_ram_alloc fails. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- exec.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 3416aed..56b5561 100644 --- a/exec.c +++ b/exec.c @@ -2775,8 +2775,12

[Qemu-devel] [PATCH 1/6] tmp105: Drop unused faults field

2010-05-12 Thread Jan Kiszka
From: Jan Kiszka It was only written, but never read. Signed-off-by: Jan Kiszka CC: Andrzej Zaborowski --- hw/tmp105.c | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/hw/tmp105.c b/hw/tmp105.c index 8343aff..cac5f2b 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c

[Qemu-devel] [PATCH 07/12] add cpu_is_stopped helper

2010-05-12 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpu-all.h |1 + cpus.c|5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 9efb8a9..47a5722 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -821,6 +821,7 @@ void cpu_watchpoint_remo

[Qemu-devel] [PATCH 03/12] make SIG_IPI to tcg vcpu thread reliable

2010-05-12 Thread Marcelo Tosatti
Store tcg loop exit request on a global variable, and transfer it to per-CPUState exit_request after assignment of cpu_single_env. This makes exit request signal from robust. Drop the timedlock hack. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpu-exec.c |7 +++ cpus.c

[Qemu-devel] [PATCH 12/12] kvm: fix 80000001.EDX supported bit filtering

2010-05-12 Thread Marcelo Tosatti
From: Gleb Natapov On AMD some bits from 1.EDX are reported in 8001.EDX. The mask used to copy bits from 1.EDX to 8001.EDX is incorrect resulting in unsupported features passed into a guest. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c |2 +- 1

[Qemu-devel] [PATCH 5/6] fdc: Register vmstate via qdev

2010-05-12 Thread Jan Kiszka
From: Jan Kiszka Establish vmstate containers for ISA and sysbus variant, define the iobase as instance ID alias, and let qdev do the vmstate registration work. Signed-off-by: Jan Kiszka --- hw/fdc.c | 35 ++- 1 files changed, 30 insertions(+), 5 deletions(-)

[Qemu-devel] Re: Commit 9c9bb6c89d4 breaks code execution from flash

2010-05-12 Thread Michael Walle
Am Wednesday 12 May 2010 09:56:31 schrieb Jan Kiszka: > OK, that was a hard nut. After various dead ends, I think I found an > possible solution. Can you give this a try? [..] > Still requires proper patch split up, and I need to think about possible > side effects. Thanks, the patch is working. B

[Qemu-devel] [PATCH 09/12] kvm: validate context for kvm cpu get/put operations

2010-05-12 Thread Marcelo Tosatti
From: Jan Kiszka Validate that KVM vcpu state is only read/written from cpu thread itself or that cpu is stopped. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- target-i386/kvm.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/targ

[Qemu-devel] [PATCH 06/12] kvm: synchronize state from cpu context

2010-05-12 Thread Marcelo Tosatti
From: Jan Kiszka It is not safe to retrieve the KVM internal state of a given cpu while its potentially modifying it. Queue the request to run on cpu context, similarly to qemu-kvm. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- kvm-all.c | 10 +- 1 files changed, 9 i

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

2010-05-12 Thread Marcelo Tosatti
The following changes since commit 54d7cf136f040713095cbc064f62d753bff6f9d2: Markus Armbruster (1): doc: Clean up monitor command function index are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Gleb Natapov (2): Do not stop VM

[Qemu-devel] Re: [PATCH] target-i386: Avoid kvm related compiler error

2010-05-12 Thread Jan Kiszka
Stefan Weil wrote: > Some versions of kvm.h (debian lenny) define KVM_CAP_VCPU_EVENTS > without defining KVM_VCPUEVENT_VALID_NMI_PENDING or > KVM_VCPUEVENT_VALID_SIPI_VECTOR. This rather looks like a bug to be sent to debian. Until they fixed their backport (I just hope it's a user space header is

[Qemu-devel] Re: [PATCH] Revive -version 'QEMU PC Emulator...'

2010-05-12 Thread Jes Sorensen
On 05/12/10 22:29, Cole Robinson wrote: > Commit f75ca1ae205f24dae296c82d534c37746f87232f changed the version > string from: > > QEMU PC Emulator version x.yy.z > > to > > QEMU Emulator version x.yy.z > > libvirt is overly sensitive to the format of this string, and barfs when > trying to parse

[Qemu-devel] [PATCH 3/4] x86/Sparc32: use device info for pic and irq

2010-05-12 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/an5206.c |9 hw/arm_pic.c| 10 - hw/cris_pic_cpu.c |5 hw/i8259.c | 50 ++ hw/microblaze_pic_cpu.c |5 hw/pc.h |2

[Qemu-devel] [PATCH 4/6] serial: Register vmstate via qdev

2010-05-12 Thread Jan Kiszka
From: Jan Kiszka At least for isa-serial, we can already let qdev do the vmstate registration for us. It just takes wrapping vmstate for the encapsulating ISASerialState and defining the proper instance ID aliases. Signed-off-by: Jan Kiszka --- hw/serial.c | 13 - 1 files changed

[Qemu-devel] Re: [PATCH] Revive -version 'QEMU PC Emulator...'

2010-05-12 Thread Cole Robinson
On 05/12/2010 04:38 PM, Jes Sorensen wrote: > On 05/12/10 22:29, Cole Robinson wrote: >> Commit f75ca1ae205f24dae296c82d534c37746f87232f changed the version >> string from: >> >> QEMU PC Emulator version x.yy.z >> >> to >> >> QEMU Emulator version x.yy.z >> >> libvirt is overly sensitive to the for

[Qemu-devel] [PATCH 3/6] vmstate: Add support for alias ID

2010-05-12 Thread Jan Kiszka
From: Jan Kiszka Some legacy users (mostly PC devices) of vmstate_register manage instance IDs on their own, and that unfortunately in a way that is incompatible with automatically generated ones. This so far prevents switching those users to vmstates that are registered by qdev. To establish a

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

2010-05-12 Thread Luiz Capitulino
On Wed, 12 May 2010 18:48:38 +0200 Markus Armbruster wrote: > > +query-block > > +--- > > + > > +Show the block devices. > > + > > +Each block device information is stored in a json-object and the returned > > value > > +is a json-array of all devices. > > + > > +Each json-object contain

[Qemu-devel] [PATCH 1/4] monitor: add device info infrastructure

2010-05-12 Thread Blue Swirl
Signed-off-by: Blue Swirl --- monitor.c | 41 + monitor.h | 10 ++ qemu-monitor.hx | 13 + 3 files changed, 64 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index a1ebc5d..9bb1a30 100644 --- a/monito

[Qemu-devel] [PATCH] Revive -version 'QEMU PC Emulator...'

2010-05-12 Thread Cole Robinson
Commit f75ca1ae205f24dae296c82d534c37746f87232f changed the version string from: QEMU PC Emulator version x.yy.z to QEMU Emulator version x.yy.z libvirt is overly sensitive to the format of this string, and barfs when trying to parse qemu -help output. While libvirt should certainly be more rob

[Qemu-devel] [PATCH 2/4] qdev: automatically register device info

2010-05-12 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/qdev.c |3 +++ hw/qdev.h |3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index d3bf0fa..258bbef 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -280,6 +280,9 @@ int qdev_init(DeviceState *dev) qemu_register_reset

[Qemu-devel] [PATCH 6/6] mc146818rtc: Register vmstate via qdev

2010-05-12 Thread Jan Kiszka
From: Jan Kiszka After defining the required alias ID, we can push vmstate registration of mc146818rtc to qdev. Signed-off-by: Jan Kiszka --- hw/mc146818rtc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 89a423e..16b033a 1

[Qemu-devel] [PATCH 11/12] Do not stop VM if emulation failed in userspace.

2010-05-12 Thread Marcelo Tosatti
From: Gleb Natapov Continue vcpu execution in case emulation failure happened while vcpu was in userspace. In this case #UD will be injected into the guest allowing guest OS to kill offending process and continue. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- kvm-all.c

[Qemu-devel] Re: [PATCH 0/6] vmstate: Drop post_save / allow instance ID aliases

2010-05-12 Thread Juan Quintela
Jan Kiszka wrote: > This series comes with two major contributions: > - after moving away the last user of post_save (tmp105), this vmstate >callback is dropped > - introduction of an instance ID alias to vmstate, allowing to drop a few >more explicit vmstate_register calls Reviewed-by:

[Qemu-devel] [PATCH 0/6] vmstate: Drop post_save / allow instance ID aliases

2010-05-12 Thread Jan Kiszka
This series comes with two major contributions: - after moving away the last user of post_save (tmp105), this vmstate callback is dropped - introduction of an instance ID alias to vmstate, allowing to drop a few more explicit vmstate_register calls Jan Kiszka (6): tmp105: Drop unused fau

[Qemu-devel] [PATCH 10/12] kvm: enable smp > 1

2010-05-12 Thread Marcelo Tosatti
Process INIT/SIPI requests and enable -smp > 1. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- kvm-all.c | 10 +- kvm.h |2 ++ target-i386/kvm.c | 16 target-ppc/kvm.c |5 + target-s390x/kvm.c |5 + 5 files

[Qemu-devel] [PULL] virtio, pci fixes

2010-05-12 Thread Michael S. Tsirkin
The following changes since commit 54d7cf136f040713095cbc064f62d753bff6f9d2: doc: Clean up monitor command function index (2010-05-10 11:36:04 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony Alex Williamson (1): pci:

[Qemu-devel] [PATCH 2/6] vmstate: Drop unused post_save handler

2010-05-12 Thread Jan Kiszka
From: Jan Kiszka No device makes use of it anymore. Signed-off-by: Jan Kiszka --- hw/hw.h |1 - savevm.c |3 --- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 328b704..2d39724 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -321,7 +321,6 @@ struct VMStat

[Qemu-devel] [PATCH] Fix tarbin Makefile rule

2010-05-12 Thread Stuart Brady
The 'tarbin' Makefile rule doesn't include qemu-system-sparc64, but should do, now that sparc64-softmmu is in the default target list. The rule attempts to tar up binaries that were not built if a target list was passed to the configure script -- in which case, it will either fail, or otherwise in

[Qemu-devel] [PATCH, RFC 0/4] monitor device info infrastructure

2010-05-12 Thread Blue Swirl
Hi all, I finally refreshed some of my monitor patches. PCI and HPET patches (attached, they don't apply anymore) need more work because of the new monitor design. The patches provide a method for devices to register new monitor commands. This fixes some design problems, like useless pic_info/irq

[Qemu-devel] [PATCH 04/12] standardize on qemu_cpu_kick for signalling cpu thread(s)

2010-05-12 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpus.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index 53226b3..5afdb4a 100644 --- a/cpus.c +++ b/cpus.c @@ -454,8 +454,7 @@ void qemu_cpu_kick(void *_env) { CPUState *env = _e

[Qemu-devel] [PATCH resend 3/6] MIPS: Initial support of VIA IDE controller used by fulong mini pc

2010-05-12 Thread Huacai Chen
resend by git send-email to avoid line-wrapping Signed-off-by: Huacai Chen --- Makefile.objs|1 + default-configs/mips64el-softmmu.mak |1 + hw/ide.h |1 + hw/ide/via.c | 185

[Qemu-devel] [PATCH 1/2] Add no-op aio emulation stub

2010-05-12 Thread Alexander Graf
We need to be able to do nothing in AIO fashion. Since I suspect this could be useful for more cases than the non flushing, I figured I'd create a new function that does everything AIO-like, but doesn't do anything. Signed-off-by: Alexander Graf --- v1 -> v2: - remove stray define - make a

[Qemu-devel] Re: [RFC PATCH 1/2] close all the block drivers before the qemu process exits

2010-05-12 Thread MORITA Kazutaka
On 2010/05/12 23:28, Avi Kivity wrote: > On 05/12/2010 01:46 PM, MORITA Kazutaka wrote: >> This patch calls the close handler of the block driver before the qemu >> process exits. >> >> This is necessary because the sheepdog block driver releases the lock >> of VM images in the close handler. >> >>

[Qemu-devel] [PATCH 4/4] PPC: use device info for CPU statistics

2010-05-12 Thread Blue Swirl
Signed-off-by: Blue Swirl --- cpu-all.h |3 --- monitor.c | 19 --- qemu-monitor.hx|2 -- target-ppc/cpu.h |2 ++ target-ppc/helper.c|4 target-ppc/translate.c | 45 ++---

Re: [Qemu-devel] [RFC PATCH 0/2] Sheepdog: distributed storage system for QEMU

2010-05-12 Thread MORITA Kazutaka
On 2010/05/12 20:38, Kevin Wolf wrote: > Am 12.05.2010 12:46, schrieb MORITA Kazutaka: >> Hi all, >> >> This patch adds a block driver for Sheepdog distributed storage >> system. Please consider for inclusion. >> >> Sheepdog is a distributed storage system for QEMU. It provides highly >> availabl

Re: [Qemu-devel] [RFC PATCH 1/2] close all the block drivers before the qemu process exits

2010-05-12 Thread MORITA Kazutaka
On 2010/05/12 23:01, Christoph Hellwig wrote: > On Wed, May 12, 2010 at 07:46:52PM +0900, MORITA Kazutaka wrote: >> This patch calls the close handler of the block driver before the qemu >> process exits. >> >> This is necessary because the sheepdog block driver releases the lock >> of VM images in

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

2010-05-12 Thread Venkateswararao Jujjuri (JV)
Gautham R Shenoy wrote: > This patch makes the paio subsystem use the generic work offloading > infrastructure. > > The patch has been tested with fstress. > > Signed-off-by: Gautham R Shenoy Gauthem, surprisingly this makes the code really readable. Few comments below. > --- > posix-aio-co

<    1   2