All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: R <19890121wr@gmail.com>
Cc: Arthur Chunqi Li <yzt356@gmail.com>, kvm <kvm@vger.kernel.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: About preemption timer
Date: Wed, 18 Dec 2013 07:58:17 +0100	[thread overview]
Message-ID: <52B14789.1000201@siemens.com> (raw)
In-Reply-To: <CAF2sySOqdW0SimGpn-N2UH0H8ksce5D39VVcbdX9=FjOhwABQw@mail.gmail.com>

On 2013-12-18 04:27, R wrote:
> Hi,
> 
> You must adjust the preemption timer according to the eclipsed time
> when the guest runs.
> 
> And register a hrtimer triggered when a guest exit.
> The timer should be alarmed when the remaining time runs out,

In fact, as we need to register an hrtimer anyway when leaving the
guest, we can simply register it always and stop using the physical
preemption timer. This will also solve the breakage on older Intel CPU,
actually it will add preemption timer support unconditionally.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux

  reply	other threads:[~2013-12-18  6:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17  9:32 About preemption timer Arthur Chunqi Li
2013-12-17 11:21 ` Jan Kiszka
2013-12-17 11:31   ` Arthur Chunqi Li
2013-12-17 12:43     ` Jan Kiszka
2013-12-17 12:59       ` Arthur Chunqi Li
2013-12-17 15:17         ` Jan Kiszka
2013-12-18  3:27           ` R
2013-12-18  6:58             ` Jan Kiszka [this message]
2013-12-17 11:22 ` 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=52B14789.1000201@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=19890121wr@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=yzt356@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 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.