Re: [PATCH v9 21/21] KVM: ARM64: Add a new vcpu device control group for PMUv3

2016-01-15 Thread Andrew Jones
On Fri, Jan 15, 2016 at 02:27:55PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > To configure the virtual PMUv3 overflow interrupt number, we use the > vcpu kvm_device ioctl, encapsulating the KVM_ARM_VCPU_PMU_V3_IRQ > attribute within the KVM_ARM_VCPU_PMU_V3_CTRL

Re: ARM KVM guest virtual address to host virtual address Look up

2016-01-15 Thread hiwu
Hi Peter: I want to trap some ldr,str instruction in guest VM for debug. Therefore, I have to emulate guest ldr,str in host. Without guest VA to host VA, I cannot emulate ldr,str instruction in host. Thank you -Jack 原始郵件 寄件者:Peter Maydell 傳送日期:Fri,

Re: [PATCH v9 20/21] KVM: ARM: Introduce per-vcpu kvm device controls

2016-01-15 Thread Andrew Jones
On Fri, Jan 15, 2016 at 02:27:54PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > In some cases it needs to get/set attributes specific to a vcpu and so > needs something else than ONE_REG. > > Let's copy the KVM_DEVICE approach, and define the respective ioctls >

Re: ARM KVM guest virtual address to host virtual address Look up

2016-01-15 Thread Peter Maydell
On 15 January 2016 at 11:14, hiwu wrote: > I want to trap some ldr,str instruction in guest VM for debug. Therefore, I > have to emulate guest ldr,str in host. Without guest VA to host VA, I cannot > emulate ldr,str instruction in host. That sounds like you want "load/store

Re: [PATCH v9 21/21] KVM: ARM64: Add a new vcpu device control group for PMUv3

2016-01-15 Thread Shannon Zhao
On 2016/1/15 21:28, Andrew Jones wrote: On Fri, Jan 15, 2016 at 02:27:55PM +0800, Shannon Zhao wrote: From: Shannon Zhao To configure the virtual PMUv3 overflow interrupt number, we use the vcpu kvm_device ioctl, encapsulating the KVM_ARM_VCPU_PMU_V3_IRQ attribute

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Mark Rutland
Hi, [adding KVM people, given this is meant for virtualization] On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote: > The Qualcomm Technologies HIDMA device has been designed to support > virtualization technology. The driver has been divided into two to follow > the hardware design. >

Re: [kvm-unit-tests PATCH 05/11] arm/pci: Add pci_find_dev() and pci_bar_addr() functions

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:52PM +0100, Alexander Gordeev wrote: > This updat is a reminiscence of x86 implementation - to > provision a possible future common PCI interface. This comment inspired me to refactor the x86 code into common code. I'll post that series in a few minutes for you to

Re: [PATCH v9 00/21] KVM: ARM64: Add guest PMU support

2016-01-15 Thread Andrew Jones
On Fri, Jan 15, 2016 at 02:27:34PM +0800, Shannon Zhao wrote: > From: Shannon Zhao ... > This patchset can be fetched from [1] and the relevant QEMU version for > test can be fetched from [2]. > ... > [1] https://git.linaro.org/people/shannon.zhao/linux-mainline.git >

Re: [PATCH v9 00/21] KVM: ARM64: Add guest PMU support

2016-01-15 Thread Shannon Zhao
On 2016/1/15 21:45, Andrew Jones wrote: On Fri, Jan 15, 2016 at 02:27:34PM +0800, Shannon Zhao wrote: From: Shannon Zhao ... This patchset can be fetched from [1] and the relevant QEMU version for test can be fetched from [2]. ... [1]

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Mark Rutland
On Fri, Jan 15, 2016 at 10:12:00AM -0500, Sinan Kaya wrote: > Hi Mark, > > On 1/15/2016 9:56 AM, Mark Rutland wrote: > > Hi, > > > > [adding KVM people, given this is meant for virtualization] > > > > On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote: > >> The Qualcomm Technologies

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Mark Rutland
On Fri, Jan 15, 2016 at 03:14:28PM +, Marc Zyngier wrote: > On 15/01/16 14:56, Mark Rutland wrote: > > Hi, > > > > [adding KVM people, given this is meant for virtualization] > > > > On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote: > >> The Qualcomm Technologies HIDMA device has

Re: [kvm-unit-tests PATCH 00/11] pci/arm: add PCI bus support

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:47PM +0100, Alexander Gordeev wrote: > This series extends the kvm-unit-tests/arm framework to support PCI. > > Cc: Andrew Jones > > Alexander Gordeev (11): > arm/pci: Device tree PCI probing > arm/pci: PCI bus scanning > arm/pci: Read

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Sinan Kaya
>>> This doesn't seem to tie into KVM or VFIO, and as far as I can tell >>> there's no mechanism for associating channels with a particular virtual >>> address space (i.e. no configuration of an external or internal IOMMU), >>> nor pinning of guest pages to allow for DMA to occur safely. >> >> I'm

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Marc Zyngier
On 15/01/16 15:40, Sinan Kaya wrote: > On 1/15/2016 10:14 AM, Marc Zyngier wrote: >> On 15/01/16 14:56, Mark Rutland wrote: >>> Hi, >>> >>> [adding KVM people, given this is meant for virtualization] >>> >>> On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote: The Qualcomm Technologies

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Marc Zyngier
On 15/01/16 17:16, Sinan Kaya wrote: This doesn't seem to tie into KVM or VFIO, and as far as I can tell there's no mechanism for associating channels with a particular virtual address space (i.e. no configuration of an external or internal IOMMU), nor pinning of guest pages to

Re: [kvm-unit-tests PATCH 07/11] arm/pci: PCI device operation test

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:54PM +0100, Alexander Gordeev wrote: > Cc: Andrew Jones > Signed-off-by: Alexander Gordeev > --- > arm/pci-test.c| 2 +- > lib/pci-testdev.c | 139 > -- > lib/pci.h

Re: [kvm-unit-tests PATCH 09/11] arm/pci: PCI host bridge info printing

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:56PM +0100, Alexander Gordeev wrote: > Cc: Andrew Jones > Signed-off-by: Alexander Gordeev > --- > lib/pci-host-generic.c | 35 +++ > 1 file changed, 35 insertions(+) > > diff --git

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Sinan Kaya
On 1/15/2016 10:14 AM, Marc Zyngier wrote: > On 15/01/16 14:56, Mark Rutland wrote: >> Hi, >> >> [adding KVM people, given this is meant for virtualization] >> >> On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote: >>> The Qualcomm Technologies HIDMA device has been designed to support >>>

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Sinan Kaya
On 1/15/2016 10:36 AM, Mark Rutland wrote: > On Fri, Jan 15, 2016 at 03:14:28PM +, Marc Zyngier wrote: >> On 15/01/16 14:56, Mark Rutland wrote: >>> Hi, >>> >>> [adding KVM people, given this is meant for virtualization] >>> >>> On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote:

Re: ARM KVM guest virtual address to host virtual address Look up

2016-01-15 Thread hiwu
Hi Peter: The guest's load/store instructions, which I want to debug, do not cause a guest exception. ARM KVM only provides the guest' r15 register (pc) value. To get the guest instruction for emulating in host, "translate guest VA to host VA" is required. How to implement "translate guest

Re: ARM KVM guest virtual address to host virtual address Look up

2016-01-15 Thread Peter Maydell
On 15 January 2016 at 15:35, hiwu wrote: > Hi Peter: > > The guest's load/store instructions, which I want to debug, do not cause a > guest exception. > ARM KVM only provides the guest' r15 register (pc) value. To get the guest > instruction for > emulating in host,

Re: [kvm-unit-tests PATCH 11/11] arm/pci: PCI testdev test flavour printing

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:58PM +0100, Alexander Gordeev wrote: > Cc: Andrew Jones > Signed-off-by: Alexander Gordeev > --- > lib/pci-testdev.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/lib/pci-testdev.c

Re: [kvm-unit-tests PATCH 10/11] arm/pci: PCI devices basic info printing

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:57PM +0100, Alexander Gordeev wrote: > Cc: Andrew Jones > Signed-off-by: Alexander Gordeev > --- > lib/pci-host-generic.c | 34 ++ > 1 file changed, 34 insertions(+) > > diff --git

Re: [kvm-unit-tests PATCH 08/11] arm/pci: PCI device read/write test

2016-01-15 Thread Andrew Jones
On Sat, Jan 09, 2016 at 01:22:55PM +0100, Alexander Gordeev wrote: > Cc: Andrew Jones > Signed-off-by: Alexander Gordeev > --- > lib/pci-testdev.c | 16 > 1 file changed, 16 insertions(+) > > diff --git a/lib/pci-testdev.c

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Sinan Kaya
Hi Mark, On 1/15/2016 9:56 AM, Mark Rutland wrote: > Hi, > > [adding KVM people, given this is meant for virtualization] > > On Mon, Jan 11, 2016 at 09:45:43AM -0500, Sinan Kaya wrote: >> The Qualcomm Technologies HIDMA device has been designed to support >> virtualization technology. The

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-15 Thread Sinan Kaya
On 1/15/2016 12:32 PM, Marc Zyngier wrote: >>> Do you have a link to that? Seeing it would help to ease my concerns. >> > >> > The QEMU driver has not been posted yet. As far as I know, it just >> > discovers the memory >> > resources on the platform object and creates mappings for the guest >>

Re: [PATCH v6 1/6] arm/arm64: KVM: Introduce armv7 fp/simd vcpu fields and helpers

2016-01-15 Thread Mario Smarduch
On 1/15/2016 1:03 AM, Marc Zyngier wrote: > On 15/01/16 02:02, Mario Smarduch wrote: >> >> >> On 1/14/2016 5:27 AM, Christoffer Dall wrote: >>> On Wed, Jan 13, 2016 at 07:03:04PM -0800, Mario Smarduch wrote: On 1/12/2016 4:57 PM, Mario Smarduch wrote: > > > On

Re: [PATCH v6 1/6] arm/arm64: KVM: Introduce armv7 fp/simd vcpu fields and helpers

2016-01-15 Thread Marc Zyngier
On 15/01/16 02:02, Mario Smarduch wrote: > > > On 1/14/2016 5:27 AM, Christoffer Dall wrote: >> On Wed, Jan 13, 2016 at 07:03:04PM -0800, Mario Smarduch wrote: >>> >>> >>> On 1/12/2016 4:57 PM, Mario Smarduch wrote: On 1/12/2016 6:12 AM, Christoffer Dall wrote: > On Mon, Jan

ARM KVM guest virtual address to host virtual address Look up

2016-01-15 Thread hiwu
Hi: How to lookup host virtual address by guest virtual address ? Is there any function to do guest page table walk? Thank you -Jack ___ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

Re: ARM KVM guest virtual address to host virtual address Look up

2016-01-15 Thread Peter Maydell
On 15 January 2016 at 09:33, wrote: > How to lookup host virtual address by guest virtual address ? > Is there any function to do guest page table walk? There is no single function to do this (depending on what bit of QEMU this is, we might either try a TLB access to see