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

Ján Tomko jtomko at redhat.com
Tue Apr 9 13:35:21 UTC 2019


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 which can be done by any user that can start
>virtual machines.
>
>The python code is inlined rather than provided in a separate script
>because whenever there's an issue with proper detection of CPU features,
>we ask the reporter to run cpu-gather.sh script to give us all data we
>need to know about the host CPU. Asking them to run several scripts
>would likely result in one of them being ignored or forgotten.
>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
> tests/cputestdata/cpu-gather.sh | 49 ++++++++++++++++++++++++++++++++-
> 1 file changed, 48 insertions(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190409/e6396da6/attachment-0001.sig>


More information about the libvir-list mailing list