 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v6 04/11] x86/physdev: enable PHYSDEVOP_pci_mmcfg_reserved for PVH Dom0
 >>> On 19.09.17 at 17:29, <roger.pau@xxxxxxxxxx> wrote:
> --- a/xen/arch/x86/physdev.c
> +++ b/xen/arch/x86/physdev.c
> @@ -559,6 +559,17 @@ ret_t do_physdev_op(int cmd, 
> XEN_GUEST_HANDLE_PARAM(void) arg)
>  
>          ret = pci_mmcfg_reserved(info.address, info.segment,
>                                   info.start_bus, info.end_bus, info.flags);
> +        if ( !ret && has_vpci(currd) )
> +        {
> +            /*
> +             * For HVM (PVH) domains try to add the newly found MMCFG to the
> +             * domain.
> +             */
> +            ret = register_vpci_mmcfg_handler(currd, info.address,
> +                                              info.start_bus, info.end_bus,
> +                                              info.segment);
> +        }
> +
>          break;
>      }
I think it is wrong to report back -EEXIST here for an exact match
region which we have on record already.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |