From patchwork Wed Dec 12 10:48:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 205477 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AAA512C008F for ; Wed, 12 Dec 2012 21:45:40 +1100 (EST) Received: from localhost ([::1]:39711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tijoo-0003Aw-TO for incoming@patchwork.ozlabs.org; Wed, 12 Dec 2012 05:45:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tijoa-0003AZ-QW for qemu-devel@nongnu.org; Wed, 12 Dec 2012 05:45:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TijoT-0006gg-8q for qemu-devel@nongnu.org; Wed, 12 Dec 2012 05:45:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TijoT-0006gZ-0p for qemu-devel@nongnu.org; Wed, 12 Dec 2012 05:45:17 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBCAjEZJ015251 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Dec 2012 05:45:14 -0500 Received: from redhat.com (vpn1-6-172.ams2.redhat.com [10.36.6.172]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id qBCAj8j4027568; Wed, 12 Dec 2012 05:45:09 -0500 Date: Wed, 12 Dec 2012 12:48:21 +0200 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org, asias@redhat.com Message-ID: <20121212104821.GA6324@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , kvm@vger.kernel.org, "Michael S. Tsirkin" , Jan Kiszka , Marcelo Tosatti , Avi Kivity Subject: [Qemu-devel] [PATCH] kvm: do not flush after deleting gsi X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Deleting a GSI isn't necessary: it is enough to stop using it. Delay flush until an entry is used. Signed-off-by: Michael S. Tsirkin Reviewed-by: Jan Kiszka --- kvm-all.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 3bc3347..fb3180d 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -991,8 +991,6 @@ void kvm_irqchip_release_virq(KVMState *s, int virq) } } clear_gsi(s, virq); - - kvm_irqchip_commit_routes(s); } static unsigned int kvm_hash_msi(uint32_t data)