Re: [PATCH] KVM: ARM: Fix wrong address in comment

2013-04-14 Thread Christoffer Dall
On Wed, Apr 10, 2013 at 7:37 PM, Jonghwan Choi jhbird.c...@samsung.com wrote: hyp_hvc vector offset should be 0x14 and hyp_svc vector offset should be 0x8. Signed-off-by: Jonghwan Choi jhbird.c...@samsung.com --- arch/arm/kvm/interrupts.S |4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH RFC] kvm: add PV MMIO EVENTFD

2013-04-04 Thread Christoffer Dall
[...] to give us some idea how much performance we would gain from each approach? Thoughput should be completely unaffected anyway, since virtio just coalesces kicks internally. Latency is dominated by the scheduling latency. This means virtio-net is not the best benchmark. So

Re: [PATCH RFC] kvm: add PV MMIO EVENTFD

2013-04-07 Thread Christoffer Dall
On Sun, Apr 7, 2013 at 12:41 AM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Apr 04, 2013 at 04:32:01PM -0700, Christoffer Dall wrote: [...] to give us some idea how much performance we would gain from each approach? Thoughput should be completely unaffected anyway, since

Re: [PATCH] mm: Fix PageHead when !CONFIG_PAGEFLAGS_EXTENDED

2012-12-28 Thread Christoffer Dall
On Fri, Dec 28, 2012 at 5:01 PM, Linus Torvalds torva...@linux-foundation.org wrote: On Fri, Dec 28, 2012 at 9:07 AM, c.d...@virtualopensystems.com wrote: From: Christoffer Dall cd...@cs.columbia.edu Unfortunately with !CONFIG_PAGEFLAGS_EXTENDED, (!PageHead) is false, and (PageHead) is true

Re: [PATCH RESEND 4] ARM: plat-versatile: move secondary CPU startup into cpuinit

2012-12-29 Thread Christoffer Dall
On Tue, Dec 18, 2012 at 3:42 AM, Claudio Fontana claudio.font...@huawei.com wrote: Using __CPUINIT instead of __INIT puts the secondary CPU startup code into the right section: it will not be freed in hotplug configurations, allowing hot-add of cpus, while still getting freed in non-hotplug

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-01 Thread Christoffer Dall
On Tue, Oct 01, 2013 at 05:02:44PM -0500, Kim Phillips wrote: On Tue, 1 Oct 2013 13:00:54 -0700 Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Oct 01, 2013 at 01:38:31PM -0500, Kim Phillips wrote: Hi, Santosh and I are having a problem figuring out how to enable

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Tue, Oct 01, 2013 at 08:35:56PM -0600, Alex Williamson wrote: On Wed, 2013-10-02 at 02:53 +0100, Christoffer Dall wrote: On Tue, Oct 01, 2013 at 05:02:44PM -0500, Kim Phillips wrote: On Tue, 1 Oct 2013 13:00:54 -0700 Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: -Original Message- From: Christoffer Dall [mailto:christoffer.d...@linaro.org] Sent: Wednesday, October 02, 2013 10:14 AM To: Alex Williamson Cc: Kim

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 03:04:15PM -0500, Kim Phillips wrote: On Wed, 2 Oct 2013 11:43:30 -0700 Christoffer Dall christoffer.d...@linaro.org wrote: On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 03:14:02PM -0500, Scott Wood wrote: On Wed, 2013-10-02 at 11:43 -0700, Christoffer Dall wrote: On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: -Original Message- From

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 01:37:35PM -0700, gre...@linuxfoundation.org wrote: On Wed, Oct 02, 2013 at 11:43:30AM -0700, Christoffer Dall wrote: What's wrong with a non-vfio-specific flag that a driver can set, that indicates that the driver is willing to try to bind to any device

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 01:39:43PM -0700, gre...@linuxfoundation.org wrote: On Wed, Oct 02, 2013 at 09:27:38PM +0100, Christoffer Dall wrote: What you're suggesting would let users specify that a serial driver should handle a NIC hardware, no? That sounds much much worse to me

Re: [PATCH 2/3] arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS

2013-09-17 Thread Christoffer Dall
On Sat, Sep 14, 2013 at 02:10:55PM +0200, Andrew Jones wrote: Drop the _ARM_ part of the name. We can then introduce a config option like this to aarch64 and other arches using the same name - allowing grep to show them all. Also update the help text to describe the option more completely.

Re: [PATCH 3/3] aarch64: kvm: introduce CONFIG_KVM_MAX_VCPUS

2013-09-17 Thread Christoffer Dall
On Sat, Sep 14, 2013 at 02:10:56PM +0200, Andrew Jones wrote: Take CONFIG_KVM_MAX_VCPUS from arm32, but set the default to 8. Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/arm64/include/asm/kvm_host.h | 7 ++- arch/arm64/kvm/Kconfig| 11 +++ 2 files

Re: linux-next: manual merge of the kvm-arm tree

2013-10-16 Thread Christoffer Dall
On 16 October 2013 11:58, Marc Zyngier marc.zyng...@arm.com wrote: On 16/10/13 19:51, Thierry Reding wrote: Today's linux-next merge of the kvm-arm tree got conflicts in arch/arm/kvm/reset.c caused by commits e8c2d99 (KVM: ARM: Add support for Cortex-A7) and ac570e0 (ARM: kvm: rename

Re: linux-next: manual merge of the kvm-arm tree

2013-10-16 Thread Christoffer Dall
On 16 October 2013 12:04, Thierry Reding thierry.red...@gmail.com wrote: On Wed, Oct 16, 2013 at 12:02:08PM -0700, Christoffer Dall wrote: On 16 October 2013 11:58, Marc Zyngier marc.zyng...@arm.com wrote: On 16/10/13 19:51, Thierry Reding wrote: Today's linux-next merge of the kvm-arm tree

Re: linux-next: manual merge of the kvm-arm tree

2013-10-17 Thread Christoffer Dall
On 17 October 2013 07:55, Gleb Natapov g...@redhat.com wrote: On Wed, Oct 16, 2013 at 12:02:08PM -0700, Christoffer Dall wrote: On 16 October 2013 11:58, Marc Zyngier marc.zyng...@arm.com wrote: On 16/10/13 19:51, Thierry Reding wrote: Today's linux-next merge of the kvm-arm tree got

Re: [PATCH v2] arch: arm: uapi: be sure of _UAPI prefix for all guard macros

2013-11-14 Thread Christoffer Dall
On Thu, Nov 14, 2013 at 10:42:31AM +0800, Chen Gang wrote: For all uapi headers, need use _UAPI prefix for its guard macro (which will be stripped by scripts/headers_installer.sh). Additional completions: - be sure that all endif need be appended related comment, also it has and only

Re: [PATCH v3 10/52] arm, kvm: Fix CPU hotplug callback registration

2014-03-12 Thread Christoffer Dall
); cpu_notifier_register_done(); Fix the kvm code in arm by using this latter form of callback registration. Cc: Christoffer Dall christoffer.d...@linaro.org Cc: Gleb Natapov g...@kernel.org Cc: Russell King li...@arm.linux.org.uk Cc: Ingo Molnar mi...@kernel.org Cc: kvm

Re: [PATCH v3 10/52] arm, kvm: Fix CPU hotplug callback registration

2014-03-14 Thread Christoffer Dall
On Fri, Mar 14, 2014 at 11:13:29AM +0530, Srivatsa S. Bhat wrote: On 03/13/2014 04:51 AM, Christoffer Dall wrote: On Tue, Mar 11, 2014 at 02:05:38AM +0530, Srivatsa S. Bhat wrote: Subsystems that want to register CPU hotplug callbacks, as well as perform initialization for the CPUs

Re: [UPDATED PATCH v3 10/52] arm, kvm: Fix CPU hotplug callback registration

2014-03-18 Thread Christoffer Dall
On 18 March 2014 03:23, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: On 03/15/2014 12:40 AM, Christoffer Dall wrote: On Fri, Mar 14, 2014 at 11:13:29AM +0530, Srivatsa S. Bhat wrote: On 03/13/2014 04:51 AM, Christoffer Dall wrote: On Tue, Mar 11, 2014 at 02:05:38AM +0530, Srivatsa

Re: [PATCH 04/21] ARM: kvm: define KVM_ARM_MAX_VCPUS unconditionally

2013-04-23 Thread Christoffer Dall
]; ^ Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Marc Zyngier marc.zyng...@arm.com Cc: Christoffer Dall cd...@cs.columbia.edu Cc: Will Deacon will.dea...@arm.com --- arch/arm/kvm/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/kvm/Kconfig b/arch

Re: [PATCH 04/21] ARM: kvm: define KVM_ARM_MAX_VCPUS unconditionally

2013-04-23 Thread Christoffer Dall
On Tue, Apr 23, 2013 at 10:29 AM, Christoffer Dall cd...@cs.columbia.edu wrote: On Tue, Apr 23, 2013 at 9:30 AM, Arnd Bergmann a...@arndb.de wrote: The CONFIG_KVM_ARM_MAX_VCPUS symbol is needed in order to build the kernel/context_tracking.c code, which includes the vgic data structures

Re: [PATCH v2] arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS

2013-09-25 Thread Christoffer Dall
On Tue, Sep 24, 2013 at 04:09:28PM +0200, Andrew Jones wrote: Drop the _ARM_ part of the name. We can then introduce a config option like this to aarch64 and other arches using the same name - allowing grep to show them all. Also update the help text to describe the option more completely.

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-05 Thread Christoffer Dall
On Mon, Jun 02, 2014 at 09:29:56AM +0200, Eric Auger wrote: This patch enables irqfd and irq routing on ARM. It turns on CONFIG_HAVE_KVM_EVENTFD and CONFIG_HAVE_KVM_IRQ_ROUTING irqfd framework enables to assign physical IRQs to guests. 1) user-side uses KVM_IRQFD VM ioctl to pass KVM a

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-05 Thread Christoffer Dall
On Mon, Jun 02, 2014 at 04:42:36PM +0200, Eric Auger wrote: On 06/02/2014 03:54 PM, Marc Zyngier wrote: Hi Eric, On Mon, Jun 02 2014 at 8:29:56 am BST, Eric Auger eric.au...@linaro.org wrote: [...] @@ -408,11 +411,27 @@ static bool handle_mmio_clear_pending_reg(struct kvm_vcpu

Re: [PATCH v2] ARM: KVM: Unmap IPA on memslot delete/move

2014-06-05 Thread Christoffer Dall
, this looks pretty straight forward: Acked-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-05 Thread Christoffer Dall
On Thu, Jun 05, 2014 at 03:15:15PM +0200, Eric Auger wrote: On 06/05/2014 12:28 PM, Christoffer Dall wrote: On Mon, Jun 02, 2014 at 09:29:56AM +0200, Eric Auger wrote: This patch enables irqfd and irq routing on ARM. It turns on CONFIG_HAVE_KVM_EVENTFD and CONFIG_HAVE_KVM_IRQ_ROUTING

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-05 Thread Christoffer Dall
On Thu, Jun 05, 2014 at 05:58:02PM +0200, Eric Auger wrote: On 06/05/2014 04:39 PM, Christoffer Dall wrote: On Thu, Jun 05, 2014 at 03:15:15PM +0200, Eric Auger wrote: On 06/05/2014 12:28 PM, Christoffer Dall wrote: On Mon, Jun 02, 2014 at 09:29:56AM +0200, Eric Auger wrote: This patch

Re: [PATCH v3] ARM: KVM: Unmap IPA on memslot delete/move

2014-06-06 Thread Christoffer Dall
On Fri, Jun 06, 2014 at 11:10:23AM +0200, Eric Auger wrote: Currently when a KVM region is deleted or moved after KVM_SET_USER_MEMORY_REGION ioctl, the corresponding intermediate physical memory is not unmapped. This patch corrects this and unmaps the region's IPA range in

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-06 Thread Christoffer Dall
On Mon, Jun 02, 2014 at 02:54:12PM +0100, Marc Zyngier wrote: Hi Eric, On Mon, Jun 02 2014 at 8:29:56 am BST, Eric Auger eric.au...@linaro.org wrote: This patch enables irqfd and irq routing on ARM. It turns on CONFIG_HAVE_KVM_EVENTFD and CONFIG_HAVE_KVM_IRQ_ROUTING irqfd

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-06 Thread Christoffer Dall
On Thu, Jun 05, 2014 at 12:37:36PM +0200, Christoffer Dall wrote: On Mon, Jun 02, 2014 at 04:42:36PM +0200, Eric Auger wrote: On 06/02/2014 03:54 PM, Marc Zyngier wrote: Hi Eric, On Mon, Jun 02 2014 at 8:29:56 am BST, Eric Auger eric.au...@linaro.org wrote

Re: [RFC PATCH v6 14/20] vfio/platform: initial interrupts support

2014-06-08 Thread Christoffer Dall
On Thu, Jun 05, 2014 at 07:03:22PM +0200, Antonios Motakis wrote: This patch allows to set an eventfd for a patform device's interrupt, and also to trigger the interrupt eventfd from userspace for testing. Signed-off-by: Antonios Motakis a.mota...@virtualopensystems.com ---

Re: [RFC PATCH v6 15/20] vfio/platform: support for maskable and automasked interrupts

2014-06-08 Thread Christoffer Dall
On Thu, Jun 05, 2014 at 07:03:23PM +0200, Antonios Motakis wrote: Adds support to mask interrupts, and also for automasked interrupts. Level sensitive interrupts are exposed as automasked interrupts and are masked and disabled automatically when they fire. Signed-off-by: Antonios Motakis

Re: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-08 Thread Christoffer Dall
On Thu, Jun 05, 2014 at 07:03:12PM +0200, Antonios Motakis wrote: With an ARM SMMU, interrupt remapping should always be safe from the SMMU's point of view, as it is properly handled by the GIC. Signed-off-by: Antonios Motakis a.mota...@virtualopensystems.com --- drivers/iommu/arm-smmu.c |

Re: [PATCH v5 5/6] arm64: mm: Implement 4 levels of translation tables

2014-05-07 Thread Christoffer Dall
On Wed, May 07, 2014 at 01:22:50PM +0900, Jungseok Lee wrote: On Tuesday, May 06, 2014 7:49 PM, Christoffer Dall wrote: On Thu, May 01, 2014 at 11:34:16AM +0900, Jungseok Lee wrote: This patch implements 4 levels of translation tables since 3 levels of page tables with 4KB pages cannot

Re: [PATCH 2/2] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

2014-05-07 Thread Christoffer Dall
On Wed, May 07, 2014 at 10:00:21AM +0100, Marc Zyngier wrote: Kim, Christoffer, On Tue, May 06 2014 at 7:04:48 pm BST, Christoffer Dall christoffer.d...@linaro.org wrote: On Tue, Mar 25, 2014 at 05:08:14PM -0500, Kim Phillips wrote: Use the correct memory type for device MMIO mappings

Re: [PATCH v6 6/7] arm64: KVM: Set physical address size related factors in runtime

2014-05-27 Thread Christoffer Dall
Zyngier marc.zyng...@arm.com Cc: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Jungseok Lee jays@samsung.com Reviewed-by: Sungjinn Chung sungjinn.ch...@samsung.com --- arch/arm/kvm/arm.c | 82 +- arch/arm64/include/asm

Re: [PATCH v6 6/7] arm64: KVM: Set physical address size related factors in runtime

2014-05-27 Thread Christoffer Dall
On Tue, May 27, 2014 at 03:53:49PM +0200, Christoffer Dall wrote: On Mon, May 12, 2014 at 06:40:54PM +0900, Jungseok Lee wrote: This patch sets TCR_EL2.PS, VTCR_EL2.T0SZ and vttbr_baddr_mask in runtime, not compile time. In ARMv8, EL2 physical address size (TCR_EL2.PS) and stage2 input

Re: [RESEND PATCH v6 7/7] arm64: KVM: Implement 4 levels of translation tables for HYP and stage2

2014-05-27 Thread Christoffer Dall
marc.zyng...@arm.com Cc: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Jungseok Lee jays@samsung.com Reviewed-by: Sungjinn Chung sungjinn.ch...@samsung.com Acked-by: Kukjin Kim kgene@samsung.com I'm going to hold off giving this a final review until we have that previous

Re: [PATCH v6 3/7] arm64: Add a description on 48-bit address space with 4KB pages

2014-05-27 Thread Christoffer Dall
steve.cap...@linaro.org Signed-off-by: Jungseok Lee jays@samsung.com Reviewed-by: Sungjinn Chung sungjinn.ch...@samsung.com Acked-by: Kukjin Kim kgene@samsung.com --- Looks reasonable to me: Acked-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe from this list: send

Re: [PATCH v6 6/7] arm64: KVM: Set physical address size related factors in runtime

2014-06-04 Thread Christoffer Dall
On Mon, Jun 02, 2014 at 05:11:39PM +0900, Jungseok Lee wrote: On Tuesday, May 27, 2014 11:03 PM, Christoffer Dall wrote: On Tue, May 27, 2014 at 03:53:49PM +0200, Christoffer Dall wrote: On Mon, May 12, 2014 at 06:40:54PM +0900, Jungseok Lee wrote: This patch sets TCR_EL2.PS, VTCR_EL2

Re: [PATCH] arm: document mach-virt platform.

2014-02-02 Thread Christoffer Dall
On Thu, Jan 30, 2014 at 04:11:02PM +, Ian Campbell wrote: mach-virt has existed for a while but it is not written down what it actually consists of. Although it seems a bit unusual to document a binding for an entire platform since mach-virt is entirely virtual it is helpful to have

Re: [PATCH] arm: document mach-virt platform.

2014-02-02 Thread Christoffer Dall
On Thu, Jan 30, 2014 at 11:54:46AM -0500, Christopher Covington wrote: Hi Ian, On 01/30/2014 11:11 AM, Ian Campbell wrote: mach-virt has existed for a while but it is not written down what it actually consists of. Although it seems a bit unusual to document a binding for an entire

Re: [PATCH] arm: document mach-virt platform.

2014-02-03 Thread Christoffer Dall
On Mon, Feb 03, 2014 at 08:46:07AM -0500, Christopher Covington wrote: Hi Christoffer, On 02/02/2014 11:56 PM, Christoffer Dall wrote: On Thu, Jan 30, 2014 at 11:54:46AM -0500, Christopher Covington wrote: I think it would be informative to provide pointers here to commonly used

Re: [RFC PATCH 1/4] ARM: KVM: on unhandled IO mem abort, route the call to the KVM MMIO bus

2014-03-28 Thread Christoffer Dall
On Thu, Mar 13, 2014 at 04:57:26PM +0100, Antonios Motakis wrote: On an unhandled IO memory abort, use the kvm_io_bus_* API in order to handle the MMIO access through any registered read/write callbacks. This is a dependency for eventfd support (ioeventfd and irqfd). However, accesses to the

Re: [PATCH] arm: KVM: fix possible misalignment of PGDs and bounce page

2014-03-28 Thread Christoffer Dall
; -- 1.8.5.3 This looks right to me. Funnily enough I seem to remember a discussion from when we originally merged this code where someone (maybe me) argued that kmalloc() would align to the size of the allocation, but I don't see anything backing this up at this point. So: Acked-by: Christoffer

Re: [RFC 0/5] of: Automatic console registration cleanups

2014-03-28 Thread Christoffer Dall
On Fri, Mar 28, 2014 at 02:19:23PM -0500, Rob Herring wrote: On Fri, Mar 28, 2014 at 1:56 PM, Olof Johansson o...@lixom.net wrote: On Fri, Mar 28, 2014 at 09:08:00AM -0700, Grant Likely wrote: Hi all, This is a series that I've been playing with over the last few days to clean up the

Re: [PATCH v5 3/6] arm64: Add a description on 48-bit address space with 4KB pages

2014-05-01 Thread Christoffer Dall
On Thu, May 01, 2014 at 11:34:05AM +0900, Jungseok Lee wrote: This patch adds memory layout and translation lookup information about 48-bit address space with 4K pages. The description is based on 4 levels of translation tables. Cc: Catalin Marinas catalin.mari...@arm.com Cc: Steve Capper

Re: [PATCH v5 2/6] arm64: Introduce VA_BITS and translation level options

2014-05-01 Thread Christoffer Dall
CONFIG_ARM64_64K_PAGES +#ifndef CONFIG_ARM64_2_LEVELS static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp, unsigned long addr) { -- 1.7.10.4 Otherwise looks good, Reviewed-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe

Re: [PATCH v5 2/6] arm64: Introduce VA_BITS and translation level options

2014-05-02 Thread Christoffer Dall
On Fri, May 02, 2014 at 10:57:09AM +0900, Jungseok Lee wrote: On Thursday, May 01, 2014 7:06 PM, Christoffer Dall wrote: On Thu, May 01, 2014 at 11:33:56AM +0900, Jungseok Lee wrote: [...] + +choice + prompt Virtual address space size + default ARM64_VA_BITS_39 if ARM64_4K_PAGES

Re: [PATCH v5 4/6] arm64: Add 4 levels of page tables definition with 4KB pages

2014-05-06 Thread Christoffer Dall
)(x) + +#define __pte(x) (x) +#define __pmd(x) (x) +#define __pud(x) (x) +#define __pgd(x) (x) +#define __pgprot(x) (x) + +#endif /* STRICT_MM_TYPECHECKS */ + +#endif /* __ASM_PGTABLE_4LEVEL_TYPES_H */ -- 1.7.10.4 Reviewed-by: Christoffer Dall christoffer.d

Re: [PATCH v5 5/6] arm64: mm: Implement 4 levels of translation tables

2014-05-06 Thread Christoffer Dall
); /* map all the memory banks */ -- 1.7.10.4 Reviewed-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH v5 6/6] arm64: KVM: Implement 4 levels of translation tables for HYP and stage2

2014-05-06 Thread Christoffer Dall
) 4KB + 3 levels guest on 64KB + 2 levels host 8) 4KB + 4 levels guest on 64KB + 2 levels host 9) 64KB + 2 levels guest on 64KB + 2 levels host Cc: Marc Zyngier marc.zyng...@arm.com Cc: Christoffer Dall christoffer.d...@linaro.org Signed-off-by: Jungseok Lee jays@samsung.com Reviewed

Re: [PATCH 2/2] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

2014-05-06 Thread Christoffer Dall
); } -- 1.9.1 I think this looks reasonable. Acked-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH] ARM: KVM: Handle IPA unmapping on memory region deletion

2014-04-03 Thread Christoffer Dall
On 3 April 2014 08:26, Marc Zyngier marc.zyng...@arm.com wrote: Hi Eric, On 03/04/14 16:17, Eric Auger wrote: Currently when a KVM region is removed using kvm_vm_ioctl_set_memory_region (with memory region size equal to 0), the corresponding intermediate physical memory is not unmapped.

Re: [RFC PATCH] PCI: Introduce new device binding path using pci_dev.driver_override

2014-04-01 Thread Christoffer Dall
On Tue, Apr 01, 2014 at 11:15:40AM -0600, Alex Williamson wrote: On Tue, 2014-04-01 at 09:47 -0700, Greg KH wrote: On Tue, Apr 01, 2014 at 10:28:54AM -0600, Alex Williamson wrote: The driver_override field allows us to specify the driver for a device rather than relying on the driver to

Re: [PATCH 2/2 v2] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

2014-06-30 Thread Christoffer Dall
. During early development, we found the PAGE_S2 memory type being used for MMIO mappings. This patch corrects that by using the more strongly ordered memory type for device MMIO mappings: PAGE_S2_DEVICE. Signed-off-by: Kim Phillips kim.phill...@linaro.org Acked-by: Christoffer Dall

Re: [PATCH] arm64: KVM: allow export and import of generic timer regs

2014-07-07 Thread Christoffer Dall
re-jigged the kvm_arm_timer_set/get_reg declarations to be in the common include/kvm/arm_arch_timer.h headers. Signed-off-by: Alex Bennée alex.ben...@linaro.org Reviewed-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] arm64: KVM: export demux regids as KVM_REG_ARM64

2014-07-04 Thread Christoffer Dall
-EINVAL and hilarity ensues. The kvm/api.txt document describes all arm64 registers as starting with 0x60xx... (i.e KVM_REG_ARM64). Signed-off-by: Alex Bennée alex.ben...@linaro.org Acked-by: Christoffer Dall christoffer.d...@linaro.org --- arch/arm64/kvm/sys_regs.c | 2 +- 1 file

Re: [PATCH 19/19] Documentation: ACPI for ARM64

2014-07-29 Thread Christoffer Dall
On Thu, Jul 24, 2014 at 02:19:14PM -0700, Randy Dunlap wrote: On 07/24/2014 02:16 PM, Naresh Bhat wrote: On 24 July 2014 18:30, Hanjun Guo hanjun@linaro.org mailto:hanjun@linaro.org wrote: From: Graeme Gregory graeme.greg...@linaro.org mailto:graeme.greg...@linaro.org

Re: [PATCH 19/19] Documentation: ACPI for ARM64

2014-07-29 Thread Christoffer Dall
On Thu, Jul 24, 2014 at 09:00:25PM +0800, Hanjun Guo wrote: From: Graeme Gregory graeme.greg...@linaro.org Add documentation for the guidelines of how to use ACPI on ARM64. Signed-off-by: Graeme Gregory graeme.greg...@linaro.org Signed-off-by: Hanjun Guo hanjun@linaro.org ---

Re: linux-next: manual merge of the kvm-arm tree with Linus' tree

2014-07-31 Thread Christoffer Dall
On Thu, Jul 31, 2014 at 01:15:40PM +0100, Marc Zyngier wrote: On Thu, Jul 31 2014 at 12:53:03 pm BST, Christoffer Dall christofferd...@christofferdall.dk wrote: Hi Christoffer, On Thu, Jul 31, 2014 at 8:30 AM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all

Re: [PATCH] arm64: KVM: export current vcpu-pause state via pseudo regs

2014-07-31 Thread Christoffer Dall
On Wed, Jul 09, 2014 at 02:55:12PM +0100, Alex Bennée wrote: To cleanly restore an SMP VM we need to ensure that the current pause state of each vcpu is correctly recorded. Things could get confused if the CPU starts running after migration restore completes when it was paused before it state

Re: [PATCH] arm64: KVM: export current vcpu-pause state via pseudo regs

2014-07-31 Thread Christoffer Dall
On Thu, Jul 31, 2014 at 04:14:51PM +0100, Alex Bennée wrote: Christoffer Dall writes: On Wed, Jul 09, 2014 at 02:55:12PM +0100, Alex Bennée wrote: To cleanly restore an SMP VM we need to ensure that the current pause state of each vcpu is correctly recorded. Things could get confused

Re: [PATCH] arm64: KVM: export current vcpu-pause state via pseudo regs

2014-07-31 Thread Christoffer Dall
On Thu, Jul 31, 2014 at 05:45:28PM +0100, Peter Maydell wrote: On 31 July 2014 17:38, Christoffer Dall christoffer.d...@linaro.org wrote: If we are not complaining when setting the pause value to false if it was true before, then we probably also need to wake up the thread in case

Re: [PATCH] arm64: KVM: export current vcpu-pause state via pseudo regs

2014-08-04 Thread Christoffer Dall
On Fri, Aug 01, 2014 at 10:48:36AM +0100, Alex Bennée wrote: Christoffer Dall writes: On Thu, Jul 31, 2014 at 05:45:28PM +0100, Peter Maydell wrote: On 31 July 2014 17:38, Christoffer Dall christoffer.d...@linaro.org wrote: If we are not complaining when setting the pause value

Re: [PATCH] arm64: KVM: export current vcpu-pause state via pseudo regs

2014-08-04 Thread Christoffer Dall
On Fri, Aug 01, 2014 at 10:11:52AM +0100, Alex Bennée wrote: Christoffer Dall writes: On Thu, Jul 31, 2014 at 04:14:51PM +0100, Alex Bennée wrote: Christoffer Dall writes: On Wed, Jul 09, 2014 at 02:55:12PM +0100, Alex Bennée wrote: To cleanly restore an SMP VM we need

Re: [PATCH] arm64: KVM: export current vcpu-pause state via pseudo regs

2014-08-04 Thread Christoffer Dall
On Thu, Jul 31, 2014 at 07:21:44PM +0200, Paolo Bonzini wrote: Il 31/07/2014 19:04, Peter Maydell ha scritto: On 31 July 2014 17:57, Paolo Bonzini pbonz...@redhat.com wrote: Il 09/07/2014 15:55, Alex Bennée ha scritto: To cleanly restore an SMP VM we need to ensure that the current pause

Re: [RFC PATCH] ARM: KVM: add irqfd support

2014-08-13 Thread Christoffer Dall
On Mon, Aug 04, 2014 at 02:08:22PM +0200, Eric Auger wrote: This patch enables irqfd on ARM. irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger. User-side uses KVM_IRQFD VM ioctl to provide KVM with a kvm_irqfd struct that associates a VM, an eventfd, an IRQ

Re: [RFC PATCH 4/9] irqchip: GIC: add support for forwarded interrupts

2014-08-06 Thread Christoffer Dall
On Wed, Jun 25, 2014 at 10:28:45AM +0100, Marc Zyngier wrote: Now that we've switched to EOImode == 1, prevent a forwarded interrupt from being deactivated after its priority has been dropped. Also add support for the interrupt state to be saved/restored. Signed-off-by: Marc Zyngier

Re: [RFC PATCH 3/9] irqchip: GIC: Convert to EOImode == 1

2014-08-06 Thread Christoffer Dall
On Wed, Jun 25, 2014 at 03:06:33PM +0100, Peter Maydell wrote: On 25 June 2014 10:28, Marc Zyngier marc.zyng...@arm.com wrote: For this case, the GIC architecture provides EOImode == 1, where: - A write to the EOI register drops the priority of the interrupt and leaves it active. Other

Re: [RFC PATCH 7/9] KVM: arm: vgic: allow dynamic mapping of physical/virtual interrupts

2014-08-11 Thread Christoffer Dall
On Thu, Aug 07, 2014 at 05:47:53PM +0200, Eric Auger wrote: On 08/04/2014 03:13 PM, Marc Zyngier wrote: On Sun, Aug 03 2014 at 10:48:52 am BST, Eric Auger eric.au...@linaro.org wrote: On 06/25/2014 11:28 AM, Marc Zyngier wrote: In order to be able to feed physical interrupts to a guest,

Re: [RFC PATCH] ARM: KVM: add irqfd support

2014-08-19 Thread Christoffer Dall
On Tue, Aug 19, 2014 at 10:53:16AM +0200, Eric Auger wrote: On 08/13/2014 04:55 PM, Christoffer Dall wrote: On Mon, Aug 04, 2014 at 02:08:22PM +0200, Eric Auger wrote: This patch enables irqfd on ARM. irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger

Re: [PATCH 1/2] KVM: static inline empty kvm_arch functions

2014-09-01 Thread Christoffer Dall
was not removed from arch/mips/kvm/mips.c 2df72e9bc KVM: split kvm_arch_flush_shadow and kvm_arch_sched_in never made it into arch/ia64/kvm/kvm-ia64.c. e790d9ef6 KVM: add kvm_arch_sched_in Signed-off-by: Radim Krčmář rkrc...@redhat.com For the arm/arm64 part: Acked-by: Christoffer Dall

Re: [PATCH 2/2] KVM: remove garbage arg to *hardware_{en,dis}able

2014-09-01 Thread Christoffer Dall
...@redhat.com For the arm/arm64 part: Acked-by: Christoffer Dall christoffer.d...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 12:14:10PM -0600, Alex Williamson wrote: On Thu, 2014-09-11 at 19:10 +0200, Christoffer Dall wrote: On Wed, Sep 10, 2014 at 11:05:49PM -0600, Alex Williamson wrote: On Thu, 2014-09-11 at 05:10 +0200, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:47PM +0200

Re: [RFC v2 1/9] KVM: ARM: VGIC: fix multiple injection of level sensitive forwarded IRQ

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 08:17:49PM +0200, Eric Auger wrote: On 09/11/2014 05:09 AM, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:40PM +0200, Eric Auger wrote: Fix multiple injection of level sensitive forwarded IRQs. With current code, the second injection fails since the state

Re: [PATCH 1/2] KVM: document KVM_SET_GUEST_DEBUG api

2014-09-11 Thread Christoffer Dall
On Tue, Sep 09, 2014 at 05:27:18PM +0100, Alex Bennée wrote: In preparation for working on the ARM implementation I noticed the debug interface was missing from the API document. I've pieced together the expected behaviour from the code and commit messages written it up as best I can.

Re: [PATCH v3] ARM: KVM: add irqfd support

2014-09-18 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 07:03:32PM +0200, Christoffer Dall wrote: On Thu, Sep 11, 2014 at 10:14:13AM +0200, Eric Auger wrote: On 09/11/2014 05:09 AM, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 10:53:04AM +0200, Eric Auger wrote: This patch enables irqfd on ARM. irqfd framework

Re: [RFC PATCH v6 15/20] vfio/platform: support for maskable and automasked interrupts

2014-09-10 Thread Christoffer Dall
On Tue, Sep 02, 2014 at 06:06:17PM +0200, Antonios Motakis wrote: On Sun, Jun 8, 2014 at 12:17 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Thu, Jun 05, 2014 at 07:03:23PM +0200, Antonios Motakis wrote: Adds support to mask interrupts, and also for automasked interrupts

Re: [PATCH] KVM: EVENTFD: remove inclusion of irq.h

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 12:11:19PM +0200, Paolo Bonzini wrote: Il 01/09/2014 10:36, Eric Auger ha scritto: No more needed. irq.h would be void on ARM. Signed-off-by: Eric Auger eric.au...@linaro.org --- I don't think irq.h is needed anymore since Paul Mackerras' work. However I

Re: [RFC v2 1/9] KVM: ARM: VGIC: fix multiple injection of level sensitive forwarded IRQ

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:40PM +0200, Eric Auger wrote: Fix multiple injection of level sensitive forwarded IRQs. With current code, the second injection fails since the state bitmaps are not reset (process_maintenance is not called anymore). New implementation consists in fully bypassing

Re: [PATCH v3] ARM: KVM: add irqfd support

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 10:53:04AM +0200, Eric Auger wrote: This patch enables irqfd on ARM. irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger. User-side uses KVM_IRQFD VM ioctl to provide KVM with a kvm_irqfd struct that associates a VM, an eventfd, a

Re: [RFC v2 5/9] KVM: KVM-VFIO: update user API to program forwarded IRQ

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:44PM +0200, Eric Auger wrote: add new device group commands: - KVM_DEV_VFIO_DEVICE_FORWARD_IRQ and KVM_DEV_VFIO_DEVICE_UNFORWARD_IRQ which enable to turn forwarded IRQ mode on/off. the kvm_arch_forwarded_irq struct embodies a forwarded IRQ Signed-off-by:

Re: [RFC v2 2/9] KVM: ARM: VGIC: add forwarded irq rbtree lock

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:41PM +0200, Eric Auger wrote: add a lock related to the rb tree manipulation. The rb tree can be Ok, I can't hold myself back any longer. Please begin sentences with a capital letter. You don't do this in French? :) searched in one thread (irqfd handler for

Re: [RFC v2 6/9] VFIO: Extend external user API

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:45PM +0200, Eric Auger wrote: New functions are added to be called from ARM KVM-VFIO device. This commit message seems somewhat random. This patch doesn't deal with anything ARM specific, it introduces some generic functions that allows users external to vfio

Re: [RFC v2 7/9] KVM: KVM-VFIO: add new VFIO external API hooks

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:46PM +0200, Eric Auger wrote: add functions that implement the gateway to the extended Capital letter when beginning a new sentence. Also the reference to 'the extended VFIO API' feels a bit weird. Can't you make your commit message a little more descriptive of

Re: [RFC v2 9/9] KVM: KVM-VFIO: ARM forwarding control

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:48PM +0200, Eric Auger wrote: Enables forwarding control for ARM. By defining __KVM_HAVE_ARCH_KVM_VFIO_FORWARD the patch enables KVM_DEV_VFIO_DEVICE_FORWARD/UNFORWARD_IRQ command on ARM. As a result it brings an optimized injection/completion handling for

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:47PM +0200, Eric Auger wrote: This patch introduces a new KVM_DEV_VFIO_DEVICE attribute. This is a new control channel which enables KVM to cooperate with viable VFIO devices. The kvm-vfio device now holds a list of devices (kvm_vfio_device) in addition to a

Re: [RFC v2 0/9] KVM-VFIO IRQ forward control

2014-09-10 Thread Christoffer Dall
On Tue, Sep 02, 2014 at 03:05:41PM -0600, Alex Williamson wrote: On Mon, 2014-09-01 at 14:52 +0200, Eric Auger wrote: This RFC proposes an integration of ARM: Forwarding physical interrupts to a guest VM (http://lwn.net/Articles/603514/) in KVM. It enables to transform a VFIO platform

Re: [RFC v2 4/9] VFIO: platform: handler tests whether the IRQ is forwarded

2014-09-10 Thread Christoffer Dall
On Mon, Sep 01, 2014 at 02:52:43PM +0200, Eric Auger wrote: In case the IRQ is forwarded, the VFIO platform IRQ handler does not need to disable the IRQ anymore. In that mode, when the handler completes add a comma after completes the IRQ is not deactivated but only its priority is lowered.

Re: [PATCH v3] ARM: KVM: add irqfd support

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 10:14:13AM +0200, Eric Auger wrote: On 09/11/2014 05:09 AM, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 10:53:04AM +0200, Eric Auger wrote: This patch enables irqfd on ARM. irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger

Re: [RFC v2 4/9] VFIO: platform: handler tests whether the IRQ is forwarded

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 10:44:02AM +0200, Eric Auger wrote: On 09/11/2014 05:10 AM, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:43PM +0200, Eric Auger wrote: In case the IRQ is forwarded, the VFIO platform IRQ handler does not need to disable the IRQ anymore. In that mode, when

Re: [RFC v2 5/9] KVM: KVM-VFIO: update user API to program forwarded IRQ

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 10:49:08AM +0200, Eric Auger wrote: On 09/11/2014 05:10 AM, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:44PM +0200, Eric Auger wrote: [...] + +It is up to the caller of this API to make sure the IRQ is not +outstanding when the FORWARD/UNFORWARD

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-11 Thread Christoffer Dall
On Wed, Sep 10, 2014 at 11:05:49PM -0600, Alex Williamson wrote: On Thu, 2014-09-11 at 05:10 +0200, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:47PM +0200, Eric Auger wrote: [...] +#ifdef __KVM_HAVE_ARCH_KVM_VFIO_FORWARD +int kvm_arch_set_fwd_state(struct kvm_fwd_irq

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 02:04:39PM +0200, Eric Auger wrote: On 09/11/2014 07:05 AM, Alex Williamson wrote: On Thu, 2014-09-11 at 05:10 +0200, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:47PM +0200, Eric Auger wrote: This patch introduces a new KVM_DEV_VFIO_DEVICE attribute

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 09:59:24AM -0600, Alex Williamson wrote: On Thu, 2014-09-11 at 14:04 +0200, Eric Auger wrote: On 09/11/2014 07:05 AM, Alex Williamson wrote: On Thu, 2014-09-11 at 05:10 +0200, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:47PM +0200, Eric Auger wrote

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-11 Thread Christoffer Dall
On Thu, Sep 11, 2014 at 11:35:56AM +0200, Eric Auger wrote: On 09/11/2014 05:10 AM, Christoffer Dall wrote: On Mon, Sep 01, 2014 at 02:52:47PM +0200, Eric Auger wrote: [...] + if (!pfwd) + return -ENOMEM; + pfwd-index = fwd_irq-index; + pfwd-gsi = fwd_irq-gsi; + pfwd

Re: [PATCH v4 0/3] irqfd support for arm/arm64

2014-11-24 Thread Christoffer Dall
On Sun, Nov 23, 2014 at 06:56:57PM +0100, Eric Auger wrote: This patch series enables irqfd on arm and arm64. Irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger. User-side uses KVM_IRQFD VM ioctl to provide KVM with a kvm_irqfd struct that associates a VM,

  1   2   3   4   5   6   7   8   9   10   >