https://github.com/torvalds/linux
Revision 56f289a8d23addfa4408a08f07f42fcfe2a7bd69 authored by Sean Christopherson on 27 January 2022, 15:31:53 UTC, committed by Paolo Bonzini on 28 January 2022, 12:32:00 UTC
Add a helper to handle converting the u64 userspace address embedded in
struct kvm_device_attr into a userspace pointer, it's all too easy to
forget the intermediate "unsigned long" cast as well as the truncation
check.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent dd4516a
History
Tip revision: 56f289a8d23addfa4408a08f07f42fcfe2a7bd69 authored by Sean Christopherson on 27 January 2022, 15:31:53 UTC
KVM: x86: Add a helper to retrieve userspace address from kvm_device_attr
Tip revision: 56f289a
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.6 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.9 KB
.mailmap -rw-r--r-- 20.6 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 98.6 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 616.5 KB
Makefile -rw-r--r-- 64.0 KB
README -rw-r--r-- 727 bytes

README

back to top