mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
Define kvm_ioctl in the same way as ioctl
The third argument to ioctl is a ... which allows any value to be passed. In practice, glibc always treats the argument as a void *. Do the same thing for the kvm ioctls to keep things consistent with a traditional ioctl. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5715 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
305b0eb239
commit
984b518147
3 changed files with 32 additions and 14 deletions
6
kvm.h
6
kvm.h
|
@ -43,11 +43,11 @@ void kvm_set_phys_mem(target_phys_addr_t start_addr,
|
|||
struct KVMState;
|
||||
typedef struct KVMState KVMState;
|
||||
|
||||
int kvm_ioctl(KVMState *s, int type, void *data);
|
||||
int kvm_ioctl(KVMState *s, int type, ...);
|
||||
|
||||
int kvm_vm_ioctl(KVMState *s, int type, void *data);
|
||||
int kvm_vm_ioctl(KVMState *s, int type, ...);
|
||||
|
||||
int kvm_vcpu_ioctl(CPUState *env, int type, void *data);
|
||||
int kvm_vcpu_ioctl(CPUState *env, int type, ...);
|
||||
|
||||
/* Arch specific hooks */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue