From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSgMu-00059h-W4 for qemu-devel@nongnu.org; Thu, 28 Jul 2016 04:08:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSgMr-0006sx-No for qemu-devel@nongnu.org; Thu, 28 Jul 2016 04:08:36 -0400 From: Alberto Garcia Date: Thu, 28 Jul 2016 11:08:11 +0300 Message-Id: Subject: [Qemu-devel] [PATCH for-2.7 v2 0/2] Don't allow burst limits to be lower than the normal limits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Stefan Hajnoczi , Gu Nini , Eric Blake , Alberto Garcia Hello, Gu Nini found this problem and reported it in https://bugzilla.redhat.com/show_bug.cgi?id=1355665 When setting the throttling configuration, the burst limits can be lower than the normal limits. This does not making any sense and behaves oddly, so let's forbid it. Berto v2: - Simplify error message [Eric] Alberto Garcia (2): throttle: Don't allow burst limits to be lower than the normal limits throttle: Test burst limits lower than the normal limits tests/test-throttle.c | 8 ++++++++ util/throttle.c | 5 +++++ 2 files changed, 13 insertions(+) -- 2.8.1