Received: from eggs.gnu.org ([208.118.235.92]:40011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf76r-0008IF-EN for qemu-devel@nongnu.org; Thu, 14 Jun 2012 06:17:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sf76l-0008Ud-4V for qemu-devel@nongnu.org; Thu, 14 Jun 2012 06:17:01 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:26261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf76j-0008U8-KF for qemu-devel@nongnu.org; Thu, 14 Jun 2012 06:16:55 -0400 Date: Thu, 14 Jun 2012 18:16:46 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20120614101646.GA18229@cs.nctu.edu.tw> References: <20120614082444.GA1692@cs.nctu.edu.tw> <4FD9AB9A.4080401@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FD9AB9A.4080401@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Does kvm_fd mean KVM or VCPU fd? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, =?utf-8?B?IumZs+mfi+S7uyAoV2VpLVJlbiBDaGVuKSI=?= > > I think KVM_CREATE_VCPU should return VCPU fd, right? AFAIK, in KVM > > world, kvm_fd usually means the fd we get after opening "/dev/kvm". > > Just want to make sure I understand the code correcly. Thanks. >=20 > This is the kvm_fd inside struct CPUState, so it's per-CPU. Okay, then it's VCPU fd. Don't know rename it or add a comment to indic= ate it's a VCPU fd is a good idea. ;) Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj