[lkml]   [2001]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] CPU hot swap for 2.4.3 + s390 support
Date said:
> How do you relocate
> -- pages which are mlocked without violating RT contraints?
> -- pages which contain kernel pointers and might be accessed from
> interrupt context?

Those two are the same problem, essentially. You have to copy the page,
then map it into the same virtual address (be that userspace or
kernelspace) as the old one. Mark the page readonly when you start to copy
it, and have a fault handler which immediately marks it writable and
returns. If the source is writable by the time you've finished the copy,

If you have to repeat yourself more than $n times, you're probably
experiencing livelock. At that point, do what Rik said - to hell with the
RT constraints, disable interrupts and do the copy. At least your cache is
warm :)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.068 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site