|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v12 5/6] x86/ioreq server: Asynchronously reset outstanding p2m_ioreq_server entries.
On 4/7/2017 6:28 PM, George Dunlap wrote: On 07/04/17 11:14, Yu Zhang wrote:On 4/7/2017 5:40 PM, Jan Beulich wrote:On 06.04.17 at 17:53, <yu.c.zhang@xxxxxxxxxxxxxxx> wrote: Well, I'm not aware that other actions besides the logdirty will cause the reset. But if that would happen, will below change solve this?@@ -546,12 +546,16 @@ static int resolve_misconfig(struct p2m_domain *p2m, unsigned long gfn)
{
if ( e.sa_p2mt == p2m_ioreq_server )
{
- ASSERT(p2m->ioreq.entry_count > 0);
- p2m->ioreq.entry_count--;
+ if ( p2m->ioreq.server == NULL )
+ {
+ ASSERT(p2m->ioreq.entry_count > 0);
+ p2m->ioreq.entry_count--;
+ e.sa_p2mt = p2m_ram_rw;
+ }
}
-
- e.sa_p2mt = p2m_is_logdirty_range(p2m, gfn +
i, gfn + i)
- ? p2m_ram_logdirty : p2m_ram_rw; + else+ e.sa_p2mt = p2m_is_logdirty_range(p2m, gfn + i, gfn + i) + ? p2m_ram_logdirty : p2m_ram_rw;ept_p2m_type_to_flags(p2m, &e, e.sa_p2mt, e.access);
}
e.recalc = 0;
Yu
-George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |