* [PATCH] KVM: Document KVM_GET_MP_STATE and KVM_SET_MP_STATE
@ 2010-04-25 12:51 Avi Kivity
2010-04-25 13:03 ` Pekka Enberg
2010-04-26 19:13 ` Marcelo Tosatti
0 siblings, 2 replies; 3+ messages in thread
From: Avi Kivity @ 2010-04-25 12:51 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: kvm, Pekka Enberg
Signed-off-by: Avi Kivity <avi@redhat.com>
---
Documentation/kvm/api.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/Documentation/kvm/api.txt b/Documentation/kvm/api.txt
index baa8fde..a237518 100644
--- a/Documentation/kvm/api.txt
+++ b/Documentation/kvm/api.txt
@@ -848,6 +848,50 @@ function properly, this is the place to put them.
__u8 pad[64];
};
+4.37 KVM_GET_MP_STATE
+
+Capability: KVM_CAP_MP_STATE
+Architectures: x86, ia64
+Type: vcpu ioctl
+Parameters: struct kvm_mp_state (out)
+Returns: 0 on success; -1 on error
+
+struct kvm_mp_state {
+ __u32 mp_state;
+};
+
+Returns the vcpu's current "multiprocessing state" (though also valid on
+uniprocessor guests).
+
+Possible values are:
+
+ - KVM_MP_STATE_RUNNABLE: the vcpu is currently running
+ - KVM_MP_STATE_UNINITIALIZED: the vcpu is an application processor (AP)
+ which has not yet received an INIT signal
+ - KVM_MP_STATE_INIT_RECEIVED: the vcpu has received an INIT signal, and is
+ now ready for a SIPI
+ - KVM_MP_STATE_HALTED: the vcpu has executed a HLT instruction and
+ is waiting for an interrupt
+ - KVM_MP_STATE_SIPI_RECEIVED: the vcpu has just received a SIPI (vector
+ accesible via KVM_GET_VCPU_EVENTS)
+
+This ioctl is only useful after KVM_CREATE_IRQCHIP. Without an in-kernel
+irqchip, the multiprocessing state must be maintained by userspace.
+
+4.38 KVM_SET_MP_STATE
+
+Capability: KVM_CAP_MP_STATE
+Architectures: x86, ia64
+Type: vcpu ioctl
+Parameters: struct kvm_mp_state (in)
+Returns: 0 on success; -1 on error
+
+Sets the vcpu's current "multiprocessing state"; see KVM_GET_MP_STATE for
+arguments.
+
+This ioctl is only useful after KVM_CREATE_IRQCHIP. Without an in-kernel
+irqchip, the multiprocessing state must be maintained by userspace.
+
5. The kvm_run structure
Application code obtains a pointer to the kvm_run structure by
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: Document KVM_GET_MP_STATE and KVM_SET_MP_STATE
2010-04-25 12:51 [PATCH] KVM: Document KVM_GET_MP_STATE and KVM_SET_MP_STATE Avi Kivity
@ 2010-04-25 13:03 ` Pekka Enberg
2010-04-26 19:13 ` Marcelo Tosatti
1 sibling, 0 replies; 3+ messages in thread
From: Pekka Enberg @ 2010-04-25 13:03 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, kvm
Avi Kivity wrote:
> Signed-off-by: Avi Kivity <avi@redhat.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: Document KVM_GET_MP_STATE and KVM_SET_MP_STATE
2010-04-25 12:51 [PATCH] KVM: Document KVM_GET_MP_STATE and KVM_SET_MP_STATE Avi Kivity
2010-04-25 13:03 ` Pekka Enberg
@ 2010-04-26 19:13 ` Marcelo Tosatti
1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2010-04-26 19:13 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm, Pekka Enberg
On Sun, Apr 25, 2010 at 03:51:46PM +0300, Avi Kivity wrote:
> Signed-off-by: Avi Kivity <avi@redhat.com>
> ---
> Documentation/kvm/api.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 44 insertions(+), 0 deletions(-)
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-26 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-25 12:51 [PATCH] KVM: Document KVM_GET_MP_STATE and KVM_SET_MP_STATE Avi Kivity
2010-04-25 13:03 ` Pekka Enberg
2010-04-26 19:13 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox