]> granicus.if.org Git - strace/commit
kvm: decode the argument of KVM_SET_USER_MEMORY_REGION ioctl command
authorMasatake YAMATO <yamato@redhat.com>
Mon, 4 Dec 2017 13:08:14 +0000 (22:08 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 4 Dec 2017 18:29:38 +0000 (18:29 +0000)
commitd3cc998a05a83acfa0bd64c6f5a042d0d4cb06e4
tree34ad6fb792d8ea5104c35a44528ba680ae66a95a
parent722d82e4567fd6545c501e7a674f309fa13e9190
kvm: decode the argument of KVM_SET_USER_MEMORY_REGION ioctl command

* configure.ac (AC_CHECK_TYPES): Add struct kvm_userspace_memory_region.
* xlat/kvm_mem_flags.in: New file.
* kvm.c: Include print_fields.h.
[HAVE_STRUCT_KVM_USERSPACE_MEMORY_REGION]: Include xlat/kvm_mem_flags.h,
(kvm_ioctl_set_user_memory_region): New function.
(kvm_ioctl) [HAVE_STRUCT_KVM_USERSPACE_MEMORY_REGION]
<KVM_SET_USER_MEMORY_REGION>: Use it.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
configure.ac
kvm.c
xlat/kvm_mem_flags.in [new file with mode: 0644]