From: "Denis V. Lunev" <den@openvz.org>
To: Yang Zhang <yang.zhang.wz@gmail.com>,
Roman Kagan <rkagan@virtuozzo.com>, <kvm@vger.kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Steve Rutherford <srutherford@google.com>
Subject: Re: [PATCH v3] kvm:vmx: more complete state update on APICv on/off
Date: Fri, 20 May 2016 09:38:26 +0300 [thread overview]
Message-ID: <573EB0E2.5050204@openvz.org> (raw)
In-Reply-To: <415ca9e0-d278-cfbb-6c94-520a16bb1c17@gmail.com>
On 05/20/2016 04:15 AM, Yang Zhang wrote:
> On 2016/5/19 13:40, Denis V. Lunev wrote:
>> On 05/19/2016 05:01 AM, Yang Zhang wrote:
>>> On 2016/5/18 22:48, Roman Kagan wrote:
>>>> The function to update APICv on/off state (in particular, to
>>>> deactivate
>>>> it when enabling Hyper-V SynIC), used to be incomplete: it didn't
>>>> adjust
>>>> APICv-related fields among secondary processor-based VM-execution
>>>> controls.
>>>
>>> Hi Roman,
>>>
>>> I have question about the performance between APICv and Hyper-V SynIC.
>>> As we known APICv is a hardware feature which including three
>>> features: APIC register virtualization, virtual interrupt delivery and
>>> Posted Interrupt. My gut feeling is that the average performance that
>>> improved by APICv should greater than Hyper-v SynIC. Am i right? If
>>> yes, current policy that disable the whole APICv seems too aggressive.
>>>
>> Argh.. We have faced this situation in Parallels Desktop may be
>> 3 years ago. Unfortunately, there is no data at the moment.
>> It was toooo old and made by other team. As far as I remember
>> (for that time), interrupt delivery becomes faster, but operations
>> with on of CR registers becomes much slower and general
>> performance score becomes lower.
>
> I guess the data may be collected on KVM w/o APICv supporting.
> Normally, APICv provides the faster way to delivery interrupt than
> software solution.
>
this seems useless.
Once again, interrupt delivery with APICv will be faster,
this is out of question. Though integral tests can show
performance degradation. I know, this sounds silly
and this is test-dependent.
We are going to make this testing after implementing
of HyperV TSC page avoid extra VM exit on context
switch. This seems more beneficial at the moment.
For this reason APICv is disabled in Parallels Desktop
and Parallels Server v6, which are not KVM based.
>>
>> The problem with SynIC is that it is mandatory prerequisite
>> to enable HyperV bus in the guest, which is our final goal.
>> Thus there is no other way for us.
>
> I see. Actually, we saw the performance improvement with SynIC timer
> but we don't want to turn off APICv since we think it may hurt the
> performance. Is it possible to turn on SynIC timer without disable APICv?
>
unfortunately no. The problem is AutoEOI feature. At
least we have no idea how to do that.
next prev parent reply other threads:[~2016-05-20 6:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 14:48 [PATCH v3] kvm:vmx: more complete state update on APICv on/off Roman Kagan
2016-05-18 21:49 ` Steve Rutherford
2016-05-19 9:34 ` Roman Kagan
2016-05-19 1:38 ` Yang Zhang
2016-05-19 9:29 ` Roman Kagan
2016-05-19 2:01 ` Yang Zhang
2016-05-19 5:40 ` Denis V. Lunev
2016-05-20 1:15 ` Yang Zhang
2016-05-20 6:32 ` Roman Kagan
2016-05-20 6:38 ` Denis V. Lunev [this message]
2016-05-23 1:34 ` Yang Zhang
2016-05-23 14:18 ` Paolo Bonzini
2016-05-24 1:23 ` Yang Zhang
2016-05-24 2:09 ` Wincy Van
2016-05-24 10:42 ` Paolo Bonzini
2016-05-24 12:03 ` Wincy Van
2016-05-23 14:31 ` Paolo Bonzini
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=573EB0E2.5050204@openvz.org \
--to=den@openvz.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkagan@virtuozzo.com \
--cc=srutherford@google.com \
--cc=yang.zhang.wz@gmail.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