public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: "Dong, Eddie" <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [PATCH 2/2] make the injection of interrupts run atsleepable mode.
Date: Wed, 17 Oct 2007 08:54:58 +0200	[thread overview]
Message-ID: <4715B1C2.9090706@qumranet.com> (raw)
In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A023A7914-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>

Dong, Eddie wrote:
> Not quit understand the following code. If we just set 
> a vcpu request bits w/o real irq injection, we can't resume
> to guest?  Othrewise, the guest is in interruptable state and can
>  see irq pending, but it doesn't get the interrupt.
>
> Something missing?
> thx,eddie
>
>
> --- a/drivers/kvm/vmx.c
> +++ b/drivers/kvm/vmx.c
> @@ -1678,10 +1678,11 @@ static void inject_rmode_irq(struct kvm_vcpu
> *vcpu, int irq)
>  	vmcs_writel(GUEST_RSP, (vmcs_readl(GUEST_RSP) & ~0xffff) | (sp -
> 6));
>  }
>  
> -static void vmx_inject_irq(struct kvm_vcpu *vcpu, int irq)
> +void vmx_inject_irq(struct kvm_vcpu *vcpu, int irq)
>  {
>  	if (vcpu->rmode.active) {
> -		inject_rmode_irq(vcpu, irq);
> +		vcpu->inject_rmode_irq = irq;
> +		set_bit(VMX_INJECT_RMODE_IRQ, &vcpu->requests);
>  		return;
>  	}
>  	vmcs_write32(VM_ENTRY_INTR_INFO_FIELD,
>
>   
this come wont be applied anyway, avi wrote a better solution that was 
applied.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

      parent reply	other threads:[~2007-10-17  6:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15 21:25 [PATCH 2/2] make the injection of interrupts run at sleepable mode Izik Eidus
     [not found] ` <4713DAD3.90904-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-16  1:31   ` Glauber de Oliveira Costa
     [not found]     ` <5d6222a80710151831p7ad47090qb478b304f6478859-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-16  6:32       ` Izik Eidus
2007-10-16  9:41   ` Avi Kivity
2007-10-17  2:00   ` [PATCH 2/2] make the injection of interrupts run atsleepable mode Dong, Eddie
     [not found]     ` <10EA09EFD8728347A513008B6B0DA77A023A7914-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-17  6:54       ` Izik Eidus [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=4715B1C2.9090706@qumranet.com \
    --to=izike-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox