KVM: ia64: Fix kvm_arch_vcpu_ioctl_[gs]et_regs()
authorJes Sorensen <jes@sgi.com>
Tue, 16 Dec 2008 15:45:47 +0000 (16:45 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:47 +0000 (16:55 +0200)
commit042b26edf0bc1b0f03238a71aed71cca4593848c
treecc80cc9e7e097f53837d0eff67cb5186abcd6a17
parent4531220b71f0399e71cda0c4cf749e7281a7416a
KVM: ia64: Fix kvm_arch_vcpu_ioctl_[gs]et_regs()

Fix kvm_arch_vcpu_ioctl_[gs]et_regs() to do something meaningful on
ia64. Old versions could never have worked since they required
pointers to be set in the ioctl payload which were never being set by
the ioctl handler for get_regs.

In addition reserve extra space for future extensions.

The change of layout of struct kvm_regs doesn't require adding a new
CAP since get/set regs never worked on ia64 until now.

This version doesn't support copying the KVM kernel stack in/out of
the kernel. This should be implemented in a seperate ioctl call if
ever needed.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by : Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/include/asm/kvm.h
arch/ia64/kvm/kvm-ia64.c