From: Pekka Enberg Subject: Re: [PATCH 5/5 V2] kvm tools: Initialize and use VESA and VNC Date: Tue, 24 May 2011 14:56:56 +0300 Message-ID: References: <1306149553-26793-1-git-send-email-levinsasha928@gmail.com> <1306149553-26793-5-git-send-email-levinsasha928@gmail.com> <20110523113824.GE4042@elte.hu> <4DDB6E55.8080408@redhat.com> <20110524085024.GA31453@elte.hu> <4DDB75EC.7000300@redhat.com> <4DDB9510.8030501@redhat.com> <4DDB96CA.1030206@redhat.com> <4DDB9972.5050501@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paolo Bonzini , Ingo Molnar , Sasha Levin , john@jfloren.net, kvm@vger.kernel.org, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com To: Avi Kivity Return-path: Received: from mail-vx0-f174.google.com ([209.85.220.174]:61730 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753127Ab1EXL45 convert rfc822-to-8bit (ORCPT ); Tue, 24 May 2011 07:56:57 -0400 Received: by vxi39 with SMTP id 39so4826892vxi.19 for ; Tue, 24 May 2011 04:56:57 -0700 (PDT) In-Reply-To: <4DDB9972.5050501@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Avi, On Tue, May 24, 2011 at 2:41 PM, Avi Kivity wrote: >> I don't quite understand what problems you think we might have. We'r= e >> already using userspace libraries (libvnc) and most of us code is >> non-kernel code. > > If uint64_t is defined differently than u64, you won't be able to pas= s it by > reference if an external library expects it. Oh, the sizes must be the same for obvious reasons so that shouldn't be a problem and it's better to do the casting in the external API calls than in core code. On Tue, May 24, 2011 at 2:41 PM, Avi Kivity wrote: > Regarding this reuse, I see it's done by copy/paste. =A0Won't it be b= etter to > have tools/lib and have tools/perf and tools/kvm use that? Yes, absolutely. We're keeping things well-contained under tools/kvm with copy-paste until we hit Linus' tree in the future, though, for merge reasons. Pekka