From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM62f-0004pS-5D for qemu-devel@nongnu.org; Wed, 01 Jul 2009 16:04:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM62d-0004pG-Of for qemu-devel@nongnu.org; Wed, 01 Jul 2009 16:04:28 -0400 Received: from [199.232.76.173] (port=40334 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM62d-0004pD-LL for qemu-devel@nongnu.org; Wed, 01 Jul 2009 16:04:27 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:60892) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM62d-0000VK-BB for qemu-devel@nongnu.org; Wed, 01 Jul 2009 16:04:27 -0400 Received: by fg-out-1718.google.com with SMTP id l27so1018170fgb.8 for ; Wed, 01 Jul 2009 13:04:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4A4BBE84.9020405@us.ibm.com> References: <200906300055.n5U0tADj013302@d03av01.boulder.ibm.com> <4A4BBE84.9020405@us.ibm.com> Date: Wed, 1 Jul 2009 23:04:25 +0300 Message-ID: From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [Qemu-commits] [COMMIT 059b8b1] KVM: x86: Refactor persistent CPU state List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jan Kiszka , qemu-devel On 7/1/09, Anthony Liguori wrote: > Blue Swirl wrote: > > > On 6/30/09, Anthony Liguori wrote: > > > > > > > From: Jan Kiszka > > > > > > This patch aligns the KVM-related layout and encoding of the CPU state > > > to be saved to disk or migrated with qemu-kvm. The major differences > are > > > reordering of fields and a compressed interrupt_bitmap into a single > > > number as there can be no more than one pending IRQ at a time. > > > > > > Signed-off-by: Jan Kiszka > > > Signed-off-by: Anthony Liguori > > > > > > > > > > > > > > > + for (i = 0; i < > ARRAY_SIZE(env->interrupt_bitmap); i++) { > > > + bit = ffsll(env->interrupt_bitmap[i]); > > > > > > > > > > This broke build on platforms without ffsll (Mingw32, *BSDs). > > > > > > What version of mingw32? Mine seems to have ffsll (gcc 4.4.2). Using built-in specs. Target: i586-mingw32msvc Configured with: /home/ron/devel/debian/mingw32/mingw32-4.2.1.dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++ --enable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-specific-runtime-libs Thread model: win32 gcc version 4.2.1-sjlj (mingw32-2)