Re: [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-13 Thread Wen Congyang
At 03/12/2012 06:33 PM, Avi Kivity Wrote: On 03/12/2012 11:04 AM, Wen Congyang wrote: Do you have any other comments about this patch? Not really, but I'm not 100% convinced the patch is worthwhile. It's likely to only be used by Linux, which has kexec facilities, and you can put talk to

Re: [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-13 Thread Avi Kivity
On 03/13/2012 08:44 AM, Wen Congyang wrote: At 03/12/2012 06:33 PM, Avi Kivity Wrote: On 03/12/2012 11:04 AM, Wen Congyang wrote: Do you have any other comments about this patch? Not really, but I'm not 100% convinced the patch is worthwhile. It's likely to only be used by Linux,

Re: [PATCH 2/4] KVM: Avoid checking huge page mappings in get_dirty_log()

2012-03-13 Thread Takuya Yoshikawa
Avi Kivity a...@redhat.com wrote: It occurs to me that we should write-protect huge page tables, since it makes write protection much faster (we make up for this later at write fault time, but that might not occur, and even if it does we reduce guest jitter). In fact I once proposed a more

Re: [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-13 Thread Daniel P. Berrange
On Mon, Mar 12, 2012 at 12:33:33PM +0200, Avi Kivity wrote: On 03/12/2012 11:04 AM, Wen Congyang wrote: Do you have any other comments about this patch? Not really, but I'm not 100% convinced the patch is worthwhile. It's likely to only be used by Linux, which has kexec facilities, and

Re: [Qemu-devel] [PATCH v1 09/12] net: Rename non_vlan_clients to net_clients

2012-03-13 Thread Mark Wu
On 03/09/2012 05:00 PM, zwu.ker...@gmail.com wrote: From: Stefan Hajnoczistefa...@linux.vnet.ibm.com There is no longer a distinction between vlan clients and non-vlan clients in the net core. The net core only knows about point-to-point clients which are connected to a peer. It's time to

Re: [Qemu-devel] [PATCH v1 09/12] net: Rename non_vlan_clients to net_clients

2012-03-13 Thread Zhi Yong Wu
On Tue, Mar 13, 2012 at 5:23 PM, Mark Wu wu...@linux.vnet.ibm.com wrote: On 03/09/2012 05:00 PM, zwu.ker...@gmail.com wrote: From: Stefan Hajnoczistefa...@linux.vnet.ibm.com There is no longer a distinction between vlan clients and non-vlan clients in the net core.  The net core only knows

Re: [PATCH] KVM: VMX: add tracepoint for vpids

2012-03-13 Thread Davidlohr Bueso
On Mon, 2012-03-12 at 12:34 +0200, Avi Kivity wrote: On 03/12/2012 01:29 PM, Davidlohr Bueso wrote: On Mon, 2012-03-12 at 10:22 +0200, Avi Kivity wrote: On 03/11/2012 05:57 PM, Davidlohr Bueso wrote: From: Davidlohr Bueso d...@gnu.org Add a new tracepoint for vpid allocation and

Re: [PATCH] KVM: VMX: add tracepoint for vpids

2012-03-13 Thread Avi Kivity
On 03/13/2012 12:58 PM, Davidlohr Bueso wrote: On Mon, 2012-03-12 at 12:34 +0200, Avi Kivity wrote: On 03/12/2012 01:29 PM, Davidlohr Bueso wrote: On Mon, 2012-03-12 at 10:22 +0200, Avi Kivity wrote: On 03/11/2012 05:57 PM, Davidlohr Bueso wrote: From: Davidlohr Bueso d...@gnu.org

[PATCH 1/2] return available ioeventfds count in kvm_has_many_ioeventfds()

2012-03-13 Thread Amos Kong
Older kernels have a 6 device limit on the KVM io bus. This patch makes kvm_has_many_ioeventfds() return available ioeventfd count. ioeventfd will be disabled if there is no 7 available ioeventfds. Signed-off-by: Amos Kong ak...@redhat.com --- hw/virtio-pci.c |2 +- kvm-all.c |9

[PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Amos Kong
Boot up guest with 232 virtio-blk disk, qemu will abort for fail to allocate ioeventfd. This patchset changes kvm_has_many_ioeventfds(), and check if available ioeventfd exists. If not, virtio-pci will fallback to userspace, and don't use ioeventfd for io notification. --- Amos Kong (2):

[PATCH 1/2] return available ioeventfds count in kvm_has_many_ioeventfds()

2012-03-13 Thread Amos Kong
Older kernels have a 6 device limit on the KVM io bus. This patch makes kvm_has_many_ioeventfds() return available ioeventfd count. ioeventfd will be disabled if there is no 7 available ioeventfds. Signed-off-by: Amos Kong ak...@redhat.com --- hw/virtio-pci.c |2 +- kvm-all.c |9

[PATCH 2/2] virtio-pci: fallback to userspace when there is no enough available ioeventfd

2012-03-13 Thread Amos Kong
Qemu already supported multiple function devices, pci-bridge would support more pci devices. But iobus dev in kernel are limited. If there is no enough available ioeventfd, then clean VIRTIO_PCI_FLAG_USE_IOEVENTFD bit, virtio-pci would fallback to userspace. Signed-off-by: Amos Kong

Re: [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-13 Thread Avi Kivity
On 03/13/2012 11:18 AM, Daniel P. Berrange wrote: On Mon, Mar 12, 2012 at 12:33:33PM +0200, Avi Kivity wrote: On 03/12/2012 11:04 AM, Wen Congyang wrote: Do you have any other comments about this patch? Not really, but I'm not 100% convinced the patch is worthwhile. It's likely to

Re: [PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Stefan Hajnoczi
On Tue, Mar 13, 2012 at 10:42 AM, Amos Kong ak...@redhat.com wrote: Boot up guest with 232 virtio-blk disk, qemu will abort for fail to allocate ioeventfd. This patchset changes kvm_has_many_ioeventfds(), and check if available ioeventfd exists. If not, virtio-pci will fallback to userspace,

Re: qemu-kvm-1.0 crashes with threaded vnc server?

2012-03-13 Thread Peter Lieven
On 11.02.2012 09:55, Corentin Chary wrote: On Thu, Feb 9, 2012 at 7:08 PM, Peter Lievenp...@dlh.net wrote: Hi, is anyone aware if there are still problems when enabling the threaded vnc server? I saw some VMs crashing when using a qemu-kvm build with --enable-vnc-thread. qemu-kvm-1.0[22646]:

Re: [PATCH 1/2] return available ioeventfds count in kvm_has_many_ioeventfds()

2012-03-13 Thread Jan Kiszka
Please tag uq/master patches with PATCH uq/master. On 2012-03-13 11:42, Amos Kong wrote: Older kernels have a 6 device limit on the KVM io bus. This patch makes kvm_has_many_ioeventfds() return available ioeventfd count. ioeventfd will be disabled if there is no 7 available ioeventfds.

Re: [Qemu-devel] [PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Amos Kong
On 13/03/12 19:23, Stefan Hajnoczi wrote: On Tue, Mar 13, 2012 at 10:42 AM, Amos Kongak...@redhat.com wrote: Boot up guest with 232 virtio-blk disk, qemu will abort for fail to allocate ioeventfd. This patchset changes kvm_has_many_ioeventfds(), and check if available ioeventfd exists. If not,

Re: [Qemu-devel] [PATCH 1/2] return available ioeventfds count in kvm_has_many_ioeventfds()

2012-03-13 Thread Amos Kong
On 13/03/12 19:50, Jan Kiszka wrote: Please tag uq/master patches with PATCH uq/master. On 2012-03-13 11:42, Amos Kong wrote: Older kernels have a 6 device limit on the KVM io bus. This patch makes kvm_has_many_ioeventfds() return available ioeventfd count. ioeventfd will be disabled if there

Re: [Qemu-devel] [PATCH 1/2] return available ioeventfds count in kvm_has_many_ioeventfds()

2012-03-13 Thread Jan Kiszka
On 2012-03-13 13:00, Amos Kong wrote: On 13/03/12 19:50, Jan Kiszka wrote: Please tag uq/master patches with PATCH uq/master. On 2012-03-13 11:42, Amos Kong wrote: Older kernels have a 6 device limit on the KVM io bus. This patch makes kvm_has_many_ioeventfds() return available ioeventfd

Re: [Qemu-devel] [PATCH 1/2] return available ioeventfds count in kvm_has_many_ioeventfds()

2012-03-13 Thread Amos Kong
- Original Message - On 2012-03-13 13:00, Amos Kong wrote: On 13/03/12 19:50, Jan Kiszka wrote: Please tag uq/master patches with PATCH uq/master. On 2012-03-13 11:42, Amos Kong wrote: Older kernels have a 6 device limit on the KVM io bus. This patch makes

Re: [Qemu-devel] KVM call agenda for Tuesday 13

2012-03-13 Thread Eduardo Habkost
On Tue, Mar 13, 2012 at 01:22:42AM +0100, Andreas Färber wrote: Am 12.03.2012 13:40, schrieb Juan Quintela: Please send in any agenda items you are interested in covering. * QEMU 1.1 roadmap If we're still aiming for a release in early May that would mean a feature freeze in about four

Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-13 Thread Alexander Graf
On 13.03.2012, at 03:49, Benjamin Herrenschmidt wrote: There is nothing in the code for emulating TCE tables in the kernel that prevents it from working on PR KVM... other than ifdef's and location of the code. This renames book3s_64_vio_hv.c to book3s_64_vio.c and moves the bulk of the

Re: [RFC PATCH v0 1/2] net: bridge: propagate FDB table into hardware

2012-03-13 Thread Jamal Hadi Salim
On Mon, 2012-03-12 at 09:48 +0100, Lennert Buytenhek wrote: Since it can lead to problems (address database mismatches, doesn't correctly handle STP transitions or topology changes automatically), I think it should be avoided whenever possible. I don't see any advantages of hardware based

Re: KVM call agenda for Tuesday 13

2012-03-13 Thread Michael S. Tsirkin
On Tue, Mar 13, 2012 at 01:22:42AM +0100, Andreas Färber wrote: Am 12.03.2012 13:40, schrieb Juan Quintela: Please send in any agenda items you are interested in covering. * QEMU 1.1 roadmap If we're still aiming for a release in early May that would mean a feature freeze in about four

Re: [PATCH 0/2] RFC Isolation API

2012-03-13 Thread David Gibson
On Mon, Mar 12, 2012 at 04:32:46PM -0600, Alex Williamson wrote: VFIO is completely stalled waiting on a poorly defined device isolation infrastructure to take shape. Rather than waiting any longer, I've decided to write my own. This is nowhere near ready for upstream, but attempts to hash

Re: [Qemu-devel] KVM call agenda for Tuesday 13

2012-03-13 Thread Andreas Färber
Am 13.03.2012 03:04, schrieb Anthony Liguori: On 03/12/2012 07:22 PM, Andreas Färber wrote: Am 12.03.2012 13:40, schrieb Juan Quintela: Please send in any agenda items you are interested in covering. * QEMU 1.1 roadmap If we're still aiming for a release in early May that would mean a

Re: [Qemu-devel] [PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Stefan Hajnoczi
On Tue, Mar 13, 2012 at 11:51 AM, Amos Kong ak...@redhat.com wrote: On 13/03/12 19:23, Stefan Hajnoczi wrote: On Tue, Mar 13, 2012 at 10:42 AM, Amos Kongak...@redhat.com  wrote: Boot up guest with 232 virtio-blk disk, qemu will abort for fail to allocate ioeventfd. This patchset changes

KVM call minutes Mars 13th

2012-03-13 Thread Juan Quintela
Hi Today was a short call, list of issues discussed: Release dates for 1.1 - Soft-freeze: 15st April - Hard-freeze: 1st May - Change to 3 months release cycle? discuss on list. - nodev config? * should it respect machine types * cpu models are a mess (go figure) * try to use andreas

Re: [PATCH 1/2] Isolation groups

2012-03-13 Thread David Gibson
On Mon, Mar 12, 2012 at 04:32:54PM -0600, Alex Williamson wrote: Signed-off-by: Alex Williamson alex.william...@redhat.com --- drivers/base/Kconfig | 10 + drivers/base/Makefile |1 drivers/base/base.h |5 drivers/base/isolation.c | 798

Re: [Qemu-devel] [PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Amos Kong
- Original Message - On Tue, Mar 13, 2012 at 11:51 AM, Amos Kong ak...@redhat.com wrote: On 13/03/12 19:23, Stefan Hajnoczi wrote: On Tue, Mar 13, 2012 at 10:42 AM, Amos Kongak...@redhat.com  wrote: Boot up guest with 232 virtio-blk disk, qemu will abort for fail to

Re: qemu-kvm-1.0 crashes with threaded vnc server?

2012-03-13 Thread Corentin Chary
On Tue, Mar 13, 2012 at 12:29 PM, Peter Lieven p...@dlh.net wrote: On 11.02.2012 09:55, Corentin Chary wrote: On Thu, Feb 9, 2012 at 7:08 PM, Peter Lievenp...@dlh.net  wrote: Hi, is anyone aware if there are still problems when enabling the threaded vnc server? I saw some VMs crashing

Re: qemu-kvm-1.0 crashes with threaded vnc server?

2012-03-13 Thread Alexander Graf
On 13.03.2012, at 16:05, Corentin Chary wrote: On Tue, Mar 13, 2012 at 12:29 PM, Peter Lieven p...@dlh.net wrote: On 11.02.2012 09:55, Corentin Chary wrote: On Thu, Feb 9, 2012 at 7:08 PM, Peter Lievenp...@dlh.net wrote: Hi, is anyone aware if there are still problems when enabling

Re: [Qemu-devel] [PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Stefan Hajnoczi
On Tue, Mar 13, 2012 at 2:47 PM, Amos Kong ak...@redhat.com wrote: - Original Message - On Tue, Mar 13, 2012 at 11:51 AM, Amos Kong ak...@redhat.com wrote: On 13/03/12 19:23, Stefan Hajnoczi wrote: On Tue, Mar 13, 2012 at 10:42 AM, Amos Kongak...@redhat.com  wrote: Boot up

Re: [Qemu-devel] [PATCH v3 1/9] net: introduce tcp_server_start()

2012-03-13 Thread Michael Roth
On Wed, Mar 07, 2012 at 06:47:45AM +0800, Amos Kong wrote: Introduce tcp_server_start() by moving original code in tcp_start_incoming_migration(). Signed-off-by: Amos Kong ak...@redhat.com --- net.c | 28 qemu_socket.h |2 ++ 2 files changed, 30

Re: [PATCH 1/2] Isolation groups

2012-03-13 Thread Alex Williamson
On Wed, 2012-03-14 at 01:33 +1100, David Gibson wrote: On Mon, Mar 12, 2012 at 04:32:54PM -0600, Alex Williamson wrote: Signed-off-by: Alex Williamson alex.william...@redhat.com --- drivers/base/Kconfig | 10 + drivers/base/Makefile |1 drivers/base/base.h |

Re: [Qemu-devel] [PATCH v3 3/9] net: introduce tcp_client_start()

2012-03-13 Thread Michael Roth
On Wed, Mar 07, 2012 at 06:48:03AM +0800, Amos Kong wrote: Introduce tcp_client_start() by moving original code in tcp_start_outgoing_migration(). Signed-off-by: Amos Kong ak...@redhat.com --- net.c | 41 + qemu_socket.h |1 + 2 files

Re: [Qemu-devel] [PATCH v3 8/9] net: split hostname and service by last colon

2012-03-13 Thread Michael Roth
On Wed, Mar 07, 2012 at 06:48:48AM +0800, Amos Kong wrote: IPv6 address contains colons, parse will be wrong. [2312::8274]:5200 Signed-off-by: Amos Kong ak...@redhat.com --- net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index

Re: [Qemu-devel] [PATCH v3 9/9] net: support to include ipv6 address by brackets

2012-03-13 Thread Michael Roth
On Wed, Mar 07, 2012 at 06:48:57AM +0800, Amos Kong wrote: That method of representing an IPv6 address with a port is I'm not sure what that is referencing. I assumed the previous patch but the representation seems to be the same? discouraged because of its ambiguity. Referencing to RFC5952,

Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-13 Thread Benjamin Herrenschmidt
On Tue, 2012-03-13 at 14:47 +0100, Alexander Graf wrote: +++ b/arch/powerpc/include/asm/kvm_host.h @@ -183,10 +183,14 @@ struct kvm_arch { unsigned long lpcr; unsigned long rmor; struct kvmppc_rma_info *rma; - struct list_head spapr_tce_tables; unsigned short

Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-13 Thread Alexander Graf
Am 13.03.2012 um 21:09 schrieb Benjamin Herrenschmidt b...@kernel.crashing.org: On Tue, 2012-03-13 at 14:47 +0100, Alexander Graf wrote: +++ b/arch/powerpc/include/asm/kvm_host.h @@ -183,10 +183,14 @@ struct kvm_arch { unsigned long lpcr; unsigned long rmor; struct

Re: [PATCH v4] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-03-13 Thread Alexander Graf
On 08.03.2012, at 22:44, Christoffer Dall wrote: Any news on the status of this? On Thu, Feb 9, 2012 at 8:45 PM, Alexander Graf ag...@suse.de wrote: On 10.02.2012, at 02:40, Christoffer Dall wrote: The kvm_vcpu_kick function performs roughly the same funcitonality on most all

Re: [Android-virt] [PATCH v4] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-03-13 Thread Christoffer Dall
On Tue, Mar 13, 2012 at 4:34 PM, Alexander Graf ag...@suse.de wrote: On 08.03.2012, at 22:44, Christoffer Dall wrote: Any news on the status of this? On Thu, Feb 9, 2012 at 8:45 PM, Alexander Graf ag...@suse.de wrote: On 10.02.2012, at 02:40, Christoffer Dall wrote: The kvm_vcpu_kick

Re: [Android-virt] [PATCH v4] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-03-13 Thread Alexander Graf
On 13.03.2012, at 21:47, Christoffer Dall wrote: On Tue, Mar 13, 2012 at 4:34 PM, Alexander Graf ag...@suse.de wrote: On 08.03.2012, at 22:44, Christoffer Dall wrote: Any news on the status of this? On Thu, Feb 9, 2012 at 8:45 PM, Alexander Graf ag...@suse.de wrote: On 10.02.2012,

[PATCH] KVM: PPC: Rework wqp conditional code

2012-03-13 Thread Alexander Graf
On PowerPC, we sometimes use a waitqueue per core, not per thread, so we can't always use the vcpu internal waitqueue. This code has been generalized by Christoffer Dall recently, but unfortunately broke compilation for PowerPC. At the time the helper function is defined, struct kvm_vcpu is not

[PATCH] KVM: PPC: Emulate tw and td instructions

2012-03-13 Thread Alexander Graf
There are 4 conditional trapping instructions: tw, twi, td, tdi. The ones with an i take an immediate comparison, the others compare two registers. All of them arrive in the emulator when the condition to trap was successfully fulfilled. Unfortunately, we were only implementing the i versions so

[PATCH v2] KVM: PPC: Rework wqp conditional code

2012-03-13 Thread Alexander Graf
On PowerPC, we sometimes use a waitqueue per core, not per thread, so we can't always use the vcpu internal waitqueue. This code has been generalized by Christoffer Dall recently, but unfortunately broke compilation for PowerPC. At the time the helper function is defined, struct kvm_vcpu is not

Re: [PATCH 2/4] KVM: Avoid checking huge page mappings in get_dirty_log()

2012-03-13 Thread Marcelo Tosatti
On Thu, Mar 01, 2012 at 07:32:16PM +0900, Takuya Yoshikawa wrote: Dropped such mappings when we enabled dirty logging and we will never create new ones until we stop the logging. For this we introduce a new function which can be used to write protect a range of PT level pages: although we do

Re: [PATCH] kvm: add flightrecorder script

2012-03-13 Thread Marcelo Tosatti
On Fri, Mar 09, 2012 at 02:13:40PM +, Stefan Hajnoczi wrote: The kvm kernel module includes a number of trace events which can be useful when debugging system behavior. Even on production systems these trace events can be used to observe guest behavior and identify the source of problems.

RE: [PATCH v3 0/7] RTC: New logic to emulate RTC

2012-03-13 Thread Zhang, Yang Z
Is there any comments with the version 3? best regards yang -Original Message- From: Zhang, Yang Z Sent: Friday, March 02, 2012 2:59 PM To: qemu-de...@nongnu.org Cc: Jan Kiszka; kvm@vger.kernel.org; kvm@vger.kernel.org; aligu...@us.ibm.com; Paolo Bonzini; Marcelo Tosatti Subject:

Re: [Qemu-devel] [PATCH 0/2] virtio-pci: fix abort when fail to allocate ioeventfd

2012-03-13 Thread Amos Kong
- Original Message - On Tue, Mar 13, 2012 at 2:47 PM, Amos Kong ak...@redhat.com wrote: ... Hi, Stefan diff --git a/kvm-all.c b/kvm-all.c index 77eadf6..7157e78 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -771,6 +771,8 @@ static void kvm_io_ioeventfd_add(MemoryRegionSection

Re: [PATCH v2] KVM: PPC: Rework wqp conditional code

2012-03-13 Thread Marcelo Tosatti
On Tue, Mar 13, 2012 at 10:35:01PM +0100, Alexander Graf wrote: On PowerPC, we sometimes use a waitqueue per core, not per thread, so we can't always use the vcpu internal waitqueue. This code has been generalized by Christoffer Dall recently, but unfortunately broke compilation for PowerPC.

Re: [PATCH 0/4 V16] Avoid soft lockup message when KVM is stopped by host

2012-03-13 Thread Marcelo Tosatti
Applied, thanks. On Sat, Mar 10, 2012 at 02:37:24PM -0500, Eric B Munson wrote: Changes from V15: Add arch/*/include/asm/kvm_para.h that includes the asm-generic version Changes from V14: Update documentation for the pvclock api Changes from V13: Expand on KVM_KVMCLOCK_CTRL ioctl

Re: [PATCH 2/4] KVM: Avoid checking huge page mappings in get_dirty_log()

2012-03-13 Thread Takuya Yoshikawa
Marcelo Tosatti mtosa...@redhat.com wrote: This is a race with hugetlbfs which is not an issue ATM (it is hidden by the removal of huge sptes in get_dirty). Thank you! I did not notice this possibility at all. ... It can be fixed with a preceding patch that checks whether

buildbot failure in kvm on i386

2012-03-13 Thread kvm
The Buildbot has detected a new failure on builder i386 while building kvm. Full details are available at: http://buildbot.b1-systems.de/kvm/builders/i386/builds/482 Buildbot URL: http://buildbot.b1-systems.de/kvm/ Buildslave for this Build: b1_kvm_1 Build Reason: The Nightly scheduler named

buildbot failure in kvm on next-i386

2012-03-13 Thread kvm
The Buildbot has detected a new failure on builder next-i386 while building kvm. Full details are available at: http://buildbot.b1-systems.de/kvm/builders/next-i386/builds/471 Buildbot URL: http://buildbot.b1-systems.de/kvm/ Buildslave for this Build: b1_kvm_1 Build Reason: The Nightly

Re: [PATCH 2/4] KVM: Avoid checking huge page mappings in get_dirty_log()

2012-03-13 Thread Takuya Yoshikawa
Marcelo Tosatti mtosa...@redhat.com wrote: guest fault enable dirty logging tdp_page_fault (all _page_fault functions) kvm_set_memory_region level = mapping_level(vcpu, gfn) (finds level == 2 or 3)

Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-13 Thread Alexander Graf
On 13.03.2012, at 03:49, Benjamin Herrenschmidt wrote: There is nothing in the code for emulating TCE tables in the kernel that prevents it from working on PR KVM... other than ifdef's and location of the code. This renames book3s_64_vio_hv.c to book3s_64_vio.c and moves the bulk of the

Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-13 Thread Benjamin Herrenschmidt
On Tue, 2012-03-13 at 14:47 +0100, Alexander Graf wrote: +++ b/arch/powerpc/include/asm/kvm_host.h @@ -183,10 +183,14 @@ struct kvm_arch { unsigned long lpcr; unsigned long rmor; struct kvmppc_rma_info *rma; - struct list_head spapr_tce_tables; unsigned short

Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-13 Thread Alexander Graf
Am 13.03.2012 um 21:09 schrieb Benjamin Herrenschmidt b...@kernel.crashing.org: On Tue, 2012-03-13 at 14:47 +0100, Alexander Graf wrote: +++ b/arch/powerpc/include/asm/kvm_host.h @@ -183,10 +183,14 @@ struct kvm_arch { unsigned long lpcr; unsigned long rmor; struct

Re: [PATCH v4] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-03-13 Thread Alexander Graf
On 08.03.2012, at 22:44, Christoffer Dall wrote: Any news on the status of this? On Thu, Feb 9, 2012 at 8:45 PM, Alexander Graf ag...@suse.de wrote: On 10.02.2012, at 02:40, Christoffer Dall wrote: The kvm_vcpu_kick function performs roughly the same funcitonality on most all

Re: [Android-virt] [PATCH v4] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-03-13 Thread Christoffer Dall
On Tue, Mar 13, 2012 at 4:34 PM, Alexander Graf ag...@suse.de wrote: On 08.03.2012, at 22:44, Christoffer Dall wrote: Any news on the status of this? On Thu, Feb 9, 2012 at 8:45 PM, Alexander Graf ag...@suse.de wrote: On 10.02.2012, at 02:40, Christoffer Dall wrote: The kvm_vcpu_kick

Re: [Android-virt] [PATCH v4] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-03-13 Thread Alexander Graf
On 13.03.2012, at 21:47, Christoffer Dall wrote: On Tue, Mar 13, 2012 at 4:34 PM, Alexander Graf ag...@suse.de wrote: On 08.03.2012, at 22:44, Christoffer Dall wrote: Any news on the status of this? On Thu, Feb 9, 2012 at 8:45 PM, Alexander Graf ag...@suse.de wrote: On 10.02.2012,

[PATCH] KVM: PPC: Rework wqp conditional code

2012-03-13 Thread Alexander Graf
On PowerPC, we sometimes use a waitqueue per core, not per thread, so we can't always use the vcpu internal waitqueue. This code has been generalized by Christoffer Dall recently, but unfortunately broke compilation for PowerPC. At the time the helper function is defined, struct kvm_vcpu is not

[PATCH] KVM: PPC: Emulate tw and td instructions

2012-03-13 Thread Alexander Graf
There are 4 conditional trapping instructions: tw, twi, td, tdi. The ones with an i take an immediate comparison, the others compare two registers. All of them arrive in the emulator when the condition to trap was successfully fulfilled. Unfortunately, we were only implementing the i versions so

[PATCH v2] KVM: PPC: Rework wqp conditional code

2012-03-13 Thread Alexander Graf
On PowerPC, we sometimes use a waitqueue per core, not per thread, so we can't always use the vcpu internal waitqueue. This code has been generalized by Christoffer Dall recently, but unfortunately broke compilation for PowerPC. At the time the helper function is defined, struct kvm_vcpu is not

Re: [PATCH v2] KVM: PPC: Rework wqp conditional code

2012-03-13 Thread Marcelo Tosatti
On Tue, Mar 13, 2012 at 10:35:01PM +0100, Alexander Graf wrote: On PowerPC, we sometimes use a waitqueue per core, not per thread, so we can't always use the vcpu internal waitqueue. This code has been generalized by Christoffer Dall recently, but unfortunately broke compilation for PowerPC.