Re: [PATCH v3 1/4] kvm: decode the argument for KVM_SET_USER_MEMORY_REGION ioctl command

2017-12-04 Thread Masatake YAMATO
On Mon, 4 Dec 2017 14:23:14 +0300, "Dmitry V. Levin" wrote: > On Mon, Dec 04, 2017 at 08:04:49PM +0900, Masatake YAMATO wrote: >> * configure.ac (AC_CHECK_TYPES): Add struct kvm_userspace_memory_region. >> * xlat/kvm_mem_flags.in: New file. >> * kvm.c: Include print_fields.h and xlat/kvm_mem_flags

Re: [PATCH v3 1/4] kvm: decode the argument for KVM_SET_USER_MEMORY_REGION ioctl command

2017-12-04 Thread Dmitry V. Levin
On Mon, Dec 04, 2017 at 08:04:49PM +0900, Masatake YAMATO wrote: > * configure.ac (AC_CHECK_TYPES): Add struct kvm_userspace_memory_region. > * xlat/kvm_mem_flags.in: New file. > * kvm.c: Include print_fields.h and xlat/kvm_mem_flags.h. > (kvm_ioctl_set_user_memory_region): New function. > (kvm_ioc

[PATCH v3 1/4] kvm: decode the argument for KVM_SET_USER_MEMORY_REGION ioctl command

2017-12-04 Thread Masatake YAMATO
* configure.ac (AC_CHECK_TYPES): Add struct kvm_userspace_memory_region. * xlat/kvm_mem_flags.in: New file. * kvm.c: Include print_fields.h and xlat/kvm_mem_flags.h. (kvm_ioctl_set_user_memory_region): New function. (kvm_ioctl) : Use it. Change in v2: * Use umove_or_printaddr instead of umove beca