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

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot



>>> On 19.11.18 at 13:45, <chao.gao@xxxxxxxxx> wrote:
> Another solution came to my mind:
> 
> The intention of Xen setting 'host_maskall' is to mask a single vector. How
> about converting the host_maskall to mask all vectors when Xen tries to init 
> the first vector in msix_capability_init()? Actually, on hardware, all
> vector's mask bit is already set when pciback is performing device reset. So
> it won't break anything. With commit 69d99d1b223, even a guest has cleared
> some vectors' mask bit before the convertion, it won't be an issue.

But we already mask vectors in msix_capability_init(). I thought we had
already settled that if we came through this function before assigning
the device to a (new or same/restarting) guest, all ought to be fine:
When we come here for the first entry, we also turn off host_maskall.
That's why we've been suggesting to go through a release/prepare
cycle.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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