Thread (43 messages) 43 messages, 6 authors, 2015-09-17
STALE3921d
Revisions (15)
  1. v2 [diff vs current]
  2. v2 current
  3. v2 [diff vs current]
  4. v3 [diff vs current]
  5. v4 [diff vs current]
  6. v4 [diff vs current]
  7. v5 [diff vs current]
  8. v6 [diff vs current]
  9. v7 [diff vs current]
  10. v8 [diff vs current]
  11. v9 [diff vs current]
  12. v10 [diff vs current]
  13. v11 [diff vs current]
  14. v12 [diff vs current]
  15. v13 [diff vs current]

[PATCH v2 00/22] KVM: ARM64: Add guest PMU support

From: Shannon Zhao <hidden>
Date: 2015-09-17 06:47:30
Also in: kvm, kvmarm

Hi Wei,

On 2015/9/17 13:56, Wei Huang wrote:

On 09/16/2015 08:32 PM, Shannon Zhao wrote:
quoted
Hi Wei,

On 2015/9/17 5:07, Wei Huang wrote:
quoted
I am testing this series. 
Thanks for your time and help.
quoted
The first question is: do you plan to add ACPI
support in QEMU?
I saw "KVM_{SET/GET}_DEVICE_ATTR failed: Invalid argument" while using
your QEMU tree (PMU_v2 branch). A quick debugging:

From this log, it might fail at below check:
+               if (reg < VGIC_NR_SGIS || reg > dev->kvm->arch.vgic.nr_irqs)
+                       return -EINVAL;
(1) dmesg on host kernel didn't show any vPMU initialization errors. So
I suspect the problem is related to QEMU.
(2) Commit 58771bc2a78 worked fine. So probably the problem was
introduced by new PMU code.

Have you seen it before?
Oh, I didn't see this. And I checkout the code on git.linaro.org, it's
same with my local code.

Could you add some print in kvm_arm_pmu_set_irq of hw/misc/arm_pmu_kvm.c
and kvm_arm_pmu_set_attr, kvm_arm_pmu_set_irq of virt/kvm/arm/pmu.c.

Thanks,

-- 
Shannon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help