|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH 14/16]: PVH xen: add xenmem_add_foreign_to_pmap()
On Thu, 24 Jan 2013 17:31:18 +0000
Tim Deegan <tim@xxxxxxx> wrote:
> At 18:11 -0800 on 11 Jan (1357927863), Mukesh Rathor wrote:
>
> > + /* qemu, running on PVH dom0, mapping hvm domain's io pages
> > during domain
> > + * creation, doesn't have mfns in the HAP table */
> > + if ( !mfn_valid(mfn) && p2m_is_mmio(p2mt) ) {
>
> This test should be for == p2m_mmio_direct; we don't want to try
> mapping p2m_mmio_dm areas.
Yup. Done.
> > + if (!is_hvm_domain(fdom)) {
> > + printk("mmio type for non-hvm domain. fd:%d fgmfn:%lx
> > gpfn:%lx\n",
> > + foreign_domid, fgmfn, gpfn);
> > + return -EINVAL;
> > + }
> > + mfn = fgmfn; /* map 1 to 1 */
>
> Surely not -- you want to map the _actual_ MMIO range, right, not just
> whatever GFN-address the foreigh domain mapped it at?
Actually, fgmfn here is the machine address of the mmio page.
Removed the "map 1 to 1" comment.
thanks,
Mukesh
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |