Re: [PATCH v8 20/20] KVM: ARM64: Add a new kvm ARM PMU device

2016-01-09 Thread Christoffer Dall
On Thu, Jan 07, 2016 at 09:36:47PM +0100, Andrew Jones wrote: > On Thu, Jan 07, 2016 at 02:56:15PM +, Peter Maydell wrote: > > On 7 January 2016 at 14:49, Shannon Zhao wrote: > > >>> + > > >>> +Groups: > > >>> + KVM_DEV_ARM_PMU_GRP_IRQ > > >>> + Attributes: > > >>>

Re: [PATCH v8 20/20] KVM: ARM64: Add a new kvm ARM PMU device

2016-01-09 Thread Marc Zyngier
On Sat, 9 Jan 2016 13:29:56 +0100 Christoffer Dall wrote: > On Thu, Jan 07, 2016 at 09:36:47PM +0100, Andrew Jones wrote: > > On Thu, Jan 07, 2016 at 02:56:15PM +, Peter Maydell wrote: > > > On 7 January 2016 at 14:49, Shannon Zhao

[kvm-unit-tests PATCH 06/11] arm/pci: PCI testdev existence test

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones Signed-off-by: Alexander Gordeev --- arm/pci-test.c | 3 +++ config/config-arm-common.mak | 1 + lib/pci-testdev.c| 31 +++ lib/pci.h| 1 + 4 files changed, 36

[kvm-unit-tests PATCH 01/11] arm/pci: Device tree PCI probing

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones Signed-off-by: Alexander Gordeev --- arm/pci-test.c | 25 +++ config/config-arm-common.mak | 5 +- lib/alloc.c | 3 - lib/libcflat.h | 3 + lib/pci-host-generic.c | 155

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

2016-01-09 Thread Alexander Gordeev
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 devices BARs arm/pci: Allocate and assign memory/io space resources arm/pci: Add

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

2016-01-09 Thread Alexander Gordeev
This updat is a reminiscence of x86 implementation - to provision a possible future common PCI interface. Make pcidevaddr_t as int, not u16. There is no good reason to limit it to u16 while omitting properly adjusted bit fields. Cc: Andrew Jones Signed-off-by: Alexander

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

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones Signed-off-by: Alexander Gordeev --- arm/pci-test.c| 2 +- lib/pci-testdev.c | 139 -- lib/pci.h | 2 +- 3 files changed, 138 insertions(+), 5 deletions(-) diff --git

[kvm-unit-tests PATCH 04/11] arm/pci: Allocate and assign memory/io space resources

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones Signed-off-by: Alexander Gordeev --- lib/pci-host-generic.c | 71 -- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/lib/pci-host-generic.c b/lib/pci-host-generic.c index

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

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones Signed-off-by: Alexander Gordeev --- lib/pci-host-generic.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/lib/pci-host-generic.c b/lib/pci-host-generic.c index 2d218a4..50cf09a 100644 ---

[kvm-unit-tests PATCH 03/11] arm/pci: Read devices BARs

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones Signed-off-by: Alexander Gordeev --- lib/pci-host-generic.c | 90 ++ lib/pci-host-generic.h | 10 ++ 2 files changed, 100 insertions(+) diff --git a/lib/pci-host-generic.c

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

2016-01-09 Thread Alexander Gordeev
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 b/lib/pci-testdev.c index de97f82..dd6a5ac 100644 --- a/lib/pci-testdev.c +++

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

2016-01-09 Thread Alexander Gordeev
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 b/lib/pci-testdev.c index dd6a5ac..f7f291f 100644 --- a/lib/pci-testdev.c +++