• Linus Torvalds's avatar
    Merge tag 'x86_sev_for_v6.6_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f31f663f
    Linus Torvalds authored
    Pull x86 SEV updates from Borislav Petkov:
    
     - Handle the case where the beginning virtual address of the address
       range whose SEV encryption status needs to change, is not page
       aligned so that callers which round up the number of pages to be
       decrypted, would mark a trailing page as decrypted and thus cause
       corruption during live migration.
    
     - Return an error from the #VC handler on AMD SEV-* guests when the
       debug registers swapping is enabled as a DR7 access should not happen
       then - that register is guest/host switched.
    
    * tag 'x86_sev_for_v6.6_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/sev: Make enc_dec_hypercall() accept a size instead of npages
      x86/sev: Do not handle #VC for DR7 read/write
    f31f663f
sev.c 15.1 KB