From: Paolo Bonzini Subject: Re: [PATCH RFC] kvm/hypercall: Add the PVI hypercall support Date: Fri, 14 Oct 2016 16:13:03 +0200 Message-ID: References: <1476448259-99631-1-git-send-email-wei.w.wang@intel.com> <98c0bfa2-1fd2-493d-3aef-c2a74d8282c3@redhat.com> <286AC319A985734F985F78AFA26841F736E2FF04@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: "Wang, Wei W" , "kvm@vger.kernel.org" , "mst@redhat.com" , "marcandre.lureau@gmail.com" , "stefanha@redhat.com" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55038 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754596AbcJNON3 (ORCPT ); Fri, 14 Oct 2016 10:13:29 -0400 In-Reply-To: <286AC319A985734F985F78AFA26841F736E2FF04@shsmsx102.ccr.corp.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On 14/10/2016 16:00, Wang, Wei W wrote: >> Why would you do that instead of just using the local APIC?... > > The interrupt will be delivered to LAPIC - the hypercall hander > injects the interrupt via kvm_set_irq(kvm, GSI,..), which finally > uses LAPIC, right? But why do you need that? You can just deliver it to the appropriate local APIC interrupt, there's no need to know the GSI. The guest knows how it has configured the GSIs. You haven't explained the use case. Paolo