Rusty Russell wrote: > On Wed, 2007-02-21 at 18:09 -0800, Jeremy Fitzhardinge wrote: > >> Here's the new patching patch. It compiles, but it doesn't, you know, >> boot, as such. >> > > OK, there are several separate things here. > (1) Get rid of the PARAVIRT_IRQ_DISABLE etc constants in favour of > offsetof within the structure. > (2) Change (almost) all the paravirt hooks to be patchable. > (3) Genericise the infrastructure to table-driven. > > These should probably become separate patches, in fact. > OK, here's something which is more presentable, and it even boots (at least under Xen; haven't tried native). paravirt-patch-rename-paravirt_patch.patch paravirt-use-offset-site-ids.patch paravirt-fix-clobbers.patch - misc cleanups paravirt-patchable-call-wrappers.patch - wrap a large number of the paravirt calls with the magic to make the callsites patchable. More are possible; this is just a good first step. paravirt-patch-machinery.patch - the actual patching machinery, which is function-pointer driven rather than table driven now. J -------------- next part -------------- A non-text attachment was scrubbed... Name: paravirt-patch-rename-paravirt_patch.patch Type: text/x-patch Size: 3005 bytes Desc: not available Url : http://lists.osdl.org/pipermail/virtualization/attachments/20070222/1d8cc4a0/attachment-0005.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: paravirt-use-offset-site-ids.patch Type: text/x-patch Size: 7030 bytes Desc: not available Url : http://lists.osdl.org/pipermail/virtualization/attachments/20070222/1d8cc4a0/attachment-0006.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: paravirt-fix-clobbers.patch Type: text/x-patch Size: 1395 bytes Desc: not available Url : http://lists.osdl.org/pipermail/virtualization/attachments/20070222/1d8cc4a0/attachment-0007.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: paravirt-patchable-call-wrappers.patch Type: text/x-patch Size: 17124 bytes Desc: not available Url : http://lists.osdl.org/pipermail/virtualization/attachments/20070222/1d8cc4a0/attachment-0008.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: paravirt-patch-machinery.patch Type: text/x-patch Size: 7778 bytes Desc: not available Url : http://lists.osdl.org/pipermail/virtualization/attachments/20070222/1d8cc4a0/attachment-0009.bin