Re: qemu> help documentation

2013-02-22 Thread Paolo Pedaletti
ciao Stefan, you can put the monitor on stdio like this: $ qemu-system-x86_64 -monitor stdio ... Then you can interact from your shell and scroll back up as usual. thank you, this works perfectly! ciao -- Paolo Pedaletti -- To unsubscribe from this list: send the line "unsubscribe kvm" in

[RFC PATCH v2 2/4] KVM: Introduce KVM_CSS_BUS.

2013-02-22 Thread Cornelia Huck
Add a new bus type for s390 css kvm io devices. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3b768ef..59be516 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_h

[RFC PATCH v2 1/4] KVM: Initialize irqfd from kvm_init().

2013-02-22 Thread Cornelia Huck
Currently, eventfd introduces module_init/module_exit functions to initialize/cleanup the irqfd workqueue. This only works, however, if no other module_init/module_exit functions are built into the same module. Let's just move the initialization and cleanup to kvm_init and kvm_exit. This way, it i

[RFC PATCH v2 0/4] kvm: Make ioeventfd usable on s390.

2013-02-22 Thread Cornelia Huck
Here's the second attempt at implementing ioeventfd for s390. Rather than the architecture-specific functions used in v1, we now try to integrate with the kvm_io_device infrastructure. Calls to diagnose 500 subcode 3 are now mapped to _write. These devices are created on a new KVM_CSS_BUS when usi

[RFC PATCH v2 0/2] qemu: ioeventfd for virtio-ccw.

2013-02-22 Thread Cornelia Huck
Here's the next version of ioeventfd support for virtio-ccw, again against master. v1 -> v2: - Adapt to changed ioeventfd interface. Cornelia Huck (2): linux-headers: Update with ioeventfd changes. virtio-ccw: Wire up ioeventfd. hw/s390x/css.c| 2 +- hw/s390x/css.h

[RFC PATCH v2 3/4] KVM: ioeventfd for s390 css devices.

2013-02-22 Thread Cornelia Huck
Enhance KVM_IOEVENTFD with a new flag that allows to attach to s390 css devices. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 7 +++ include/uapi/linux/kvm.h | 2 ++ virt/kvm/eventfd.c| 8 ++-- 3 files changed, 15 insertions(+), 2 deletion

[RFC PATCH v2 4/4] KVM: s390: Wire up ioeventfd.

2013-02-22 Thread Cornelia Huck
Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications. Signed-off-by: Cornelia Huck --- arch/s390/kvm/Kconfig| 1 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/diag.c | 25 + arch/s390/kvm/kvm-s390.c | 1 + 4 files changed, 28 in

[RFC PATCH v2 1/2] linux-headers: Update with ioeventfd changes.

2013-02-22 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/linux/kvm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 5af9357..00f2e53 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -448,12 +448,14 @@ enum {

[RFC PATCH v2 2/2] virtio-ccw: Wire up ioeventfd.

2013-02-22 Thread Cornelia Huck
On hosts that support ioeventfd, make use of it for host-to-guest notifications via diagnose 500. Signed-off-by: Cornelia Huck --- hw/s390x/css.c| 2 +- hw/s390x/css.h| 1 + hw/s390x/virtio-ccw.c | 114 ++ hw/s390x/virtio-ccw.h

[PATCH v4 0/2] KVM: VMX: Add Posted Interrupt supporting

2013-02-22 Thread Yang Zhang
From: Yang Zhang The two patches are adding the Posted Interrupt supporting to KVM: The first patch enables the feature 'acknowledge interrupt on vmexit'.Since it is required by Posted interrupt, we need to enable it firstly. And the second patch is adding the posted interrupt supporting. Pleas

[PATCH v4 1/2] KVM: VMX: enable acknowledge interupt on vmexit

2013-02-22 Thread Yang Zhang
From: Yang Zhang The "acknowledge interrupt on exit" feature controls processor behavior for external interrupt acknowledgement. When this control is set, the processor acknowledges the interrupt controller to acquire the interrupt vector on VM exit. After enabling this feature, an interrupt whi

[PATCH v4 2/2] KVM: VMX: Add Posted Interrupt supporting

2013-02-22 Thread Yang Zhang
From: Yang Zhang Posted Interrupt allows APIC interrupts to inject into guest directly without any vmexit. - When delivering a interrupt to guest, if target vcpu is running, update Posted-interrupt requests bitmap and send a notification event to the vcpu. Then the vcpu will handle this inte

Re: [PATCH ppc-next v2 42/52] target-ppc: Convert CPU definitions

2013-02-22 Thread Alexander Graf
On 18.02.2013, at 10:16, Andreas Färber wrote: > Turn the array of model definitions into a set of self-registering QOM > types with their own class_init. Unique identifiers are obtained from > the combination of PVR, SVR and family identifiers; this requires all > alias #defines to be removed fr

Re: [PATCH ppc-next v2 42/52] target-ppc: Convert CPU definitions

2013-02-22 Thread Andreas Färber
Am 22.02.2013 15:23, schrieb Alexander Graf: > > On 18.02.2013, at 10:16, Andreas Färber wrote: > >> diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c >> index 2c64c63..e601059 100644 >> --- a/target-ppc/kvm.c >> +++ b/target-ppc/kvm.c >> @@ -1263,7 +1263,7 @@ static void kvmppc_host_cpu_initfn(Ob

Re: [PATCH ppc-next v2 42/52] target-ppc: Convert CPU definitions

2013-02-22 Thread Alexander Graf
On 22.02.2013, at 17:31, Andreas Färber wrote: > Am 22.02.2013 15:23, schrieb Alexander Graf: >> >> On 18.02.2013, at 10:16, Andreas Färber wrote: >> >>> diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c >>> index 2c64c63..e601059 100644 >>> --- a/target-ppc/kvm.c >>> +++ b/target-ppc/kvm.c >>>

Tracing kvm: kvm_entry and kvm_exit

2013-02-22 Thread Mohamad Gebai
Hello everyone, I am tracing kvm using perf and I am analyzing the sequences of kvm_entry and kvm_exit tracepoints. I noticed that during the boot process of a VM, there are a lot more (2 to 3 as many times) kvm_entry event than there are kvm_exit. I tried looking around but didn't find anything th

[PATCH v6 8/9] configure: Enable KVM on ARM

2013-02-22 Thread Peter Maydell
Enable KVM on ARM hosts, now that all the necessary components for it exist. Signed-off-by: Peter Maydell Reviewed-by: Paolo Bonzini --- configure |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 0dadd31..a97b968 100755 --- a/configure +++ b/con

[PATCH v6 0/9] QEMU: Support KVM on ARM

2013-02-22 Thread Peter Maydell
KVM ARM support has just hit Linus' kernel tree, so we can finally commit this series to QEMU. Since all the patches got reviewed last time round this should be ready to commit. I'm happy to commit via arm-devs.next unless you'd prefer it to go via the kvm qemu tree. NB: the linux-headers sync is

[PATCH v6 1/9] oslib-posix: Align to permit transparent hugepages on ARM Linux

2013-02-22 Thread Peter Maydell
ARM Linux (like x86-64 Linux) can use transparent hugepages for KVM if memory blocks are 2MiB aligned; set QEMU_VMALLOC_ALIGN accordingly. Signed-off-by: Peter Maydell Reviewed-by: Paolo Bonzini --- util/oslib-posix.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/o

[PATCH v6 4/9] ARM KVM: save and load VFP registers from kernel

2013-02-22 Thread Peter Maydell
Add support for saving and restoring VFP register state from the kernel. This includes a check that the KVM-created CPU has full VFP support (as the TCG Cortex-A15 model always does), since for the moment ARM QEMU doesn't have any way to tweak optional features on created CPUs. Signed-off-by: Pete

[PATCH v6 3/9] ARM: KVM: Add support for KVM on ARM architecture

2013-02-22 Thread Peter Maydell
From: Christoffer Dall Add basic support for KVM on ARM architecture. Signed-off-by: Christoffer Dall [PMM: Minor tweaks and code cleanup, switch to ONE_REG] Signed-off-by: Peter Maydell Reviewed-by: Paolo Bonzini --- hw/arm_pic.c | 26 target-arm/Makefile.objs |1 + t

[PATCH v6 7/9] hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC

2013-02-22 Thread Peter Maydell
Implement support for using the KVM in-kernel GIC for ARM. Signed-off-by: Peter Maydell Reviewed-by: Paolo Bonzini --- hw/a15mpcore.c |8 ++- hw/arm/Makefile.objs |1 + hw/kvm/arm_gic.c | 169 ++ 3 files changed, 177 insertions(

[PATCH v6 6/9] target-arm: Use MemoryListener to identify GIC base address for KVM

2013-02-22 Thread Peter Maydell
When using an in-kernel GIC with KVM, we need to tell the kernel where the GIC's memory mapped registers live. Do this by registering a MemoryListener which tracks where the board model maps the A15's private peripherals, so we can finish the GIC initialisation when the GIC is actually mapped. Sig

[PATCH v6 9/9] MAINTAINERS: add entry for ARM KVM guest cores

2013-02-22 Thread Peter Maydell
Add an entry indicating maintainer status for the ARM KVM code. Signed-off-by: Peter Maydell --- MAINTAINERS |5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 21043e4..2439614 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -140,6 +140,11 @@ S: Supported

[PATCH v6 2/9] linux-headers: resync from mainline to add ARM KVM headers

2013-02-22 Thread Peter Maydell
Resync QEMU's copy of the Linux kernel headers from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 2ef14f4. This adds the ARM KVM headers, since ARM KVM support has just hit mainline via Russell's ARM tree. This is not a pure sync -- I have removed by hand some chan

[PATCH v6 5/9] hw/arm_gic: Add presave/postload hooks

2013-02-22 Thread Peter Maydell
Add presave/postload hooks to the ARM GIC common base class. These will be used by the KVM in-kernel GIC subclass to sync state between kernel and userspace when migrating. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber Reviewed-by: Paolo Bonzini --- hw/arm_gic_common.c | 10

[PATCH] drivers/vhost: remove depends on CONFIG_EXPERIMENTAL

2013-02-22 Thread Kees Cook
The CONFIG_EXPERIMENTAL config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs. Signed-off-by: Kees Cook Cc: David S. Miller Cc: Asias He Cc: Michael S. Tsirkin

[PATCH] drivers/vfio: remove depends on CONFIG_EXPERIMENTAL

2013-02-22 Thread Kees Cook
The CONFIG_EXPERIMENTAL config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs. Signed-off-by: Kees Cook Cc: Alex Williamson --- drivers/vfio/pci/Kconfig |2