From patchwork Thu Sep 21 23:16:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 817259 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="I1qf6wnY"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xytcY0LG9z9tZF for ; Fri, 22 Sep 2017 09:49:11 +1000 (AEST) Received: from localhost ([::1]:55981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvB9K-0003dp-MF for incoming@patchwork.ozlabs.org; Thu, 21 Sep 2017 19:44:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvAiP-0004mF-GJ for qemu-devel@nongnu.org; Thu, 21 Sep 2017 19:17:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvAiO-0004Ik-LY for qemu-devel@nongnu.org; Thu, 21 Sep 2017 19:17:05 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:34894) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvAiO-0004HN-FP for qemu-devel@nongnu.org; Thu, 21 Sep 2017 19:17:04 -0400 Received: by mail-wr0-x244.google.com with SMTP id n64so3849050wrb.2 for ; Thu, 21 Sep 2017 16:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=1kKFY8kzsL4xqbR7Kmuke03FLAOKjT1a/7G762So6gc=; b=I1qf6wnY0owVvyXyXEUQ+YHW9jf4pz8mRNstbFvPPSCfKegRG9GORHDrY3H0Sz+zq/ VP3cklZZD8np99M7dUlVypB2ULc2o5gC+ru6yopwwQgSdjrEM+Cqzvs0lSQl88ETNWPg UREUVx3Ww/ucz4/QFA6qa6lVfLsRnTzEC3akIHkY1yLCXvliayL9hIlhtmlh6OpJQ0m8 V6UgTp/CM6KN1e78Gg0Cgb2xPaXyS+B5DtF0IaBR0ha0PXkrNLTpdckPxkn8h8KUj1r5 b2RBtPbgwN5LGpJ9bgJXlLUeT8frTxIqSXiifMY/+/h62wqGL3kAhq/XjvsLGjZzAwpE zNhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=1kKFY8kzsL4xqbR7Kmuke03FLAOKjT1a/7G762So6gc=; b=CCKd8G1Rh26xkHl204yGKJZdBeBy9WVSx4MWJ7TC4TazkSspL/DdGsSqOyy+TTkAtK AiC8+WFKMfxdV/zN7eOfq2exc8bOIVWJn5qCUX+JhucdGEJO+S8KkHIBR10ng7hlxdnP O9icNlhno7h596WW5URfdOgJ6jQePsfXYvbLRpHzrCBgCJ8rll2jaSJWt+venr4sHHgR JYuC2/ewbZpx7maF+2fF580p+TGv0dulmqa/Zck0d7Elf8QU4zbySUyKY7BzfMpz8oTp PKTQnhwGKyyKUgy6c8IOBSqeoCoEUdRIGYIKM+7tcRDIqNuoRvRQDorircYBSH7TqTrD 3P5g== X-Gm-Message-State: AHPjjUihXrkxk2wxP2wl5ZUxjB1VMfLZhebidC4m44nh6vv+GgJXCXBw gLpuEBE//evjrmGxum57c6Owoozp X-Google-Smtp-Source: AOwi7QDZkGFfMVliEFUrCN7X+Ysp+btYPfi2Hhi+pgsW3wtcJ61qH8KP+F4YEvyGUR2b8WQG3vRY2A== X-Received: by 10.223.198.82 with SMTP id u18mr3350671wrg.5.1506035823225; Thu, 21 Sep 2017 16:17:03 -0700 (PDT) Received: from 640k.lan (dynamic-adsl-78-12-246-117.clienti.tiscali.it. [78.12.246.117]) by smtp.gmail.com with ESMTPSA id u186sm2596278wmd.19.2017.09.21.16.17.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 16:17:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 22 Sep 2017 01:16:24 +0200 Message-Id: <1506035800-30509-17-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1506035800-30509-1-git-send-email-pbonzini@redhat.com> References: <1506035800-30509-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PULL 16/32] memory: Move address_space_update_ioeventfds X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Alexey Kardashevskiy So it is called (twice) from the same function. This is to make the next patches a bit simpler. Signed-off-by: Alexey Kardashevskiy Message-Id: <20170921085110.25598-12-aik@ozlabs.ru> Signed-off-by: Paolo Bonzini --- memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/memory.c b/memory.c index 6f6c233..bb582d0 100644 --- a/memory.c +++ b/memory.c @@ -952,8 +952,6 @@ static void address_space_update_topology(AddressSpace *as) * counting is necessary. */ flatview_unref(old_view); - - address_space_update_ioeventfds(as); } void memory_region_transaction_begin(void) @@ -976,6 +974,7 @@ void memory_region_transaction_commit(void) QTAILQ_FOREACH(as, &address_spaces, address_spaces_link) { address_space_update_topology(as); + address_space_update_ioeventfds(as); } memory_region_update_pending = false; MEMORY_LISTENER_CALL_GLOBAL(commit, Forward);