1d3b9b2c94
* configure.ac (AC_CHECK_TYPES): Add struct kvm_regs. * linux/arck_kvm.c: New file. * linux/x86_64/arch_kvm.c: Likewise. * linux/i386/arch_kvm.c: Likewise. * linux/x32/arch_kvm.c: Likewise. * Makefile.am (EXTRA_DIST): Add them. * kvm.c: Include "arch_kvm.c". [HAVE_STRUCT_KVM_REGS] (kvm_ioctl_decode_regs): New function. (kvm_ioctl) [HAVE_STRUCT_KVM_REGS] <KVM_SET_REGS, KVM_GET_REGS>: Use it. Signed-off-by: Masatake YAMATO <yamato@redhat.com>