From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v2 11/22] xen/x86: allow disabling emulated devices for HVM guests Date: Fri, 10 Jul 2015 14:54:11 -0400 Message-ID: <20150710185411.GC30788@l.oracle.com> References: <1435761975-98579-1-git-send-email-roger.pau@citrix.com> <1435761975-98579-12-git-send-email-roger.pau@citrix.com> <55940B3F.8050200@citrix.com> <5594FEFD.2090603@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZDdRG-0004f3-36 for xen-devel@lists.xenproject.org; Fri, 10 Jul 2015 18:54:22 +0000 Content-Disposition: inline In-Reply-To: <5594FEFD.2090603@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Kevin Tian , Suravee Suthikulpanit , Jun Nakajima , Andrew Cooper , Eddie Dong , Aravind Gopalakrishnan , Jan Beulich , xen-devel@lists.xenproject.org, Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org > Also, from a guest POV, how is the hw emulated local apic going to be > used? Are we going to route the interrupts from virtual devices > (netfront, blkfront) to the lapic? Or we just want it for the timer and > ditch the PV timer? Use the event channels for the PV. For PCIe devices (passthrough) use the APIC. > > I can see that this is more interesting for a PVH/HVMlite Dom0, but > still in that case I'm not sure how a guest is supposed to interact with > it. Will the PHYSDEV hypercalls route interrupts to the emulated local > apic instead of pirqs event channels? Will we trap PCI/MSI/MSI-X > configuration and emulate it? The thought I had was that with VT-D posted interrupts would do the heavy lifting. And when the interrupts do get to us and have to vmexit - well we would do the normal HVM path for those that are interested. And for those that want the event callback vector - we can still do that. I hadn't thought much of details on this yet -perhaps this should be discussed next Developer summit to hash some of this out.