Re: [PATCH v16 00/10] KVM/arm/arm64/x86: dirty page logging for ARMv7/8 (3.18.0-rc2)

2015-01-21 Thread Mario Smarduch
On 01/21/2015 03:08 AM, Christoffer Dall wrote: On Thu, Jan 15, 2015 at 03:58:51PM -0800, Mario Smarduch wrote: Patch series adds support for armv7/8 dirty page logging. As we move towards generic dirty page logging interface we move some common code to generic layer shared by x86, armv7

[PATCH v16 09/10] KVM: arm64: Add HYP interface to flush VM Stage 1/2 TLB entries

2015-01-15 Thread Mario Smarduch
This patch adds support for arm64 hyp interface to flush all TLBs associated with VMID. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm64/kvm/hyp.S | 22 ++ 1 file changed, 22 insertions(+) diff

[PATCH v16 08/10] KVM: arm64: ARMv8 header changes for page logging

2015-01-15 Thread Mario Smarduch
This patch adds arm64 helpers to write protect pmds/ptes and retrieve permissions while logging dirty pages. Also adds prototype to write protect a memory slot and adds a pmd define to check for read-only pmds. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario

[PATCH v16 06/10] KVM: arm: dirty logging write protect support

2015-01-15 Thread Mario Smarduch
Add support to track dirty pages between user space KVM_GET_DIRTY_LOG ioctl calls. We call kvm_get_dirty_log_protect() function to do most of the work. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Reviewed-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Mario Smarduch m.smard

[PATCH v16 07/10] KVM: arm: page logging 2nd stage fault handling

2015-01-15 Thread Mario Smarduch
. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/kvm/mmu.c | 97 +++- 1 file changed, 88 insertions(+), 9 deletions(-) diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 73d506f..ea6b13e 100644 --- a/arch/arm/kvm/mmu.c +++ b

[PATCH v16 05/10] KVM: arm: Add initial dirty page locking support

2015-01-15 Thread Mario Smarduch
Add support for initial write protection of VM memslots. This patch series assumes that huge PUDs will not be used in 2nd stage tables, which is always valid on ARMv7 Acked-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include

[PATCH v16 00/10] KVM/arm/arm64/x86: dirty page logging for ARMv7/8 (3.18.0-rc2)

2015-01-15 Thread Mario Smarduch
variants for TLB Flushing and dirty log read (patches 1,2 3,4,5,6) - rebased to 3.16.0-rc1 - Applied Christoffers comments Mario Smarduch (9): KVM: Add architecture-defined TLB flush support KVM: Add generic support for dirty page logging KVM: arm: Add ARMv7 API to flush TLBs KVM: arm

[PATCH v16 01/10] KVM: Add architecture-defined TLB flush support

2015-01-15 Thread Mario Smarduch
Bonzini pbonz...@redhat.com Signed-off-by: Mario Smarduch m.smard...@samsung.com --- virt/kvm/Kconfig|3 +++ virt/kvm/kvm_main.c |2 ++ 2 files changed, 5 insertions(+) diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index fc0c5e6..3796a21 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm

[PATCH v16 10/10] KVM: arm/arm64: Enable Dirty Page logging for ARMv8

2015-01-15 Thread Mario Smarduch
This patch enables ARMv8 ditry page logging support. Plugs ARMv8 into generic layer through Kconfig symbol, and drops earlier ARM64 constraints to enable logging at architecture layer. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com

[PATCH v16 03/10] KVM: x86: switch to kvm_get_dirty_log_protect

2015-01-15 Thread Mario Smarduch
From: Paolo Bonzini pbonz...@redhat.com We now have a generic function that does most of the work of kvm_vm_ioctl_get_dirty_log, now use it. Acked-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/x86/include/asm/kvm_host.h |3

[PATCH v16 02/10] KVM: Add generic support for dirty page logging

2015-01-15 Thread Mario Smarduch
. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- include/linux/kvm_host.h |9 ++ virt/kvm/Kconfig |6 virt/kvm/kvm_main.c | 80 ++ 3 files changed, 95

Re: [PATCH v15 11/11] KVM: arm/arm64: Add support to dissolve huge PUD

2015-01-08 Thread Mario Smarduch
On 01/08/2015 03:32 AM, Christoffer Dall wrote: On Wed, Jan 07, 2015 at 07:01:10PM -0800, Mario Smarduch wrote: On 01/07/2015 05:05 AM, Christoffer Dall wrote: On Sun, Dec 14, 2014 at 11:28:08PM -0800, Mario Smarduch wrote: This patch adds the same support for PUD huge page as for PMD. Huge

Re: [PATCH v15 11/11] KVM: arm/arm64: Add support to dissolve huge PUD

2015-01-07 Thread Mario Smarduch
On 01/07/2015 05:05 AM, Christoffer Dall wrote: On Sun, Dec 14, 2014 at 11:28:08PM -0800, Mario Smarduch wrote: This patch adds the same support for PUD huge page as for PMD. Huge PUD is write protected for initial memory region write protection. Code to dissolve huge PUD is supported

Re: [PATCH v15 10/11] KVM: arm/arm64: Enable Dirty Page logging for ARMv8

2015-01-07 Thread Mario Smarduch
On 01/07/2015 04:47 AM, Christoffer Dall wrote: On Sun, Dec 14, 2014 at 11:28:07PM -0800, Mario Smarduch wrote: This patch enables ARMv8 ditry page logging support. Plugs ARMv8 into generic dirty yeah. layer through Kconfig symbol, and drops earlier ARM64

[PATCH v15 01/11] KVM: Add architecture-defined TLB flush support

2014-12-14 Thread Mario Smarduch
Bonzini pbonz...@redhat.com Signed-off-by: Mario Smarduch m.smard...@samsung.com --- virt/kvm/Kconfig| 3 +++ virt/kvm/kvm_main.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index fc0c5e6..3796a21 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm/Kconfig

[PATCH v15 00/11] KVM//x86/arm/arm64: dirty page logging for ARMv7/8 (3.18.0-rc2)

2014-12-14 Thread Mario Smarduch
comments Mario Smarduch (10): KVM: Add architecture-defined TLB flush support KVM: Add generic support for dirty page logging KVM: arm: Add ARMv7 API to flush TLBs KVM: arm: Add initial dirty page locking support KVM: arm: dirty logging write protect support KVM: arm: page logging 2nd

[PATCH v15 03/11] KVM: x86: switch to kvm_get_dirty_log_protect

2014-12-14 Thread Mario Smarduch
From: Paolo Bonzini pbonz...@redhat.com We now have a generic function that does most of the work of kvm_vm_ioctl_get_dirty_log, now use it. Acked-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/x86/include/asm/kvm_host.h | 3

[PATCH v15 02/11] KVM: Add generic support for dirty page logging

2014-12-14 Thread Mario Smarduch
. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- include/linux/kvm_host.h | 9 ++ virt/kvm/Kconfig | 6 virt/kvm/kvm_main.c | 80 3 files changed, 95

[PATCH v15 04/11] KVM: arm: Add ARMv7 API to flush TLBs

2014-12-14 Thread Mario Smarduch
This patch adds ARMv7 architecture TLB Flush function. Acked-by: Marc Zyngier marc.zyng...@arm.com Acked-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_asm.h | 1 + arch/arm/include/asm/kvm_host.h | 12

[PATCH v15 05/11] KVM: arm: Add initial dirty page locking support

2014-12-14 Thread Mario Smarduch
Add support for initial write protection of VM memslots. This patch series assumes that huge PUDs will not be used in 2nd stage tables, which is always valid on ARMv7 Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_host.h | 2 + arch/arm/include/asm

[PATCH v15 06/11] KVM: arm: dirty logging write protect support

2014-12-14 Thread Mario Smarduch
Add support to track dirty pages between user space KVM_GET_DIRTY_LOG ioctl calls. We call kvm_get_dirty_log_protect() function to do most of the work. Reviewed-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/kvm/Kconfig | 1 + arch/arm

[PATCH v15 07/11] KVM: arm: page logging 2nd stage fault handling

2014-12-14 Thread Mario Smarduch
into functions. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/kvm/mmu.c | 86 +- 1 file changed, 78 insertions(+), 8 deletions(-) diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 73d506f..dc763bb 100644 --- a/arch/arm/kvm

[PATCH v15 08/11] KVM: arm64: ARMv8 header changes for page logging

2014-12-14 Thread Mario Smarduch
This patch adds arm64 helpers to write protect pmds/ptes and retrieve permissions while logging dirty pages. Also adds prototype to write protect a memory slot and adds a pmd define to check for read-only pmds. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario

[PATCH v15 09/11] KVM: arm64: Add HYP interface to flush VM Stage 1/2 TLB entires

2014-12-14 Thread Mario Smarduch
This patch adds support for arm64 hyp interface to flush all TLBs associated with VMID. Reviewed-by: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm64/kvm/hyp.S | 22 ++ 1 file changed, 22 insertions(+) diff

[PATCH v15 10/11] KVM: arm/arm64: Enable Dirty Page logging for ARMv8

2014-12-14 Thread Mario Smarduch
This patch enables ARMv8 ditry page logging support. Plugs ARMv8 into generic layer through Kconfig symbol, and drops earlier ARM64 constraints to enable logging at architecture layer. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_host.h | 12

[PATCH v15 11/11] KVM: arm/arm64: Add support to dissolve huge PUD

2014-12-14 Thread Mario Smarduch
entry is cleared. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_mmu.h | 8 + arch/arm/kvm/mmu.c | 64 -- arch/arm64/include/asm/kvm_mmu.h | 9 + arch/arm64/include/asm/pgtable-hwdef.h | 3

Re: [PATCH v14 0/7] KVM/arm/x86: dirty page logging for ARMv7 (3.17.0-rc1)

2014-11-25 Thread Mario Smarduch
On 11/25/2014 02:22 AM, Christoffer Dall wrote: Hi Mario, On Thu, Nov 13, 2014 at 05:57:41PM -0800, Mario Smarduch wrote: Patch series adds support for ARMv7 and generic dirty page logging support. As we try to move towards generic dirty page logging additional logic is moved to generic

Re: [PATCH v14 3/7] KVM: x86: switch to kvm_get_dirty_log_protect

2014-11-24 Thread Mario Smarduch
On 11/22/2014 11:19 AM, Christoffer Dall wrote: On Thu, Nov 13, 2014 at 05:57:44PM -0800, Mario Smarduch wrote: From: Paolo Bonzini pbonz...@redhat.com We now have a generic function that does most of the work of kvm_vm_ioctl_get_dirty_log, now use it. Signed-off-by: Mario Smarduch m.smard

Re: [PATCH v14 6/7] KVM: arm: dirty logging write protect support

2014-11-24 Thread Mario Smarduch
On 11/22/2014 11:40 AM, Christoffer Dall wrote: On Thu, Nov 13, 2014 at 05:57:47PM -0800, Mario Smarduch wrote: Add support to track dirty pages between user space KVM_GET_DIRTY_LOG ioctl calls. We call kvm_get_dirty_log_protect() function to do most of the work. Reviewed-by: Marc Zyngier

Re: [PATCH v14 5/7] KVM: arm: Add initial dirty page locking support

2014-11-24 Thread Mario Smarduch
On 11/22/2014 11:33 AM, Christoffer Dall wrote: On Thu, Nov 13, 2014 at 05:57:46PM -0800, Mario Smarduch wrote: Add support for initial write protection of VM memslots. This patch series assumes that huge PUDs will not be used in 2nd stage tables, which is always valid on ARMv7. Signed-off

Re: [PATCH v14 7/7] KVM: arm: page logging 2nd stage fault handling

2014-11-14 Thread Mario Smarduch
On 11/14/2014 08:45 AM, Marc Zyngier wrote: Hi Mario, On 14/11/14 01:57, Mario Smarduch wrote: This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and dissolves huge pages to page tables. In case migration is canceled huge pages

Re: [PATCH v14 0/7] KVM/arm/x86: dirty page logging for ARMv7 (3.17.0-rc1)

2014-11-14 Thread Mario Smarduch
On 11/14/2014 12:06 AM, Cornelia Huck wrote: On Thu, 13 Nov 2014 17:57:41 -0800 Mario Smarduch m.smard...@samsung.com wrote: Patch series adds support for ARMv7 and generic dirty page logging support. As we try to move towards generic dirty page logging additional logic is moved

[PATCH v14 0/7] KVM/arm/x86: dirty page logging for ARMv7 (3.17.0-rc1)

2014-11-13 Thread Mario Smarduch
and architecture specific variants for TLB Flushing and dirty log read (patches 1,2 3,4,5,6) - rebased to 3.16.0-rc1 - Applied Christoffers comments. Mario Smarduch (6): KVM: Add architecture-defined TLB flush support KVM: Add generic support for dirty page logging KVM: arm: Add ARMv7 API

[PATCH v14 2/7] KVM: Add generic support for dirty page logging

2014-11-13 Thread Mario Smarduch
. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- include/linux/kvm_host.h |9 ++ virt/kvm/Kconfig |6 virt/kvm/kvm_main.c | 80 ++ 3 files changed, 95 insertions(+) diff --git a/include/linux/kvm_host.h b/include

[PATCH v14 1/7] KVM: Add architecture-defined TLB flush support

2014-11-13 Thread Mario Smarduch
Allow architectures to override the generic kvm_flush_remote_tlbs() function via HAVE_KVM_ARCH_TLB_FLUSH_ALL. ARMv7 will need this to provide its own TLB flush interface. Reviewed-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Mario Smarduch

[PATCH v14 5/7] KVM: arm: Add initial dirty page locking support

2014-11-13 Thread Mario Smarduch
Add support for initial write protection of VM memslots. This patch series assumes that huge PUDs will not be used in 2nd stage tables, which is always valid on ARMv7. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_host.h |2 + arch/arm/include/asm

[PATCH v14 6/7] KVM: arm: dirty logging write protect support

2014-11-13 Thread Mario Smarduch
Add support to track dirty pages between user space KVM_GET_DIRTY_LOG ioctl calls. We call kvm_get_dirty_log_protect() function to do most of the work. Reviewed-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/kvm/Kconfig |1 + arch/arm

[PATCH v14 7/7] KVM: arm: page logging 2nd stage fault handling

2014-11-13 Thread Mario Smarduch
This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and dissolves huge pages to page tables. In case migration is canceled huge pages are used again. Reviewed-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario

Re: [PATCH v14 3/7] KVM: x86: switch to kvm_get_dirty_log_protect

2014-11-13 Thread Mario Smarduch
Hi Paolo, I changed your patch a little to use a Kconfig symbol, hope that's fine with you. - Mario On 11/13/2014 05:57 PM, Mario Smarduch wrote: From: Paolo Bonzini pbonz...@redhat.com We now have a generic function that does most of the work of kvm_vm_ioctl_get_dirty_log, now use

Re: [PATCH v13 2/7] KVM: Add generic support for dirty page logging

2014-11-07 Thread Mario Smarduch
On 11/07/2014 01:07 AM, Cornelia Huck wrote: On Thu, 06 Nov 2014 16:40:43 -0800 Mario Smarduch m.smard...@samsung.com wrote: kvm_get_dirty_log() provides generic handling of dirty bitmap, currently reused by several architectures. Building on that we intrdoduce kvm_get_dirty_log_protect

Re: [PATCH v13 4/7] arm: KVM: Add ARMv7 API to flush TLBs

2014-11-07 Thread Mario Smarduch
On 11/07/2014 01:44 AM, Marc Zyngier wrote: On 07/11/14 00:40, Mario Smarduch wrote: This patch adds ARMv7 architecture TLB Flush function. Acked-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_asm.h

Re: [PATCH v13 5/7] arm: KVM: Add initial dirty page locking infrastructure

2014-11-07 Thread Mario Smarduch
On 11/07/2014 02:15 AM, Marc Zyngier wrote: On 07/11/14 00:40, Mario Smarduch wrote: Add support for initial write protection of VM memlsot. This patch memslots series assumes that huge PUDs will not be used in 2nd stage tables, which is awlays

Re: [PATCH v13 7/7] arm: KVM: ARMv7 dirty page logging 2nd stage page fault

2014-11-07 Thread Mario Smarduch
On 11/07/2014 02:33 AM, Marc Zyngier wrote: On 07/11/14 00:40, Mario Smarduch wrote: This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and dissolves huge pages to page tables. In case migration is canceled huge pages are used again

Re: [PATCH v13 6/7] arm: KVM: dirty log read write protect support

2014-11-07 Thread Mario Smarduch
On 11/06/2014 11:38 PM, Paolo Bonzini wrote: On 07/11/2014 01:40, Mario Smarduch wrote: Add support to track dirty pages between user space KVM_GET_DIRTY_LOG ioctl calls. We call kvm_get_dirty_log_protect() function to do most of the work. Signed-off-by: Mario Smarduch m.smard

Re: [PATCH v13 3/7] KVM: x86: flush TLBs last before returning from KVM_GET_DIRTY_LOG

2014-11-07 Thread Mario Smarduch
On 11/06/2014 11:44 PM, Paolo Bonzini wrote: On 07/11/2014 01:40, Mario Smarduch wrote: In the next patches, we will move parts of x86's kvm_vm_ioctl_get_dirty_log implementation to generic code; leave the arch-specific code at the end, similar to the existing generic function

Re: [PATCH v13 3/7] KVM: x86: flush TLBs last before returning from KVM_GET_DIRTY_LOG

2014-11-07 Thread Mario Smarduch
On 11/07/2014 12:02 PM, Christoffer Dall wrote: On Fri, Nov 07, 2014 at 11:50:09AM -0800, Mario Smarduch wrote: On 11/06/2014 11:44 PM, Paolo Bonzini wrote: On 07/11/2014 01:40, Mario Smarduch wrote: In the next patches, we will move parts of x86's kvm_vm_ioctl_get_dirty_log implementation

Re: [PATCH v13 4/7] arm: KVM: Add ARMv7 API to flush TLBs

2014-11-07 Thread Mario Smarduch
On 11/07/2014 12:18 PM, Christoffer Dall wrote: On Thu, Nov 06, 2014 at 04:40:45PM -0800, Mario Smarduch wrote: This patch adds ARMv7 architecture TLB Flush function. Acked-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm

[PATCH v13 0/7] KVM/arm/x86: dirty page logging support for ARMv7 (3.17.0-rc1)

2014-11-06 Thread Mario Smarduch
comments Changes since v9: - Split patches into generic and architecture specific variants for TLB Flushing and dirty log read (patches 1,2 3,4,5,6) - rebased to 3.16.0-rc1 - Applied Christoffers comments. Mario Smarduch (7): KVM: Add architecture-defined TLB flush support KVM: Add generic

[PATCH v13 1/7] KVM: Add architecture-defined TLB flush support

2014-11-06 Thread Mario Smarduch
Allow architectures to override the generic kvm_flush_remote_tlbs() function via HAVE_KVM_ARCH_TLB_FLUSH_ALL. ARMv7 will need this to provide its own TLB flush interface. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Mario Smarduch m.smard...@samsung.com --- virt/kvm/Kconfig

[PATCH v13 2/7] KVM: Add generic support for dirty page logging

2014-11-06 Thread Mario Smarduch
. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- include/linux/kvm_host.h |9 + virt/kvm/kvm_main.c | 95 ++ 2 files changed, 104 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index a4c33b3

[PATCH v13 3/7] KVM: x86: flush TLBs last before returning from KVM_GET_DIRTY_LOG

2014-11-06 Thread Mario Smarduch
In the next patches, we will move parts of x86's kvm_vm_ioctl_get_dirty_log implementation to generic code; leave the arch-specific code at the end, similar to the existing generic function kvm_get_dirty_log. Reviewed-by: Mario Smarduch m.smard...@samsung.com Signed-off-by: Paolo Bonzini pbonz

[PATCH v13 4/7] arm: KVM: Add ARMv7 API to flush TLBs

2014-11-06 Thread Mario Smarduch
This patch adds ARMv7 architecture TLB Flush function. Acked-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_asm.h |1 + arch/arm/include/asm/kvm_host.h | 12 arch/arm/kvm/Kconfig

[PATCH v13 5/7] arm: KVM: Add initial dirty page locking infrastructure

2014-11-06 Thread Mario Smarduch
Add support for initial write protection of VM memlsot. This patch series assumes that huge PUDs will not be used in 2nd stage tables, which is awlays valid on ARMv7. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_host.h |2 + arch/arm/include/asm

[PATCH v13 6/7] arm: KVM: dirty log read write protect support

2014-11-06 Thread Mario Smarduch
Add support to track dirty pages between user space KVM_GET_DIRTY_LOG ioctl calls. We call kvm_get_dirty_log_protect() function to do most of the work. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/kvm/arm.c | 37 + arch/arm/kvm/mmu.c

[PATCH v13 7/7] arm: KVM: ARMv7 dirty page logging 2nd stage page fault

2014-11-06 Thread Mario Smarduch
This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and dissolves huge pages to page tables. In case migration is canceled huge pages are used again. Reviewed-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario

Re: [PATCH v12 2/6] KVM: Add generic support for dirty page logging

2014-11-05 Thread Mario Smarduch
On 11/05/2014 08:09 AM, Paolo Bonzini wrote: On 01/11/2014 11:12, James Hogan wrote: AFAICT all of the arch implementations of kvm_vm_ioctl_get_dirty_log() except x86 and ppc hv (i.e. ia60, mips, ppc pv, s390) already make use of the existing generic function kvm_get_dirty_log() to help

Re: [PATCH v12 2/6] KVM: Add generic support for dirty page logging

2014-11-03 Thread Mario Smarduch
On 11/01/2014 03:12 AM, James Hogan wrote: Hi Mario, On Wed, Oct 22, 2014 at 03:34:07PM -0700, Mario Smarduch wrote: +/** + * kvm_vm_ioctl_get_dirty_log - get and clear the log of dirty pages in a slot + * @kvm: kvm instance + * @log: slot id and address to which we copy the log

Re: [PATCH v12 2/6] KVM: Add generic support for dirty page logging

2014-11-03 Thread Mario Smarduch
On 11/02/2014 07:01 PM, Takuya Yoshikawa wrote: On Thu, 30 Oct 2014 12:19:00 -0700 Mario Smarduch m.smard...@samsung.com wrote: On 10/30/2014 05:14 AM, Cornelia Huck wrote: On Wed, 22 Oct 2014 15:34:07 -0700 Mario Smarduch m.smard...@samsung.com wrote: This patch defines

Re: [PATCH v12 2/6] KVM: Add generic support for dirty page logging

2014-10-30 Thread Mario Smarduch
On 10/30/2014 05:14 AM, Cornelia Huck wrote: On Wed, 22 Oct 2014 15:34:07 -0700 Mario Smarduch m.smard...@samsung.com wrote: This patch defines KVM_GENERIC_DIRTYLOG, and moves dirty log read function to it's own file virt/kvm/dirtylog.c. x86 is updated to use the generic dirty log interface

Re: [PATCH v12 0/6] arm/KVM: dirty page logging support for ARMv7 (3.17.0-rc1)

2014-10-30 Thread Mario Smarduch
On 10/30/2014 05:11 AM, Christian Borntraeger wrote: Am 23.10.2014 00:34, schrieb Mario Smarduch: This patch series introduces dirty page logging for ARMv7 and adds some degree of generic dirty logging support for x86, armv7 and later armv8. I implemented Alex's suggestion after he took

Re: [PATCH v12 0/6] arm/KVM: dirty page logging support for ARMv7 (3.17.0-rc1)

2014-10-28 Thread Mario Smarduch
On 10/27/2014 06:24 PM, Wanpeng Li wrote: On Mon, Oct 27, 2014 at 05:28:28PM -0700, Mario Smarduch wrote: Hi Wanpeng, On 10/27/2014 04:26 PM, Wanpeng Li wrote: [...] Testing: - Generally live migration + checksumming of source/destination memory regions is used validate correctness

Re: [PATCH v12 0/6] 2nd-request for review comments: arm/KVM: dirty page logging support for ARMv7 (3.17.0-rc1)

2014-10-28 Thread Mario Smarduch
Architecture maintainers (the To: folks) please provide your comments. This patch series has gone through quite a few itterations it would be nice to see the light at the end of the tunnel. Thanks. Mario On 10/22/2014 03:34 PM, Mario Smarduch wrote: This patch series introduces dirty page

Re: [PATCH v12 0/6] arm/KVM: dirty page logging support for ARMv7 (3.17.0-rc1)

2014-10-27 Thread Mario Smarduch
Hi Wanpeng, On 10/27/2014 04:26 PM, Wanpeng Li wrote: [...] Testing: - Generally live migration + checksumming of source/destination memory regions is used validate correctness. Could you tell me where to get the checksum you are using? In addition, checksum should be used at which

[PATCH v12 0/6] arm/KVM: dirty page logging support for ARMv7 (3.17.0-rc1)

2014-10-22 Thread Mario Smarduch
: - Split patches into generic and architecture specific variants for TLB Flushing and dirty log read (patches 1,2 3,4,5,6) - rebased to 3.16.0-rc1 - Applied Christoffers comments. Mario Smarduch (6): KVM: Add architecture-defined TLB flush support KVM: Add generic support for dirty page

[PATCH v12 2/6] KVM: Add generic support for dirty page logging

2014-10-22 Thread Mario Smarduch
. This changed from previous patch revision where non-generic architectures were modified. In subsequent patch armv7 does samething. All other architectures continue use architecture defined version. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/x86/include/asm/kvm_host.h |3

[PATCH v12 1/6] KVM: Add architecture-defined TLB flush support

2014-10-22 Thread Mario Smarduch
-by: Mario Smarduch m.smard...@samsung.com --- virt/kvm/Kconfig|3 +++ virt/kvm/kvm_main.c |2 ++ 2 files changed, 5 insertions(+) diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index fc0c5e6..3796a21 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm/Kconfig @@ -37,3 +37,6 @@ config

[PATCH v12 3/6] arm: KVM: Add ARMv7 API to flush TLBs

2014-10-22 Thread Mario Smarduch
This patch adds ARMv7 architecture TLB Flush function. Acked-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_asm.h |1 + arch/arm/include/asm/kvm_host.h | 12 arch/arm/kvm/Kconfig

[PATCH v12 4/6] arm: KVM: Add initial dirty page locking infrastructure

2014-10-22 Thread Mario Smarduch
Patch adds support for initial write protection of VM memlsot. This patch series assumes that huge PUDs will not be used in 2nd stage tables, which is awlays valid on ARMv7. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_host.h |2 + arch/arm

[PATCH v12 6/6] arm: KVM: ARMv7 dirty page logging 2nd stage page fault

2014-10-22 Thread Mario Smarduch
This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and dissolves huge pages to page tables. In case migration is canceled huge pages are used again. Reviewed-by: Christoffer Dall christoffer.dall at linaro.org Signed-off-by: Mario

[PATCH v12 5/6] arm: KVM: dirty log read write protect support

2014-10-22 Thread Mario Smarduch
This patch adds support to track VM dirty pages, between dirty log reads. Pages that have been dirtied since last log read are write protected again, in preparation of next dirty log read. In addition ARMv7 dirty log read function is pushed up to generic layer. Signed-off-by: Mario Smarduch

Re: RFC: vfio interface for platform devices (v2)

2013-07-04 Thread Mario Smarduch
I'm having trouble understanding how this works where the Guest Device Model != Host. How do you inform the guest where the device is mapped in its physical address space, and handle GPA faults? - Mario On 7/3/2013 11:40 PM, Yoder Stuart-B08248 wrote: Version 2 -VFIO_GROUP_GET_DEVICE_FD--