Received: from eggs.gnu.org ([2001:4830:134:3::10]:36942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTSHF-00008n-Rl for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:22:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTSHB-0005yq-0R for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:22:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60908) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTSHA-0005yE-R7 for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:22:24 -0400 Date: Fri, 7 Jul 2017 14:22:20 +0200 From: Igor Mammedov Message-ID: <20170707142220.4d0f14fe@nial.brq.redhat.com> In-Reply-To: <20170629175100.GB13435@rkaganb.sw.ru> References: <20170621162424.10462-1-rkagan@virtuozzo.com> <20170621162424.10462-15-rkagan@virtuozzo.com> <20170629170546.6450586d@nial.brq.redhat.com> <20170629175100.GB13435@rkaganb.sw.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 14/23] hyperv: qom-ify SynIC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Kagan Cc: "Denis V . Lunev" , Paolo Bonzini , Evgeny Yakovlev , qemu-devel@nongnu.org, Eduardo Habkost On Thu, 29 Jun 2017 20:51:01 +0300 Roman Kagan wrote: > On Thu, Jun 29, 2017 at 05:05:46PM +0200, Igor Mammedov wrote: > > On Wed, 21 Jun 2017 19:24:15 +0300 > > Roman Kagan wrote: [...] > > > > + if (cpu->hyperv_synic) { > > > + if (kvm_vcpu_enable_cap(CPU(cpu), KVM_CAP_HYPERV_SYNIC, 0)) { > > > + fprintf(stderr, "failed to enable Hyper-V SynIC\n"); > > > + return -ENOSYS; > > > + } > > > + > > > + hyperv_synic_add(cpu); > > is synic KVM specific or may it work with TCG accel? > > No, it's exclusively KVM. Actually most of it sits in the kernel. > > > in either case, looks like hyperv_synic_add() should be called from > > x86_cpu_realizefn(), the same like we do with APIC creating it > > depending feature being enabled. > > I'm not sure I understand the reason, in view of it being exclusively > KVM. couldn't synic be emulated (if missing QEMU part is written) in TCG mode or it relies on specific KVM features? [...]