Thanks to William Cohen for the patch which does the following: Checking the cpu family and module number is not sufficient to determine whether RAPL can be used.  If the papi is running inside a guest VM, the MSR used by the PAPI RAPL component may not be available.  There should be a simple read test to verify the RAPL MSR registers are available.  This allows the component to more clearly report that RAPL is unsupported rather than just exiting program when the RAPL
Thanks to William Cohen for the patch which does the following:
Checking the cpu family and module number is not sufficient to determine
whether RAPL can be used.  If the papi is running inside a guest VM,
the MSR used by the PAPI RAPL component may not be available.  There
should be a simple read test to verify the RAPL MSR registers are
available.  This allows the component to more clearly report that RAPL
is unsupported rather than just exiting program when the RAPL

arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi