]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9cd4e0255cdf7a8ee2b9bd6daa5f6909a492d0ca
treecc80cc9e7e097f53837d0eff67cb5186abcd6a17
parent6a75a28b7897bb6a08783bca4339bf4392bd853e
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