From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Avi Kivity <avi@redhat.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"mtosatti@redhat.com" <mtosatti@redhat.com>
Subject: Re: [PATCH 0/8] use jump labels to streamline common APIC configuration
Date: Tue, 14 Aug 2012 16:58:52 +0200 [thread overview]
Message-ID: <502A67AC.3000209@siemens.com> (raw)
In-Reply-To: <20120814143758.GP11194@redhat.com>
On 2012-08-14 16:37, Gleb Natapov wrote:
> On Tue, Aug 14, 2012 at 04:20:06PM +0200, Jan Kiszka wrote:
>> On 2012-08-14 16:03, Gleb Natapov wrote:
>>> On Tue, Aug 14, 2012 at 04:00:54PM +0200, Jan Kiszka wrote:
>>>> On 2012-08-05 16:03, Gleb Natapov wrote:
>>>>> On Sun, Aug 05, 2012 at 05:00:37PM +0300, Avi Kivity wrote:
>>>>>> On 08/05/2012 04:48 PM, Gleb Natapov wrote:
>>>>>> >>
>>>>>>>>>> During guest boot up, some of these jump keys will change, no? Does
>>>>>>>>>> this mean a stop_machine() or equivalent? I'm worried about real-time
>>>>>>>>>> response or one guest being affected by another.
>>>>>>>>>>
>>>>>>>>> Yes, SW enable bit changes during boot. The jump label triggerable by a
>>>>>>>>> guest are rate limited though. So stop machine will not happen more then
>>>>>>>>> once per second even with malicious guests.
>>>>>>>>
>>>>>>>> I'm not talking about a malicious guest, just a guest that is booting up
>>>>>>>> normally but kills real-time response for another guest (or just induces
>>>>>>>> a large hiccup in a non-real-time guest, but we don't guarantee anything
>>>>>>>> for those).
>>>>>>>>
>>>>>>>> We don't support real-time guests now, but Jan has plans.
>>>>>>>>
>>>>>>> For such setup jump labels have to be compiled out from the kernel
>>>>>>> completely. Anything that calls stop_machine does not play well with
>>>>>>> real time.
>>>>>>>
>>>>>>> Guest can cause stop machine on boot today already by detecting PMU and
>>>>>>> configuring NMI watchdog.
>>>>>>
>>>>>> The host can prevent this by leaving disabling the guest pmu. But
>>>>>> disabling jump labels for real-time kernels may be acceptable too. We
>>>>>> can probably to it at run time by forcing the slow path at all times.
>>>>> Yes, it is possible to add module option that will force slow path if
>>>>> needed.
>>>>
>>>> Should I write a patch or will you? Having host-side stop_machine due to
>>>> such common guest operations is indeed a no-go for RT.
>>>>
>>> Do we support RT now? The operation are definitely not common.
>>
>> We also have min_timer_period_us to control the APIC timer - for the
>> same use case.
>>
>> And regarding how common they are: Do standard OSes trigger any
>> jump-label optimized switch during at least their boot-up? I thought so.
>> In that case, if you co-locate RT and standard OSes on a shared host,
>> you would have a conflict.
>>
> Yes, during boot up it happens. But it is rate limited to happen not
> more than once per second. But I genuinely curious does RT guest have
> any RT guaranties from QEMU/kvm combination today (with of without
> jump-labels)?
Yes, when avoiding userspace exits. If you have a customized RTOS guest
or are lucky with some existing one, that works pretty well for periodic
processing in the 1 ms range.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2012-08-14 14:58 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-05 12:58 [PATCH 0/8] use jump labels to streamline common APIC configuration Gleb Natapov
2012-08-05 12:58 ` [PATCH 1/8] KVM: clean up kvm_(set|get)_apic_base Gleb Natapov
2012-08-05 12:58 ` [PATCH 2/8] KVM: use kvm_lapic_set_base() to change apic_base Gleb Natapov
2012-08-05 12:58 ` [PATCH 3/8] KVM: mark apic enabled on start up Gleb Natapov
2012-08-05 14:14 ` Avi Kivity
2012-08-05 14:17 ` Gleb Natapov
2012-08-05 14:39 ` Avi Kivity
2012-08-05 14:43 ` Gleb Natapov
2012-08-05 12:58 ` [PATCH 4/8] Export jump_label_rate_limit() Gleb Natapov
2012-08-05 14:16 ` Avi Kivity
2012-08-06 12:37 ` Jason Baron
2012-08-05 12:58 ` [PATCH 5/8] KVM: use jump label to optimize checking for HW enabled APIC in APIC_BASE MSR Gleb Natapov
2012-08-05 14:35 ` Avi Kivity
2012-08-05 14:42 ` Gleb Natapov
2012-08-05 14:48 ` Avi Kivity
2012-08-05 14:55 ` Gleb Natapov
2012-08-05 12:58 ` [PATCH 6/8] KVM: use jump label to optimize checking for SW enabled apic in spurious interrupt register Gleb Natapov
2012-08-05 12:58 ` [PATCH 7/8] KVM: use jump label to optimize checking for in kernel local apic presence Gleb Natapov
2012-08-05 12:58 ` [PATCH 8/8] KVM: inline kvm_apic_present() and kvm_lapic_enabled() Gleb Natapov
2012-08-05 13:33 ` [PATCH 0/8] use jump labels to streamline common APIC configuration Avi Kivity
2012-08-05 13:35 ` Gleb Natapov
2012-08-05 13:42 ` Avi Kivity
2012-08-05 13:48 ` Gleb Natapov
2012-08-05 14:00 ` Avi Kivity
2012-08-05 14:03 ` Gleb Natapov
2012-08-14 14:00 ` Jan Kiszka
2012-08-14 14:03 ` Gleb Natapov
2012-08-14 14:20 ` Jan Kiszka
2012-08-14 14:37 ` Gleb Natapov
2012-08-14 14:58 ` Jan Kiszka [this message]
2012-08-14 16:21 ` Avi Kivity
2012-08-14 16:38 ` Jan Kiszka
2012-08-14 17:00 ` Avi Kivity
2012-08-14 17:16 ` Jan Kiszka
2012-08-14 14:04 ` Avi Kivity
2012-08-14 14:05 ` Jan Kiszka
2012-08-14 14:08 ` Gleb Natapov
2012-08-14 14:07 ` Gleb Natapov
2012-08-14 14:13 ` Jan Kiszka
2012-08-14 14:44 ` Gleb Natapov
2012-08-14 15:09 ` Jan Kiszka
2012-08-05 19:30 ` Eric Northup
2012-08-06 8:35 ` Avi Kivity
2012-08-06 8:52 ` Gleb Natapov
2012-08-06 13:23 ` Avi Kivity
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=502A67AC.3000209@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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.