diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-04-11 12:24:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 11:21:16 -0400 |
commit | 62d9f0dbc92d7e398fde53fc6021338393522e68 (patch) | |
tree | 028e62807ead3db11f15694323743b90c8211ef8 /include/linux/kvm_host.h | |
parent | a45352908b88d383bc40e1e4d1a6cc5bbcefc895 (diff) |
KVM: add ioctls to save/store mpstate
So userspace can save/restore the mpstate during migration.
[avi: export the #define constants describing the value]
[christian: add s390 stubs]
[avi: ditto for ia64]
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 0bc400387cae..81d4c3305a28 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -237,6 +237,10 @@ int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, | |||
237 | struct kvm_sregs *sregs); | 237 | struct kvm_sregs *sregs); |
238 | int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, | 238 | int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, |
239 | struct kvm_sregs *sregs); | 239 | struct kvm_sregs *sregs); |
240 | int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, | ||
241 | struct kvm_mp_state *mp_state); | ||
242 | int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, | ||
243 | struct kvm_mp_state *mp_state); | ||
240 | int kvm_arch_vcpu_ioctl_debug_guest(struct kvm_vcpu *vcpu, | 244 | int kvm_arch_vcpu_ioctl_debug_guest(struct kvm_vcpu *vcpu, |
241 | struct kvm_debug_guest *dbg); | 245 | struct kvm_debug_guest *dbg); |
242 | int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run); | 246 | int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run); |