[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/2] ioemu: don't call xc_deassign_device().



Hi Ian,

I sent two patches about the reset of devices.

The patch [1/2] has already applied to Xen.
Could you apply the patch [2/2] to ioemu?

Thanks,
--
Yuji Shimada

On Fri, 24 Apr 2009 17:43:39 +0900
Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx> wrote:

> This patch modifies ioemu not to call xc_deassign_device()
> 
> Thanks,
> --
> Yuji Shimada
> 
> 
> Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
> 
> diff --git a/hw/pass-through.c b/hw/pass-through.c
> index 7bd2feb..6a53137 100644
> --- a/hw/pass-through.c
> +++ b/hw/pass-through.c
> @@ -3972,13 +3972,6 @@ static int unregister_real_device(int slot)
>      /* unregister real device's MMIO/PIO BARs */
>      pt_unregister_regions(assigned_device);
>  
> -    /* deassign the dev to dom0 */
> -    bdf |= (pci_dev->bus  & 0xff) << 16;
> -    bdf |= (pci_dev->dev  & 0x1f) << 11;
> -    bdf |= (pci_dev->func & 0x1f) << 8;
> -    if ( (rc = xc_deassign_device(xc_handle, domid, bdf)) != 0)
> -        PT_LOG("Error: Revoking the device failed! rc=%d\n", rc);
> -
>      /* mark this slot as free */
>      php_dev->valid = 0;
>      php_dev->pt_dev = NULL;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.