Patch - support e500-specific: Performance monitor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is There specific any reason not to copy extra handler IOVR 35 for e500?


--- a/arch/powerpc/kvm/e500.c
+++ b/arch/powerpc/kvm/e500.c
@@ -527,7 +527,7 @@ static struct kvmppc_ops kvm_ops_e500 = {
 static int __init kvmppc_e500_init(void)
 {
        int r, i;
-       unsigned long ivor[3];
+      unsigned long ivor[4];
        /* Process remaining handlers above the generic first 16 */
        unsigned long *handler = &kvmppc_booke_handler_addr[16];
        unsigned long handler_len;
@@ -545,7 +545,8 @@ static int __init kvmppc_e500_init(void)
        ivor[0] = mfspr(SPRN_IVOR32);
        ivor[1] = mfspr(SPRN_IVOR33);
        ivor[2] = mfspr(SPRN_IVOR34);
-       for (i = 0; i < 3; i++) {
+        ivor[3] = mfspr(SPRN_IVOR35);
+       for (i = 0; i < 4; i++) {
                if (ivor[i] > ivor[max_ivor])
                        max_ivor = i;


Please ignore this patch if find it irrelevant or been submitted.

Thanks,
Amit Tomar.
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux