mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target/arm: kvm: require KVM_CAP_DEVICE_CTRL
The device control API was added in 2013, assume that it is present. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20241024113126.44343-1-pbonzini@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
361dfa9757
commit
84f298ea3e
3 changed files with 13 additions and 29 deletions
|
@ -22,17 +22,15 @@
|
|||
* @devid: the KVM device ID
|
||||
* @group: device control API group for setting addresses
|
||||
* @attr: device control API address type
|
||||
* @dev_fd: device control device file descriptor (or -1 if not supported)
|
||||
* @dev_fd: device control device file descriptor
|
||||
* @addr_ormask: value to be OR'ed with resolved address
|
||||
*
|
||||
* Remember the memory region @mr, and when it is mapped by the
|
||||
* machine model, tell the kernel that base address using the
|
||||
* KVM_ARM_SET_DEVICE_ADDRESS ioctl or the newer device control API. @devid
|
||||
* should be the ID of the device as defined by KVM_ARM_SET_DEVICE_ADDRESS or
|
||||
* the arm-vgic device in the device control API.
|
||||
* The machine model may map
|
||||
* and unmap the device multiple times; the kernel will only be told the final
|
||||
* address at the point where machine init is complete.
|
||||
* Remember the memory region @mr, and when it is mapped by the machine
|
||||
* model, tell the kernel that base address using the device control API.
|
||||
* @devid should be the ID of the device as defined by the arm-vgic device
|
||||
* in the device control API. The machine model may map and unmap the device
|
||||
* multiple times; the kernel will only be told the final address at the
|
||||
* point where machine init is complete.
|
||||
*/
|
||||
void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid, uint64_t group,
|
||||
uint64_t attr, int dev_fd, uint64_t addr_ormask);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue