Avi Kivity wrote: > The code doesn't support having both lazy modes active at once. Maybe > that's not an issue, but aren't the two modes orthogonal? Hm, well, that's a good question. The initial semantics of the lazy mode calls were "what VMI wants", and they're still not really nailed down. VMI doesn't support having both active at once, and its a little unclear what it would mean anyway. For now, we don't support multiple lazy modes active at once, and the kernel never tries to do it (in fact, it would be a bug, since lazy mmu must be preempt disabled, and lazy cpu is only used for context switches). > >> --- a/arch/i386/xen/multicalls.h >> +++ b/arch/i386/xen/multicalls.h >> @@ -35,7 +35,7 @@ void xen_mc_flush(void); >> /* Issue a multicall if we're not in a lazy mode */ >> static inline void xen_mc_issue(unsigned mode) >> { >> - if ((xen_get_lazy_mode() & mode) == 0) >> + if ((paravirt_get_lazy_mode() & mode) == 0) >> xen_mc_flush(); > > This snippet looks like it wants to support concurrently active lazy > modes. Yeah, its a little more general than it needs to be. J _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization