]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: introduce new vendor op for KVM_GET_DEVICE_ATTR
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Apr 2024 12:13:14 +0000 (08:13 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Apr 2024 17:08:22 +0000 (13:08 -0400)
commit546d714b0880f20572d21ece5b9544c0e37a7a49
tree86c5504e9222e8372f3061f58d4cf09329a8fe92
parent8d2aec3b2d7937ed77d2daa8f29c6dfc01100953
KVM: introduce new vendor op for KVM_GET_DEVICE_ATTR

Allow vendor modules to provide their own attributes on /dev/kvm.
To avoid proliferation of vendor ops, implement KVM_HAS_DEVICE_ATTR
and KVM_GET_DEVICE_ATTR in terms of the same function.  You're not
supposed to use KVM_GET_DEVICE_ATTR to do complicated computations,
especially on /dev/kvm.

Reviewed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Isaku Yamahata <isaku.yamahata@intel.com>
Message-ID: <20240404121327.3107131-5-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c