All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Liuqiming (John)" <john.liuqiming@huawei.com>
To: xen-devel@lists.xenproject.org
Cc: yang.z.zhang@Intel.com, zw.zhang@huawei.com, hanweidong@huawei.com
Subject: Re: [PATCH] Remove a set operation for VCPU_KICK_SOFTIRQ when post interrupt to vm.
Date: Mon, 7 Sep 2015 22:24:00 +0800	[thread overview]
Message-ID: <55ED9E00.2010105@huawei.com> (raw)
In-Reply-To: <1441637175-18070-1-git-send-email-john.liuqiming@huawei.com>

I believe this also has something to do with a windows guest boot hang 
issue.

It randomly occured, when boot a guest has windows 2008 os and pv-driver 
installed.
The boot process hangs when wait xenstored replay event signal.

It can be reproduced after hundreds reboot using the xen staging branch.
But after I changed this code the hang issue can not reproduce.

Any Ideas?

On 2015/9/7 22:46, - wrote:
> From: liuqiming 00178499 <john.liuqiming@huawei.com>
>
> This set operation doesn't make any sense, and it will block later
> interrupt injected into vm (by vcpu_kick or deliver_posted_intr),
> which will cause a performance issue on CPU supporting posted-interrupt.
>
> Signed-off-by: Qiming Liu <john.liuqiming@huawei.com>
> Cc: Yang Zhang <yang.z.zhang@Intel.com>
> ---
>   xen/arch/x86/hvm/vmx/vmx.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
> index 2582cdd..9480b44 100644
> --- a/xen/arch/x86/hvm/vmx/vmx.c
> +++ b/xen/arch/x86/hvm/vmx/vmx.c
> @@ -1681,7 +1681,7 @@ static void __vmx_deliver_posted_interrupt(struct vcpu *v)
>       {
>           unsigned int cpu = v->processor;
>   
> -        if ( !test_and_set_bit(VCPU_KICK_SOFTIRQ, &softirq_pending(cpu))
> +        if ( !test_bit(VCPU_KICK_SOFTIRQ, &softirq_pending(cpu))
>                && (cpu != smp_processor_id()) )
>               send_IPI_mask(cpumask_of(cpu), posted_intr_vector);
>       }

       reply	other threads:[~2015-09-07 14:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1441637175-18070-1-git-send-email-john.liuqiming@huawei.com>
2015-09-07 14:24 ` Liuqiming (John) [this message]
2015-09-07 14:45   ` [PATCH] Remove a set operation for VCPU_KICK_SOFTIRQ when post interrupt to vm Jan Beulich
2015-09-08  0:39     ` Hanweidong (Randy)
2015-09-08  2:46       ` Zhang, Yang Z
2015-09-08  4:07         ` Liuqiming (John)
2015-09-08  8:10           ` Zhang, Yang Z
2015-09-08  8:49             ` Jan Beulich
2015-09-18  0:29           ` Zhang, Yang Z
2015-09-18  5:30             ` Jan Beulich
2015-09-18 11:40               ` Zhang, Yang Z
2015-09-18 11:44                 ` Andrew Cooper
2015-09-18 11:50                   ` Zhang, Yang Z
2015-09-18 12:56                     ` Dario Faggioli
2015-09-23  3:50           ` Zhang, Yang Z
2015-09-23  7:42             ` Jan Beulich
2015-09-23  9:08               ` George Dunlap
2015-09-23  9:18                 ` Zhang, Yang Z
2015-09-23 10:01                   ` George Dunlap
2015-09-23  9:21                 ` Jan Beulich
2015-09-23  9:15               ` Zhang, Yang Z
2015-09-23  9:31                 ` Jan Beulich
2015-09-23 13:02                   ` Zhang, Yang Z
2015-09-23 13:38             ` Hanweidong (Randy)
2015-09-23 13:41               ` Zhang, Yang Z
2015-09-24  2:41                 ` Liuqiming (John)
2015-09-24  3:25                   ` Zhang, Yang Z
2015-09-24  7:07                     ` Liuqiming (John)
2015-09-24  8:07                       ` Zhang, Yang Z
2015-10-10  6:32                       ` Zhang, Yang Z
2015-10-10  9:55                         ` Liuqiming (John)
2015-11-10  1:15                           ` Zhang, Yang Z

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=55ED9E00.2010105@huawei.com \
    --to=john.liuqiming@huawei.com \
    --cc=hanweidong@huawei.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yang.z.zhang@Intel.com \
    --cc=zw.zhang@huawei.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.