tools: build qemu-vmsr-helperIntroduce a privileged helper to access RAPL MSR.The privileged helper tool, qemu-vmsr-helper, is designed to providevirtual machines with the ability to read specif
tools: build qemu-vmsr-helperIntroduce a privileged helper to access RAPL MSR.The privileged helper tool, qemu-vmsr-helper, is designed to providevirtual machines with the ability to read specific RAPL (Running AveragePower Limit) MSRs without requiring CAP_SYS_RAWIO privileges or relyingon external, out-of-tree patches.The helper tool leverages Unix permissions and SO_PEERCRED socketoptions to enforce access control, ensuring that only processesexplicitly requesting read access via readmsr() from a valid Thread IDcan access these MSRs.The list of RAPL MSRs that are allowed to be read by the helper tool isdefined in rapl-msr-index.h. This list corresponds to the RAPL MSRs thatwill be supported in the next commit titled "Add support for RAPL MSRsin KVM/QEMU."The tool is intentionally designed to run on the Linux x86 platform.This initial implementation is tailored for Intel CPUs but can beextended to support AMD CPUs in the future.Signed-off-by: Anthony Harivel <aharivel@redhat.com>Link: https://lore.kernel.org/r/20240522153453.1230389-3-aharivel@redhat.comSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
contrib: add systemd unit filesThis lets distros standardize on how QEMU should install systemdservices for qemu-ga and qemu-pr-helper.The qemu-ga unit file comes from Fedora, but I checked that
contrib: add systemd unit filesThis lets distros standardize on how QEMU should install systemdservices for qemu-ga and qemu-pr-helper.The qemu-ga unit file comes from Fedora, but I checked thatDebian is using the same path for the virtio-serisal port.I would like to include this in 2.11, so that the qemu-pr-helpersocket can be standardized across distros. Note however thatthe files are not installed. We can add a configure optionin 2.12 perhaps, but it's too late now; documenting the filesin the release notes should do.Suggested-by: Daniel P. Berrange <berrange@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Message-Id: <20171124164422.3960-1-pbonzini@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>