xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: "Qiu, Shuang" <shuang.qiu@intel.com>,
	"Zhang, Yang Z" <yang.z.zhang@intel.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: "Liu, SongtaoX" <songtaox.liu@intel.com>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>,
	Jan Beulich <jbeulich@suse.com>
Subject: Re: use tasklet to handle init/sipi?
Date: Thu, 28 Mar 2013 11:48:52 +0000	[thread overview]
Message-ID: <CD79DEA4.1F89D%keir.xen@gmail.com> (raw)
In-Reply-To: <B01B9589F1E07041890E2B0DD80BAAA68454E9@SHSMSX101.ccr.corp.intel.com>

On 28/03/2013 06:39, "Qiu, Shuang" <shuang.qiu@intel.com> wrote:

> Hi Keir,
> 
> Thank you for the patch.
> 
> We've patched the enclosed file on xen-unstable and tested on qemu.git and
> qemu-upstream-unstable.git as backends.
> In both cases, your patch works.

Thanks for the testing! I have now committed my patch.

 -- Keir

> Best regards!
> Shuang
> 
> 
> -----Original Message-----
> From: Keir Fraser [mailto:keir.xen@gmail.com]
> Sent: Tuesday, March 26, 2013 4:02 PM
> To: Zhang, Yang Z; xen-devel@lists.xen.org
> Cc: Jan Beulich; Zhang, Xiantao; Qiu, Shuang
> Subject: Re: use tasklet to handle init/sipi?
> 
> On 26/03/2013 07:55, "Keir Fraser" <keir.xen@gmail.com> wrote:
> 
>> On 26/03/2013 07:41, "Zhang, Yang Z" <yang.z.zhang@intel.com> wrote:
>> 
>>> Keir Fraser wrote on 2013-03-26:
>>>> On 26/03/2013 07:17, "Zhang, Yang Z" <yang.z.zhang@intel.com> wrote:
>>>> 
>>>>>>> Oh, I see. Well I think it is fine to have
>>>>>>> vlapic_schedule_init_sipi_tasklet() return X86EMUL_OKAY rather
>>>>>>> than X86EMUL_RETRY. We used to need to return RETRY, but the code
>>>>>>> got simplified and now it is actually unnecessary.
>>>>>>> 
>>>>>>> That should make your patch a lot simpler eh? ;)
>>>>>> 
>>>>>> Given that you ignore the return code on the apicv call path, is
>>>>>> there currently a bug at all for you? Seems what is there already
>>>>>> must work for you?
>>>>> It do cause bug after we change to use seabios. For seabios, it
>>>>> will send INIT/SIPI to all vcpus via broadcasting. And there only
>>>>> one vcpu is waken up via tasklet with current logic. That's the
>>>>> reason why I want to wakeup all vcpus on one callback. Just change
>>>>> X86EMUL_RETRY to OK cannot solve the problem. still need the logic I
>>>>> mentioned above.
>>>> 
>>>> Ok, wait a sec, I will sort out a patch for you to try...
>>> Thanks. Actually, I have patch on hand and testing it now. But it's
>>> ok if you can provide a more better solution.
>> 
>> See how you like it compared with the attached patch. Attached doesn't
>> really make the code any more complicated, which is nice. However it
>> is not tested, at all. ;)
> 
> And here's a version which actually net *reduces* the code size.
> 
>  -- Keir
> 
>>  -- Keir
>> 
>>> Best regards,
>>> Yang
>>> 
>>> 
>> 
> 

  reply	other threads:[~2013-03-28 11:48 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25  5:31 use tasklet to handle init/sipi? Zhang, Yang Z
2013-03-25  6:29 ` Keir Fraser
2013-03-25  6:55   ` Zhang, Yang Z
2013-03-25  8:05     ` Keir Fraser
2013-03-25 12:16       ` Zhang, Yang Z
2013-03-25 12:38         ` Jan Beulich
2013-03-25 12:39         ` Keir Fraser
2013-03-26  3:15           ` Zhang, Yang Z
2013-03-26  6:07             ` Keir Fraser
2013-03-26  6:14               ` Zhang, Yang Z
2013-03-26  7:00                 ` Keir Fraser
2013-03-26  7:11                   ` Keir Fraser
2013-03-26  7:17                     ` Zhang, Yang Z
2013-03-26  7:38                       ` Keir Fraser
2013-03-26  7:41                         ` Zhang, Yang Z
2013-03-26  7:55                           ` Keir Fraser
2013-03-26  8:02                             ` Keir Fraser
2013-03-28  1:18                               ` Zhang, Yang Z
2013-03-28  6:39                               ` Qiu, Shuang
2013-03-28 11:48                                 ` Keir Fraser [this message]
2013-03-28 15:29                                   ` Jan Beulich
2013-03-28 20:02                                     ` Keir Fraser

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=CD79DEA4.1F89D%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=jbeulich@suse.com \
    --cc=shuang.qiu@intel.com \
    --cc=songtaox.liu@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xiantao.zhang@intel.com \
    --cc=yang.z.zhang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).