> On May 14, 2019, at 8:36 AM, Alexandre Chartre <alexandre.char...@oracle.com> > wrote: > > >> On 5/14/19 9:21 AM, Peter Zijlstra wrote: >>> On Mon, May 13, 2019 at 07:02:30PM -0700, Andy Lutomirski wrote: >>> This sounds like a great use case for static_call(). PeterZ, do you >>> suppose we could wire up static_call() with the module infrastructure >>> to make it easy to do "static_call to such-and-such GPL module symbol >>> if that symbol is in a loaded module, else nop"? >> You're basically asking it to do dynamic linking. And I suppose that is >> technically possible. >> However, I'm really starting to think kvm (or at least these parts of it >> that want to play these games) had better not be a module anymore. > > Maybe we can use an atomic notifier (e.g. page_fault_notifier)? > > IMO that’s worse. I want to be able to read do_page_fault() and understand what happens and in what order. Having do_page_fault run with the wrong CR3 is so fundamental to its operation that it needs to be very obvious what’s happening.
- Re: [RFC KVM 18/27] kvm/isolation:... Alexandre Chartre
- Re: [RFC KVM 18/27] kvm/isolat... Andy Lutomirski
- [RFC KVM 17/27] kvm/isolation: improve mapping copy when... Alexandre Chartre
- [RFC KVM 14/27] kvm/isolation: functions to copy page ta... Alexandre Chartre
- [RFC KVM 24/27] kvm/isolation: KVM page fault handler Alexandre Chartre
- Re: [RFC KVM 24/27] kvm/isolation: KVM page fault h... Peter Zijlstra
- Re: [RFC KVM 24/27] kvm/isolation: KVM page fau... Liran Alon
- Re: [RFC KVM 24/27] kvm/isolation: KVM page... Andy Lutomirski
- Re: [RFC KVM 24/27] kvm/isolation: KVM ... Peter Zijlstra
- Re: [RFC KVM 24/27] kvm/isolation:... Alexandre Chartre
- Re: [RFC KVM 24/27] kvm/isolat... Andy Lutomirski
- Re: [RFC KVM 24/27] kvm/isolation: KVM page fault h... Andy Lutomirski
- Re: [RFC KVM 24/27] kvm/isolation: KVM page fau... Alexandre Chartre
- [RFC KVM 23/27] kvm/isolation: initialize the KVM page t... Alexandre Chartre
- [RFC KVM 26/27] kvm/isolation: initialize the KVM page t... Alexandre Chartre
- [RFC KVM 05/27] KVM: x86: Add handler to exit kvm isolat... Alexandre Chartre
- Re: [RFC KVM 05/27] KVM: x86: Add handler to exit k... Andy Lutomirski
- Re: [RFC KVM 05/27] KVM: x86: Add handler to ex... Alexandre Chartre
- [RFC KVM 27/27] kvm/isolation: initialize the KVM page t... Alexandre Chartre
- [RFC KVM 01/27] kernel: Export memory-management symbols... Alexandre Chartre
- Re: [RFC KVM 01/27] kernel: Export memory-managemen... Peter Zijlstra