From: "Jan Beulich" Subject: Re: [PATCH v5 6/9] ioreq-server: add support for multiple servers Date: Wed, 07 May 2014 13:34:24 +0100 Message-ID: <536A4470020000780000FF2C@mail.emea.novell.com> References: <1398946120-33169-1-git-send-email-paul.durrant@citrix.com> <1398946120-33169-7-git-send-email-paul.durrant@citrix.com> <536A316D020000780000FDE0@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0336D39@AMSPEX01CL01.citrite.net> <536A41D6020000780000FF02@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0336F03@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0336F03@AMSPEX01CL01.citrite.net> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: Ian Jackson , Stefano Stabellini , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 07.05.14 at 14:25, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> >>> On 07.05.14 at 14:06, wrote: >> >> From: Jan Beulich [mailto:JBeulich@suse.com] >> >> >>> On 01.05.14 at 14:08, wrote: >> >> > +static int hvm_access_cfc( >> >> > + int dir, uint32_t port, uint32_t bytes, uint32_t *val) >> >> > +{ >> >> > + struct vcpu *curr = current; >> >> > + struct hvm_domain *hd = &curr->domain->arch.hvm_domain; >> >> > + int rc; >> >> > + >> >> > + BUG_ON(port < 0xcfc); >> >> > + port -= 0xcfc; >> >> > + >> >> > + spin_lock(&hd->pci_lock); >> >> > + >> >> > + if ( hd->pci_cf8 & (1 << 31) ) { >> >> > + /* Fall through to an emulator */ >> >> > + rc = X86EMUL_UNHANDLEABLE; >> >> > + } else { >> >> > + /* Config access disabled */ >> >> >> >> Why does this not also get passed through to an emulator? >> >> >> > >> > I was trying to be consistent with QEMU here. It squashes any data >> accesses >> > if cf8 has the top bit set. >> >> But afaict with that dropped the entire function can go away. >> > > Yes, it can. Do you not think it would be a good idea to be consistent with > QEMU though? By removing the function you're going to be consistent with qemu, because you're going to have qemu supply the data. Jan