From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sep12-0003WX-Fl for qemu-devel@nongnu.org; Wed, 13 Jun 2012 10:57:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sep0x-0000xR-3f for qemu-devel@nongnu.org; Wed, 13 Jun 2012 10:57:48 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:44156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sep0w-0000wB-RS for qemu-devel@nongnu.org; Wed, 13 Jun 2012 10:57:43 -0400 Received: by pbbro12 with SMTP id ro12so2505440pbb.4 for ; Wed, 13 Jun 2012 07:57:40 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FD8AA58.1040700@redhat.com> Date: Wed, 13 Jun 2012 16:57:28 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1337619593-25823-1-git-send-email-berrange@redhat.com> <1337619593-25823-4-git-send-email-berrange@redhat.com> <20120530155037.4e5d46df@doriath.home> <20120608164856.GB4012@redhat.com> <20120611142205.68e86ddb@doriath.home> <20120613145355.GC29641@redhat.com> In-Reply-To: <20120613145355.GC29641@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/3] Add rate limiting of RTC_CHANGE, BALLOON_CHANGE & WATCHDOG events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Amit Shah , Markus Armbruster , qemu-devel@nongnu.org, Anthony Liguori , Luiz Capitulino Il 13/06/2012 16:53, Daniel P. Berrange ha scritto: >>> > > I don't think SUSPEND can be used to DoS, since once the VM >>> > > is in the suspend state, a monitor command is required to wake >>> > > it up again before the guest OS can trigger a new suspend. >> > >> > Can't the guest OS awake itself? > I didn't think so. Even if it can, we can't rate limit SUSPEND > events in isolation, because they must be strictly ordered > wrt RESUME events. It can program the RTC to awake the OS, but only at 1 wakeup/second. Paolo