Alexander Nasonov wrote: > I'm following a common practice of calling __clear_cache for JIT code > except that I wrap it as a hypercall.
As pointed out a while back by justin@, icache sync is a hypercall under Xen (though, I'm not sure which of the cache related ops on that page is icache sync - terminology is confusing): http://xenbits.xen.org/people/ianc/docs/group__HYPERVISOR__mmuext__op.html It's a way more general than my proposal (it even handles L4 cache, I'm not sure that any of Xen supported arches have L4 cache) and it accepts a generic argument in a way similar to ioctl or sysarch agrument passing. I'm not sure I want to model a similar interface with RUMPUSER_SYNC_ICACHE_ALL, RUMPUSER_SYNC_ICACHE_RANGE, etc commands but I'm open to suggestions. Alex