summaryrefslogtreecommitdiff
path: root/include/linux/ramfs.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-04-12 14:08:42 (GMT)
committerAndy Fleming <afleming@freescale.com>2013-04-17 21:27:01 (GMT)
commit8c848b9ed8b15aaccfb54511b22b205afc14f2d6 (patch)
tree226945b6c2146e6552e3c847d0b657e00d5ed195 /include/linux/ramfs.h
parentf0b377d2942612158210b8d46f57ce16876c46d8 (diff)
downloadlinux-fsl-qoriq-8c848b9ed8b15aaccfb54511b22b205afc14f2d6.tar.xz
kvm: add device control API
Currently, devices that are emulated inside KVM are configured in a hardcoded manner based on an assumption that any given architecture only has one way to do it. If there's any need to access device state, it is done through inflexible one-purpose-only IOCTLs (e.g. KVM_GET/SET_LAPIC). Defining new IOCTLs for every little thing is cumbersome and depletes a limited numberspace. This API provides a mechanism to instantiate a device of a certain type, returning an ID that can be used to set/get attributes of the device. Attributes may include configuration parameters (e.g. register base address), device state, operational commands, etc. It is similar to the ONE_REG API, except that it acts on devices rather than vcpus. Both device types and individual attributes can be tested without having to create the device or get/set the attribute, without the need for separately managing enumerated capabilities. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
Diffstat (limited to 'include/linux/ramfs.h')
0 files changed, 0 insertions, 0 deletions