Received: from eggs.gnu.org ([2001:4830:134:3::10]:37274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhAye-0007SY-4r for qemu-devel@nongnu.org; Tue, 06 Sep 2016 03:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhAyZ-0000hH-VC for qemu-devel@nongnu.org; Tue, 06 Sep 2016 03:39:27 -0400 References: <1472842784-15399-1-git-send-email-ehabkost@redhat.com> <20160905190130.GO1151@thinpad.lan.raisama.net> <20160906052359-mutt-send-email-mst@kernel.org> From: Maxime Coquelin Message-ID: Date: Tue, 6 Sep 2016 09:39:19 +0200 MIME-Version: 1.0 In-Reply-To: <20160906052359-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 0/2] Delay initialization of memory backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Eduardo Habkost Cc: Markus Armbruster , qemu-devel@nongnu.org, qemu-stable@nongnu.org, Bandan Das , mprivozn@redhat.com, Paolo Bonzini On 09/06/2016 04:24 AM, Michael S. Tsirkin wrote: > On Mon, Sep 05, 2016 at 04:01:30PM -0300, Eduardo Habkost wrote: >> On Mon, Sep 05, 2016 at 02:26:30PM +0200, Paolo Bonzini wrote: >>> On 02/09/2016 20:59, Eduardo Habkost wrote: >>>> While trying to fix the original bug in v1, another bug was fixed >>>> by accident: TCG initialization of dirty_log_mask was broken when >>>> using memory backends. >>>> >>>> The fix, on the other hand, broke vhost-user-test because it >>>> relied on TCG, even though TCG is incompatible with vhost. >>>> >>>> This new version changes vhost-user-test to not rely on TCG, so >>>> we can finally fix the initialization ordering of memory >>>> backends. >>>> >>>> Eduardo Habkost (2): >>>> vhost-user-test: Use libqos instead of pxe-virtio.rom >>>> vl: Delay initialization of memory backends >>>> >>>> tests/Makefile.include | 2 +- >>>> tests/vhost-user-test.c | 37 ++++++++++++++++++++++++++++++++++--- >>>> vl.c | 13 +++++++++++++ >>>> 3 files changed, 48 insertions(+), 4 deletions(-) >>>> >>> >>> Acked-by: Paolo Bonzini >>> >>> for whoever wants to pick this up... >> >> I will commit it. Thanks! > > Feel free to commit if you didn't already. > > Belatedly: > > Acked-by: Michael S. Tsirkin Michael, please note that not using TCG also fixes the hang observed with patch: 28ed5ef ("vhost-user: Attempt to fix a race with set_mem_table.") It confirms my analysis that it would only happen with relying on TCG. Should we revert your revert once this series applied to mainline? So, FWIW now that the patch may be already committed: Tested-by: Maxime Coquelin Thanks, Maxime