Re: [libvirt] [PATCH 31/36] cputest: Add support for MSR features to cpu-gather.sh

2019-04-09 Thread Ján Tomko
On Mon, Apr 08, 2019 at 10:42:35AM +0200, Jiri Denemark wrote: This patch adds an inline python code for reading MSR features. Since reading MSRs is a privileged operation, we have to read them from /dev/cpu/*/msr if it is readable (i.e., the script runs as root) or fallback to using KVM ioctl wh

[libvirt] [PATCH 31/36] cputest: Add support for MSR features to cpu-gather.sh

2019-04-08 Thread Jiri Denemark
This patch adds an inline python code for reading MSR features. Since reading MSRs is a privileged operation, we have to read them from /dev/cpu/*/msr if it is readable (i.e., the script runs as root) or fallback to using KVM ioctl which can be done by any user that can start virtual machines. The