lkml.org 
[lkml]   [2020]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 4/4] x86,module: Detect CRn and DRn manipulation
    On Wed, Apr 08, 2020 at 06:15:48PM +0200, Paolo Bonzini wrote:
    > On 08/04/20 17:46, Christoph Hellwig wrote:

    > > Scanning all modules seems safer. While we're at it - can be move the
    > > kvm bits using VMX to be always in the core kernel and just forbid
    > > modules from using those instructions entirely?
    >
    > I suppose we could use PVOPS-style patching for the more
    > performance-critical cases, but VMREAD/VMWRITE does not seem like a
    > particularly bad thing to allow modules and VMLAUNCH/VMRESUME have very
    > peculiar calling conventions around them.
    >
    > However, I wouldn't mind it if VMCLEAR/VMPTRLD and the associated kdump
    > cleanup code were moved to core kernel code.

    Speaking with my virt ignorance hat on, how impossible is it to provide
    generic/useful VMLAUNCH/VMRESUME wrappers?

    Because a lot of what happens around VMEXIT/VMENTER is very much like
    the userspace entry crud, as per that series from Thomas that fixes all
    that. And surely we don't need various broken copies of that in all the
    out-of-tree hypervisors.

    Also, I suppose if you have this, we no longer need to excempt CR2.

    \
     
     \ /
      Last update: 2020-04-09 10:57    [W:4.325 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site