From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: KVM: x86: set vcpu runnable when injecting MCE
Date: Sun, 05 Sep 2010 11:17:03 +0300 [thread overview]
Message-ID: <4C8351FF.1000702@redhat.com> (raw)
In-Reply-To: <20100902234138.GA30976@amt.cnet>
On 09/03/2010 02:41 AM, Marcelo Tosatti wrote:
> Otherwise an MCE exception to a halted vcpu is only injected when
> vcpu is awakened due to unrelated event.
>
> Signed-off-by: Marcelo Tosatti<mtosatti@redhat.com>
>
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index 4014d6c..86127e8 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -2399,6 +2399,7 @@ static int kvm_vcpu_ioctl_x86_set_mce(struct kvm_vcpu *vcpu,
> vcpu->arch.mcg_status = mce->mcg_status;
> banks[1] = mce->status;
> kvm_queue_exception(vcpu, MC_VECTOR);
> + vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE;
What happens if the vcpu is in KVM_MP_STATE_UNINITIALIZED?
I guess we just don't care?
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2010-09-05 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 23:41 KVM: x86: set vcpu runnable when injecting MCE Marcelo Tosatti
2010-09-05 8:17 ` Avi Kivity [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C8351FF.1000702@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.