]> git.proxmox.com Git - mirror_qemu.git/commit - trace-events
kvm: Common device control API functions
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 26 Feb 2014 17:20:00 +0000 (17:20 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 26 Feb 2014 17:20:00 +0000 (17:20 +0000)
commit0a6a7ccaae4015aa02bdbce75bafb9d868636655
treed3d2f835e20b7f573867ad4c64fbca2825a6beaf
parentd6032e06d10d20e91729816a8c9c6792e5774ab1
kvm: Common device control API functions

Introduces two simple functions:
    int kvm_device_ioctl(int fd, int type, ...);
    int kvm_create_device(KVMState *s, uint64_t type, bool test);

These functions wrap the basic ioctl-based interactions with KVM in a
way similar to other KVM ioctl wrappers.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Message-id: 1392687720-26806-4-git-send-email-christoffer.dall@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/sysemu/kvm.h
kvm-all.c
trace-events