arm64/x86: KVM: Introduce steal-time cap
arm64 requires a vcpu fd (KVM_HAS_DEVICE_ATTR vcpu ioctl) to probe support for steal-time. However this is unnecessary, as only a KVM fd is required, and it complicates userspace (userspace may prefer delaying vcpu creation until after feature probing). Introduce a cap that can be checked instead. While x86 can already probe steal-time support with a kvm fd (KVM_GET_SUPPORTED_CPUID), we add the cap there too for consistency. Signed-off-by:Andrew Jones <drjones@redhat.com> Signed-off-by:
Marc Zyngier <maz@kernel.org> Reviewed-by:
Steven Price <steven.price@arm.com> Link: https://lore.kernel.org/r/20200804170604.42662-7-drjones@redhat.com
Showing
- Documentation/virt/kvm/api.rst 13 additions, 0 deletionsDocumentation/virt/kvm/api.rst
- arch/arm64/include/asm/kvm_host.h 1 addition, 0 deletionsarch/arm64/include/asm/kvm_host.h
- arch/arm64/kvm/arm.c 3 additions, 0 deletionsarch/arm64/kvm/arm.c
- arch/arm64/kvm/pvtime.c 1 addition, 1 deletionarch/arm64/kvm/pvtime.c
- arch/x86/kvm/x86.c 3 additions, 0 deletionsarch/x86/kvm/x86.c
- include/uapi/linux/kvm.h 1 addition, 0 deletionsinclude/uapi/linux/kvm.h
Loading
Please register or sign in to comment