From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "Zhang, Yang Z" <yang.z.zhang@intel.com>,
Jan Beulich <JBeulich@suse.com>
Cc: "Tian, Kevin" <kevin.tian@intel.com>,
"olaf@aepfle.de" <olaf@aepfle.de>,
"malcolm.crossley@citrix.com" <malcolm.crossley@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] vmx, apicv: fix save/restore issue with apicv
Date: Thu, 16 Oct 2014 10:53:58 +0100 [thread overview]
Message-ID: <543F95B6.8070402@citrix.com> (raw)
In-Reply-To: <A9667DDFB95DB7438FA9D7D576C3D87E0ABAF58D@SHSMSX104.ccr.corp.intel.com>
On 16/10/14 07:38, Zhang, Yang Z wrote:
> Jan Beulich wrote on 2014-10-14:
>>>>> On 14.10.14 at 15:10, <yang.z.zhang@intel.com> wrote:
>>> Jan Beulich wrote on 2014-10-14:
>>>>>>> On 14.10.14 at 07:43, <yang.z.zhang@intel.com> wrote:
>>>>> Jan Beulich wrote on 2014-10-13:
>>>>>>>>> On 11.10.14 at 09:54, <yang.z.zhang@intel.com> wrote:
>>>>>>> @@ -1597,6 +1599,29 @@ static void vmx_process_isr(int isr,
>>>>>>> struct vcpu
>>>>>> *v)
>>>>>>> status |= isr << VMX_GUEST_INTR_STATUS_SVI_OFFSET;
>>>>>>> __vmwrite(GUEST_INTR_STATUS, status);
>>>>>>> }
>>>>>>> +
>>>>>>> + eoi_exit_bitmap = (unsigned int
>>>>>>> + *)v->arch.hvm_vmx.eoi_exit_bitmap;
>>>>>> No casts like this please. This is a bitmap and would hence
>>>>>> preferably be treated that way consistently. The code here isn't
>>>> performance critical.
>>>>> Yes, it's performance critical from the live migration's point
>>>>> and that's why I use the cast here and
>>>> Compared to everything else involved in migration, a few extra
>>>> cycles here
>>> Xen is far behind KVM on live migration. If we want to remain the
>>> competitive, I'd suggest doing a cleanup on current migration logic
>>> to make it more effective.
>> But that surely needs to be done elsewhere, where more than a couple
>> of nanoseconds are to be gained.
> If you think it is ok, I will use vector based operations:
>
> + for ( vector = 0x10; vector < NR_VECTORS; vector++ )
> + if (vlapic_test_vector(vector, &s->regs->data[APIC_IRR]) ||
> + vlapic_test_vector(vector, &s->regs->data[APIC_ISR]))
> + set_bit(vector, v->arch.hvm_vmx.eoi_exit_bitmap);
>
> Andrew, is it ok for you?
That covers the appropriate vector range, (and getting a working fix is
far more important than arguing its efficiency at this point in the
release).
This looks fine to me.
next prev parent reply other threads:[~2014-10-16 9:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-11 7:54 [PATCH] vmx, apicv: fix save/restore issue with apicv Yang Zhang
2014-10-13 8:33 ` Jan Beulich
2014-10-14 5:43 ` Zhang, Yang Z
2014-10-14 9:18 ` Andrew Cooper
2014-10-14 12:54 ` Zhang, Yang Z
2014-10-14 9:53 ` Jan Beulich
2014-10-14 13:10 ` Zhang, Yang Z
2014-10-14 13:31 ` Jan Beulich
2014-10-16 6:38 ` Zhang, Yang Z
2014-10-16 9:53 ` Andrew Cooper [this message]
2014-10-14 14:19 ` Olaf Hering
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=543F95B6.8070402@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=kevin.tian@intel.com \
--cc=malcolm.crossley@citrix.com \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xen.org \
--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 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.