From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPV8B-0003L0-PP for qemu-devel@nongnu.org; Wed, 12 Aug 2015 08:27:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPV87-0003ec-OP for qemu-devel@nongnu.org; Wed, 12 Aug 2015 08:27:43 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPV87-0003eB-IL for qemu-devel@nongnu.org; Wed, 12 Aug 2015 08:27:39 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NSY00BI5YLY5V50@mailout2.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 12 Aug 2015 13:27:34 +0100 (BST) From: Pavel Fedin References: <921907bc07635dbe258f715015d09c41512447b3.1439207299.git.p.fedin@samsung.com> In-reply-to: Date: Wed, 12 Aug 2015 15:27:32 +0300 Message-id: <017f01d0d4fa$43cf3570$cb6da050$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Content-language: ru Subject: Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Peter Maydell' Cc: 'Shlomo Pongratz' , 'Shlomo Pongratz' , 'QEMU Developers' , 'Christoffer Dall' , 'Eric Auger' Hello! > I still think this is the wrong approach -- see my remarks > in the previous round of patch review. You know... I thought a little bit... So far, test =3D true in KVM_CREATE_DEVICE means that we just want to = know whether this type is supported. No actual actions is done by the = kernel. Is it correct? If yes, we can just leave this test as it is, = because if it says that GICv2 is supported by KVM_CREATE_DEVICE, then: 1. We use new API. No KVM_IRQCHIP_CREATE. 2. GICv3 may be supported. Therefore, if we do this check, and it succeeds, then we just proceed, = and later actually try to create GICv3. If it fails for some reason, we = will see error message anyway. So would it be OK just not to touch = kvm_arch_irqchip_create() at all? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia