From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takuya Yoshikawa Subject: Re: [PATCH 3/4] KVM: Count the number of dirty pages for dirty logging Date: Wed, 28 Dec 2011 00:15:31 +0900 Message-ID: <20111228001531.d93c090180bc3a28f01dd200@gmail.com> References: <20111114182041.43570cdf.yoshikawa.takuya@oss.ntt.co.jp> <20111114182334.f57fbeae.yoshikawa.takuya@oss.ntt.co.jp> <4EC0E85F.80004@redhat.com> <4EF00F2F.6080305@oss.ntt.co.jp> <20111223111451.GD24308@amt.cnet> <20111224115251.2aaa9549cb0a98de79f7d918@gmail.com> <20111227135017.GB23270@amt.cnet> <4EF9D024.8050908@redhat.com> <20111228000322.33585bc7450433775326292e@gmail.com> <4EF9DF07.2070208@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , Takuya Yoshikawa , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-tul01m020-f174.google.com ([209.85.214.174]:40680 "EHLO mail-tul01m020-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754451Ab1L0PPh (ORCPT ); Tue, 27 Dec 2011 10:15:37 -0500 Received: by obcwo16 with SMTP id wo16so7261421obc.19 for ; Tue, 27 Dec 2011 07:15:37 -0800 (PST) In-Reply-To: <4EF9DF07.2070208@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 27 Dec 2011 17:06:47 +0200 Avi Kivity wrote: > > There seems to be possible concurrent __set_bit()'s to the same word > > which will result in bit loss. > > > > I was thinking to change the kvm-unit-tests' dirty log test to write > > to two consecutive pages concurrently. Is this good for debugging this? > > Yes, it already tests some concurrency issues. Please do write the > test, we should do this a lot more often. > OK, I will write the test. If I can find a bit loss by that, I will send a fix patch: this is an important issue for my current work. Takuya