From: Glauber Costa Subject: Re: VMSTATE_U64 vs. VMSTATE_UINT64 Date: Wed, 04 May 2011 15:16:18 -0300 Message-ID: <1304532978.4737.32.camel@mothafucka.localdomain> References: <4DC19538.8010207@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Juan Quintela , kvm To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:6414 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755150Ab1EDSQX (ORCPT ); Wed, 4 May 2011 14:16:23 -0400 In-Reply-To: <4DC19538.8010207@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2011-05-04 at 20:04 +0200, Jan Kiszka wrote: > Hi guys, > > can anyone comment on commit e4d6d49061 ("introduce VMSTATE_U64") in > qemu-kvm again? I strongly suspect this thing was only introduced to be > able to grab from a __u64 (for kvmclock) without generating a compiler > warning that you may got when using uint64_t, right? > > Thanks, > Jan > I don't remember if it was kvmclock. IIRC, it was my irqchip implementation at the time. But I do remember the reason: it was indeed to be able to grab kernel data structures directly without a compile warning.