diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-04 08:13:14 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-11 13:08:22 -0400 |
commit | 546d714b0880f20572d21ece5b9544c0e37a7a49 (patch) | |
tree | 86c5504e9222e8372f3061f58d4cf09329a8fe92 /arch/x86/include/uapi/asm/kvm.h | |
parent | 8d2aec3b2d7937ed77d2daa8f29c6dfc01100953 (diff) | |
download | linux-546d714b0880f20572d21ece5b9544c0e37a7a49.tar.gz linux-546d714b0880f20572d21ece5b9544c0e37a7a49.tar.bz2 linux-546d714b0880f20572d21ece5b9544c0e37a7a49.zip |
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>
Diffstat (limited to 'arch/x86/include/uapi/asm/kvm.h')
0 files changed, 0 insertions, 0 deletions