From: Eric Blake <eblake@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Cc: libvir-list@redhat.com,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Laine Stump <laine@laine.org>
Subject: Re: [Qemu-devel] [libvirt] [PATCHv2 3/4] qemu: fix RTC_CHANGE event for <clock offset='variable' basis='utc'/>
Date: Fri, 23 May 2014 08:04:45 -0600 [thread overview]
Message-ID: <537F557D.5080005@redhat.com> (raw)
In-Reply-To: <20140523134818.GB1358@amt.cnet>
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
On 05/23/2014 07:48 AM, Marcelo Tosatti wrote:
> This also seems pretty harmful wrt losing events:
>
> /* Global, one-time initializer to configure the rate limiting
> * and initialize state */
> static void monitor_protocol_event_init(void)
> {
> /* Limit RTC & BALLOON events to 1 per second */
> monitor_protocol_event_throttle(QEVENT_RTC_CHANGE, 1000);
>
> Better remove it.
No, this throttling MUST be present to avoid a guest-triggered
denial-of-service attack (otherwise the guest could trigger RTC change
events fast enough to starve the host in dealing with them). Again,
lost events are expected. What is important is that when throttling,
and event is guaranteed to be sent at the end of the throttling period
so that libvirt will always eventually get an event with the latest
state (even if intermediate events were lost) with no more latency than
the throttling period; and either the event caries the current state
(and not something that needs accumulation), or the event is a witness
that libvirt needs to do an additional query- command to learn the
current state.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-05-23 14:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1400756850-19807-1-git-send-email-laine@laine.org>
[not found] ` <1400756850-19807-4-git-send-email-laine@laine.org>
2014-05-22 19:33 ` [Qemu-devel] [libvirt] [PATCHv2 3/4] qemu: fix RTC_CHANGE event for <clock offset='variable' basis='utc'/> Eric Blake
2014-05-23 3:50 ` Marcelo Tosatti
2014-05-23 9:17 ` Laine Stump
2014-05-23 10:19 ` Laine Stump
2014-05-23 14:54 ` Eric Blake
2014-05-23 16:42 ` Marcelo Tosatti
2014-05-23 17:56 ` Eric Blake
2014-05-23 18:31 ` Laine Stump
2014-05-23 12:43 ` Luiz Capitulino
2014-05-23 13:35 ` Markus Armbruster
2014-05-23 13:48 ` Marcelo Tosatti
2014-05-23 13:54 ` Marcelo Tosatti
2014-05-23 13:54 ` Luiz Capitulino
2014-05-23 13:56 ` Daniel P. Berrange
2014-05-23 14:04 ` Eric Blake [this message]
2014-05-23 21:36 ` 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=537F557D.5080005@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=laine@laine.org \
--cc=libvir-list@redhat.com \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).