From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francisc Simon Subject: differences between KVM_GET_API_VERSION and KVM_CREATE_VM which both call _IO Date: Sat, 10 May 2014 10:31:05 +0200 Message-ID: <1399710665.2440.9.camel@earth> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail.evalgo.org ([148.251.96.97]:50435 "EHLO mail.evalgo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbaEJIkE (ORCPT ); Sat, 10 May 2014 04:40:04 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.evalgo.org (Postfix) with ESMTP id 277A625F32A for ; Sat, 10 May 2014 10:31:07 +0200 (CEST) Received: from mail.evalgo.org ([127.0.0.1]) by localhost (mail.evalgo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E8qFtPcoofSa for ; Sat, 10 May 2014 10:31:06 +0200 (CEST) Received: from [192.168.1.175] (p57B1EB26.dip0.t-ipconnect.de [87.177.235.38]) by mail.evalgo.org (Postfix) with ESMTPSA id 4882425F31F for ; Sat, 10 May 2014 10:31:06 +0200 (CEST) Sender: kvm-owner@vger.kernel.org List-ID: Hi, I try to figure out how this 2 calls: KVM_GET_API_VERSION KVM_CREATE_VM differ from each other because here: http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/include/linux/kvm.h#L351 i see that both call _IO and as far i understood the _IO function only shifts 8 bits from the given address 0xAE which in fact if i open /dev/kvm always returns 12. I guess that i missed something or I misunderstood it. It would be nice to be able to clarify it. Thank you for your time! Beste Regards! Frank :-)